Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error - libtu/locale.h:20:10: fatal error: 'libintl.h' file not found #335

Open
mpc-ucl opened this issue Apr 15, 2021 · 7 comments

Comments

@mpc-ucl
Copy link

mpc-ucl commented Apr 15, 2021

Hi. I'm trying to compile notion and am running into the following problem:

Qd:~/bin/notion% make

pkg-config found Lua 5.3 (available: lua).
Lua 5.3 binary is /opt/local/bin/lua and luac is /opt/local/bin/luac
set -e; for i in libmainloop libtu libextl mod_tiling mod_query mod_menu mod_dock mod_sp mod_sm de mod_mgmtmode mod_statusbar mod_xkbevents mod_notionflux ioncore notion etc utils man po contrib/scripts; do /Applications/Xcode.app/Contents/Developer/usr/bin/make -C $i; done
cc -g -Os -W -Wall -pedantic -DCF_XFREE86_TEXTPROP_BUG_WORKAROUND -DHAVE_X11_XFT -DHAVE_X11_BMF -I.. -I.. -I.. -DHAS_SYSTEM_ASPRINTF=1 -DNOTION_RELEASE='"-n 4.0.2-20-ge98a4dff -n +20210415-2243"' -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -std=c99 -DCF_HAS_VA_COPY -MMD -c select.c -o select.o
cc -g -Os -W -Wall -pedantic -DCF_XFREE86_TEXTPROP_BUG_WORKAROUND -DHAVE_X11_XFT -DHAVE_X11_BMF -I.. -I.. -I.. -DHAS_SYSTEM_ASPRINTF=1 -DNOTION_RELEASE='"-n 4.0.2-20-ge98a4dff -n +20210415-2243"' -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -std=c99 -DCF_HAS_VA_COPY -MMD -c defer.c -o defer.o
In file included from defer.c:20:
../libtu/locale.h:20:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
^~~~~~~~~~~
1 error generated.
make[1]: *** [defer.o] Error 1
make: *** [subdirs] Error 2

@raboof
Copy link
Owner

raboof commented Apr 15, 2021

Interesting - libtinl.h seems part of libc which should be pretty common. What distribution are you on?

@wilhelmy
Copy link
Collaborator

since it says Xcode.app in there I'm guessing OS X

@raboof
Copy link
Owner

raboof commented Apr 15, 2021

Ah, I don't have any experience with X11 on OSX - contributions in this area are definitely welcome but be aware you might be in uncharted waters :)

@raboof
Copy link
Owner

raboof commented Apr 16, 2021

Did you see #230?

@mpc-ucl
Copy link
Author

mpc-ucl commented Apr 16, 2021

Yes, thank you, I see. I admit I've successfully run the same compiled version of ion since around 2006 or so, but am now having to recompile due to osx upgrade to 64 bit only. I have not managed to recompile since then, so this might indeed be an issue that has been around for a while.

@wilhelmy
Copy link
Collaborator

wilhelmy commented Apr 1, 2022

libintl.h seems to be part of gettext... can you find that file anywhere in your system includes? Does pkg-config --cflags gettext print anything for you? It's probably just installed differently on OS X...

@wilhelmy
Copy link
Collaborator

wilhelmy commented May 5, 2022

EOSIO/eos#2028 mentions they installed gettext via brew.
I guess we should mention gettext as a dependency on OSX in our docs, in case it builds okay otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants