| Prochaine révisionLes deux révisions suivantes |
compil_pyml [2008/03/07 17:14] – créée gerard | compil_pyml [2008/03/21 23:12] – gerard |
---|
PyML -0.6.15 ne compile pas sous Solaris 10 avec la comande classique: | PyML -0.6.15 ne compile pas sous Solaris 10 avec la commande classique: |
<code> | <code> |
python setup build | python setup build |
</code> | </code> |
peut etre lié à ce [[http://opensolaris.org/jive/thread.jspa?threadID=8179&tstart=135|probleme]] | peut etre lié à ce [[http://opensolaris.org/jive/thread.jspa?threadID=8179&tstart=135|probleme]] |
| |
| ====== hack dans le script setup.py ====== |
| trouvé par N. Ollinger, permet d'avancer dans la compilation, mais maintenant, c'est un flag à l'édition de liens qui manque. De plus, il a fallu modifier un fichier à cause de hash_map |
| <code> |
| > python setup.py build --debug |
| running build |
| running build_py |
| running build_ext |
| building 'PyML/ext/_mylibsvm' extension |
| C compiler: /usr/lib/python2.4/pyCC |
| |
| compile options: '-g -I/usr/include/python2.4 -c' |
| pyCC: PyML/ext/mylibsvm_wrap.cpp |
| "PyML/ext/SparseDataSet.h", line 14: Error: Could not open include file<hash_map>. |
| "PyML/ext/SparseDataSet.h", line 27: Error: hash_map is not a member of std. |
| "PyML/ext/SparseDataSet.h", line 44: Error: A class template name was expected instead of hash_map. |
| 3 Error(s) detected. |
| "PyML/ext/SparseDataSet.h", line 14: Error: Could not open include file<hash_map>. |
| "PyML/ext/SparseDataSet.h", line 27: Error: hash_map is not a member of std. |
| "PyML/ext/SparseDataSet.h", line 44: Error: A class template name was expected instead of hash_map. |
| 3 Error(s) detected. |
| error: Command "/usr/lib/python2.4/pyCC -g -I/usr/include/python2.4 -c PyML/ext/mylibsvm_wrap.cpp -o build/temp.solaris-2.10-i86pc-2.4/PyML/ext/mylibsvm_wrap.o" failed with exit status 3 |
| </code> |
| Pour hash_map, il faut linker avec "-library=stlport4", mais impossible de lui faire rajouter cet argument!? |
| |
| ====== références ====== |
| * http://forum.java.sun.com/thread.jspa?threadID=5097023&messageID=9382032 |
| * http://www.python.org/doc/2.4.4/inst/tweak-flags.html |
| * |
| |