Cannot compile vodisp on ARM

ameridroid
 
Posts: 10
Joined: Tue Apr 11, 2017 8:34 pm

Cannot compile vodisp on ARM

Wed Apr 01, 2020 7:31 pm

I am trying to get vodisp to work on an ODROID-HC2 which is an ARM system running Debian. From the README.md that I got when downloading and unarchiving http://vonger.cn/misc/screen/v2screen.tar.xz 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/libvodisp.so to /usr/lib
3. Compile vodisp or directly copy demo/raspi/vodisp to your raspberry Pi


I installed libusb-1.0 and copied libvodisp.so 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?

Vonger
 
Posts: 812
Joined: Sun Oct 19, 2014 6:00 am

Re: Cannot compile vodisp on ARM

Sun Apr 05, 2020 12:19 am

maybe libvodisp.so is not in the gcc search path? try this, add -L. to add library path to gcc.
gcc main.c -L. -lvodisp -o vodisp

Return to VoCam264 & Screen

Who is online

Users browsing this forum: No registered users and 1 guest