[Dcmlib] [Gdcm2] CMake : Cross compile

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Jul 18 12:17:14 CEST 2007


Just to let you know that I was able to cross compile gdcm2 with CMake
CVS ! CMake really rocks !

The only issue right now is that I boostrap some executable to
generate code, so right now there is no way to say 'hey use wine
before executing this rule'.


  ~/Projects/CMake-gcc/bin/cmake
-DCMAKE_TOOLCHAIN_FILE=$HOME/Projects/CrossCompile/toolchain.cmake
-DGDCM_WORDS_BIGENDIAN:INTERNAL=0 ..
  make -j4
  cd /home/mmalaterre/Projects/gdcm/cross/Source/DataDictionary &&
wine ../../bin/PrepGroupName.exe
/home/mmalaterre/Projects/gdcm/Source/DataDictionary/GroupName.dic
/home/mmalaterre/Projects/gdcm/cross/Source/DataDictionary/gdcmDefaultGroupNames.cxx
  cd /home/mmalaterre/Projects/gdcm/cross/Source/DataDictionary &&
../../bin/PrepDict.exe
/home/mmalaterre/Projects/gdcm/Source/DataDictionary/DICOMV3.dic
/home/mmalaterre/Projects/gdcm/cross/Source/DataDictionary/gdcmDICOMV3.cxx
DICOMV3
  cd /home/mmalaterre/Projects/gdcm/cross/Source/DataDictionary &&
wine ../../bin/PrepDict.exe
/home/mmalaterre/Projects/gdcm/Source/DataDictionary/DICOMV3.dic
/home/mmalaterre/Projects/gdcm/cross/Source/DataDictionary/gdcmDICOMV3.cxx
DICOMV3
  cd /home/mmalaterre/Projects/gdcm/cross/Source/DataDictionary &&
wine ../../bin/PrepDict.exe
/home/mmalaterre/Projects/gdcm/Source/DataDictionary/NIH.dic
/home/mmalaterre/Projects/gdcm/cross/Source/DataDictionary/gdcmNIH.cxx
NIH
  cd /home/mmalaterre/Projects/gdcm/cross/Source/DataDictionary &&
wine ../../bin/PrepDict.exe
/home/mmalaterre/Projects/gdcm/Source/DataDictionary/SPI.dic
/home/mmalaterre/Projects/gdcm/cross/Source/DataDictionary/gdcmSPI.cxx
SPI
  make -j4
  wine ./bin/gdcmdump.exe -i ~/Creatis/gdcmData/test.acr



Nice !

-- 
Mathieu

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Gdcm-developers mailing list
Gdcm-developers at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gdcm-developers



More information about the Dcmlib mailing list