OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

CMake can not find include files


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build]
View previous topic :: View next topic  
Author Message
peter_k
Newbie


Joined: 31 May 2018
Posts: 10

PostPosted: Sun Jun 03, 2018 10:51 am    Post subject:
CMake can not find include files
Reply with quote

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".
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12149

PostPosted: Sun Jun 03, 2018 11:04 am    Post subject:
CMake can not find include files
Reply with quote

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 <> wrote:
Quote:
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








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
peter_k
Newbie


Joined: 31 May 2018
Posts: 10

PostPosted: Sun Jun 03, 2018 12:30 pm    Post subject:
Re: CMake can not find include files
Reply with quote

robertosfield wrote:
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.

------------------
Post generated by Mail2Forum


Hi Robert,
i have changed the source path in Cmake to the "osg" subdirectory as you suggested, but now comes another error unknown cmake command
"SETUP_LIBRARY"

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 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".
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12149

PostPosted: Sun Jun 03, 2018 4:49 pm    Post subject:
CMake can not find include files
Reply with quote

HI Peter,

It's the OpenSceneGraph/CMakeLists.txt that it the one you should open
in CMakeSetup. All the CMakeLists.txt below this will rely upon all
the setting/includes that it sets up.

Robert.


On 3 June 2018 at 13:30, Peter Klose <> wrote:
Quote:

robertosfield wrote:
Quote:
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.

------------------
Post generated by Mail2Forum


Hi Robert,
i have changed the source path in Cmake to the "osg" subdirectory as you suggested, but now comes another error unknown cmake command
"SETUP_LIBRARY"

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 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".

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=73926#73926








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
sam
Guest





PostPosted: Sun Jun 03, 2018 5:54 pm    Post subject:
CMake can not find include files
Reply with quote

Hi Peter,


Not sure how you're attempting to compile OSG but I'd recommend you'd do the following:





From here I would hit Configure and then Generate. Open up the ALL_BUILD project and right-click OpenThreads and hit build. This will ensure all the dependencies are in place.







On Sun, Jun 3, 2018 at 9:49 AM Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
HI Peter,

It's the OpenSceneGraph/CMakeLists.txt that it the one you should open
in CMakeSetup.  All the CMakeLists.txt below this will rely upon all
the setting/includes that it sets up.

Robert.


On 3 June 2018 at 13:30, Peter Klose < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:

robertosfield wrote:
Quote:
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.

  ------------------
Post generated by Mail2Forum


Hi Robert,
i have changed the source path in Cmake to the "osg" subdirectory as you suggested, but now comes another error unknown cmake command
"SETUP_LIBRARY"

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 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".

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=73926#73926





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
peter_k
Newbie


Joined: 31 May 2018
Posts: 10

PostPosted: Sun Jun 03, 2018 10:28 pm    Post subject:
Re: CMake can not find include files
Reply with quote

robertosfield wrote:
HI Peter,

It's the OpenSceneGraph/CMakeLists.txt that it the one you should open
in CMakeSetup. All the CMakeLists.txt below this will rely upon all
the setting/includes that it sets up.

Robert.




Hi Robert,

this is exactly the one i am referreing to and it is the one that spits out the error because of its last line saying :

SETUP_LIBRARY(${LIB_NAME})

How can a Cmake command be the cause for an error like this?
unknown cmake command
Back to top
View user's profile Send private message
peter_k
Newbie


Joined: 31 May 2018
Posts: 10

PostPosted: Sun Jun 03, 2018 10:38 pm    Post subject:
Re: CMake can not find include files
Reply with quote

Hi Sam,
first point is i am far from compiling no matter what as long as cmake only spits errors like the one described.
i do not have any binaries so i don't see any way to set a path to it?
I am trying to build binaries and my hope was the delivered cmakelists.txt would be the key for this. As Robert pointed out the cmakelists.txt file in the src/osg directory should do the job but it spits the weird error that a cmake command is unknown to cmake. Weird.


sam wrote:
Hi Peter,


Not sure how you're attempting to compile OSG but I'd recommend you'd do the following:





From here I would hit Configure and then Generate. Open up the ALL_BUILD project and right-click OpenThreads and hit build. This will ensure all the dependencies are in place.







On Sun, Jun 3, 2018 at 9:49 AM Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
HI Peter,

It's the OpenSceneGraph/CMakeLists.txt that it the one you should open
in CMakeSetup.  All the CMakeLists.txt below this will rely upon all
the setting/includes that it sets up.

Robert.




------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
peter_k
Newbie


Joined: 31 May 2018
Posts: 10

PostPosted: Sun Jun 03, 2018 11:08 pm    Post subject:
Reply with quote

Hi,
it seems my fault was to look into the "src" directory for the sources.
With the cmakelists.txt file in the base directory openscenegraph cmake worked succesfully.
Now it is only to find out how to find the project file for VC++ which might load the project into the IDE?
Back to top
View user's profile Send private message
sam
Guest





PostPosted: Sun Jun 03, 2018 11:53 pm    Post subject:
CMake can not find include files
Reply with quote

If you're generating the cmake file through the cmake application then it should be generated in your build folder. If you are using cmake on the command line then you will need to pass cmake -G "Visual Studio XX" to the command line, where XX is your Visual Studio version.


On Sun, Jun 3, 2018 at 4:19 PM Peter Klose < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hi,
it seems my fault was to look into the "src" directory for the sources.
With the cmakelists.txt file in the base directory openscenegraph cmake worked succesfully.
Now it is only to find out how to find the project file for VC++ which might load the project into the IDE?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=73934#73934





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts OSG static v 3.6.3 CMake 3.12.4 + Vis... Serathin Build system [build] 0 Sun Nov 25, 2018 8:52 pm View latest post
No new posts What's the status of .osg files? hunter789 General 2 Fri Nov 02, 2018 1:26 am View latest post
No new posts Unable to run example (QTCreator, CMa... Nirodha General [forum] 1 Wed Oct 31, 2018 11:04 pm View latest post
No new posts Could not find plugin to load objects sdef General [3rdparty] 1 Sat Oct 27, 2018 6:10 am View latest post
No new posts Enable Qt5Widgets_DIR into cmake (GUI) Andrea74 General 2 Wed Sep 05, 2018 7:40 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP