From: Mathieu M. <mat...@gm...> - 2008-06-17 14:46:00
|
FYI ---------- Forwarded message ---------- From: oukaci <ou...@te...> Date: Tue, Jun 17, 2008 at 4:45 PM Subject: Re: help To: Mathieu Malaterre <mat...@gm...> thank you ,gdcm run on my system , it's good !! On Tue, 17 Jun 2008 16:20:23 +0200, "Mathieu Malaterre" <mat...@gm...> wrote: > Hi oukaci, > > Thanks, I saw you took good note about my advice to send your > question directly to the list instead of personal email. :-P > > Sorry I forgot that by default python wrapping is not activated , simply > type: > > $ cd ~/gdcm-bin > $ make edit_cache > ... in the interface change GDCM_WRAP_PYTHON from OFF to ON.. > $ make > > You should be all set > > -Mathieu > Ps: You might have also to turn GDCM_BUILD_SHARED_LIBS to ON on some > sytem (this is BTW a better default in your case anyway). > > On Tue, Jun 17, 2008 at 4:05 PM, oukaci <ou...@te...> > wrote: >> there is the result >> >> oukaci@adesmia:~$ cd gdcm-bin >> oukaci@adesmia:~/gdcm-bin$ ls >> CMake CPackSourceConfig.cmake GDCMBuildSettings.cmake >> Source bin >> CMakeCache.txt CTestCustom.cmake GDCMConfig.cmake >> Testing cmake_install.cmake >> CMakeFiles DartConfiguration.tcl GDCMLibraryDepends.cmake >> Utilities >> CPackConfig.cmake DartTestfile.txt Makefile >> Wrapping >> >> >> oukaci@adesmia:~/gdcm-bin$ cd bin >> oukaci@adesmia:~/gdcm-bin/bin$ ls >> gdcmCommonTests gdcmIODTests libgdcmDICT.a libgdcmMSFF.a >> libgdcmjpeg16.a libgdcmopenjpeg.a >> gdcmDICTTests gdcmMSFFTests libgdcmDSED.a libgdcmexpat.a >> libgdcmjpeg8.a libgdcmuuid.a >> gdcmDSEDTests libgdcmCommon.a libgdcmIOD.a libgdcmjpeg12.a >> libgdcmmd5.a libgdcmzlib.a >> oukaci@adesmia:~/gdcm-bin/bin$ >> >> >> i don't find gdcm.py _gdcm.so in bin ? >> >> >> >> On Tue, 17 Jun 2008 15:36:04 +0200, "Mathieu Malaterre" >> <mat...@gm...> wrote: >>> On Tue, Jun 17, 2008 at 3:31 PM, Mathieu Malaterre >>> <mat...@gm...> wrote: >>>> oukaci, >>>> >>>> Could you please CC the ML instead of direct mail, I'd appreciate :) >>>> >>>> On Tue, Jun 17, 2008 at 3:13 PM, oukaci <ou...@te...> >>> wrote: >>>>> oukaci@adesmia:~$ export >>>>> PYTHONPATH=GDCM-2.0.5-Linux-i686/lib/python2.4/site-packages/gdcm-2.0 >>>>> oukaci@adesmia:~$ export LD_LIBRARY_PATH=GDCM-2.0.5-Linux-i686/lib/ >>>> >>>> You need to check with your admin system but I believe that >>>> PYTHONPATH/LD_LIBRARY_PATH are fullpath, do not use relative path, >>>> thanks. >>>> >>>> >>>>> oukaci@adesmia:~$ python >>>>> Python 2.4.4 (#2, Apr 15 2008, 23:43:20) >>>>> [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 >>>>> Type "help", "copyright", "credits" or "license" for more > information. >>>>>>>> import gdcm >>>>> Traceback (most recent call last): >>>>> File "<stdin>", line 1, in ? >>>>> File >>>>> >>> >> > "/amd/mahe/home/oukaci/GDCM-2.0.5-Linux-i686/lib/python2.4/site-packages/gdcm-2.0/gdcm.py", >>>>> line 11, in ? >>>>> import _gdcm >>>>> ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not > found >>>>> (required by >>>>> >>> >> > /amd/mahe/home/oukaci/GDCM-2.0.5-Linux-i686/lib/python2.4/site-packages/gdcm-2.0/_gdcm.so) >>>>>>>> >>>> >>>> Bad luck :) >>>> you are using a system slightly older than the one I was using, and >>>> gcc is not forward compatible (yes forward). Which means that anything >>>> build on any newer glibc system is not garanteed to be compatible in >>>> an older system (the contrary is true though) >>>> >>>> I used a very early gcc 4.0 release, so you are using someting even >>>> older and I am not sure the ABI are compatible. Are you using gcc 3.4 >>>> or something like that ? If so you need to compile gdcm yourself :( >>>> >>>> The (minimal) compilation steps are also described in the very same >>>> email I previsouly sent you: >>>> >>>> >>> >> > http://sourceforge.net/mailarchive/message.php?msg_id=bf0c3b3f0806100759l49c6708arbe1ded97a8a92cc8%40mail.gmail.com >>> >>> >>> ooops...nevermind I must have sent it another time (cannot find it). >>> >>> But basically this is simply a matter of doing: >>> >>> cd /tmp >>> svn co https://gdcm.svn.sourceforge.net/svnroot/gdcm/branches/gdcm-2-0 >>> mkdir gdcm-bin >>> cd gdcm-bin >>> cmake ../gdcm-2-0 >>> make >>> >>> you'll find the gdcm.py and _gdcm.so in /tmp/gdcm-bin/bin, which will >>> be the path you need to pass to PYTHONPATH / LD_LIBRARY_PATH >>> >>> Hope this is clear enough. >>> >>> Let me know if you have any further questions, >>> -- >>> Mathieu >>> Ps: you need at least a cmake 2.4.5 version on your system anything >>> older has not been tested extensively. >> >> > > > > -- > Mathieu -- Mathieu |