Ecere SDK/eC Forums
http://ec-lang.org/community/
Print view

If the build fails on Documentor... (-lintl...)
http://ec-lang.org/community/viewtopic.php?f=2&t=176
Page 1 of 1
Author:  jerome [ Sat Sep 03, 2011 9:29 pm ]
Post subject:  If the build fails on Documentor... (-lintl...)

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
All times are UTC-05:00 Page 1 of 1