Hi
tring to build osgGis (my targhet)
i follow the suggestion to have a more recent OSG version
i checked the svn trunk version 2.7.x
first i tried to build using the existent xcode project, but give me
errors
(i've no clue on how to generate xcode.project using cmake)
so i tried the cmake way
now i can get it compiling using x86 as platform (instead of ppc+x86)
the problems is my fltk libraries are not universal
to have osg compiled i need to delete the contents of the osgviewerQT
directory
beacouse it give me these error :
Scanning dependencies of target example_osgviewerWX
[ 97%] Building CXX object examples/osgviewerWX/CMakeFiles/
example_osgviewerWX.dir/osgviewerWX.cpp.o
/usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning:
‘AGLDrawable’ is deprecated (declared at /Developer/SDKs/
MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
/usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning:
‘AGLDrawable’ is deprecated (declared at /Developer/SDKs/
MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
/usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning:
‘AGLDrawable’ is deprecated (declared at /Developer/SDKs/
MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
/usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning:
‘AGLDrawable’ is deprecated (declared at /Developer/SDKs/
MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
Linking CXX executable ../../bin/osgviewerWX.app/Contents/MacOS/
osgviewerWX
[ 97%] Built target example_osgviewerWX
Scanning dependencies of target example_osgviewerQT
[ 98%] Building CXX object examples/osgviewerQT/CMakeFiles/
example_osgviewerQT.dir/QOSGWidget.cpp.o
In file included from /GIS/DEP/OpenSceneGraph/examples/osgviewerQT/
QOSGWidget.cpp:58:
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:27:20: error: GL/glx.h: No such file or directory
In file included from /GIS/DEP/OpenSceneGraph/examples/osgviewerQT/
QOSGWidget.cpp:58:
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:27:20: error: GL/glx.h: No such file or directory
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:140: error: ISO C++ forbids declaration of ‘Display’
with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:140: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:141: error: expected `;' before ‘Display’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:141: error: ISO C++ forbids declaration of ‘Display’
with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:141: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:142: error: expected `;' before ‘Display’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:142: error: ISO C++ forbids declaration of ‘Display’
with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:142: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:147: error: ISO C++ forbids declaration of
‘GLXContext’ with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:147: error: expected ‘;’ before ‘&’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:149: error: expected `;' before ‘Cursor’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:165: error: ‘Display’ has not been declared
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:169: error: ‘XKeyEvent’ has not been declared
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:178: error: ISO C++ forbids declaration of ‘Display’
with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:178: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:179: error: ISO C++ forbids declaration of ‘Display’
with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:179: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:182: error: ISO C++ forbids declaration of
‘XVisualInfo’ with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:182: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:183: error: ‘GLXContext’ does not name a type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:140: error: ISO C++ forbids declaration of ‘Display’
with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:140: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:141: error: expected `;' before ‘Display’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:141: error: ISO C++ forbids declaration of ‘Display’
with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:141: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:142: error: expected `;' before ‘Display’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:142: error: ISO C++ forbids declaration of ‘Display’
with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:142: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:147: error: ISO C++ forbids declaration of
‘GLXContext’ with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:147: error: expected ‘;’ before ‘&’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:149: error: expected `;' before ‘Cursor’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:165: error: ‘Display’ has not been declared
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:169: error: ‘XKeyEvent’ has not been declared
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:178: error: ISO C++ forbids declaration of ‘Display’
with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:178: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:179: error: ISO C++ forbids declaration of ‘Display’
with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:179: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:182: error: ISO C++ forbids declaration of
‘XVisualInfo’ with no type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:182: error: expected ‘;’ before ‘*’ token
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:183: error: ‘GLXContext’ does not name a type
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/GraphicsWindowX11:
In constructor
‘osgViewer
::GraphicsWindowX11::GraphicsWindowX11(osg::GraphicsContext::Traits*)’:
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:39: error: class ‘osgViewer::GraphicsWindowX11’ does
not have any field named ‘_display’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:40: error: class ‘osgViewer::GraphicsWindowX11’ does
not have any field named ‘_eventDisplay’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:43: error: class ‘osgViewer::GraphicsWindowX11’ does
not have any field named ‘_visualInfo’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:44: error: class ‘osgViewer::GraphicsWindowX11’ does
not have any field named ‘_glxContext’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/GraphicsWindowX11:
In constructor
‘osgViewer
::GraphicsWindowX11::GraphicsWindowX11(osg::GraphicsContext::Traits*)’:
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:39: error: class ‘osgViewer::GraphicsWindowX11’ does
not have any field named ‘_display’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:40: error: class ‘osgViewer::GraphicsWindowX11’ does
not have any field named ‘_eventDisplay’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:43: error: class ‘osgViewer::GraphicsWindowX11’ does
not have any field named ‘_visualInfo’
/GIS/DEP/OpenSceneGraph/include/osgViewer/api/X11/
GraphicsWindowX11:44: error: class ‘osgViewer::GraphicsWindowX11’ does
not have any field named ‘_glxContext’
lipo: can't figure out the architecture type of: /var/folders/f7/
f79O9DDoHYS3GrbwIABP8U+++TI/-Tmp-//ccNRB8kX.out
make[2]: *** [examples/osgviewerQT/CMakeFiles/example_osgviewerQT.dir/
QOSGWidget.cpp.o] Error 1
make[1]: *** [examples/osgviewerQT/CMakeFiles/example_osgviewerQT.dir/
all] Error 2
make: *** [all] Error 2
How can i build it ?
i tried pointing the include to the the right "GL/glx.h"
i've it in :
/usr/X11/include/GL/..
an other question is about the collada dom libraries,
i downloaded and compiled the libs
the build produce a colladadom.framework
but i can't find the associated :
libcollada_dom.a (or .dylib)
needed by the osg cmake setting ...
so osg fail to build the osgdb_dae
any help can make me happy
thanks a lot!
regards,
Massimo
On Nov 14, 2008, at 4:48 AM, Glenn Waldron wrote:
Massimo,
It looks like you are trying to compile osgGIS (not osgdem, which is
part of a different package called VirtualPlanetBuilder). The
warnings indicate that you have an old version and need to upgrade
to the latest SVN head. -gw
Glenn Waldron : Pelican Mapping : http://pelicanmapping.com :
+1.703.652.4791
On Thu, Nov 13, 2008 at 7:45 PM, Massimo Di Stefano <[EMAIL PROTECTED]
> wrote:
Hi,
i'm tring to install osgdem on osx 10.5
but after alot of worning message :-/
it fails to build with these error :
....
[ 78%] Building CXX object src/osgGIS/CMakeFiles/osgGIS.dir/Utils.o
In file included from /GIS/DEP/osgis/src/osgGIS/Common:26,
from /GIS/DEP/osgis/src/osgGIS/Utils:4,
from /GIS/DEP/osgis/src/osgGIS/Utils.cpp:1:
/GIS/DEP/osgis/src/osgGIS/Export:44:1: warning: "OSGGIS_EXPORT"
redefined
/GIS/DEP/osgis/src/osgGIS/Export:30:1: warning: this is the location
of the previous definition
In file included from /GIS/DEP/osgis/src/osgGIS/Common:26,
from /GIS/DEP/osgis/src/osgGIS/Utils:4,
from /GIS/DEP/osgis/src/osgGIS/Utils.cpp:1:
/GIS/DEP/osgis/src/osgGIS/Export:44:1: warning: "OSGGIS_EXPORT"
redefined
/GIS/DEP/osgis/src/osgGIS/Export:30:1: warning: this is the location
of the previous definition
/GIS/DEP/osgis/src/osgGIS/Utils.cpp: In function 'int
save_image_as_DDS(const char*, int, int, int, const unsigned char*)':
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:398: error: 'int
save_image_as_DDS(const char*, int, int, int, const unsigned char*)'
was declared 'extern' and later 'static'
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:248: error: previous declaration
of 'int save_image_as_DDS(const char*, int, int, int, const unsigned
char*)'
/GIS/DEP/osgis/src/osgGIS/Utils.cpp: In function 'unsigned char*
convert_image_to_DXT1(const unsigned char*, int, int, int, int*)':
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:456: error: 'unsigned char*
convert_image_to_DXT1(const unsigned char*, int, int, int, int*)'
was declared 'extern' and later 'static'
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:259: error: previous declaration
of 'unsigned char* convert_image_to_DXT1(const unsigned char*, int,
int, int, int*)'
/GIS/DEP/osgis/src/osgGIS/Utils.cpp: In function 'unsigned char*
convert_image_to_DXT5(const unsigned char*, int, int, int, int*)':
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:539: error: 'unsigned char*
convert_image_to_DXT5(const unsigned char*, int, int, int, int*)'
was declared 'extern' and later 'static'
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:270: error: previous declaration
of 'unsigned char* convert_image_to_DXT5(const unsigned char*, int,
int, int, int*)'
/GIS/DEP/osgis/src/osgGIS/Utils.cpp: In function 'int
save_image_as_DDS(const char*, int, int, int, const unsigned char*)':
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:398: error: 'int
save_image_as_DDS(const char*, int, int, int, const unsigned char*)'
was declared 'extern' and later 'static'
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:248: error: previous declaration
of 'int save_image_as_DDS(const char*, int, int, int, const unsigned
char*)'
/GIS/DEP/osgis/src/osgGIS/Utils.cpp: In function 'unsigned char*
convert_image_to_DXT1(const unsigned char*, int, int, int, int*)':
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:456: error: 'unsigned char*
convert_image_to_DXT1(const unsigned char*, int, int, int, int*)'
was declared 'extern' and later 'static'
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:259: error: previous declaration
of 'unsigned char* convert_image_to_DXT1(const unsigned char*, int,
int, int, int*)'
/GIS/DEP/osgis/src/osgGIS/Utils.cpp: In function 'unsigned char*
convert_image_to_DXT5(const unsigned char*, int, int, int, int*)':
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:539: error: 'unsigned char*
convert_image_to_DXT5(const unsigned char*, int, int, int, int*)'
was declared 'extern' and later 'static'
/GIS/DEP/osgis/src/osgGIS/Utils.cpp:270: error: previous declaration
of 'unsigned char* convert_image_to_DXT5(const unsigned char*, int,
int, int, int*)'
lipo: can't figure out the architecture type of: /var/folders/f7/
f79O9DDoHYS3GrbwIABP8U+++TI/-Tmp-//ccZ7WLd2.out
make[2]: *** [src/osgGIS/CMakeFiles/osgGIS.dir/Utils.o] Error 1
make[1]: *** [src/osgGIS/CMakeFiles/osgGIS.dir/all] Error 2
make: *** [all] Error 2
sashas-macbook-pro-15:build sasha$
maybe i'm wrong something in my cmake settings :-/
need i to provide you a detailed cmake log ?
thaks for any help!
regards,
Massimo.
any help Chiacchiera con i tuoi amici in tempo
reale!http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org