March 3, 2014

libltdl in wrong place when cross compiling

When you cross compile a software, and your cross compiler is using /usr/lib/ instead your cross compiler's libltdl, this is how to solve it:

export LIBTOOL_SYSROOT_PATH=/opt/ezsdk/linux-devkit/arm-none-linux-gnueabi/

Fix the path above to your cross compiler's libldtl directory.

The file ( a text file) in my build server uses the environment variable LIBTOOL_SYSROOT_PATH to find the file. So make sure that environment variable is defined, not only in configure time, but also before you run  Make.

No comments:

Post a Comment