Set configuration arm compiler qt for cross compile
-
Hi ,
i did cross compile hidapi with arm-gcc and test.cpp file in terminal,
Now i want set qt compiler for cross compile HIDAPI, i could cross compile simple project with qt , but i cant cross compile hidapi in qt, when i want compile with arm-gcc, i get these errors :/home/hossein/out3/lib//libudev.so: undefined reference to `name_to_handle_at@GLIBC_2.14' collect2: error: ld returned 1 exit status
in my .pro :
LIBS += -L/home/hossein/out3/lib/ -lhidapi-hidraw LIBS += -L/home/hossein/out3/lib/ -ludev
At this link i description how i cross compile in command line ..
https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=143377What can i do?
Thanks -
Nobody??
-
Hi,
Were did you get that library ? Looks like it's linked to a pretty old version of glibc.
-
I didn`t get any where, I use ubuntu 14.04 x86 and i want cross compile for arm.
I can do it with Terminal , but i have this error in qt .. -
How are you doing it from the terminal ?
-
I meant the Qt project compilation
-
@powerboy2988 said:
name_to_handle_
In my .pro file, i set -lhidapi-hidraw and -ludev and i got that error
-
Can you share your .pro file ?
-
unix: LIBS += -L/home/hossein/out/lib/ -lhidapi-hidraw -ludev
INCLUDEPATH += /home/hossein/out/include/hidapi/
-
What version of glibc do you have ?
-
i checked and i have 2.19!! in pc and in raspberry i have 2.13!!!
-
If possible update the RPi. Otherwise, you have to re-build/link the libraries against the same set used by the RPi.
-
i have not problem with RPi, i could cross compile in terminal but i cannot set config in qt ,
-
And if you explicitly link against glib ?