SCI Seg3D Mailing List

Text archives Help


[Seg3D] Re: Qt library dependency removed from Spline Tool


Chronological Thread 
  • From: Kristen Zygmunt <krismz@sci.utah.edu>
  • To: seg3d@sci.utah.edu
  • Subject: [Seg3D] Re: Qt library dependency removed from Spline Tool
  • Date: Wed, 20 Jan 2010 17:34:53 -0700

Hi Ramon,
I think it's looking good so far. Ayla is working on addressing the VISPACK / LAPACK issue. I downloaded the source and tried to compile it on my Mac (OS X 10.5, gcc 4.0.1) and saw errors similar to the following:

SCIRun/src/Externals/qwtlight/src/qwt_spline.cpp: In member function ‘bool QwtSpline::buildNaturalSpline(const std::vector<QwtDoublePoint, std::allocator<QwtDoublePoint> >&)’:
SCIRun/src/Externals/qwtlight/src/qwt_spline.cpp:232: error: ‘const class std::vector<QwtDoublePoint, std::allocator<QwtDoublePoint> >’ has no member named ‘data’
SCIRun/src/Externals/qwtlight/src/qwt_spline.cpp:235: error: ‘class std::vector<double, std::allocator<double> >’ has no member named ‘data’
SCIRun/src/Externals/qwtlight/src/qwt_spline.cpp:236: error: ‘class std::vector<double, std::allocator<double> >’ has no member named ‘data’

I am a little surprised that it's compiling for you and am wondering if maybe there is still a file that needs to be checked in. Otherwise it could be related to compiler version or something. Also, I haven't seen the VISPACK/LAPACK compile errors yet, but they may happen after I get past the errors above.

-Kris

On Jan 20, 2010, at 3:27 PM, Ramón Casero Cañas wrote:


Hi all,

I think I have finally been able to remove the dependency from library Qt that the Spline Tool had via the Qwt library.

https://code.sci.utah.edu/svn/cibc/cibc/branches/seg3d_spline_tool/SCIRun

At least the code compiles and runs in my machine (Ubuntu linux).


*** LICENCES

Because Qwt is LGPL, the relevant code cannot be just taken and put into Seg3D or Teem (unless the corresponding licences were changed to LGPL).

Thus, what I have done is a derivative work of Qwt called QwtLight. QwtLight is a stripped down version of Qwt that doesn't depend on Qt. It exists as an independent library in the src/Externals directory, so AFAIK it is OK to leave it with a LGPL licence, and link to it from Seg3D.

Because the Seg3D source code is provided with the library, I think we should be fine under point 6 of the LGPL

http://www.gnu.org/licenses/lgpl-2.1.html


*** LINKING TO LAPACK

Actually, the code as it is now in the repository will fail to compile because it cannot link to LAPACK.

To fix this, it's necessary to patch two of the CMakeLists.txt in the vispack library.

I cannot do this myself, because I don't have permissions. (I have done it locally.)

I have reported the problem and suggested patches as bug 478

http://bugzilla.sci.utah.edu/bugzilla/show_bug.cgi?id=478

NB. I think that the problem is independent from the Spline Tool, and will happen if at some point Seg3D needs to link to LAPACK.


Any comments are welcome!

Ramon.

--
Dr. Ramón Casero Cañas

Computational Biology, Computing Laboratory
University of Oxford
Wolfson Building, Parks Rd
Oxford OX1 3QD

tlf     +44 (0) 1865 610807
web     http://web.comlab.ox.ac.uk/people/Ramon.CaseroCanas
photos  http://www.flickr.com/photos/rcasero/




Archive powered by MHonArc 2.6.16.

Top of page