Hi, All
I downloaded gst-template-master git from github and want to write my own plugin for Video process. On X86 Ubutun device i can build correct and get .so under folder src/.lib. I build with below cmd (set pkg config path before) ./autogen make But on arm cross compile condition it only generated .a file, no .so, I build with cmd ./autoge ./configure --host=aarch64 make I got below log, can anyone help me to check what to do. Thanks! shawn@shawn-System-Product-Name:~/gst-template-master/gst-plugin$ ./autogen.sh autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: running: /home/shawn/sdk82/sysroots/x86_64-petalinux-linux/usr/bin/autoconf --force autoreconf: running: /home/shawn/sdk82/sysroots/x86_64-petalinux-linux/usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:21: installing './compile' configure.ac:25: installing './config.guess' configure.ac:25: installing './config.sub' configure.ac:15: installing './install-sh' configure.ac:15: installing './missing' Makefile.am: installing './INSTALL' src/Makefile.am: installing './depcomp' autoreconf: running: gnu-configize autoreconf: no config.status: cannot re-make autoreconf: Leaving directory `.' configure: loading site script /home/shawn/sdk82/site-config-aarch64-xilinx-linux 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 whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... yes checking for gcc... aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/home/shawn/gst-template-master/gst-plugin': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details configure failed shawn@shawn-System-Product-Name:~/gst-template-master/gst-plugin$ ./configure --host=aarch64 configure: loading site script /home/shawn/sdk82/site-config-aarch64-xilinx-linux checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for aarch64-strip... aarch64-xilinx-linux-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... yes checking for aarch64-gcc... aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux accepts -g... yes checking for aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux option to accept ISO C89... none needed checking whether aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux... gcc3 checking build system type... x86_64-pc-linux-gnu checking host system type... aarch64-unknown-none checking how to print strings... printf checking for a sed that does not truncate output... (cached) 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 aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux... aarch64-xilinx-linux-ld --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux checking if the linker (aarch64-xilinx-linux-ld --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... aarch64-xilinx-linux-nm checking the name lister (aarch64-xilinx-linux-nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to aarch64-unknown-none format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for aarch64-xilinx-linux-ld --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux option to reload object files... -r checking for aarch64-objdump... aarch64-xilinx-linux-objdump checking how to recognize dependent libraries... unknown checking for aarch64-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for aarch64-ar... aarch64-xilinx-linux-ar checking for archiver @FILE support... @ checking for aarch64-strip... (cached) aarch64-xilinx-linux-strip checking for aarch64-ranlib... aarch64-xilinx-linux-ranlib checking command to parse aarch64-xilinx-linux-nm output from aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux object... ok checking for sysroot... /home/shawn/sdk82/sysroots/aarch64-xilinx-linux checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for aarch64-mt... no checking for mt... mt configure: WARNING: using cross tools not prefixed with host triplet checking if mt is a manifest tool... no checking how to run the C preprocessor... aarch64-xilinx-linux-gcc -E --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux 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... myes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux supports -fno-rtti -fno-exceptions... no checking for aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux option to produce PIC... -fPIC -DPIC checking if aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux PIC flag -fPIC -DPIC works... yes checking if aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux static flag -static works... no checking if aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux supports -c -o file.o... yes checking if aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux supports -c -o file.o... (cached) yes checking whether the aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux linker (aarch64-xilinx-linux-ld --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes checking for pkg-config... checking for aarch64-pkg-config... no checking for pkg-config... /home/shawn/sdk82/sysroots/x86_64-petalinux-linux/usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for gstreamer-1.0 >= 1.0.0 gstreamer-base-1.0 >= 1.0.0 gstreamer-controller-1.0 >= 1.0.0 ... yes checking to see if compiler understands -Wall... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands shawn@shawn-System-Product-Name:~/gst-template-master/gst-plugin$ make make all-recursive make[1]: Entering directory '/home/shawn/gst-template-master/gst-plugin' Making all in src make[2]: Entering directory '/home/shawn/gst-template-master/gst-plugin/src' ../aarch64-libtool --tag=CC --tag=disable-static --mode=compile aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux -DHAVE_CONFIG_H -I. -I.. -pthread -I/home/shawn/sdk82/sysroots/aarch64-xilinx-linux/usr/include/gstreamer-1.0 -I/home/shawn/sdk82/sysroots/aarch64-xilinx-linux/usr/include/glib-2.0 -I/home/shawn/sdk82/sysroots/aarch64-xilinx-linux/usr/lib/glib-2.0/include -Wall -O2 -pipe -g -feliminate-unused-debug-types -Wall -MT libgstmyfilter_la-gstmyfilter.lo -MD -MP -MF .deps/libgstmyfilter_la-gstmyfilter.Tpo -c -o libgstmyfilter_la-gstmyfilter.lo `test -f 'gstmyfilter.c' || echo './'`gstmyfilter.c aarch64-libtool: compile: aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux -DHAVE_CONFIG_H -I. -I.. -pthread -I/home/shawn/sdk82/sysroots/aarch64-xilinx-linux/usr/include/gstreamer-1.0 -I/home/shawn/sdk82/sysroots/aarch64-xilinx-linux/usr/include/glib-2.0 -I/home/shawn/sdk82/sysroots/aarch64-xilinx-linux/usr/lib/glib-2.0/include -Wall -O2 -pipe -g -feliminate-unused-debug-types -Wall -MT libgstmyfilter_la-gstmyfilter.lo -MD -MP -MF .deps/libgstmyfilter_la-gstmyfilter.Tpo -c gstmyfilter.c -o libgstmyfilter_la-gstmyfilter.o gstmyfilter.c: In function ‘gst_my_filter_sink_event’: gstmyfilter.c:203:16: warning: variable ‘filter’ set but not used [-Wunused-but-set-variable] GstMyFilter *filter; ^~~~~~ mv -f .deps/libgstmyfilter_la-gstmyfilter.Tpo .deps/libgstmyfilter_la-gstmyfilter.Plo ../aarch64-libtool --tag=CC --tag=disable-static --mode=link aarch64-xilinx-linux-gcc --sysroot=/home/shawn/sdk82/sysroots/aarch64-xilinx-linux -pthread -I/home/shawn/sdk82/sysroots/aarch64-xilinx-linux/usr/include/gstreamer-1.0 -I/home/shawn/sdk82/sysroots/aarch64-xilinx-linux/usr/include/glib-2.0 -I/home/shawn/sdk82/sysroots/aarch64-xilinx-linux/usr/lib/glib-2.0/include -Wall -O2 -pipe -g -feliminate-unused-debug-types -Wall -module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).* -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o libgstmyfilter.la -rpath /usr/local/lib/gstreamer-1.0 libgstmyfilter_la-gstmyfilter.lo -lgstbase-1.0 -lgstcontroller-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 aarch64-libtool: link: aarch64-xilinx-linux-ar cru .libs/libgstmyfilter.a libgstmyfilter_la-gstmyfilter.o aarch64-xilinx-linux-ar: `u' modifier ignored since `D' is the default (see `U') aarch64-libtool: link: aarch64-xilinx-linux-ranlib .libs/libgstmyfilter.a aarch64-libtool: link: ( cd ".libs" && rm -f "libgstmyfilter.la" && ln -s "../libgstmyfilter.la" "libgstmyfilter.la" ) make[2]: Leaving directory '/home/shawn/gst-template-master/gst-plugin/src' make[2]: Entering directory '/home/shawn/gst-template-master/gst-plugin' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/home/shawn/gst-template-master/gst-plugin' make[1]: Leaving directory '/home/shawn/gst-template-master/gst-plugin' -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |