Advertisement
biochem_fan

Cuemol2 build @ Ubuntu amd64

Oct 24th, 2011
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. Cuemol2 2.0.1.161 を Ubuntu 10.04 (amd64) でビルドしたときの手順
  2.  
  3. 1. ライブラリ
  4.  
  5. libtool, libboost-all-dev, libcgal-dev, libfftw3-dev, bison を apt-get で入れる
  6.  
  7. 2. xulrunner
  8.  
  9. apt-get で入るバージョンでは不可。
  10. http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/6.0/sdk/xulrunner-6.0.en-US.linux-x86_64.sdk.tar.bz2
  11. を適当な場所に展開
  12.  
  13. 3. uxbuild/uxbuild.sh を編集
  14.  
  15. まず、$gecko_sdk_dir を修正。
  16.  
  17. ./configure に与える引数を調節。
  18. CFLAGS="-fPIC -DPIC" CXXFLAGS="-fPIC -DPIC" $config_scr \
  19. --prefix=$install_dir \
  20. --with-xulrunner-sdk=$gecko_sdk_dir \
  21. $debug \
  22. --enable-xpcom
  23. (amd64 環境では、 Position Independent Code じゃないとライブラリとの
  24. リンクに失敗するため)
  25.  
  26. 4. src/modules/surface/BALL/common.h の修正
  27.  
  28. 64 ビット環境なので、ポインタサイズも64ビット。
  29. #define BALL_POINTERSIZEUINT_TYPE unsigned int を
  30. #define BALL_POINTERSIZEUINT_TYPE unsigned long long へ変更
  31.  
  32. 5. コンパイル
  33.  
  34. sh uxbuild.sh
  35. make
  36. make install
  37.  
  38. 6. chrome.manifest の修正
  39.  
  40. src/xul_gui/chrome.manifest の
  41. binary-component components/libxpcqm.so.0.0.0 ABI=Linux_x86-gcc3 を
  42. binary-component components/libxpcqm.so.0.0.0 ABI=Linux_x86_64-gcc3 へ
  43.  
  44. 7. 実行
  45.  
  46. xulrunner application.ini
  47.  
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement