Sorry but I don't compile kernel modules too often

Might be arris could compile this code

--libdir=wannaseek wrote:Now I have a successfully built toolchain on Wubi (ubuntu 9.10).
I have also downloaded the sources of popt-1.15 (libpopt). Now I try to compile fuselagefs.
The current issue is that I do not know how to tell to the configure script of fuselagefs where the libpopt sources are located. I can specify the location of FUSE by setting the pkg_config_path but that does not work for libpopt sources...
Could somebody send me an example how the location of libraries should be told to the "./configure" script normally?
you try to link against your hosts libc, -L/lib should never appear in your linking path.wannaseek wrote:Thanks for the help. I recognized that I was using the openembedded directory structure in a completely wrong way.
Now I put all sources into the build/tmp/work directory. And call the ./configure with --prefix= and execute make with DESTDIR=build/tmp/staging/arm-linux-gnueabi.
This way I was able to build fuse, popt and configure fusalage. But now when I try to make fuselage, I get:What can cause this?Code: Select all
arm-linux-gnueabi-g++ -shared -nostdlib /home/samygo-svn/build/tmp/cross/lib/gcc/arm-linux-gnueabi/4.2.0/../../../../arm-linux-gnueabi/lib/crti.o /home/samygo-svn/build/tmp/cross/lib/gcc/arm-linux-gnueabi/4.2.0/crtbeginS.o .libs/fuselagefs.o -Wl,--rpath -Wl,/home/samygo-svn/build/tmp/cross/arm-linux-gnueabi/lib -Wl,--rpath -Wl,/home/samygo-svn/build/tmp/cross/arm-linux-gnueabi/lib -L/lib /home/samygo-svn/build/tmp/cross/arm-linux-gnueabi/lib/libfuse.so -lrt -ldl /home/samygo-svn/build/tmp/cross/arm-linux-gnueabi/lib/libpopt.so -L/home/samygo-svn/build/tmp/cross/lib/gcc/arm-linux-gnueabi/4.2.0 -L/home/samygo-svn/build/tmp/cross/lib/gcc/arm-linux-gnueabi/4.2.0/../../../../arm-linux-gnueabi/lib /home/samygo-svn/build/tmp/cross/arm-linux-gnueabi/lib/libstdc++.so -L/home/samygo-svn/build/tmp/work/gcc-cross-4.2.0-4.0.9-r1/gcc-4.2.0-4.0.9/build.x86_64-linux.arm-linux-gnueabi/arm-linux-gnueabi/libstdc++-v3/src -L/home/samygo-svn/build/tmp/work/gcc-cross-4.2.0-4.0.9-r1/gcc-4.2.0-4.0.9/build.x86_64-linux.arm-linux-gnueabi/arm-linux-gnueabi/libstdc++-v3/src/.libs -L/home/samygo-svn/build/tmp/work/gcc-cross-4.2.0-4.0.9-r1/gcc-4.2.0-4.0.9/build.x86_64-linux.arm-linux-gnueabi/./gcc -L/home/samygo-svn/build/tmp/cross/arm-linux-gnueabi/bin -L/home/samygo-svn/build/tmp/cross/arm-linux-gnueabi/lib -lm -lc -lgcc_s /home/samygo-svn/build/tmp/cross/lib/gcc/arm-linux-gnueabi/4.2.0/crtendS.o /home/samygo-svn/build/tmp/cross/lib/gcc/arm-linux-gnueabi/4.2.0/../../../../arm-linux-gnueabi/lib/crtn.o -pthread -Wl,-soname -Wl,libfuselagefs.so.0 -o .libs/libfuselagefs.so.0.0.0 /lib/libc.so.6: file not recognized: File format not recognized collect2: ld returned 1 exit status make[2]: *** [libfuselagefs.la] Error 1
Code: Select all
do_compile(){
${CXX} ${CXXFLAGS} ${LDFLAGS} -o your_prog your_progsource.cpp
}