[osg-users] CMake issue with OpenTheads?

99 views
Skip to first unread message

Philip Taylor

unread,
Mar 26, 2011, 6:03:28 AM3/26/11
to osg-...@lists.openscenegraph.org

I just tried to regenerate my OSG build system and have come unstuck with an OpenThreads CMake issue, with the directive

 

IF(NOT ANDROID)

    INCLUDE(CheckAtomicOps)

ENDIF()

 

Running CMake 2.8.4 on WinXP with VS2008

Where is the source code: C:/Projects/OSG/OpenSceneGraph/trunk/src

Where to build the binaries: C:/Projects/OSG_build/trunk/bin

 

Is it me???

 

I am following the  http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio guidance.

 

 

PhilT

 

 

Check for working C compiler using: Visual Studio 9 2008

Check for working C compiler using: Visual Studio 9 2008 -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

Check for working CXX compiler using: Visual Studio 9 2008

Check for working CXX compiler using: Visual Studio 9 2008 -- works

Detecting CXX compiler ABI info

Detecting CXX compiler ABI info - done

CMake Error at OpenThreads/CMakeLists.txt:13 (INCLUDE):

include could not find load file:

CheckAtomicOps

CMake Error: File C:/Projects/OSG/OpenSceneGraph/trunk/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 include files CMAKE_HAVE_PTHREAD_H

Looking for include files CMAKE_HAVE_PTHREAD_H - not found.

Found Threads: TRUE

CMake Error: File C:/Projects/OSG/OpenSceneGraph/trunk/src/packaging/pkgconfig/openthreads.pc.in does not exist.

CMake Error at OpenThreads/CMakeLists.txt:119 (CONFIGURE_FILE):

configure_file Problem configuring file

CMake Error at osg/CMakeLists.txt:393 (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 2.8)

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!

Rafa Gaitan

unread,
Mar 27, 2011, 12:37:34 PM3/27/11
to OpenSceneGraph Users
Hi Philip,

Just try:


Where is the source code: C:/Projects/OSG/OpenSceneGraph/trunk

Greets,
Rafa.

2011/3/26 Philip Taylor <phil...@ntlworld.com>:

> _______________________________________________
> osg-users mailing list
> osg-...@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>

--
Rafael Gaitán Linares
Instituto de Automática e Informática Industrial  http://www.ai2.upv.es
http://gvsig3d.blogspot.com
Ciudad Politécnica de la Innovación
Universidad Politécnica de Valencia
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Philip Taylor

unread,
Mar 27, 2011, 7:51:08 PM3/27/11
to OpenSceneGraph Users

Many thanks Rafa - your CMAKE suggestion worked for me

Where is the source code: C:/Projects/OSG/OpenSceneGraph/trunk

PhilT


Just for reference - I'm saw a lot of CMAKE 2.8.4 (16 Feb 2011) warnings:

This warning is for project developers. Use -Wno-dev to suppress it.

The cause is simple to fix - don't use backslashes in the third party path
name - forward slashes only!

This is not mentioned on the PlatformSpecifics help page for Visual Studio

-----Original Message-----
From: osg-user...@lists.openscenegraph.org
[mailto:osg-user...@lists.openscenegraph.org] On Behalf Of Rafa Gaitan
Sent: 27 March 2011 17:38
To: OpenSceneGraph Users
Subject: Re: [osg-users] CMake issue with OpenTheads?

Hi Philip,

Just try:
Where is the source code: C:/Projects/OSG/OpenSceneGraph/trunk

Greets,
Rafa.

_______________________________________________

Reply all
Reply to author
Forward
0 new messages