Re: [osg-users] ccmake issue with 2.4.0 release (fwd)

0 views
Skip to first unread message

Bob Huebert

unread,
Jun 10, 2008, 6:31:35 PM6/10/08
to osg-...@lists.openscenegraph.org
more noise...

The cmake configuration process bailed out during the generation phase
with this:

CMake Warning (dev) at src/osg/CMakeLists.txt:173 (ADD_LIBRARY):
Policy CMP0003 should be set before this line. Add code such as

if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)

as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "osg" links to some libraries for which the linker must
search:

-lpthread

and other libraries with known full path:

/usr/local/pkg/osg/wrk.huebert/osg-2.4.0/lib/libOpenThreads.so.2.2.1

CMake is adding directories in the second list to the linker search
path in
case they are needed to find libraries from the first list (for
backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to
enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003"
for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.


I'm no cmake expert, so I'm a bit lost on this.

This is osg-2.4.0 source as a relase build using cmake-2.6.0.

-bob

From: Bob Huebert <hue...@arsc.edu>
Reply-To: OpenSceneGraph Users <osg-...@lists.openscenegraph.org>
To: OpenSceneGraph Users <osg-...@lists.openscenegraph.org>
Subject: Re: [osg-users] ccmake issue with 2.4.0 release

nevermind.

Second time launching ccmake the message doesn't show. Configuration process
seems to work despite the error.

sorry for the noise

-bob


On Tue, 10 Jun 2008, Bob Huebert wrote:

> Hi folks,
>
> I just grabbed the 2.4.0 release source of osg and have run into this when
> initiating the cmake (2.6.0) configuration:
>
> CMake Error at CMakeLists.txt:9 (ADD_EXECUTABLE):
> Target "cmTryCompileExec" links to item " -lpthread" which has leading or
> trailing whitespace. This is now an error according to policy CMP0004.
>
>
> I've searched the gmane osg archive, but didn't see anything.
>
> Any clues on this? Maybe it's a cmake thing?
>
> tia
> -bob
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Vincent Bourdier

unread,
Jun 11, 2008, 2:07:35 AM6/11/08
to OpenSceneGraph Users
Hi

For Osg 2.4, you should use Cmake 2.4 ... I did it and solve all my problems doing that.
(and Cmake 2.6 for Osg 2.5.1 and upper)
Vincent

2008/6/11 Bob Huebert <hue...@arsc.edu>:

Jean-Sébastien Guay

unread,
Jun 11, 2008, 8:23:53 AM6/11/08
to OpenSceneGraph Users
Hi Bob,

> The cmake configuration process bailed out during the generation phase
> with this:
>
> CMake Warning (dev) at src/osg/CMakeLists.txt:173 (ADD_LIBRARY):
> Policy CMP0003 should be set before this line. Add code such as

As Vincent said, for OSG 2.4 you need to use CMake 2.4.x, because some
fixes to make it build correctly with CMake 2.6-generated project files
did not land in time for the OSG 2.4 release.

So you can either get CMake 2.4.8 and build OSG 2.4 with that, or get
the OSG 2.5.1 dev release and use CMake 2.6 to build that.

J-S
--
______________________________________________________
Jean-Sebastien Guay jean-seba...@cm-labs.com
http://www.cm-labs.com/
http://whitestar02.webhop.org/

Bob Huebert

unread,
Jun 11, 2008, 1:22:36 PM6/11/08
to OpenSceneGraph Users
Thanks!

-bob

Bob Huebert

unread,
Jun 11, 2008, 1:26:26 PM6/11/08
to OpenSceneGraph Users
On Wed, 11 Jun 2008, Jean-Sébastien Guay wrote:

> Hi Bob,
>
>> The cmake configuration process bailed out during the generation phase with
>> this:
>>
>> CMake Warning (dev) at src/osg/CMakeLists.txt:173 (ADD_LIBRARY):
>> Policy CMP0003 should be set before this line. Add code such as
>
> As Vincent said, for OSG 2.4 you need to use CMake 2.4.x, because some fixes
> to make it build correctly with CMake 2.6-generated project files did not
> land in time for the OSG 2.4 release.

Thank you for the explanation as to whats up with this.

I did give 2.4.3 a go and saw it fail, so was very glad to see you
reference cmake 2.4.8.

Thanks again J-S.

-bob

Reply all
Reply to author
Forward
0 new messages