-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
4.1.0 can't find gettext headers on darwin #2031
Comments
Hi, This is happening because WeeChat is more strict when checking required dependencies if CMake option If you want translations to be enabled, you need to install the package that provides the header file If you turn off the CMake option with But I did a fix to have a clean error in case the header Note: whenever possible, please try the devel version before the release, I'm sad to see such build issue immediately after the release, but thanks to report it anyway! |
Hi, I'll release 4.1.1 soon that includes this fix. Thanks! |
Your "fix" is just raising the error earlier, right? I don't have a darwin machine either and I suspect this is a nix-specific issue anyway, so I'll just disable translations on darwin for now and ask others to look into it. |
Yes, that's the fix I did. |
The fix was apparently to add diff --git cmake/FindGettext.cmake cmake/FindGettext.cmake
index 2460e190b..2cf61a6fe 100644
--- cmake/FindGettext.cmake
+++ cmake/FindGettext.cmake
@@ -42,6 +42,7 @@ find_path(LIBINTL_INCLUDE
)
set(CMAKE_REQUIRED_INCLUDES ${LIBINTL_INCLUDE})
+set(CMAKE_REQUIRED_FLAGS "-lintl")
check_include_files(libintl.h HAVE_LIBINTL_H)
Adding this on linux (where |
OK, thanks for the info, I'll keep this issue open until I find a clean solution. |
4.1.0 fails to build on x86_64-darwin with the following log: https://gist.github.com/ncfavier/74654ee232fe4c5b20fabdc85b3e2012#file-4-1-0-fail-txt. Also included in that gist is the full build log for 4.0.5.
Notice in particular the following diff:
The text was updated successfully, but these errors were encountered: