Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révisionLes deux révisions suivantes | ||
boost [2008/07/03 20:03] – gerard | boost [2008/07/09 17:29] – gerard | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Compilation ====== | ====== Compilation ====== | ||
+ | ===== Sun Studio 12 ===== | ||
+ | |||
archive boost_1_34_1 dans / | archive boost_1_34_1 dans / | ||
\\ | \\ | ||
Ligne 33: | Ligne 35: | ||
environ 2 heures de compil! | environ 2 heures de compil! | ||
+ | |||
+ | |||
===== Tests ===== | ===== Tests ===== | ||
avec l' | avec l' | ||
< | < | ||
- | > CC -I / | + | nemo-henry% |
</ | </ | ||
+ | :!: Ne pas oublier **-library=stlport4** | ||
puis: | puis: | ||
< | < | ||
- | > ldd example2 | + | nemo-henry% |
- | libboost_regex-sw-mt-d-1_34_1.so.1.34.1 => (file not found) | + | libboost_regex-sw-mt-d-1_34_1.so.1.34.1 => / |
- | | + | |
- | libCrun.so.1 => / | + | |
- | libm.so.2 => | + | |
- | libc.so.1 => | + | libm.so.2 => |
+ | libc.so.1 => | ||
+ | libm.so.1 => / | ||
+ | libaio.so.1 => / | ||
+ | libmd.so.1 => / | ||
+ | |||
+ | nemo-henry% ./example2 < jayne.txt | ||
+ | Will Success Spoil Rock Hunter? | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Gcc ===== | ||
+ | * il faut python > 2.3, donc mettre /usr/bin avant / | ||
+ | * il faut utiliser le linker gnu et pas celui de Sun [[http:// | ||
+ | |||
+ | < | ||
+ | > pwd | ||
+ | / | ||
+ | > setenv PATH / | ||
+ | > ./configure --prefix=/ | ||
+ | > vi user-config.jam | ||
+ | > make install | & tee INSTALL.LOG | ||
+ | |||
+ | </ | ||
+ | |||
+ | Ensuite, on teste l' | ||
+ | < | ||
+ | nemo-henry% g++ -I/ | ||
+ | nemo-henry% ./example2 < jayne.txt | ||
+ | Will Success Spoil Rock Hunter? | ||
+ | </ | ||
+ | |||
+ | Dans le INSTALL.LOG, | ||
+ | < | ||
+ | ...failed updating 176 targets... | ||
+ | ...skipped 32 targets... | ||
+ | ...updated 5600 targets... | ||
+ | Not all Boost libraries built properly. | ||
+ | </ | ||
+ | par exemple: | ||
+ | < | ||
+ | gcc.compile.c++ bin.v2/ | ||
+ | .o | ||
+ | In file included from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from ./ | ||
+ | from libs/ | ||
+ | ./ | ||
+ | ./ | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | FIXME le problème vient de python, ou de la version du compilateur? | ||
+ | |||
+ | |||
+ | ====== boost 1_35_0 ====== | ||
+ | < | ||
+ | > setenv PATH / | ||
+ | > ./configure --prefix=/ | ||
+ | tools/ | ||
+ | -n Detecting Python version... | ||
+ | 2.5 | ||
+ | -n Detecting Python root... | ||
+ | /opt/csw | ||
+ | -n Unicode/ICU support for Boost.Regex? | ||
+ | /usr | ||
+ | Backing up existing Boost.Build configuration in user-config.jam.2 | ||
+ | Generating Boost.Build configuration in user-config.jam... | ||
+ | Generating Makefile... | ||
+ | > | ||
+ | > make install | & tee INSTALL.LOG | ||
+ | ... | ||
+ | ...failed updating 35 targets... | ||
+ | ...skipped 36 targets... | ||
+ | ...updated 5779 targets... | ||
+ | Not all Boost libraries built properly. | ||
+ | </ | ||
+ | |||
+ | cette fois ci, les erreurs sont de la forme: | ||
+ | < | ||
+ | gcc.link.dll bin.v2/ | ||
+ | ld: fatal: relocation error: file: bin.v2/ | ||
+ | collect2: ld returned 1 exit status | ||
</ | </ | ||
- | le nom de la librairie cherchée est vraiment bizarre?! | + | mais comme l' |