Robert Osfield schrieb:
> I haven't spotted any recent updates when I've done svn update. When
> did you check these changes in?
I commited the xcode-project last week (17. April)

I have problems with the cmake-build:

1.) I can't build the osgdb_freetype, I experience the same error which 
E.Wing documented at 
<http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/MacOSX10.5#X11Linkproblems:>,
 
Eric fixed only the Xcode-project, not the cmake-files, and I am not an 
expert regarding cMake.

Here's the linker output:
/Developer/usr/bin/g++-4.0 -o 
/Users/stephan/Documents/Projekte/cefix/3rdParty/osg.current/lib/osgPlugins-2.3.10/OpenSceneGraph.build/Debug/osgdb_freetype.so.build/Objects-normal/ppc/osgdb_freetype.so
 
-L/Users/stephan/Documents/Projekte/cefix/3rdParty/osg.current/lib/osgPlugins-2.3.10/Debug
 
-L/Users/stephan/Documents/Projekte/cefix/3rdParty/osg.current/lib/Debug 
-L/Users/stephan/Documents/Projekte/cefix/3rdParty/osg.current/lib 
-L/usr/X11R6/lib/Debug -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib 
-F/Users/stephan/Documents/Projekte/cefix/3rdParty/osg.current/lib/osgPlugins-2.3.10/Debug
 
-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -filelist 
/Users/stephan/Documents/Projekte/cefix/3rdParty/osg.current/lib/osgPlugins-2.3.10/OpenSceneGraph.build/Debug/osgdb_freetype.so.build/Objects-normal/ppc/osgdb_freetype.LinkFileList
 
-arch ppc -bundle -mmacosx-version-min=10.4 -headerpad_max_install_names 
-lOpenThreadsd -losgd -losgDBd -losgUtild -losgTextd -lfreetype 
-framework Carbon -losgDBd -lm -losgd -lpthread -lOpenThreadsd 
-framework AGL -framework OpenGL -isysroot /Developer/SDKs/MacOSX10.4u.sdk
ld: cycle in dylib re-exports with 
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib/libGL.dylib
collect2: ld returned 1 exit status



2.) Cmake generated a target for wxviewer, but it doesn't build, I think 
it is a library mismatch on my end.

3.) I removed the osgdb_freetype and wxviewer targets from the generated 
xcode-project. The compile succeeds now, but with 1000s of warnings, 
most of them look like this.

warning: no rule to process file 
'/Users/stephan/Documents/Projekte/cefix/3rdParty/osg.current/include/OpenThreads/Block'
 
of type text for architecture ppc
warning: no rule to process file 
'/Users/stephan/Documents/Projekte/cefix/3rdParty/osg.current/include/OpenThreads/Condition'
 
of type text for architecture ppc
warning: no rule to process file 
'/Users/stephan/Documents/Projekte/cefix/3rdParty/osg.current/include/OpenThreads/Exports'
 
of type text for architecture ppc
warning: no rule to process file 
'/Users/stephan/Documents/Projekte/cefix/3rdParty/osg.current/include/OpenThreads/Mutex'
 
of type text for architecture ppc

I googled a little bit, and it seems that adding the header-files to the 
Compile Sources build phase (it's basically a list of files which should 
be compiled in a XCode-target) cast these warnings. I am not sure if 
this is a cmake-configuration problem or a general cmake-problem.

I can "fix" these warnings when I comment out the line 
"${LIB_PUBLIC_HEADERS}" from the CMakeLists.txt-files (here for osg):

ADD_LIBRARY(${LIB_NAME}
    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
    # ${LIB_PUBLIC_HEADERS}
    AlphaFunc.cpp
    .
    .
    .

I don't know if this change can break other platforms.

I did test most of the examples, and they work all fine.

cheers,
Stephan




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

Reply via email to