Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
documentation [2008/07/16 13:05]
admin
documentation [2016/01/18 17:57]
admin [Additional functions]
Line 22: Line 22:
 # installing PyOpenGL # installing PyOpenGL
 C:​\Python25\easy_install.exe PyOpenGL</​code>​ C:​\Python25\easy_install.exe PyOpenGL</​code>​
 +
 +
 +
  
  
 ==== Install ==== ==== Install ====
  
-On windows, you may simply install the last ''​exe''​ installer that you can find [[http://​gforge.inria.fr/​frs/?​group_id=773|here]] ​+On windows, you may simply install the last ''​exe''​ installer that you can find [[http://​gforge.inria.fr/​frs/?​group_id=773|here]]. However, distribution are not frequent.
  
 To test it, you may launch examples [Start Menu]/​Programs/​PyQGLViewer/​examples. To test it, you may launch examples [Start Menu]/​Programs/​PyQGLViewer/​examples.
 +
 +You can look at the OpenAlea distribution of PyQGLViewer. See the [[http://​openalea.gforge.inria.fr/​|OpenAlea website]].
 +
 +In particular for Linux (Ubuntu mainly) you can install it this way:
 +<code bash>
 +sudo add-apt-repository ppa:​christophe-pradal/​openalea
 +sudo add-apt-repository ppa:​christophe-pradal/​vplants
 +sudo apt-get install pyqglviewer
 +</​code>​
 +
 +It will install a libQGLViewer package and PyQGLViewer. ​
 +
 +For windows,​after download and installing easy_install. You can type
 +<code bash>
 +easy_install -f http:://​openalea.geforge.inria.fr/​pi openalea.deploy
 +alea_install pyqglviewer
 +</​code>​
 +Or use the normal installation of openalea et vplants.
 +
 +This may changed in the future. So look at the OpenAlea documentation to have an update procedure.
  
 ===== How to build and install the project from sources ===== ===== How to build and install the project from sources =====
Line 37: Line 60:
  
 Unzip the archive on your disk. For instance Unzip the archive on your disk. For instance
-<code bash>​unzip PyQGLViewer-x-x.zip </​code>​+<code bash>​unzip PyQGLViewer-x.x.zip </​code>​
  
 A directory ''​PyQGLViewer/''​ should be created. A directory ''​PyQGLViewer/''​ should be created.
 +
 +
  
  
Line 67: Line 92:
 <note info> ​ <note info> ​
 For info, it has been build with the following command For info, it has been build with the following command
-<code bash>​diff -abur libQGLViewer-x.x.libQGLViewer-x.x.x-py > libQGLViewer-x.x.x-py.patch </​code>​+<code bash>​diff -abur ../libQGLViewer-x.x.x ​> libQGLViewer-x.x.x-py.patch </​code>​
  
 For windows, the ''​patch''​ and ''​diff''​ tools can in the [[http://​gnuwin32.sourceforge.net/​packages.html|gnuwin32 project]] For windows, the ''​patch''​ and ''​diff''​ tools can in the [[http://​gnuwin32.sourceforge.net/​packages.html|gnuwin32 project]]
Line 75: Line 100:
 To apply this patch, you should go in the parent directory of ''​libQGLViewer-x.x.x''​ To apply this patch, you should go in the parent directory of ''​libQGLViewer-x.x.x''​
 and invoke the command and invoke the command
-<code bash>​patch -p 0 -i PyQGLViewer/​src/​libQGLViewer-x.x.x-py.patch </​code>​+<code bash>cd libQGLViewer-x.x.x 
 +patch -p 0 -i ../PyQGLViewer/​src/​libQGLViewer-x.x.x-py.patch ​ </​code>​
  
 <note important> ​ <note important> ​
Line 83: Line 109:
 <code bash>​dos2unix libQGLViewer-x.x.x-py.patch </​code>​ <code bash>​dos2unix libQGLViewer-x.x.x-py.patch </​code>​
  
 +</​note>​
 +
 +<​note> ​
 +Previous patches with lower versions than 2.3.4 where built from above repository. Thus to apply them you had to call
 +<code bash>​patch -p 0 -i PyQGLViewer/​src/​libQGLViewer-x.x.x-py.patch ​ </​code>​
 +However they were not reusable from one version to the other.
 </​note>​ </​note>​
  
Line 93: Line 125:
 </​code>​ </​code>​
 On windows to install the lib you should copy the ''​QGLViewer2.dll''​ On windows to install the lib you should copy the ''​QGLViewer2.dll''​
-in library repository such as ''​C:\WINDOWS\system32''​+in library repository such as ''​%QTDIR%\bin''​
  
-<code bash>​copy release\QGLViewer2.dll ​C:\WINDOWS\system32+<code bash>​copy release\QGLViewer2.dll ​%QTDIR%\bin 
 +copy release\QGLViewer2.lib %QTDIR%\lib
 </​code>​ </​code>​
  
Line 212: Line 245:
 === Version === === Version ===
  
-You can check the version of the QGLViewer with global hexadecimal value ''​QGLViewerVersion''​.+You can check the version of the QGLViewer with the global hexadecimal value ''​QGLViewerVersion''​.
 Moreover, the following convenience function gives the version as a string: Moreover, the following convenience function gives the version as a string:
  
 <code python>​def QGLViewerVersionString():​ <code python>​def QGLViewerVersionString():​
     """​ Return version of QGLViewer in a string format """</​code>​     """​ Return version of QGLViewer in a string format """</​code>​
 +
 +You can also check the version of the wrappers with the global hexadecimal value ''​__version__''​
 +or the function ''​PyQGLViewerVersionString''​ for the string version.
  
  
 
Back to top
documentation.txt · Last modified: 2016/01/25 16:35 by admin
Valid CSS Driven by DokuWiki Valid XHTML 1.0