cgkit-user Mailing List for Python Computer Graphics Kit (Page 13)
Brought to you by:
mbaas
You can subscribe to this list here.
2005 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(3) |
Jun
(3) |
Jul
|
Aug
|
Sep
(2) |
Oct
(3) |
Nov
|
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(48) |
Jun
(14) |
Jul
(9) |
Aug
(5) |
Sep
|
Oct
(3) |
Nov
(7) |
Dec
(6) |
2007 |
Jan
(2) |
Feb
(2) |
Mar
(7) |
Apr
(15) |
May
(12) |
Jun
(7) |
Jul
(24) |
Aug
|
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
(1) |
Apr
(20) |
May
(3) |
Jun
(4) |
Jul
(10) |
Aug
(21) |
Sep
(1) |
Oct
(5) |
Nov
|
Dec
(3) |
2009 |
Jan
(7) |
Feb
(4) |
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(2) |
Sep
(3) |
Oct
(4) |
Nov
|
Dec
(7) |
2010 |
Jan
(2) |
Feb
(6) |
Mar
|
Apr
(2) |
May
(7) |
Jun
(4) |
Jul
|
Aug
(6) |
Sep
(6) |
Oct
(4) |
Nov
(7) |
Dec
(2) |
2011 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
(8) |
May
|
Jun
(3) |
Jul
(3) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
(9) |
Mar
(8) |
Apr
(7) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
(1) |
Dec
|
2013 |
Jan
(3) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(7) |
Nov
(3) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(2) |
Jul
(9) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2016 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Matthias B. <mat...@gm...> - 2007-03-12 13:04:14
|
Hi, > Just cannot find such information in the readme.txt or in the > mailing-list archive. Besides Boost and Scons mentioned in the readme > file that are required for installing, PEAK package is also required for > using cgkit. Otherwise it will report error on "import protocols". The > PEAK package can downloaded from *peak*.telecommunity.com. Or are > there other ways around? No, depending on what parts of cgkit you use there may be some dependencies on external packages. See the manual for a full list of dependencies: http://cgkit.sourceforge.net/doc2/externaldeps.html - Matthias - |
From: ZP Z. <jz...@mi...> - 2007-02-27 21:05:14
|
Just cannot find such information in the readme.txt or in the mailing-list archive. Besides Boost and Scons mentioned in the readme file that are required for installing, PEAK package is also required for using cgkit. Otherwise it will report error on "import protocols". The PEAK package can downloaded from *peak*.telecommunity.com. Or are there other ways around? -zp |
From: arne <arn...@pp...> - 2007-02-04 20:45:30
|
I'm trying to use cgkit to visualize simple mechanical simulations for=20 my students. All seems to work nice, except when I call the function drawText. for instance the following line: drawText((0.0,0.0,0.0),"hello") in the file test.py causes viewer.py to crash with the following error message: viewer.py test.py freeglut ERROR: Function <glutBitmapCharacter> called without first=20 calling 'glutInit'. can anybody give me an advice? I'm working with linux ubuntu Dapper with nvidia graphics driver. --=20 Arne Keller Laboratoire de Photophysique Moleculaire du CNRS Universit=E9 Paris-Sud, Orsay Bat 210 91405 Orsay Tel 01 69 15 82 83 Fax 01 69 15 67 77=20 |
From: makura <y_m...@ya...> - 2007-01-04 23:54:17
|
Hi, It works. It's very usefull. Thank you very much. makura --- Matthias Baas <ba...@ir...> wrote: > I have attached an example that might be what you were looking for. > Save the two python files into the same location and launch main.py > via > the viewer tool: > > $ viewer.py main.py > > You will simply see a box on a plane. Now navigate around and press > the > 'c' key to dump the current camera position to a file "camera.py". > Close > the viewer tool and launch it again. The camera should now be at the > same position where it was when you hit the 'c' key. > > How it's done: The file camctrl.py is imported in the main file. > camctrl > hooks to the KEY_PRESS event and checks for the 'c' key. When the key > is > pressed the function saveTargetCam() is called with the first camera > found in the scene as input. The function saves the current camera > settings as Python source code. Here you can see how the position and > > target is retrieved. You really just have to access the properties > "pos" > and "target" which always carry the current values of the > corresponding > slots. > If you have a look at the main file you will see that it loads the > camera file whenever it exists. If it does not exist, a default > camera > is used. > > After adjusting the camera interactively using the viewer tool you > can > use the render tool to render the scene via RenderMan which will also > > use the stored camera setting. > > - Matthias - |
From: Matthias B. <ba...@ir...> - 2007-01-04 14:38:59
|
makura wrote: > Yes, I can navigate in the scene using the Alt key in combination with the > three mouse buttons. > after I navigated in the scene using a mouse. > then I want to output a position and a target. > I want to know a position of a camera. > I understand following output. > ------------------- > # Create a camera... > cam1=TargetCamera( > name="camera1", > pos = (1,7,3), > target = (0,0,1) > ) > > target=cam1.target_slot > pos=cam1.pos_slot > print target > print pos > ----------------- > > but I want to know how to output from OpenGLview. > For example, it is like AIR_Space of SiTex Graphics. > When I turn a camera, AIR_Space change a value of Eye and Target. I have attached an example that might be what you were looking for. Save the two python files into the same location and launch main.py via the viewer tool: $ viewer.py main.py You will simply see a box on a plane. Now navigate around and press the 'c' key to dump the current camera position to a file "camera.py". Close the viewer tool and launch it again. The camera should now be at the same position where it was when you hit the 'c' key. How it's done: The file camctrl.py is imported in the main file. camctrl hooks to the KEY_PRESS event and checks for the 'c' key. When the key is pressed the function saveTargetCam() is called with the first camera found in the scene as input. The function saves the current camera settings as Python source code. Here you can see how the position and target is retrieved. You really just have to access the properties "pos" and "target" which always carry the current values of the corresponding slots. If you have a look at the main file you will see that it loads the camera file whenever it exists. If it does not exist, a default camera is used. After adjusting the camera interactively using the viewer tool you can use the render tool to render the scene via RenderMan which will also use the stored camera setting. - Matthias - |
From: makura <y_m...@ya...> - 2006-12-23 09:16:58
|
Hello, Yes, I can navigate in the scene using the Alt key in combination with the three mouse buttons. after I navigated in the scene using a mouse. then I want to output a position and a target. I want to know a position of a camera. I understand following output. ------------------- # Create a camera... cam1=TargetCamera( name="camera1", pos = (1,7,3), target = (0,0,1) ) target=cam1.target_slot pos=cam1.pos_slot print target print pos ----------------- but I want to know how to output from OpenGLview. For example, it is like AIR_Space of SiTex Graphics. When I turn a camera, AIR_Space change a value of Eye and Target. it shows. I installed PyOpenGL. viewTransformation() gluLookAt() I want some example. Thanks for helping. makura --- Matthias Baas <ba...@ir...> wrote: > makura wrote: > > When I use Viewertool. > > I navigate TargetCamera in scene. > > How can I return position coordinate and target coordinate of > TargetCamera? > > The camera has attributes "pos" and "target" which contain these > values. > > > If I get a position and a target with Viewertool. > > I want to render. > > I'm not sure if I understand what you mean. If you first want to set > up > a camera with the viewer tool and then render with RenderMan then I'd > > recommend to save the camera settings into a file and load that file > in > your main script. > > - Matthias - |
From: Luke T. <luk...@go...> - 2006-12-19 23:54:34
|
Yes the constructors approach would actually be an improvement on the c++ api. For the moment I will wrap what I need as seperate methods then. Thank you. On 19/12/06, Matthias Baas <ba...@ir...> wrote: > > Luke Titley wrote: > > In maya's C++ api it is possible to convert from an MMatrix into an > > MQuaternion by using the MQuaternions overloaded assignment operator. > > I don't think you can do this in python. Is there a work around in Maya > > Python ? I haven't been able to find anything in the documentation. > > So far, the assignment operators are not wrapped because assignment in > Python works differently than in C++. > I think I could either turn them into constructors or wrap them as > methods. Personally, I'd prefer the constructor approach but I still > have to check how easy it is to accomplish this using Py++. > I'll look into it... > > - Matthias - > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > cgkit-user mailing list > cgk...@li... > https://lists.sourceforge.net/lists/listinfo/cgkit-user > |
From: Matthias B. <ba...@ir...> - 2006-12-19 19:32:14
|
makura wrote: > When I use Viewertool. > I navigate TargetCamera in scene. > How can I return position coordinate and target coordinate of TargetCamera? The camera has attributes "pos" and "target" which contain these values. > If I get a position and a target with Viewertool. > I want to render. I'm not sure if I understand what you mean. If you first want to set up a camera with the viewer tool and then render with RenderMan then I'd recommend to save the camera settings into a file and load that file in your main script. - Matthias - |
From: Matthias B. <ba...@ir...> - 2006-12-19 19:26:19
|
Luke Titley wrote: > In maya's C++ api it is possible to convert from an MMatrix into an > MQuaternion by using the MQuaternions overloaded assignment operator. > I don't think you can do this in python. Is there a work around in Maya > Python ? I haven't been able to find anything in the documentation. So far, the assignment operators are not wrapped because assignment in Python works differently than in C++. I think I could either turn them into constructors or wrap them as methods. Personally, I'd prefer the constructor approach but I still have to check how easy it is to accomplish this using Py++. I'll look into it... - Matthias - |
From: makura <y_m...@ya...> - 2006-12-19 03:48:30
|
When I use Viewertool. I navigate TargetCamera in scene. How can I return position coordinate and target coordinate of TargetCamera? If I get a position and a target with Viewertool. I want to render. Any examples will be mostly appreciated. makura |
From: Luke T. <luk...@go...> - 2006-12-17 04:00:54
|
In maya's C++ api it is possible to convert from an MMatrix into an MQuaternion by using the MQuaternions overloaded assignment operator. I don't think you can do this in python. Is there a work around in Maya Python ? I haven't been able to find anything in the documentation. Thanks Luke |
From: Matthias B. <ba...@ir...> - 2006-11-06 16:50:36
|
Tenzin Togden wrote: >>> BOOST_LIB = "/usr/lib/libboost_python.so" >> I'm not sure if 1) specifying an entire path will work and 2) specifying >> the *.so directly will work. > > I did this after build errors with CGKit 2.0.0a6 not finding > boostpython at all any other way, and the same problem with current > CGKit . > > I since tried, for the last 4 hours, to get it to build but it > continually fails to find libboost_python no matter what I do, or it > builds and fails tests if I specify the complete path and name of > libboost_python. This is after adding LIB_DIRS, INC_DIRS and > explicitly giving LD_LIBRARY_PATH. > > After some google, I find some people have also had problems with > libboost_python on SuSE, particularly with linking, and only got past > them by building Boost from scratch. I am currently reading on how to > do this myself and hope this enables a working build of CGKit. Oops. Well, I'm also testing the package on SuSE Linux and haven't had those problems yet. But I was always compiling Boost myself right from the beginning on, so that's probably why I just failed to notice that there is a problem with the libs that are shipped by SuSE. Compiling Boost.Python has been rather straightforward after reading the installation instructions. Here's what I did to compile the library for Python 2.4: setenv PYTHON_VERSION 2.4 tools/build/jam_src/bin.linuxx86/bjam "-sTOOLS=gcc" --prefix=<your_install_dir> --with-python-root=<your_root> install I was using the --with-python-root option because we have Python installed at a non-standard location. If you are only interested in Boost.Python you can also specify the option --with-python which skips all other Boost libs (this saves a lot of time and disk space ;) - Matthias - |
From: Tenzin T. <tt...@gm...> - 2006-11-06 16:03:55
|
Thankyou, > This time it's the Boost.Python library that's missing. ldd should > display a line similar to this: > > libboost_python-gcc-1_33.so.1.33.0 => > /client/lib/libboost_python-gcc-1_33.so.1.33.0 (0xb7928000) > > > ############################################# > > # Boost.Python settings > > ############################################# > > > > # Name of the Boost.Python library to link with > > BOOST_LIB = "/usr/lib/libboost_python.so" > > I'm not sure if 1) specifying an entire path will work and 2) specifying > the *.so directly will work. I did this after build errors with CGKit 2.0.0a6 not finding boostpython at all any other way, and the same problem with current CGKit . I since tried, for the last 4 hours, to get it to build but it continually fails to find libboost_python no matter what I do, or it builds and fails tests if I specify the complete path and name of libboost_python. This is after adding LIB_DIRS, INC_DIRS and explicitly giving LD_LIBRARY_PATH. After some google, I find some people have also had problems with libboost_python on SuSE, particularly with linking, and only got past them by building Boost from scratch. I am currently reading on how to do this myself and hope this enables a working build of CGKit. Thanks again, Tenzin |
From: Matthias B. <ba...@ir...> - 2006-11-06 11:15:51
|
Tenzin Togden wrote: > Thankyou, I did this, and eveything built faster than before, no > errors but on testing and trying viewer.py I got the following : > > tenzin@thinkpad:/>python all.py > Importing test_arrayslots... > Traceback (most recent call last): > File "all.py", line 16, in ? > exec "from %s import *"%modname > File "<string>", line 1, in ? > File "/home/tenzin/code/ray/cgkit/unittests/test_arrayslots.py", line 4, in ? > from cgkit import _core > ImportError: /usr/lib/python2.3/site-packages/cgkit/_core.so: > undefined symbol: _ZN5boost6python6detail13current_scopeE > > [...] > And from ldd I get : > > tenzin@thinkpad:/>ldd /usr/lib/python2.3/site-packages/cgkit/_core.so > linux-gate.so.1 => (0xffffe000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7913000) > libpng.so.3 => /usr/lib/libpng.so.3 (0xb78e5000) > libGL.so.1 => /usr/lib/libGL.so.1 (0xb786a000) > libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb77ee000) > libxerces-c.so.25 => /usr/lib/libxerces-c.so.25 (0xb7467000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb73aa000) > libm.so.6 => /lib/tls/libm.so.6 (0xb7358000) > libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0xb7350000) > libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb733e000) > libc.so.6 => /lib/tls/libc.so.6 (0xb7228000) > libz.so.1 => /usr/lib/libz.so.1 (0xb7216000) > libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0xb7211000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb7203000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7107000) > libdl.so.2 => /lib/libdl.so.2 (0xb7103000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) This time it's the Boost.Python library that's missing. ldd should display a line similar to this: libboost_python-gcc-1_33.so.1.33.0 => /client/lib/libboost_python-gcc-1_33.so.1.33.0 (0xb7928000) > ############################################# > # Boost.Python settings > ############################################# > > # Name of the Boost.Python library to link with > BOOST_LIB = "/usr/lib/libboost_python.so" I'm not sure if 1) specifying an entire path will work and 2) specifying the *.so directly will work. In my case, I was specifying the lib like this: BOOST_LIB = "boost_python-gcc" and adjusted INC_DIRS and LIB_DIRS accordingly. If your versions of boost_python don't contain any version/compiler information, you should be able to get away with the default value of BOOST_LIB (which is "boost_python"). Just make sure the linker will find the library (i.e. add the path to LIB_DIRS if the lib isn't found already). - Matthias - |
From: Tenzin T. <tt...@gm...> - 2006-11-06 08:37:07
|
Hi > CyberX3D uses libjpeg which has to be added to the list of libraries to > link with. So add the following line somewhere into your config.cfg: > > LIBS += ["jpeg", "png"] > > I'd rather recommend to add the header path to the INC_DIRS variable > > inside your config.cfg: > > INC_DIRS += ["<your_path>"] > Thankyou, I did this, and eveything built faster than before, no errors but on testing and trying viewer.py I got the following : tenzin@thinkpad:/>python all.py Importing test_arrayslots... Traceback (most recent call last): File "all.py", line 16, in ? exec "from %s import *"%modname File "<string>", line 1, in ? File "/home/tenzin/code/ray/cgkit/unittests/test_arrayslots.py", line 4, in ? from cgkit import _core ImportError: /usr/lib/python2.3/site-packages/cgkit/_core.so: undefined symbol: _ZN5boost6python6detail13current_scopeE tenzin@thinkpad:/>viewer.py ../../pycgkit/simplescene.py & [1] 27878 tenzin@thinkpad:/>Traceback (most recent call last): File "/usr/bin/viewer.py", line 63, in ? from cgkit.all import * File "/usr/lib/python2.3/site-packages/cgkit/all/__init__.py", line 46, in ? from cgkit import _core ImportError: /usr/lib/python2.3/site-packages/cgkit/_core.so: undefined symbol: _ZN5boost6python6detail13current_scopeE [1]+ Exit 1 viewer.py ../../pycgkit/simplescene.py And from ldd I get : tenzin@thinkpad:/>ldd /usr/lib/python2.3/site-packages/cgkit/_core.so linux-gate.so.1 => (0xffffe000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7913000) libpng.so.3 => /usr/lib/libpng.so.3 (0xb78e5000) libGL.so.1 => /usr/lib/libGL.so.1 (0xb786a000) libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb77ee000) libxerces-c.so.25 => /usr/lib/libxerces-c.so.25 (0xb7467000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb73aa000) libm.so.6 => /lib/tls/libm.so.6 (0xb7358000) libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0xb7350000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb733e000) libc.so.6 => /lib/tls/libc.so.6 (0xb7228000) libz.so.1 => /usr/lib/libz.so.1 (0xb7216000) libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0xb7211000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb7203000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7107000) libdl.so.2 => /lib/libdl.so.2 (0xb7103000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) tenzin@thinkpad:/> >From checkenv I get : tenzin@thinkpad:/>python checkenv.py ---------------------------------------------------------------------- Python 2.3.4 (#1, Dec 17 2004, 19:56:48) [GCC 3.3.4 (pre 3.3.5 20040809)] Platform: linux2 ---------------------------------------------------------------------- Python version: 2.3........... OK PyProtocols................... is installed PyOpenGL...................... is installed PIL........................... is installed pygame........................ is installed PyODE......................... is installed PySerial...................... is installed cgkit (base).................. 2.0.0alpha7 (Nov 06 2006, 07:58) cgkit (C++ lib)............... failed The cgkit supportlib could not be imported. One possible reason for that is that shared libraries (such as the boost_python runtime or OpenGL) could not be found. cgkit (all)................... failed tenzin@thinkpad:/> The config.cfg I use is thus, minus the commented out parts not in use : ############################################# # Boost.Python settings ############################################# # Name of the Boost.Python library to link with BOOST_LIB = "/usr/lib/libboost_python.so" ############################################# # Additional libraries ############################################# LIBS += ["jpeg", "png"] ############################################# # Optional libraries ############################################# ####### Libd3DS ####### LIB3DS_AVAILABLE = True LIB3DS_PATH = "/usr/local/lib" LIB3DS_LIBNAME = "/usr/local/lib/lib3ds.a" ####### CyberX3D ####### CYBERX3D_AVAILABLE = True CYBERX3D_PATH = "/usr/local/lib" INC_DIRS += ["/usr/local/include"] XERCES_PATH = "/usr/lib" What have I missed with libboost_python ? Tenzin |
From: Matthias B. <ba...@ir...> - 2006-11-05 13:53:26
|
Hi, > After building cgkit alpha7 on SuSE Linux 9.2, and it installing OK, > I get the following error while trying a simple tutorial example : > > tenzin@thinkpad:/>viewer.py simplescene.py > Traceback (most recent call last): > File "/usr/bin/viewer.py", line 63, in ? > from cgkit.all import * > File "/usr/lib/python2.3/site-packages/cgkit/all/__init__.py", line 46, in ? > from cgkit import _core > ImportError: /usr/lib/python2.3/site-packages/cgkit/_core.so: > undefined symbol: jpeg_std_error CyberX3D uses libjpeg which has to be added to the list of libraries to link with. So add the following line somewhere into your config.cfg: LIBS += ["jpeg", "png"] > I checked the dependencies fully, and built cgkit with cyberx3d and > lib3ds enabled, and worked out I had to copy cybergarage to include > and src as well as just building it ( it might be a good idea to > include this in the readme for installing, not everyone would work > this out and I'm not a developer, I was just guessing based on > compiler errors :). You mean you had to copy the CyberX3D headers? I'd rather recommend to add the header path to the INC_DIRS variable inside your config.cfg: INC_DIRS += ["<your_path>"] You might also have to adjust LIB_DIRS so that the linker finds the libraries. - Matthias - |
From: Tenzin T. <tt...@gm...> - 2006-11-01 17:42:55
|
Why didn't I think of ldd ? :) tenzin@thinkpad:/>ldd /usr/lib/python2.3/site-packages/cgkit/_core.so linux-gate.so.1 => (0xffffe000) libGL.so.1 => /usr/lib/libGL.so.1 (0xb78b7000) libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb783b000) libxerces-c.so.25 => /usr/lib/libxerces-c.so.25 (0xb74b5000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb73f8000) libm.so.6 => /lib/tls/libm.so.6 (0xb73a5000) libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0xb739d000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb738b000) libc.so.6 => /lib/tls/libc.so.6 (0xb7275000) libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0xb7270000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb7262000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7165000) libdl.so.2 => /lib/libdl.so.2 (0xb7161000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) Libjpeg is installed, both 6 and 62, as well as the development headers etc Tenzin |
From: Chris B. <chr...@gm...> - 2006-11-01 10:20:38
|
On 31/10/06, Tenzin Togden <tt...@gm...> wrote: > > Everything built and installed fine but fails unittests, all on import > core due to the same undefined symbol: jpeg_std_error. jpeg_std_error is defined in libjpeg. Is it installed? What does ldd /usr/lib/python2.3/site-packages/cgkit/_core.so show? |
From: Tenzin T. <tt...@gm...> - 2006-10-31 23:05:45
|
Hello, First, thankyou for an excellent and important framework, and the hard work you put into it. After building cgkit alpha7 on SuSE Linux 9.2, and it installing OK, I get the following error while trying a simple tutorial example : tenzin@thinkpad:/>viewer.py simplescene.py Traceback (most recent call last): File "/usr/bin/viewer.py", line 63, in ? from cgkit.all import * File "/usr/lib/python2.3/site-packages/cgkit/all/__init__.py", line 46, in ? from cgkit import _core ImportError: /usr/lib/python2.3/site-packages/cgkit/_core.so: undefined symbol: jpeg_std_error tenzin@thinkpad:/> and tenzin@thinkpad:/>render.py simplescene.py Traceback (most recent call last): File "/usr/bin/render.py", line 41, in ? from cgkit.ri import * File "/usr/lib/python2.3/site-packages/cgkit/ri.py", line 79, in ? from cgtypes import vec3 as _vec3 File "/usr/lib/python2.3/site-packages/cgkit/cgtypes.py", line 59, in ? import _core ImportError: /usr/lib/python2.3/site-packages/cgkit/_core.so: undefined symbol: jpeg_std_error tenzin@thinkpad:/> I checked the dependencies fully, and built cgkit with cyberx3d and lib3ds enabled, and worked out I had to copy cybergarage to include and src as well as just building it ( it might be a good idea to include this in the readme for installing, not everyone would work this out and I'm not a developer, I was just guessing based on compiler errors :). Everything built and installed fine but fails unittests, all on import core due to the same undefined symbol: jpeg_std_error. What can I do ? Tenzin. |
From: Tenzin T. <tt...@gm...> - 2006-10-31 20:46:46
|
Hello, First, thankyou for an excellent and important framework, and the hard work you put into it. After building cgkit alpha7 on SuSE Linux 9.2, and it installing OK, I get the following error while trying a simple tutorial example : tenzin@thinkpad:/>viewer.py simplescene.py Traceback (most recent call last): File "/usr/bin/viewer.py", line 63, in ? from cgkit.all import * File "/usr/lib/python2.3/site-packages/cgkit/all/__init__.py", line 46, in ? from cgkit import _core ImportError: /usr/lib/python2.3/site-packages/cgkit/_core.so: undefined symbol: jpeg_std_error tenzin@thinkpad:/> and tenzin@thinkpad:/>render.py simplescene.py Traceback (most recent call last): File "/usr/bin/render.py", line 41, in ? from cgkit.ri import * File "/usr/lib/python2.3/site-packages/cgkit/ri.py", line 79, in ? from cgtypes import vec3 as _vec3 File "/usr/lib/python2.3/site-packages/cgkit/cgtypes.py", line 59, in ? import _core ImportError: /usr/lib/python2.3/site-packages/cgkit/_core.so: undefined symbol: jpeg_std_error tenzin@thinkpad:/> I checked the dependencies fully, and built cgkit with cyberx3d and lib3ds enabled, and worked out I had to copy cybergarage to include and src as well as just building it ( it might be a good idea to include this in the readme for installing, not everyone would work this out and I'm not a developer, I was just guessing based on compiler errors :). Everything built and installed fine but fails unittests, all on import core due to the same undefined symbol: jpeg_std_error. What can I do ? Tenzin. |
From: Matthias B. <ba...@ir...> - 2006-10-10 11:02:09
|
Hi, I've just released cgkit alpha7 and Python/Maya 0.9.3. Most of the work went into the Python/Maya package which has a lot of improvements (see the changelog of the respective package). cgkit has a new (or rather extended) license. It uses now a MPL/GPL/LGPL tri-license instead of just being LGPL. The Python/Maya package is licensed under the MPL. I've also updated the web site layout and split the page into several parts. - Matthias - |
From: Matthias B. <ba...@ir...> - 2006-08-30 08:51:29
|
TAKATA Toshinori wrote: > I am trying to build MayaPython plugin for maya 6.5 on WindowsXP. > > RuntimeError: gccxml_path("") should exists or to be a valid file name. Py++ checks if it can find the gccxml executable. This check has failed. You either have to add the path to gccxml to your PATH variable so that you can simply invoke "gccxml" in your command line without getting an error or you have to modify the script pypp_setup.py and add the argument gccxmlPath="...your path..." to the constructor of the ModuleBuilder class (just search for "ModuleBuilder"). But you will encounter at least two more problems: - I have created the bindings for Maya 7. The API in Maya 6.5 is slightly different, so the setup script to generate the bindings source code won't run out of the box. In the current svn version I have already split the version dependent parts into a separate config file. - So far, I haven't been able to generate the bindings source code on Windows. I couldn't get gccxml to read all headers (Maya headers and MSVC headers) without producing errors. Instead, I'm creating them on Linux and use those sources for Windows as well. If you find a way to get gccxml to read all required headers on Windows, I'd definitely love to hear about it. - Matthias - |
From: TAKATA T. <ta...@bk...> - 2006-08-30 06:06:27
|
Hello, I am trying to build MayaPython plugin for maya 6.5 on WindowsXP. I have installed gccxml, pygccxml, pyplusplus, pypp_api. And I edited pypp_setup.py as follows. line 22: - mayaincpath = "/usr/aw/maya7.0/include" + mayaincpath = "f:/apps/Alias/Maya6.5/include" line 523: - defines = ["_BOOL", "LINUX", "MNoVersionString", "REQUIRE_IOSTREAM"], + defines = ["_BOOL", "WINDOWS", "MNoVersionString", "REQUIRE_IOSTREAM"], And I get the following errors. >python pypp_setup.py 237 classes Creating "src_aux/creatorfuncs.cpp.h"... Initialized module. Parsing headers: ['maya_sdk.h'] Using directory cache in 'cache' ['maya_sdk.h'] Traceback (most recent call last): File "pypp_setup.py", line 540, in ? root = mod.parse() File "C:\Python24\lib\site-packages\pypp_api\modulebuilder.py", line 231, in parse parser.project_reader.COMPILATION_MODE.FILE_BY_FILE) File "C:\Python24\Lib\site-packages\pygccxml\parser\project_reader.py", line 225, in read_files return self.__parse_file_by_file(files) File "C:\Python24\Lib\site-packages\pygccxml\parser\project_reader.py", line 246, in __parse_file_by_file , self.__decl_factory ) File "C:\Python24\Lib\site-packages\pygccxml\parser\source_reader.py", line 84, in __init__ self.__raise_on_wrong_settings() File "C:\Python24\Lib\site-packages\pygccxml\parser\source_reader.py", line 111, in __raise_on_wrong_settings raise RuntimeError( msg ) RuntimeError: gccxml_path("") should exists or to be a valid file name. Thank you in advance for taking the time to read this and to help me with this. -- TAKATA Toshinori mailto:ta...@bk... |
From: TAKATA T. <ta...@bk...> - 2006-08-28 10:27:54
|
Hi, Matthias It Works. Thank you! > TAKATA Toshinori wrote: > > ImportError: No module named protocols > > Some parts of cgkit depend on third-party packages. One such package is > PyProtocols which you can get here: > http://peak.telecommunity.com/PyProtocols.html > > See the following page from the manual for a complete list of potential > dependencies: http://cgkit.sourceforge.net/doc2/externaldeps.html > > - Matthias - -- TAKATA Toshinori mailto:ta...@bk... |
From: Matthias B. <ba...@ir...> - 2006-08-28 09:52:05
|
TAKATA Toshinori wrote: > ImportError: No module named protocols Some parts of cgkit depend on third-party packages. One such package is PyProtocols which you can get here: http://peak.telecommunity.com/PyProtocols.html See the following page from the manual for a complete list of potential dependencies: http://cgkit.sourceforge.net/doc2/externaldeps.html - Matthias - |