MarisaG
December 20, 2024, 10:53pm
1
I’m trying to compile some linux console apps for haiku, but i need to know where some libraries are on haiku.
The first one is:
sst.h:8:10: fatal error: libintl.h: No such file or directory
8 | #include <libintl.h>
this is a internationalization library. Any tips what to do about it? I will edit this post when I’m on the next issue to keep all discussions here…
BlueSky
December 20, 2024, 11:14pm
2
You have to install the header files.
pkgman install gettext_libintl_devel
1 Like
MarisaG
December 20, 2024, 11:31pm
4
next one:
sst.h:9:10: fatal error: curses.h: No such file or directory
9 | #include <curses.h>
BlueSky
December 20, 2024, 11:37pm
5
Let’s see if you can figure out this one by yourself
Hint: pkgman search
2 Likes
MarisaG
December 21, 2024, 1:03am
7
Ok it compiled great, but fails at link time:
make[1]: Entering directory ‘/boot/home/MyApps/SuperStarTrek/src’
gcc -Wall -Wimplicit -Wunused -Wmissing-prototypes -Wundef -Wuninitialized -Wdeclaration-after-statement -fno-inline -O1 -DDATA_DIR="/usr/local/share/sst" -DLOCALEDIR="/usr/local/share/locale" -g -O2 -g -O2 -o sst ai.o battle.o events.o finish.o moving.o planets.o reports.o setup.o sst.o io.o sstlinux.o -lncursesw -lm
/boot/system/develop/tools/bin/…/lib/gcc/x86_64-unknown-haiku/13.3.0/…/…/…/…/x86_64-unknown-haiku/bin/ld: reports.o: in function attackreport': /boot/home/MyApps/SuperStarTrek/src/reports.c:22:(.text+0x370): undefined reference to
libintl_gettext’
Begasus
December 21, 2024, 6:23am
8
From -lncursesw -lm
it looks like it’s not linking against libintl, you should add -lintl in the Makefile or export to the library.
2 Likes
MarisaG
December 22, 2024, 2:58am
9
that was it! i knew i needed another -l entry but didn’t think to try that one LOL. Now onto the step of posting to the repo…