Bug 130471 - sci-libs/vtk-5.0.0 with qt4 support fails to build
Bug#: 130471 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: markusle@gentoo.org Reported By: remi@gentoo.org
Component: Applications
URL: 
Summary: sci-libs/vtk-5.0.0 with qt4 support fails to build
Keywords:  
Status Whiteboard: 
Opened: 2006-04-19 06:21 0000
Description:   Opened: 2006-04-19 06:21 0000
[snip]
-- Check if the system is big endian - little endian
-- Looking for glXGetProcAddressARB
-- Looking for glXGetProcAddressARB - found
-- Looking for glXGetProcAddressARB in GL/glx.h
-- Looking for glXGetProcAddressARB in GL/glx.h - FALSE
CMake Error: Error in cmake code at
/var/tmp/portage/vtk-5.0.0/work/VTK/GUISupport/Qt/CMakeLists.txt:20:
INCLUDE called with wrong number of arguments.  Include only takes one file.
CMake Error: Error in cmake code at
/var/tmp/portage/vtk-5.0.0/work/VTK/GUISupport/Qt/CMakeLists.txt:34:
Unknown CMake command "QT4_WRAP_CPP".
CMake Error: Error in cmake code at
/var/tmp/portage/vtk-5.0.0/work/VTK/GUISupport/Qt/CMakeLists.txt:35:
Unknown CMake command "QT4_WRAP_CPP".
-- Configuring done

!!! ERROR: sci-libs/vtk-5.0.0 failed.
!!! Function src_compile, Line 134, Exitcode 255
!!! cmake configuration failed
!!! If you need support, post the topmost build error, NOT this status message.


I have qt-4.1.2. Am I forgetting something?

------- Comment #1 From Markus Dittrich 2006-04-19 07:18:53 0000 -------
Hi R

------- Comment #2 From Markus Dittrich 2006-04-19 07:18:53 0000 -------
Hi Rémi,

Thanks for your report! I just tried and it works fine here.
What version of cmake are you using? If you're using cmake-2.0.6 
please try it with the one in ~arch, i.e. cmake-2.2.3. 
If this doesn't solve it, please post your emerge --info.

Thanks,
Markus

------- Comment #3 From Rémi Cardona 2006-04-19 08:48:50 0000 -------
Seems to work but vtk failed much later on with a java error. I'm rebuilding
with USE="-java". I'll let you know how it turns out.



ajout : vtk/vtkPlanes.class (entr

------- Comment #4 From Rémi Cardona 2006-04-19 08:48:50 0000 -------
Seems to work but vtk failed much later on with a java error. I'm rebuilding
with USE="-java". I'll let you know how it turns out.



ajout : vtk/vtkPlanes.class (entrée = 1892) (sortie = 836) (55% compressés)
ajout : vtk/vtkProcessObject.class (entrée = 1573) (sortie = 659) (58%
compressés)
ajout : vtk/vtkParametricCrossCap.class (entrée = 857) (sortie = 454) (47%
compressés)
Scanning dependencies of target VTKJavaExecutable
Building CXX object Wrapping/Java/CMakeFiles/VTKJavaExecutable.dir/VTKJava.o
Linking CXX executable ../../bin/VTKJavaExecutable
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:
warning: libmawt.so, needed by /opt/sun-jdk-1.5.0.06/jre/lib/i386/libjawt.so,
not found (try using -rpath or -rpath-link)
/opt/sun-jdk-1.5.0.06/jre/lib/i386/libjawt.so: référence indéfinie vers «
awt_Unlock@SUNWprivate_1.1 »
/opt/sun-jdk-1.5.0.06/jre/lib/i386/libjawt.so: référence indéfinie vers «
awt_GetComponent@SUNWprivate_1.1 »
/opt/sun-jdk-1.5.0.06/jre/lib/i386/libjawt.so: référence indéfinie vers «
awt_GetDrawingSurface@SUNWprivate_1.1 »
/opt/sun-jdk-1.5.0.06/jre/lib/i386/libjawt.so: référence indéfinie vers «
awt_FreeDrawingSurface@SUNWprivate_1.1 »
/opt/sun-jdk-1.5.0.06/jre/lib/i386/libjawt.so: référence indéfinie vers «
awt_Lock@SUNWprivate_1.1 »
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [bin/VTKJavaExecutable] Erreur 1
make[1]: *** [Wrapping/Java/CMakeFiles/VTKJavaExecutable.dir/all] Erreur 2
make: *** [all] Erreur 2

------- Comment #5 From Rémi Cardona 2006-04-20 05:52:07 0000 -------
It built fine. I haven't had the time to actually compile anything against Vtk,
but the ebuild went ok. I guess the deps could be updated to include this
version of cmake. 

Thanks a lot for the quick reply.

------- Comment #6 From Markus Dittrich 2006-04-20 19:20:22 0000 -------
Hi R

------- Comment #7 From Markus Dittrich 2006-04-20 19:20:22 0000 -------
Hi Rémi,

Thank you very much for testing. I changed the dependency
on cmake to version 2.2.3.

Thanks,
Markus