Page 1 of 1

Cannot compile vodisp on ARM

Posted: Wed Apr 01, 2020 7:31 pm
by ameridroid
I am trying to get vodisp to work on an ODROID-HC2 which is an ARM system running Debian. From the that I got when downloading and unarchiving I see the following instructions:

Code: Select all
# Quick use for Raspberry Pi
1. Install libusb-1.0 for your raspberry Pi
2. Copy lib/raspi/ to /usr/lib
3. Compile vodisp or directly copy demo/raspi/vodisp to your raspberry Pi

I installed libusb-1.0 and copied to /usr/lib/. But when compiling:

Code: Select all
# gcc main.c -lvodisp -o vodisp
/tmp/ccgbTBhq.o: In function `main':
main.c:(.text+0x48e): undefined reference to `vodisp_control'
main.c:(.text+0x4ec): undefined reference to `vodisp_control'
main.c:(.text+0x598): undefined reference to `vodisp_control'
main.c:(.text+0x642): undefined reference to `vodisp_control'
collect2: error: ld returned 1 exit status

I checked libvodisp.h and found that "vodisp_control" is defined there.

Do you have any ideas what I may be doing wrong?

Re: Cannot compile vodisp on ARM

Posted: Sun Apr 05, 2020 12:19 am
by Vonger
maybe is not in the gcc search path? try this, add -L. to add library path to gcc.
gcc main.c -L. -lvodisp -o vodisp