Advertisement
Guest User

Python 3 with PyQt5, QWebEngine, QScintilla, VTK on Win7-64

a guest
Jan 6th, 2016
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. Building Python 3 with PyQt5, QWebEngine, QScintilla, VTK on Windows 64bit
  2.  
  3. Install Visual C++ 2013 (I failed to get MingW working with PyQt5)
  4. Install the vs2013 version of Qt5
  5. Install Python 3.4 64bit
  6.  
  7. Get sip (4.17), PyQt5 (5.5.1), and QScintilla sources
  8.  
  9. Add path to qmake to PATH
  10.  
  11. Open command prompt
  12. Set correct compiler
  13. > C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\vcvars64
  14.  
  15. Configure sip:
  16. > C:\Python34\python.exe configure.py --platform=win32-vc2013
  17. > nmake
  18. > nmake install
  19.  
  20. Configure PyQt5 (Disable QtPositioning and QtNfc):
  21. > C:\src\PyQt-gpl-5.5.1>C:\Python34\python.exe configure.py --sip=C:\Python34\sip.exe --disable=QtPositioning --disable=QtNfc
  22. > nmake
  23. > nmake install
  24.  
  25. install qscintilla:
  26. http://pyqt.sourceforge.net/Docs/QScintilla2/
  27.  
  28. VTK with Qt5
  29. download vtk 7.0 source (rc1 tested)
  30. install mingw with gfortran
  31. install cmake
  32. run cmake-gui on vtk source
  33. * check path to qmake
  34. * Select opengl backend (not opengl2)
  35. * enable python wrapper (version 3)
  36. Build and install VTK through visual studio 2013
  37.  
  38. BUG: Running a vtk pyqt5 example triggers the __name__ == '__main__' section in qvtkrenderwindowinteractor.py. The example runs correctly when it is commented out
  39.  
  40. ISSUES:
  41. Travis can only use precompiled binaries?
  42. * Skip QWebEngine tests
  43. * Skip VTK tests? (Needs VTK compiled for Python3/PyQt5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement