delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/11/13:13:49

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.5 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_LG,TW_LV,TW_VT,TW_YG,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <982327.89745.qm@web25506.mail.ukl.yahoo.com>
Date: Sat, 11 Sep 2010 17:13:35 +0000 (GMT)
From: Marco Atzeri <marco_atzeri AT yahoo DOT it>
Subject: Re: OpenGL linking problems
To: cygwin AT cygwin DOT com
Cc: daviddoria AT gmail DOT com
In-Reply-To: <4C8796B6.70707@dronecode.org.uk>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--- Mer 8/9/10, Jon TURNEY ha scritto:

> On 08/09/2010 13:53, David Doria
> wrote:
> >> Oh, I guess you have a makefile generated by
> cmake? In which case you need
> >> make VERBOSE=3D1 to get it to show you what it is
> doing.
> >>
> >
> > Ok, now there is some useful output. I see an -lGL,
> what else should I
> > be looking for?
> >
> > /usr/bin/c++.exe=A0
> =A0=A0=A0-Wno-deprecated -mwin32
> [list of .o files snipped]
> >
> CMakeFiles/GraphicsCxxTests.dir/TestDecimatePolylineFilter.cxx.o=A0
> -o
> > ../../../bin/GraphicsCxxTests.exe
> >
> -Wl,--out-implib,../../../bin/libGraphicsCxxTests.dll.a
> > -Wl,--major-image-version,0,--minor-image-version,0
> > ../../../bin/libvtkRendering.a ../../../bin/libvtkIO.a
> -lGL -lGLU
> > ../../../bin/libvtkDICOMParser.a
> ../../../bin/libvtkNetCDF_cxx.a
> > ../../../bin/libvtkNetCDF.a
> ../../../bin/libvtkmetaio.a -lcomctl32
> > ../../../bin/libvtksqlite.a ../../../bin/libvtkpng.a
> > ../../../bin/libvtktiff.a ../../../bin/libvtkzlib.a
> > ../../../bin/libvtkjpeg.a ../../../bin/libvtkexpat.a
> -lvfw32
> > ../../../bin/libvtkGraphics.a
> ../../../bin/libvtkverdict.a
> > ../../../bin/libvtkImaging.a
> ../../../bin/libvtkFiltering.a
> > ../../../bin/libvtkCommon.a ../../../bin/libvtksys.a
> -lws2_32 -lm
> > -lpthread -lwsock32 -lgdi32 ../../../bin/libvtkftgl.a
> > ../../../bin/libvtkfreetype.a
> /usr/lib/w32api/libopengl32.a -lXt -lSM
> > -lICE -lX11 -lXext
>=20
> Oh my! That's very confused about if it's building a w32api
> or an X11 application.
>=20


eventually it is a problem of the current cmake-2.6.4

Using the previous cygport cmake-2.8.1-11=20
and with only a patch at
  Utilities/vtkpng/pngconf.h

to remove the wrong=20
  #if defined(__CYGWIN__)
  ...
  #endif
at row 104-147

plus a small additional modification during build at
Examples/Charts/Cxx/CMakeFiles/GraphItem.dir/link.txt
to help VTK to find one of its dll's

I was able to compile the full vtk-5.6.0
with :
-----------------------------------------------
98% tests passed, 7 tests failed out of 371

Total Test time (real) =3D 1910.59 sec

The following tests FAILED:
          1 - HeaderTesting-Common (Failed)
         19 - TestPolynomialSolversUnivariate (Failed)
        127 - SLACReaderLinear (Failed)
        128 - SLACReaderQuadratic (Failed)
        129 - SLACParticleReader (SEGFAULT)
        228 - HeaderTesting-Widgets (Failed)
        265 - TestSplineWidget (Failed)
Errors while running CTest
------------------------------------------------
=20
and the dll's are correctly linked with cygGL-1.dll

Marco






--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019