arm-linux-g++ -o samplecam usbcam.c pkg-config opencv --cflags --libs
usbcam.c:25: note: the mangling of 'va_list' has changed in GCC 4.4
/usr/local/lib/libopencv_calib3d.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: * [usbcam] Error 1
0
votes
1 Answers
0
votes
What is the question? What do you do? I assume that your pkg-config gets the settings for the library installed in your build machine (path /usr/local/lib suggests that). No wonder that it won't link with ARM binaries.
If you have ARM build of opencv, along with it's SDK, you should set PKG_CONFIG_PATH to your /opt/crosstoolchain/.../opencv/lib/pkgconfig before configuring the build?