URL:
<http://gna.org/bugs/?17497>
Summary: libintl.h not found automagically (cmake and
crosscompiler toolchain)
Project: Battle for Wesnoth
Submitted by: ivanovic
Submitted on: Sa 15 Jan 2011 14:45:31 CET
Category: Bug
Severity: 2 - Minor
Priority: 3 - Low
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: mordante
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.9.4
Operating System: Linux
_______________________________________________________
Details:
Topic says everything. libintl does exist in my toolchain, but is not
automatically found (setting the var where it should look does help though!).
Here is the complete cmake call and output (when it fails):
$ CFLAGS="-O3 -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp
-msoft-float -ffast-math -fsingle-precision-constant" CXXFLAGS="-O3
-march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -msoft-float
-ffast-math -fsingle-precision-constant" cmake -DCMAKE_BUILD_TYPE=release
-DENABLE_STRICT_COMPILATION=off
-DCMAKE_TOOLCHAIN_FILE=../PandoraToolchain.cmake
-DPKG_CONFIG_EXECUTABLE=/home/nils/pandora-dev/arm-2009q3/bin/arm-none-linux-gnueabi-pkg-config
-DSDL_CONFIG=/home/nils/pandora-dev/arm-2009q3/usr/bin/sdl-config
-DPREFERENCES_DIR=wesnoth-1.9_userdata ../wesnoth-1.9.4
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler:
/home/nils/pandora-dev/arm-2009q3/bin/arm-none-linux-gnueabi-gcc
-- Check for working C compiler:
/home/nils/pandora-dev/arm-2009q3/bin/arm-none-linux-gnueabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler:
/home/nils/pandora-dev/arm-2009q3/bin/arm-none-linux-gnueabi-g++
-- Check for working CXX compiler:
/home/nils/pandora-dev/arm-2009q3/bin/arm-none-linux-gnueabi-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.41.0
-- Found the following Boost libraries:
-- iostreams
-- regex
CMake Error at
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find Libintl (missing: LIBINTL_INCLUDE_DIR LIBINTL_LIB_FOUND)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:252
(_FPHSA_FAILURE_MESSAGE)
cmake/FindLibintl.cmake:44 (find_package_handle_standard_args)
CMakeLists.txt:28 (find_package)
-- Configuring incomplete, errors occurred!
Adding this entry fixes compilation in the crosscompiler:
-DLIBINTL_INCLUDE_DIR=/home/nils/pandora-dev/arm-2009q3/arm-none-linux-gnueabi/libc/usr/include/
The content of my "PandoraToolchain.cmake" file:
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
# specify the cross compiler
SET(CMAKE_C_COMPILER
/home/nils/pandora-dev/arm-2009q3/bin/arm-none-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER
/home/nils/pandora-dev/arm-2009q3/bin/arm-none-linux-gnueabi-g++)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /home/nils/pandora-dev/arm-2009q3/)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?17497>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs