bbond007 / raspytube

OpenVG YouTube client for Raspberry Pi
25 stars 1 forks source link

undefined reference to jpeg_mem_src #3

Closed CalumJEadie closed 11 years ago

CalumJEadie commented 11 years ago

Great work on the project @bbond007 . I'm having some trouble compiling it and hoped you might be able to suggest where I'm going wrong :).

sudo apt-get install libjpeg8-dev libjpeg62-dev libx11-dev

cd /opt/vc/src/hello_pi/libs/ilclient
make clean
make

cd ~
git clone https://github.com/bbond007/raspytube
cd raspytube
cd OMXJPEG
make clean
make
cd ..
cd GFXDATA
make clean
make
cd ..
make clean
make

When doing the final make I get,

...
/home/pi/raspytube/gfxlib.c:204: undefined reference to `jpeg_mem_src'
collect2: ld returned 1 exit status
make: *** [raspytube.bin] Error 1
rm term.o kbjs.o gfxlib.o ui.o main.o config.o

In more detail,

$ make all

for i in gfxlib.o kbjs.o ui.o term.o config.o main.o ; do (if test -e "$i"; then ( rm $i ); fi ); done
gcc -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -lX11 -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I./ -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/src/hello_pi/libs/vgfont -g -c gfxlib.c -o gfxlib.o -Wno-deprecated-declarations
gfxlib.c: In function ‘createImageFromBuf’:
gfxlib.c:204:5: warning: implicit declaration of function ‘jpeg_mem_src’ [-Wimplicit-function-declaration]
gcc -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -lX11 -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I./ -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/src/hello_pi/libs/vgfont -g -c kbjs.c -o kbjs.o -Wno-deprecated-declarations
gcc -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -lX11 -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I./ -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/src/hello_pi/libs/vgfont -g -c ui.c -o ui.o -Wno-deprecated-declarations
ui.c: In function ‘free_ui’:
ui.c:1803:5: warning: implicit declaration of function ‘free_boing’ [-Wimplicit-function-declaration]
gcc -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -lX11 -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I./ -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/src/hello_pi/libs/vgfont -g -c term.c -o term.o -Wno-deprecated-declarations
term.c: In function ‘term_init’:
term.c:133:9: warning: implicit declaration of function ‘create_image_from_buf’ [-Wimplicit-function-declaration]
gcc -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -lX11 -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I./ -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/src/hello_pi/libs/vgfont -g -c config.c -o config.o -Wno-deprecated-declarations
gcc -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -lX11 -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I./ -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/src/hello_pi/libs/vgfont -g -c main.c -o main.o -Wno-deprecated-declarations
main.c:32:1: warning: useless storage class specifier in empty declaration [enabled by default]
g++ -o raspytube.bin -Wl,--whole-archive gfxlib.o kbjs.o ui.o term.o config.o main.o  -L/opt/vc/lib/ -lGLESv2 -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -L/opt/vc/src/hello_pi/libs/ilclient -L/opt/vc/src/hello_pi/libs/vgfont -lilclient -ljpeg  -lX11 -L./GFXDATA -lgfxdata -L./OMXJPEG -lomxjpeg -Wl,--no-whole-archive -rdynamic
gfxlib.o: In function `createImageFromBuf':
/home/pi/raspytube/gfxlib.c:204: undefined reference to `jpeg_mem_src'
collect2: ld returned 1 exit status
make: *** [raspytube.bin] Error 1
rm term.o kbjs.o gfxlib.o ui.o main.o config.o

I was wondering if you had any suggestions of where I'm going wrong?

CalumJEadie commented 11 years ago

Found removing libjpeg62-dev and reinstalling libjpeg8-dev did the trick.