[Pkg-octave-devel] Bug#385519: octaviz: please migrate to VTK 5

Aaron M. Ucko ucko at debian.org
Thu Aug 31 20:59:47 UTC 2006


Package: octaviz
Version: 0.4.0-27
Severity: important

Could you please migrate to VTK 5 (which recently hit unstable)?  What
makes this important is that it is only possible to have one version
installed on a system at a time.

I am attaching a patch that will get you partway there; I gave up
after discovering that the build *still* didn't get very far. :-/
FTR, the next, and with any luck last, issue to address is that
VTK_LEGACY(...) declarations evidently confuse vtkWrapOctave.

[BTW, I also had to add -DVTK_DIR:STRING=/usr/lib/vtk to cmake's
invocation.]

Thanks.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
-------------- next part --------------
--- octaviz-0.4.0/CMakeLists.txt	2006-08-31 16:25:43.114394000 -0400
+++ octaviz-0.4.0.new/CMakeLists.txt	2006-08-31 16:27:55.910236300 -0400
@@ -84,11 +84,12 @@
 		INCLUDE(${VTK_KITS_DIR}/vtk${kit}Kit.cmake)
 		
 		SET(all_oct)
-		FOREACH(class ${VTK_${ukit}_CLASSES})
+		FOREACH(class0 ${VTK_${ukit}_CLASSES})
+			GET_FILENAME_COMPONENT(class ${class0} NAME)
 			IF(NOT VTK_CLASS_WRAP_EXCLUDE_${class})
 				SET(all_oct ${all_oct} ${class}.oct)
 			ENDIF(NOT VTK_CLASS_WRAP_EXCLUDE_${class})
-		ENDFOREACH(class)
+		ENDFOREACH(class0)
 
 #		ADD_CUSTOM_TARGET(vtk${kit}.cc ALL cat ${all_ccs} > vtk${kit}.cc)
 		
@@ -128,7 +129,8 @@
 		# Remove prefix from oct install dir
 		STRING(REGEX REPLACE "${CMAKE_INSTALL_PREFIX}" "" OCT_INST_DIR ${OCT_INST_DIR_EXEC})
 
-		FOREACH(class ${VTK_${ukit}_CLASSES})
+		FOREACH(class0 ${VTK_${ukit}_CLASSES})
+			GET_FILENAME_COMPONENT(class ${class0} NAME)
 			SET(full_name "${VTK_${ukit}_HEADER_DIR}/${class}.h")
 			IF(NOT VTK_CLASS_WRAP_EXCLUDE_${class})
 				ADD_CUSTOM_TARGET(${class}.cc ALL ../Wrapping/vtkWrapOctave ${full_name} ../Wrapping/hints 1 ${class}.cc)
@@ -138,7 +140,7 @@
 #				ADD_CUSTOM_TARGET(${class}_link echo Symlinking ${class}\; ln -s ${CMAKE_INSTALL_PREFIX}${OCT_INST_DIR}/octaviz/vtk${kit}.oct ${CMAKE_INSTALL_PREFIX}${OCT_INST_DIR}/octaviz/${class}.oct)
 #				ADD_DEPENDENCIES(create_links ${class}_link)
 			ENDIF(NOT VTK_CLASS_WRAP_EXCLUDE_${class})
-		ENDFOREACH(class)
+		ENDFOREACH(class0)
 	ENDMACRO(OCTAVE_WRAP_VTK)
   
 	#	MARK_AS_ADVANCED(CMAKE_INSTALL_PREFIX)


More information about the Pkg-octave-devel mailing list