[CMake] CheckIncludeFiles doesn't find header files
Roman Wüger
norulez at me.com
Sat Feb 21 14:18:01 EST 2015
Hi,
I think I found additional strange behaviors.
Here are some informations from my systems, the strange behavior is on both
systems:
System A:
Mac OS 10.10.1
CMake 3.0.2
Qt 4.8.4
Bullseye Coverage 8.9.41
System B:
Mac OS 10.6.8
CMake 3.0.2
Qt 4.8.4
Bullseye Coverage 8.9.41
First i thought that the problem is bullseye, but after I removed it, the
behavior was the same.
Sometimes the build went ok, but mostly not. The strange thing ist hat when
i run it a second time for example than Qt also wouldnt be found or half
not found, see below.
Here is the output from System A when all is went ok:
-- The C compiler identification is AppleClang 6.0.0.6000056
-- The CXX compiler identification is AppleClang 6.0.0.6000056
-- Check for working C compiler: /opt/bullseye/bin/cc
-- Check for working C compiler: /opt/bullseye/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/bullseye/bin/c++
-- Check for working CXX compiler: /opt/bullseye/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Mediamid logging mechanism: log4cplus
-- AppKit framework found
("/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework"
)
-- Carbon framework found
("/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Carbon.framework"
)
-- Cocoa framework found
("/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Cocoa.framework")
-- Looking for Q_WS_X11
sh: ps: command not found
sh: ps: command not found
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
sh: ps: command not found
sh: ps: command not found
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
sh: ps: command not found
sh: ps: command not found
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
sh: ps: command not found
sh: ps: command not found
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
sh: ps: command not found
sh: ps: command not found
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4:
/Users/nbuild/workspace/MyProject/source/externals/qt-mac/bin/qmake (found
version "4.8.4")
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- chrono
-- date_time
-- filesystem
-- regex
-- locale
-- system
-- thread
-- unit_test_framework
-- Found Boost: /Users/nbuild/workspace/MyProject/source/externals/boost
-- Include directory:
/Users/nbuild/workspace/MyProject/source/externals/boost/include
-- Library directory:
/Users/nbuild/workspace/MyProject/source/externals/boost/lib_macosx_cs6
-- Found OpenSSL:
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libssl.dylib;/Developer/SDKs/MacOSX10
.5.sdk/usr/lib/libcrypto.dylib (found version "0.9.8z")
-- Found LibXml2: /Developer/SDKs/MacOSX10.5.sdk/usr/lib/libxml2.dylib
(found version "2.6.16")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found Git: /usr/bin/git (found version "1.9.3 (Apple Git-50)")
Current revision is 2.1.1.3
-- InDesignModelAndUI framework found
("/Users/nbuild/workspace/MyProject/source/externals/sdk/InDesign/mac/cs6/bu
ild/mac/release/packagefolder/contents/macos/InDesignModelAndUI.framework")
-- Generating build for Log4cplus version 1.2.0
-- Looking for include file pthread.h
sh: ps: command not found
sh: ps: command not found
-- Looking for include file pthread.h - found
-- Looking for pthread_create
sh: ps: command not found
sh: ps: command not found
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Threads:
-- Looking for include file dlfcn.h
sh: ps: command not found
sh: ps: command not found
-- Looking for include file dlfcn.h - found
-- Looking for include file errno.h
sh: ps: command not found
sh: ps: command not found
-- Looking for include file errno.h found
.
.
.
And here is the output when the failure occur:
-- The C compiler identification is AppleClang 6.0.0.6000056
-- The CXX compiler identification is AppleClang 6.0.0.6000056
-- Check for working C compiler: /opt/bullseye/bin/cc
-- Check for working C compiler: /opt/bullseye/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/bullseye/bin/c++
-- Check for working CXX compiler: /opt/bullseye/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Mediamid logging mechanism: log4cplus
-- AppKit framework found
("/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework"
)
-- Carbon framework found
("/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Carbon.framework"
)
-- Cocoa framework found
("/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Cocoa.framework")
-- Looking for Q_WS_X11
sh: ps: command not found
sh: ps: command not found
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
sh: ps: command not found
sh: ps: command not found
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
sh: ps: command not found
sh: ps: command not found
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
sh: ps: command not found
sh: ps: command not found
-- Looking for Q_WS_MAC - not found
-- Found Qt4:
/Users/nbuild/workspace/MyProject/source/externals/qt-mac/bin/qmake (found
version "4.8.4")
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- chrono
-- date_time
-- filesystem
-- regex
-- locale
-- system
-- thread
-- unit_test_framework
-- Found Boost: /Users/nbuild/workspace/MyProject/source/externals/boost
-- Include directory:
/Users/nbuild/workspace/MyProject/source/externals/boost/include
-- Library directory:
/Users/nbuild/workspace/MyProject/source/externals/boost/lib_macosx_cs6
-- Found OpenSSL:
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libssl.dylib;/Developer/SDKs/MacOSX10
.5.sdk/usr/lib/libcrypto.dylib (found version "0.9.8z")
-- Found LibXml2: /Developer/SDKs/MacOSX10.5.sdk/usr/lib/libxml2.dylib
(found version "2.6.16")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found Git: /usr/bin/git (found version "1.9.3 (Apple Git-50)")
-- InDesignModelAndUI framework found
("/Users/nbuild/workspace/MyProject/source/externals/sdk/InDesign/mac/cs6/bu
ild/mac/release/packagefolder/contents/macos/InDesignModelAndUI.framework")
-- Generating build for Log4cplus version 1.2.0
-- Looking for include file pthread.h
sh: ps: command not found
sh: ps: command not found
-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND)
-- Threads:
-- Looking for include file dlfcn.h
sh: ps: command not found
sh: ps: command not found
-- Looking for include file dlfcn.h - not found
-- Looking for include file errno.h
sh: ps: command not found
sh: ps: command not found
-- Looking for include file errno.h - not found
.
.
.
Could someone please help me to find the misbehavior/bug/ whatever?
Thanks in advance
-----Ursprüngliche Nachricht-----
Von: CMake [mailto:cmake-bounces at cmake.org] Im Auftrag von NoRulez
Gesendet: Donnerstag, 19. Februar 2015 21:32
An: CMake MailingList
Betreff: [CMake] CheckIncludeFiles doesn't find header files
Hello,
I hope someone could help me please.
I've the following situation that when I run CMake from the command line,
all is working as expected and CheckIncludeFiles find the header files.
However, when I run the configure and build steps from within a CTestScript
the CheckIncludeFiles doesn't find anything.
It doesn't matter if I set specified CMake variables of not.
The strange thing is that when I use the 10.7 sdk than it works in both
situations.
When I use the 10.5 sdk than it works only if I use CMake on the command
line directly.
I use CMake 3.0.2 on Mac OS 10.10.1
Did someone have some tips or tricks to get it working.
Much thanks in advance
Best Regards
--
Powered by <http://www.kitware.com> www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
<http://www.cmake.org/Wiki/CMake_FAQ> http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: <http://cmake.org/cmake/help/support.html>
http://cmake.org/cmake/help/support.html
CMake Consulting: <http://cmake.org/cmake/help/consulting.html>
http://cmake.org/cmake/help/consulting.html
CMake Training Courses: <http://cmake.org/cmake/help/training.html>
http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
<http://www.kitware.com/opensource/opensource.html>
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
<http://public.kitware.com/mailman/listinfo/cmake>
http://public.kitware.com/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150221/15465fe8/attachment-0001.html>
More information about the CMake
mailing list