User:Cyrus

Facts Known About Cyrus

I grow beards and I develop VisIt.

- He grows beards to envy and that he shaves them is a crime against nature.


VisIt Priorities

  • +conduit+
  • filterize GetOutput()
  • general partitioning and ghost zone capability
  • contract inflexibility and reliance on cache for side loading metadata
  • production use of libsim
  • dev build vs make install/package and the build_visit legacy

Wiki Scratchpad

OSX, using build_visit to build 3rd-party libs:

 svn_bin/build_visit --console --makeflags -j8 --no-visit --svn --no-thirdparty --cmake  --python --vtk --qt --pyside --mpich --advio --boxlib --ccmio --cfitsio --cgns --fastbit --gdal --hdf4 --h5part --hdf5 --netcdf  --silo --szip --xdmf

(You can also explicitly specify where the libs should be installed:)

 --thirdparty-path [path/to/libs/install/dir/] 


FTP site for old vers of Qt: ftp://ftp.qt.nokia.com/qt/source/


Setting up a build bot worker

download/build/install git
download/build/install python 

setup easy_install (for the version of python you installed):

curl -o setuptools-0.6c11.tar.gz http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e 
tar -xzvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py install

install necessary python packages

easy_install twisted
easy_install zope.interface
easy_install buildbot

create a sandbox for your build bot to run in (you need a decent amount of space b/c the bot will run build_visit to build required 3rd party libs)

 mkdir /path/to/sandbox

setup the build bot

 buildbot create-slave /path/to/sandbox/build-bot-slave  shigeru.sci.utah.edu:9989 [slave-name] [password]
 cd /path/to/sandbox/
 edit build-bot-slave/info/admin: add your name & email address.
 edit build-bot-slave/info/host: add info about your machine. 

launch the build_bot (I use 'env -i' to explicitly setup my env & remove unnecessary env vars)

export EXE_PATH="/path/to/git/1.6.3.3/bin/:/path/to/python/2.6.2/bin/:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/misc/gapps/rhel50/bin:/sbin:/usr/sbin:/opt/bin"
cd /path/to/sandbox/
env -i PATH="$EXE_PATH" HOME="$PWD" buildbot start build-bot-slave/

Make sure to define HOME in the limited environment b/c VisIt trys to write perl to $HOME at launch.

PySide Notes

generatorrunner depends on QtXmlPatterns - need to set LD_LIBRARY_PATH

/home/harrison37/hdrive/dev/libs/2.4.0/pyside/1.0.4/linux-i686_gcc-4.1/bin/generatorrunner: error while loading shared libraries: 
libQtXmlPatterns.so.4: cannot open shared object file: No such file or directory
make[2]: *** [pyside/visithook/VisItHook/pysidehook_wrapper.cpp] Error 127
make[1]: *** [pyside/visithook/CMakeFiles/VisItHook.dir/all] Error 2


VTK Numpy Support

import vtk.util.numpy_support as vnp


qt 5.3.0-beta src

opengl/qopenglfunctions.cpp:3324: error: invalid conversion from ‘void (*)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*)’ to ‘void (*)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*)’

Fix: qtbase/src/gui/opengl/qopenglfunctions

       TexImage2D = (void (*)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*))::glTexImage2D;


       TexImage2D = (void (*)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*))::glTexImage2D;