x86_64-w64-mingw32-ld cannot find icu libraries in /usr/local/x86_64-w64-mingw32/lib

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
UntouchedWagons
Engineer
Engineer
Posts: 4
Joined: 27 Feb 2017 06:49

x86_64-w64-mingw32-ld cannot find icu libraries in /usr/local/x86_64-w64-mingw32/lib

Post by UntouchedWagons »

I am trying to cross-compile the JGR patch pack in a linux virtual machine since I can't get it to compile natively on windows. I've been following the cross-compile guide on the wiki, substituting i586-mingw32msvc with x86_64-w64-mingw32. So far everything's okay. I've got all the libraries compiled and installed in the mingw build environment but when I try to compile openttd, the linker cannot find the ICU libraries:

Code: Select all

~/OpenTTD-patches$ ./configure --host=x86_64-w64-mingw32 --prefix=/usr/local/x86_64-w64-mingw32 CFLAGS="-I/usr/local/x86_64-w64-mingw32/include --sysroot=/usr/x86_64-w64-mingw32" LDFLAGS="-L/usr/local/x86_64-w64-mingw32/lib" --without-sdl --with-lzo2=/usr/local/x86_64-w64-mingw32/lib/liblzo2.a --cpu-type=64
~/OpenTTD-patches& make -j2
{Compiling progress}
[SRC] Linking openttd.exe
/usr/bin/x86_64-w64-mingw32-ld: cannot find -licuin58
/usr/bin/x86_64-w64-mingw32-ld: cannot find -licuuc58
/usr/bin/x86_64-w64-mingw32-ld: cannot find -licudt58
collect2: error: ld returned 1 exit status
Makefile:271: recipe for target 'openttd.exe' failed
make[1]: *** [openttd.exe] Error 1
make[1]: Leaving directory '/home/jordan/OpenTTD-patches/objs/release'
Makefile:57: recipe for target 'all' failed
make: *** [all] Error 1
Now I know what the error means, the linker can't find the libraries, but I don't know why it can't find them:

Code: Select all

~/OpenTTD-patches$ ls /usr/local/x86_64-w64-mingw32/lib/
icu          icuio58.dll    icutu.dll          libfreetype.la  libicudt.dll.a  libicuio.dll      libicutest.dll    libicuuc58.dll  liblzma.la  libpng16.dll.a  libsicudt.a    libsicuuc.a
icudt58.dll  icuio.dll      icuuc58.dll        libharfbuzz.a   libicuin58.dll  libicuio.dll.a    libicutest.dll.a  libicuuc.dll    liblzo2.a   libpng16.la     libsicuin.a    libz.a
icudt.dll    icutest58.dll  icuuc.dll          libharfbuzz.la  libicuin.dll    libicu-le-hb.a    libicutu58.dll    libicuuc.dll.a  liblzo2.la  libpng.a        libsicuio.a    pkgconfig
icuin58.dll  icutest.dll    libfreetype.a      libicudt58.dll  libicuin.dll.a  libicu-le-hb.la   libicutu.dll      liblzma.a       libpng12.a  libpng.dll.a    libsicutest.a  sicudt.a
icuin.dll    icutu58.dll    libfreetype.dll.a  libicudt.dll    libicuio58.dll  libicutest58.dll  libicutu.dll.a    liblzma.dll.a   libpng16.a  libpng.la       libsicutu.a
I'm running Debian 8 64bit
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 20 guests