If the build fails on Documentor... (-lintl...)

General help: new users, installing the Ecere SDK, using the IDE to compile and run applications.
Post Reply
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

If the build fails on Documentor... (-lintl...)

Post by jerome »

We've recently started using GNU gettext for internationalization support, and that introduced a dependency on libintl. This should be temporary as we plan to implement our own implementation that will be built into the Ecere runtime library. In the meantime though, you might hit yourself on a failed build, both on Windows or Linux.

On Windows, here are the additional MinGW requirements that you can simply extract within your Ecere SDK/mingw folder:
gettext-0.17-1-mingw32-dev.tar.lzma (The development files )

as well as the libintl runtime libraries:

libiconv-1.13.1-1-mingw32-dll-2.tar.lzma
libintl-0.17-1-mingw32-dll-8.tar.lzma

On Linux, first make sure you have the gettext package installed, including the dev package (if it's separate for you in your distribution). On Ubuntu this works:

Code: Select all

sudo apt-get install gettext
But if you are on a 64 bit system (and you're building Ecere in 32 bit) you might hit yourself to another wall:

Code: Select all

Building Documentor...
/usr/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status
make[1]: *** [obj/release.linux/documentor] Error 1
make: *** [documentor] Error 2
For which Redj kindly suggested a fix which should get you passed that:

Code: Select all

sudo ln -s /usr/lib32/preloadable_libintl.so /usr/lib32/libintl.so
EDIT: Fixed broken links to MinGW files for Windows. -redj
Post Reply