[vtkusers] Build problems with Cygwin

Carl Hetherington lists at carlh.net
Tue Dec 18 14:24:30 EST 2001


Hi,

I'm trying to build a CVS checkout of VTK (from a few days ago) using
a fresh install of Cygwin on Windows 98.

It gets a fair old way down the line before bombing out with

(this has been slightly re-formatted by pine...)

...

c++ -g -O2 -mwin32 -I/usr/local/src/VTK/CVS-nightly/VTK/Common/Testing/Cxx
-I/usr/local/src/VTK/CVS-nightly/VTK/Rendering
-I/usr/local/src/VTK/CVS-nightly/VTK/Patented
-I/usr/local/src/VTK/CVS-nightly/VTK
-I/usr/local/src/VTK/CVS-nightly/VTK/Common
-I/usr/local/src/VTK/CVS-nightly/VTK/Filtering
-I/usr/local/src/VTK/CVS-nightly/VTK/Imaging
-I/usr/local/src/VTK/CVS-nightly/VTK/Graphics
-I/usr/local/src/VTK/CVS-nightly/VTK/IO
-I/usr/local/src/VTK/CVS-nightly/VTK/Utilities/zlib
-I/usr/local/src/VTK/CVS-nightly/VTK/Utilities/png
-I/usr/local/src/VTK/CVS-nightly/VTK/Utilities/jpeg
-I/usr/local/src/VTK/CVS-nightly/VTK/Common/Testing/Cxx   -c
/usr/local/src/VTK/CVS-nightly/VTK/Common/Testing/Cxx/ObjectFactory.cxx -o
ObjectFactory.o

c++  -g -O2 -mwin32 ObjectFactory.o
-L/usr/local/src/VTK/CVS-nightly/VTK/bin/ -lpthread -lm -lvtkCommon
-lvtkCommon -lpthread -lm -lvtkCommon -lvtkCommon  -o
/usr/local/src/VTK/CVS-nightly/VTK/bin/ObjectFactory

/usr/local/src/VTK/CVS-nightly/VTK/bin//libvtkCommon.a(vtkWin32OutputWindow.o):
In function `vtkWin32OutputWindow::Initialize(void)':
/usr/local/src/VTK/CVS-nightly/VTK/Common/vtkWin32OutputWindow.cxx:169:
undefined reference to `GetStockObject at 4'
collect2: ld returned 1 exit status
make[3]: *** [/usr/local/src/VTK/CVS-nightly/VTK/bin/ObjectFactory] Error
1
make[3]: Leaving directory
`/usr/local/src/VTK/CVS-nightly/VTK/Common/Testing/Cxx'
make[2]: *** [build_Cxx] Error 2

...

GetStockObject appears to be a Win32 API function; perhaps there should be
a -mwindows on that last link line?  The libraries seem to be a bit
mucked up anyway with the repeated -lpthread -lm -lvtkCommon.

Can anyone help?

I'm also having problems building the Python bindings, but that's another
story :-o

Thanks

Carl




More information about the vtkusers mailing list