[osg-users] [build] CMake can not find include files

Robert Osfield robert.osfield at gmail.com
Sun Jun 3 04:04:29 PDT 2018


Hi Peter,

You shouldn't need to compile OpenThreads independently, just point
CMakeSetup at OpenSceneGraph/CMakeLists.txt and OpenThreads will be
built alongside the rest of the OSG.

Robert.

On 3 June 2018 at 11:51, Peter Klose <peter_klose at gmx.de> wrote:
> Hi,
>
> i am trying to build OSG with MS Visual Studio 2013 on Windows7.
> I have downloaded the latest release from git, same with CMake, but it seems that there are some files missing?
> Any helb would be appreciated.
>
> Thank you!
>
> Cheers,
> Peter
>
> the cmake-messages:
> ------------------------------
> The C compiler identification is MSVC 18.0.21005.1
> The CXX compiler identification is MSVC 18.0.21005.1
> Check for working C compiler: C:/Program Files/Microsoft Visual Studio 12.0/VC/bin/cl.exe
> Check for working C compiler: C:/Program Files/Microsoft Visual Studio 12.0/VC/bin/cl.exe -- works
> Detecting C compiler ABI info
> Detecting C compiler ABI info - done
> Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 12.0/VC/bin/cl.exe
> Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 12.0/VC/bin/cl.exe -- works
> Detecting CXX compiler ABI info
> Detecting CXX compiler ABI info - done
> Detecting CXX compile features
> Detecting CXX compile features - done
> CMake Error at OpenThreads/CMakeLists.txt:13 (INCLUDE):
>   INCLUDE could not find load file:
>
>     CheckAtomicOps
>
>
> CMake Error: File C:/0_Arbeiten/OpenSceneGraph/src/PlatformSpecifics/Windows/OpenThreadsVersionInfo.rc.in does not exist.
> CMake Error at OpenThreads/CMakeLists.txt:42 (CONFIGURE_FILE):
>   CONFIGURE_FILE Problem configuring file
>
>
> Looking for pthread.h
> Looking for pthread.h - not found
> Found Threads: TRUE
> CMake Error: File C:/0_Arbeiten/OpenSceneGraph/src/packaging/pkgconfig/openthreads.pc.in does not exist.
> CMake Error at OpenThreads/CMakeLists.txt:111 (CONFIGURE_FILE):
>   CONFIGURE_FILE Problem configuring file
>
>
> CMake Error at osg/CMakeLists.txt:460 (SETUP_LIBRARY):
>   Unknown CMake command "SETUP_LIBRARY".
>
>
> CMake Warning (dev) in CMakeLists.txt:
>   No cmake_minimum_required command is present.  A line of code such as
>
>     cmake_minimum_required(VERSION 3.11)
>
>   should be added at the top of the file.  The version specified may be lower
>   if you wish to support older CMake versions for this project.  For more
>   information run "cmake --help-policy CMP0000".
> This warning is for project developers.  Use -Wno-dev to suppress it.
>
> Configuring incomplete, errors occurred!
> See also "C:/0_Arbeiten/OpenSceneGraph/BuildMSV2013/CMakeFiles/CMakeOutput.log".
> See also "C:/0_Arbeiten/OpenSceneGraph/BuildMSV2013/CMakeFiles/CMakeError.log".
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73923#73923
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list