У пн, 2009-08-03 у 17:40 +0200, Alessandro Ferrari пише:
> I try to compiling that i've done that use ffmpeg and i have this compiler
> error:
> 
> /usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
> make[1]: Entering directory
> `/home/alessandro/NetBeansProjects/prototipo_decoder_v1'
> /usr/bin/make  -f nbproject/Makefile-Debug.mk
> dist/Debug/GNU-Linux-x86/prototipo_decoder_v1
> make[2]: Entering directory
> `/home/alessandro/NetBeansProjects/prototipo_decoder_v1'
> mkdir -p build/Debug/GNU-Linux-x86
> rm -f build/Debug/GNU-Linux-x86/decoder.o.d
> gcc    -c -g -I/root/ffmpeg -I/root/ffmpeg/libavcodec
> -I/root/ffmpeg/libavformat -I/root/ffmpeg/libavutil
> -I/root/ffmpeg/libavutil/x86 -I/root/ffmpeg/libavcodec/x86 -I/root/x264 -MMD
> -MP -MF build/Debug/GNU-Linux-x86/decoder.o.d -o
> build/Debug/GNU-Linux-x86/decoder.o decoder.c
> mkdir -p dist/Debug/GNU-Linux-x86
> gcc     -o dist/Debug/GNU-Linux-x86/prototipo_decoder_v1
> build/Debug/GNU-Linux-x86/decoder.o -lavformat -lavcodec -lavdevice -lavutil
> -lswscale -lpthread -lxvidcore -lx264 -ltheora -logg -laudio -lmp4ff
> -lmp3lame -lfaac -lfaad
> */usr/bin/ld: cannot find -lx264
> collect2: ld returned 1 exit status
> make[2]: *** [dist/Debug/GNU-Linux-x86/prototipo_decoder_v1] Error 1
> make[2]: Leaving directory
> `/home/alessandro/NetBeansProjects/prototipo_decoder_v1'
> make[1]: *** [.build-conf] Error 2
> make[1]: Leaving directory
> `/home/alessandro/NetBeansProjects/prototipo_decoder_v1'
> make: *** [.build-impl] Error 2
> BUILD FAILED (exit value 2, total time: 269ms)
> *
> 
> libx264 is installed in /root/x264/ and the library is included with
> -libx264
> I've not any idea on the possible solution. Anyone have a similar problem or
> a possible solution?
> 
To point linker to directory with libraries you should use -L option.

p.s. I hope that you really realize how bad it is to work and moreover
to develop as a superuser.

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to