2016-09-04 4 views
0

Zbarのビルドプロセスに関するヘルプが必要です。 私は、i.Mx6DualLiteプラットフォームのzbar-0.10ソースをクロスコンパイルしようとしています。以下のように設定すると、X11は「-lXv!でXvQueryExtensionを見つけることができません!この問題を解決するのを手伝ってください。 v4l2アプリケーションを使用してi.Mx6DLプラットフォームでzbarスキャナを実行したい。ビデオはLCD画面に表示する必要があるため、X11が必要です。x11 ARMプラットフォームのzbarコンパイルの問題

以下は私のconfigureコマンドです。

./configure --without-xshm --with-xv --without-python --without-gtk --without-qt --without-imagemagick --host=arm-poky-linux-gnueabi CFLAGS=-I/home/user/Haji/ZBAR/Yocto/imx6dlsabresd/usr/include/ LDFLAGS=-L/home/user/Haji/ZBAR/Yocto/imx6dlsabresd/usr/lib/ 
configure: WARNING: If you wanted to set the --build type, don't use --host. 
If a cross compiler is detected then cross compile mode will be used. 
checking for a BSD-compatible install... /usr/bin/install -c 
checking whether build environment is sane... yes 
checking for a thread-safe mkdir -p... /bin/mkdir -p 
checking for gawk... gawk 
checking whether make sets $(MAKE)... yes 
checking for arm-poky-linux-gnueabi-strip... arm-poky-linux-gnueabi-strip 
checking build system type... x86_64-unknown-linux-gnu 
checking host system type... arm-poky-linux-gnueabi 
checking for style of include used by make... GNU 
checking for arm-poky-linux-gnueabi-gcc... arm-poky-linux-gnueabi-gcc 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... yes 
checking for suffix of executables... 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether arm-poky-linux-gnueabi-gcc accepts -g... yes 
checking for arm-poky-linux-gnueabi-gcc option to accept ISO C89... none needed 
checking dependency style of arm-poky-linux-gnueabi-gcc... gcc3 
checking for a sed that does not truncate output... /bin/sed 
checking for grep that handles long lines and -e... /bin/grep 
checking for egrep... /bin/grep -E 
checking for fgrep... /bin/grep -F 
checking for ld used by arm-poky-linux-gnueabi-gcc... /opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld 
checking if the linker (/opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld) is GNU ld... yes 
checking for BSD- or MS-compatible name lister (nm)... /opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi//arm-poky-linux-gnueabi-nm -B 
checking the name lister (/opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi//arm-poky-linux-gnueabi-nm -B) interface... BSD nm 
checking whether ln -s works... yes 
checking the maximum length of command line arguments... 1572864 
checking whether the shell understands some XSI constructs... yes 
checking whether the shell understands "+="... yes 
checking for /opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld option to reload object files... -r 
checking for arm-poky-linux-gnueabi-objdump... arm-poky-linux-gnueabi-objdump 
checking how to recognize dependent libraries... pass_all 
checking for arm-poky-linux-gnueabi-ar... arm-poky-linux-gnueabi-ar 
checking for arm-poky-linux-gnueabi-strip... (cached) arm-poky-linux-gnueabi-strip 
checking for arm-poky-linux-gnueabi-ranlib... arm-poky-linux-gnueabi-ranlib 
checking command to parse /opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi//arm-poky-linux-gnueabi-nm -B output from arm-poky-linux-gnueabi-gcc object... ok 
checking how to run the C preprocessor... arm-poky-linux-gnueabi-gcc -E 
checking for ANSI C header files... yes 
checking for sys/types.h... yes 
checking for sys/stat.h... yes 
checking for stdlib.h... yes 
checking for string.h... yes 
checking for memory.h... yes 
checking for strings.h... yes 
checking for inttypes.h... yes 
checking for stdint.h... yes 
checking for unistd.h... yes 
checking for dlfcn.h... yes 
checking for objdir... .libs 
checking if arm-poky-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no 
checking for arm-poky-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC 
checking if arm-poky-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes 
checking if arm-poky-linux-gnueabi-gcc static flag -static works... yes 
checking if arm-poky-linux-gnueabi-gcc supports -c -o file.o... yes 
checking if arm-poky-linux-gnueabi-gcc supports -c -o file.o... (cached) yes 
checking whether the arm-poky-linux-gnueabi-gcc linker (/opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld) supports shared libraries... yes 
checking whether -lc should be explicitly linked in... no 
checking dynamic linker characteristics... GNU/Linux ld.so 
checking how to hardcode library paths into programs... immediate 
checking for shl_load... no 
checking for shl_load in -ldld... no 
checking for dlopen... no 
checking for dlopen in -ldl... yes 
checking whether a program can dlopen itself... cross 
checking whether stripping libraries is possible... yes 
checking if libtool supports shared libraries... yes 
checking whether to build shared libraries... yes 
checking whether to build static libraries... yes 
checking for arm-poky-linux-gnueabi-windres... no 
checking for windres... no 
checking host system type... (cached) arm-poky-linux-gnueabi 
checking for arm-poky-linux-gnueabi-gcc... (cached) arm-poky-linux-gnueabi-gcc 
checking whether we are using the GNU C compiler... (cached) yes 
checking whether arm-poky-linux-gnueabi-gcc accepts -g... (cached) yes 
checking for arm-poky-linux-gnueabi-gcc option to accept ISO C89... (cached) none needed 
checking dependency style of arm-poky-linux-gnueabi-gcc... (cached) gcc3 
checking whether arm-poky-linux-gnueabi-gcc and cc understand -c and -o together... yes 
checking for arm-poky-linux-gnueabi-g++... arm-poky-linux-gnueabi-g++ 
checking whether we are using the GNU C++ compiler... yes 
checking whether arm-poky-linux-gnueabi-g++ accepts -g... yes 
checking dependency style of arm-poky-linux-gnueabi-g++... gcc3 
checking whether we are using the GNU C++ compiler... (cached) yes 
checking whether arm-poky-linux-gnueabi-g++ accepts -g... (cached) yes 
checking dependency style of arm-poky-linux-gnueabi-g++... (cached) gcc3 
checking how to run the C++ preprocessor... arm-poky-linux-gnueabi-g++ -E 
checking for ld used by arm-poky-linux-gnueabi-g++... /opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld 
checking if the linker (/opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld) is GNU ld... yes 
checking whether the arm-poky-linux-gnueabi-g++ linker (/opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld) supports shared libraries... yes 
checking for arm-poky-linux-gnueabi-g++ option to produce PIC... -fPIC -DPIC 
checking if arm-poky-linux-gnueabi-g++ PIC flag -fPIC -DPIC works... yes 
checking if arm-poky-linux-gnueabi-g++ static flag -static works... yes 
checking if arm-poky-linux-gnueabi-g++ supports -c -o file.o... yes 
checking if arm-poky-linux-gnueabi-g++ supports -c -o file.o... (cached) yes 
checking whether the arm-poky-linux-gnueabi-g++ linker (/opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld) supports shared libraries... yes 
checking dynamic linker characteristics... GNU/Linux ld.so 
checking how to hardcode library paths into programs... immediate 
checking for arm-poky-linux-gnueabi-pkg-config... no 
checking for pkg-config... /usr/bin/pkg-config 
configure: WARNING: using cross tools not prefixed with host triplet 
checking pkg-config is at least version 0.9.0... yes 
checking for xmlto... xmlto 
checking whether to build EAN symbologies... yes 
checking whether to build Code 128 symbology... yes 
checking whether to build Code 39 symbology... yes 
checking whether to build PDF417 symbology... no 
checking whether to build Interleaved 2 of 5 symbology... yes 
checking whether to build QR Code... yes 
checking for library containing clock_gettime... none required 
checking for ld used by GCC... /opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld 
checking if the linker (/opt/poky/1.6.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld) is GNU ld... yes 
checking for shared library run path origin... done 
checking for iconv... yes 
checking for working iconv... guessing yes 
checking for iconv declaration... 
extern size_t iconv (iconv_t cd, char * inbuf, size_t inbytesleft, char * outbuf, size_t outbytesleft); 
checking poll.h usability... yes 
checking poll.h presence... yes 
checking for poll.h... yes 
checking pthread.h usability... yes 
checking pthread.h presence... yes 
checking for pthread.h... yes 
checking for pthread_create in -lpthread... yes 
checking linux/videodev2.h usability... yes 
checking linux/videodev2.h presence... yes 
checking for linux/videodev2.h... yes 
checking for linux/videodev2.h... (cached) yes 
checking for X... no 
checking for X11/extensions/Xvlib.h... yes 
checking for XvQueryExtension in -lXv... no 
configure: error: in /home/user/Haji/ZBAR/zbar-0.10': configure: error: unable to find XvQueryExtension in -lXv! specify XV_LIBS or configure --without-xv to disable the extension Seeconfig.log' for more details 

助けてください。私は完全にこれに打ち勝ちました。事前に

おかげで今すぐ解決することができ、我々はできる よろしく Sarjoon

+0

最初に質問するのは、libXv.soあなたのターゲットマシンに? –

+0

はい、私はフォルダ-L/home/user/Haji/ZBAR/Yocto/imx6dlsabresd/usr/lib /をチェックし、Xv.soはそこにあり、すべてのX11ライブラリもあります。しかし、この問題は、 "Xv Extension"のような他のlibに指摘しています。 LDFLAGS以外のコマンドをリンクする必要はありますか? – sarjoon

+0

これでconfig.logを見て正確なエラーを確認する必要があります。おそらくconfigureはLDFLAGSを尊重しなかったでしょう。あるいは、libXv.soが別のアーキテクチャのためにcompilulされているかもしれません。または、それは全く異なるエラー(未解決のシンボルではない)である可能性があります。また、正確なエラーが "checking for X ... no"メッセージを引き起こしたかどうかを調べます。 –

答えて

0

問題。 config.logを調べたところ、一部のX11ライブラリが見つからず、すべてのX11関連のライブラリとヘッダファイルをX11コマンド(XV_LIBSとX_CFLAGSフラグ)にリンクする必要がありました。これでコンパイルは成功し、X11は正常に機能しました。

これはX11が設定された最後のコマンドです。

./configure --host = arm-none-linux-gnueabi --without-python --without-imagemagick --without-gtk --without-xshm --without-qt --disable-pthread CFLAGS = -L/home/user/YOCTO/exe/usr/lib/LIBS = -I/home/user/YOCTO/exe/usr/include LDFLAGS = -L /ホーム/ユーザー/ YOCTO/exe/usr/lib/XV_LIBS = -lXext -lX11 -lXau -lXdmcp -lxcb -lXv -luuid X_CFLAGS = -I/home/user/YOCTO/exe/usr/include/

関連する問題