En/Je/On 2013-02-11 07:19, Lawrence Woodman escribi� / skribis / wrote :
> >ln -s /usr/lib/arm-linux-gnueabihf/libSDLmain.a /usr/lib
> >ln -s /usr/lib/arm-linux-gnueabihf/libSDL.so /usr/lib
> >
> >Maybe there's a cleaner solution, but this one works.
> I'm not sure why this directory isn't in the library path, but you
> could add it by adding the following to /etc/ld.so.conf or create a
> file called /etc/ld.so.conf.d/gnueabihf.conf with the following
> content.
Thank you for the info. I didn't know how this works. Everything you say
seems properly configured by default, see:
My </etc/ld.so.conf> file:
include /etc/ld.so.conf.d/*.conf
My </etc/ld.so.conf.d/> dir:
00-vmcs.conf
arm-linux-gnueabihf.conf
libc.conf
My </etc/ld.so.conf/arm-linux-gnueabihf.conf> file:
# Multiarch support
/lib/arm-linux-gnueabihf
/usr/lib/arm-linux-gnueabihf
> Then, as root, run:
> # ldconfig
> Your would need to remove the symbolic links to test whether this
> has worked.
It doesn't work without my symbolic links. 'make' fails with the message
"no rule to build the objective '/usr/lib/libSDLmain.a', needed by
'src/canace'".
I thougth the cause could be '/usr/lib/libSDLmain.a' is hardcoded in the
source. I tried this:
grep SDLmain src/*
The result was:
src/CMakeCache.txt:SDLMAIN_LIBRARY:FILEPATH=/usr/lib/arm-linux-gnueabihf/libSDLmain.a
src/CMakeCache.txt:SDL_LIBRARY:STRING=/usr/lib/arm-linux-gnueabihf/libSDLmain.a;/usr/lib/arm-linux-gnueabihf/libSDL.so;-lpthread
src/CMakeCache.txt:FIND_PACKAGE_MESSAGE_DETAILS_SDL:INTERNAL=[/usr/lib/arm-linux-gnueabihf/libSDLmain.a;/usr/lib/arm-linux-gnueabihf/libSDL.so;-lpthread][/usr/include/SDL][v()]
src/CMakeCache.txt:SDL_LIBRARY_TEMP:INTERNAL=/usr/lib/arm-linux-gnueabihf/libSDLmain.a;/usr/lib/arm-linux-gnueabihf/libSDL.so;-lpthread
I didn't investigate any further yet. Meanwhile I'll use the symbolic links.
Marcos