2013
02.13

http://roguecentral.org/doryen/libtcod/download

or directly

http://roguecentral.org/doryen/?file_id=47

Apparently, compiling for linux 32 on a linux 64 box is not that easy. If someone has some hint about how to do it, feel free to share !

3 comments so far

Add Your Comment
  1. Not sure how it is. But before it was just -m32 to the compiler and linker.

  2. Ok it works indeed. The problem is that I’ll have to copy 32bits versions of all the dependencies somewhere… I already did it for libSDL and libGL, but those 2 have huge dependencies…
    gcc /tmp/libtcod/debug/samples/samples_c.o -Iinclude -I. -Wall -m32 -o samples_c_debug -L. -Llib32 -lGL -lSDL -ltcod_debug -lm -Iinclude -I. -Wall -m32 -Wl,-rpath,.
    /usr/bin/ld.bfd.real: warning: libglapi.so.0, needed by lib32/libGL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libXext.so.6, needed by lib32/libGL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libXdamage.so.1, needed by lib32/libGL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libXfixes.so.3, needed by lib32/libGL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libX11-xcb.so.1, needed by lib32/libGL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libX11.so.6, needed by lib32/libGL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libxcb-glx.so.0, needed by lib32/libGL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libxcb.so.1, needed by lib32/libGL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libXxf86vm.so.1, needed by lib32/libGL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libdrm.so.2, needed by lib32/libGL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libasound.so.2, needed by lib32/libSDL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libpulse-simple.so.0, needed by lib32/libSDL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libpulse.so.0, needed by lib32/libSDL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld.bfd.real: warning: libcaca.so.0, needed by lib32/libSDL.so, not found (try using -rpath or -rpath-link)

  3. ok found the magic flag !

    -Wl,–unresolved-symbols=ignore-in-shared-libs