2020-11-22 04:10:50 -0600 | received badge | ● Popular Question (source) |
2015-08-03 11:39:50 -0600 | asked a question | Raspberry Pi C Program with OpenCV - cvGrabeFrame linking error I have been trying, unsuccessfully, to compile my c program for using openCV on the linux-based operating system run on Raspberry Pi, Raspbian. The goal is to interface with the RPi camera, incorporating OpenCV. I have searched similar errors but only found mentions of C++ programs with this specific problem. I do not want this in C++, I want to solve the problem using C programming. I am compiling a file ending in .c with the following command in the linux LXTerminal: gcc -o testcode testcode.c -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_features2d -lopencv_objdetect I get the following errors: /usr/bin/ld: /tmp/ccxluxYC.o: undefined reference to symbol 'cvGrabFrame' //usr/local/lib/libopencv_videoio.so.3.0: error adding symbols: DSO missing from command line collect2: ld returned 1 exit status I would assume that I am not linking with a library. Any suggestions? Additionally, how do I link with DSO in the command line? Thanks! |
2015-08-03 11:30:51 -0600 | commented question | Undefined reference error while compiling a C program on Raspberry Pi I'm still having issues linking to 'cvGrabFrame'... any ideas? |
2015-08-03 09:54:53 -0600 | commented question | Undefined reference error while compiling a C program on Raspberry Pi I'm using opencv 3.0, and cmake version 2.8, is this the same for this version? |
2015-08-03 09:37:20 -0600 | commented question | Undefined reference error while compiling a C program on Raspberry Pi I've got it down to one undefined reference now, with those links to opencv libs. Now, my output is the following: /usr/bin/ld: /tmp/ccAyCfME.o: undefined reference to symbol 'cvGrabFrame' //usr/local/lib/libopencv_videoio.so.3.0: error adding symbols: DSO missing from command line collect2: ld returned 1 exit status |
2015-08-03 09:15:57 -0600 | commented question | Undefined reference error while compiling a C program on Raspberry Pi berak, What is the statement needed to include those opencv libs? I'm having difficulty finding these. |
2015-08-03 08:56:34 -0600 | asked a question | Undefined reference error while compiling a C program on Raspberry Pi I have been trying, unsuccessfully, to compile my c program for using openCV on the linux-based operating system run on Raspberry Pi, Raspbian. The goal is to interface with the RPi camera, incorporating OpenCV. I have searched similar errors but only found mentions of C++ programs with this specific problem. I do not want this in C++, I want to solve the problem using C programming. I am compiling a file ending in .c with the following command in the linux LXTerminal: gcc -o testcode testcode.c I repeatedly get the follow errors:
I have searched through my RPi for files with mention of cvFree and have been unable to locate them, so I'm thinking that I might be missing a step in the download or excluding a header. I have the following header files:
Note: All the include statements are preceded with a pound/hashtag and the word "include," in addition to being surrounded by "<>" brackets. I use the following calls (variable types only included in parameters ... (more) |