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
Last revision Both sides next revision
documentation [2009/09/18 21:44]
admin
documentation [2016/01/18 17:58]
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 41: Line 63:
  
 A directory ''​PyQGLViewer/''​ should be created. A directory ''​PyQGLViewer/''​ should be created.
 +
  
  
Line 102: 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 221: 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