El Lunes, 26 de Marzo de 2007 16:32, Robert Osfield escribió:
> Hi Alberto,
>
> On 3/26/07, Alberto Luaces <[EMAIL PROTECTED]> wrote:
> > El Sábado, 24 de Marzo de 2007 08:22, Robert Osfield escribió:
> > > So feedback on Windows please :-)
> >
> > Building under Cygwin is currently failing, see notes below:
> >
> > That error is solved adding '-lgdi32' to the linker command, as these
> > functions are found in GDI32.DLL. I don't know really how to modify the
> > Makefiles to include this change, so can anyone help?
>
> Adding "OR CYGWIN" to gdi32 section in src/osgViewer/CMakeLists.txt
> should do the trick.
>
> IF(MINGW OR CYGWIN)
> LINK_EXTERNAL(${LIB_NAME} gdi32 )
> ENDIF(MINGW OR CYGWIN)
>
> Changed file is now checked into SVN, could you test to see if it fixes
> things.
It seems the change is not yet committed to SVN. Anyway, bear in mind that I'm
testing the old Makefile system, as you requested, not the CMake one. Would a
direct modification to the GNUMakefile be accepted? If so, please use the
file attached.
> > After osgViewer is compiled, the build process continues happily until
> > the ESRI plugin, which fails because I haven't those libraries installed.
> > Does anybody know a way of not building that plugin so I can continue
> > testing the building process?
>
> The shp (ESRI) plugin doesn't have any external dependencies, what
> error are you getting?
The compiler sends an error about an unknown function "::read()"
c++ -O2 -DWIN32 -DNOMINMAX -W -Wall -mnop-fun-dllimport -I../../../../include
-c ../ESRIShape.cpp
../ESRIShape.cpp: In function `bool readVal(int, T&, ESRIShape::ByteOrder)':
../ESRIShape.cpp:38: error: `::read' has not been declared
../ESRIShape.cpp: In member function `bool ESRIShape::ShapeHeader::read(int)':
../ESRIShape.cpp:97: error: `::read' has not been declared
make[1]: *** [ESRIShape.o] Error 1
make[1]: Leaving directory
`/home/Demostración/OSG/OpenScenegraph/src/osgPlugins
/shp/CYGWIN32.Opt'
make: *** [cygosgdb_shp.dll.opt] Error 2
I couldn't figure where that function is defined.
Alberto
TOPDIR = ../..
include $(TOPDIR)/Make/makedefs
CXXFILES = \
CompositeViewer.cpp\
Scene.cpp\
SimpleViewer.cpp\
StatsHandler.cpp\
HelpHandler.cpp\
Version.cpp\
View.cpp\
Viewer.cpp\
ifeq ($(OS),Darwin)
ifeq ($(USE_AGL),yes)
CXXFILES += GraphicsWindowCarbon.cpp
LIBS += -framework AGL
else
ifeq ($(USE_CGL),yes)
CXXFILES += GraphicsWindowCarbon.cpp
else
CXXFILES += GraphicsWindowX11.cpp
LIBS += $(X_LIBS)
endif
endif
else
ifeq ($(OS),MINGW)
CXXFILES += GraphicsWindowWin32.cpp
LIBS += -lgdi32
else
ifeq ($(OS),CYGWIN)
CXXFILES += GraphicsWindowWin32.cpp
else
CXXFILES += GraphicsWindowX11.cpp
endif
endif
endif
DEF += -DOSGVIEWER_LIBRARY
LIBS += -losgGA -losgText -losgDB -losgUtil -losg $(GL_LIBS) $(OTHER_LIBS) -lgdi32
TARGET_BASENAME = osgViewer
LIB = $(LIB_PREFIX)$(TARGET_BASENAME).$(LIB_EXT)
include $(TOPDIR)/Make/makerules
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/