Skip to content

Instantly share code, notes, and snippets.

View iMichka's full-sized avatar

Michka Popoff iMichka

View GitHub Profile
This file has been truncated, but you can view the full file.
iMichka:local michkapopoff$ brew install -v insighttoolkit --python
==> Downloading http://sourceforge.net/projects/itk/files/itk/4.3/InsightToolkit-4.3.1.tar.gz
/usr/bin/curl -f#LA Homebrew 0.9.4 (Ruby 1.8.7-358; Mac OS X 10.7.5) http://sourceforge.net/projects/itk/files/itk/4.3/InsightToolkit-4.3.1.tar.gz -C 0 -o /Library/Caches/Homebrew/insighttoolkit-4.3.1.tar.gz.incomplete
######################################################################## 100,0%
tar xf /Library/Caches/Homebrew/insighttoolkit-4.3.1.tar.gz
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/insighttoolkit/4.3.1 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON .. -DBUILD_EXAMPLES=OFF -DITK_WRAP_PYTHON=ON -DModule_ITKVtkGlue=ON -DCMAKE_C_FLAGS='-ansi' -DPYTHON_LIBRARY='/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/Python'
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/insighttoolkit/4.3.1 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DBUILD_
This file has been truncated, but you can view the full file.
iMichka:local michkapopoff$ brew install -v insighttoolkit --python
==> Downloading http://sourceforge.net/projects/itk/files/itk/4.3/InsightToolkit-4.3.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/insighttoolkit-4.3.2.tar.gz
tar xf /Library/Caches/Homebrew/insighttoolkit-4.3.2.tar.gz
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/insighttoolkit/4.3.2 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON .. -DBUILD_EXAMPLES=OFF -DModule_ITKVideoBridgeOpenCV=OFF -DITK_WRAP_PYTHON=ON -DModule_ITKVtkGlue=ON -DCMAKE_C_FLAGS='-ansi' -DPYTHON_LIBRARY='/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/Python'
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/insighttoolkit/4.3.2 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON .. -DBUILD_EXAMPLES=OFF -DModule_ITKVideoBridgeOpenCV=OFF -DITK_WRAP_PYTHON=ON -DModule_ITKVtkGlue=ON -DCMAKE_C_FLAGS='-ansi' -DPYTHON_LIBRARY='/usr/local/Ce
@iMichka
iMichka / gist:5772102
Created June 13, 2013 08:26
VTK linking error
running cd "/tmp/vtk-JK8s/VTK5.10.1/build/Wrapping/Python" && /usr/local/bin/python setup.py install --prefix=/usr/local/Cellar/vtk/5.10.1 2>&1
running install
Checking .pth file support in /usr/local/Cellar/vtk/5.10.1/lib/python2.7/site-packages/
/usr/local/opt/python/bin/python2.7 -E -c pass
TEST FAILED: /usr/local/Cellar/vtk/5.10.1/lib/python2.7/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
@iMichka
iMichka / gist:7053648
Created October 19, 2013 09:35
ITK build error
This file has been truncated, but you can view the full file.
MacBook-Pro-de-Michka:~ michkapopoff$ brew install insighttoolkit --with-python -v
==> Downloading http://downloads.sourceforge.net/project/itk/itk/4.4/InsightToolkit-4.4.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/insighttoolkit-4.4.2.tar.gz
tar xf /Library/Caches/Homebrew/insighttoolkit-4.4.2.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file Modules/Bridge/VtkGlue/wrapping/CMakeLists.txt
brew: PYTHONPATH=/usr/local/Cellar/insighttoolkit/4.4.2/lib/python2.7/site-packages:/usr/local/Cellar/insighttoolkit/4.4.2/libexec/lib/python2.7/site-packages
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/insighttoolkit/4.4.2 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON .. -DBUILD_EXAMPLES=OFF -DModule_ITKVideoBridgeOpenCV=OFF -DITKV3_COMPATIBILITY:BOOL=OFF -DITK_WRAP_PYTHON=ON -DModule_ITKVtkGlue=ON -DCMAKE_C_FLAGS='-ansi' -DPYTHON_LIBRARY='/usr/local/opt/python/Frameworks/Python.framework/Versio
@iMichka
iMichka / gist:7267183
Last active December 27, 2015 04:29
VTK HEAD OpenGL errors
#!/usr/bin/env python
import sys
import vtk
from PyQt4 import QtCore, QtGui
from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
class MainWindow(QtGui.QMainWindow):
def __init__(self, parent = None):
@iMichka
iMichka / gist:7268349
Created November 1, 2013 16:53
VTK HEAD OpenGL errors V2
#!/usr/bin/env python
import sys
import vtk
from PyQt4 import QtCore, QtGui
from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
class MainWindow(QtGui.QMainWindow):
def __init__(self, parent = None):
@iMichka
iMichka / gist:7269271
Last active December 27, 2015 04:49
VTK HEAD OpenGL errors
#!/usr/bin/env python
import sys
import vtk
from PyQt4 import QtCore, QtGui
from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
class MainWindow(QtGui.QMainWindow):
def __init__(self, parent = None):
0000000000040028 s GCC_except_table0
0000000000047c18 s GCC_except_table0
000000000004927c s GCC_except_table0
000000000004939c s GCC_except_table0
0000000000044dd0 s GCC_except_table0
00000000000433fc s GCC_except_table1
00000000000492c4 s GCC_except_table1
000000000004131c s GCC_except_table1
000000000004925c s GCC_except_table1
000000000004553c s GCC_except_table1
0000000000044bf8 s GCC_except_table0
0000000000047b24 s GCC_except_table0
00000000000492a8 s GCC_except_table0
00000000000493c8 s GCC_except_table0
000000000003fe1c s GCC_except_table0
000000000004194c s GCC_except_table1
0000000000044d18 s GCC_except_table1
0000000000044c44 s GCC_except_table1
0000000000044bd8 s GCC_except_table1
00000000000450a8 s GCC_except_table1
diff --git a/Wrapping/Generators/Python/CMakeLists.txt b/Wrapping/Generators/Python/CMakeLists.txt
index a0c13a4..c8ed74b 100644
--- a/Wrapping/Generators/Python/CMakeLists.txt
+++ b/Wrapping/Generators/Python/CMakeLists.txt
@@ -234,7 +234,8 @@ if(PYTHON_EXECUTABLE)
)
endif()
-string(REGEX REPLACE "\\\\" "/" py_spp_nobackslashes "${py_spp}")
+string(REGEX REPLACE "\n" "" py_spp_no_newline "${py_spp}")