Forums : XPCom

Aller à la discussion :  Plus récente Plus ancienne

# Problème d'installation PyXPCOM

Envoyé par : Utilisateur anonyme

Date : 01/03/2006 20:22

Bonjour !

Je souhaite installer PyXPCOM pour firefox sous WindowsXP. J'ai donc rajouté --enable-extentions=python/xpcom dans le .mozconfig

J'obtient l'erreur suivante :

make[5]: Entering directory `/cygdrive/c/mozilla/mozilla/ff-py/extensions/python
/xpcom/src'
rm -f _xpcom.pyd
/cygdrive/c/mozilla/mozilla/build/cygwin-wrapper g++ -mno-cygwin -shared -Wl,--o
ut-implib -Wl,_xpcom.lib -o _xpcom.pyd  ErrorUtils.o PyGBase.o PyGModule.o PyGSt
ub.o PyGInputStream.o PyGWeakReference.o PyIClassInfo.o PyIComponentManager.o Py
IComponentManagerObsolete.o PyIInputStream.o PyIEnumerator.o PyIID.o PyIInterfac
eInfo.o PyIInterfaceInfoManager.o PyISimpleEnumerator.o PyISupports.o PyIVariant
.o Pyxpt_info.o TypeObject.o VariantUtils.o dllmain.o xpcom.o   ./module.res
-L../../../../dist/lib -lxpcom -lxpcom_core -L../../../../dist/bin -L../../../..
/dist/lib -lnspr4 -lplc4 -lplds4 -lm  "/libpath:c:/Python24/PCBuild" "/libpath:c
:/Python24/libs"
g++: /libpath:c:/Python24/PCBuild: No such file or directory
g++: /libpath:c:/Python24/libs: No such file or directory
make[5]: *** [_xpcom.pyd] Error 1

le repertoire PCBuild n'existe pas, il n'existe que dans les sources de python (pourquoi devrait-on en avoir besoin???). Le repertoire libs par contre existe.

Le "No such file or directory" n'est donc pas vrai, g++ considère donc que c'est "/libpath:c:/Python24/libs" qui n'est pas un repertoire. (Ce qui va de soi...)

C'est 2 options sont définies dans mon autoconf.mk :

#python options
PYTHON = c:/Python24/python
PYTHON_PREFIX = c:/Python24
PYTHON_INCLUDES = "-Ic:/Python24/include" "-Ic:/Python24/PC"
PYTHON_LIBS = "/libpath:c:/Python24/PCBuild" "/libpath:c:/Python24/libs" 
PYTHON_DEBUG_SUFFIX = 
PYTHON_DLL_SUFFIX = .pyd
PYTHON_VER_DOTTED = 2.4
PYTHON_VER = 24

Y a-t-il quelqu'un qui peut me dire où est le problème ?

Erwan

# Re: Problème d'installation PyXPCOM

Envoyé par : Utilisateur anonyme

Date : 01/03/2006 21:59

Je précise également que lorsque je commente PYTHON_LIBS, j'ai un grand nombre de undefined reference to '_imp__PyBLABLA' :

Creating library file: _xpcom.lib
ErrorUtils.o:ErrorUtils.cpp:(.text+0x1ad): undefined reference to `_imp__PyErr_Fetch'
ErrorUtils.o:ErrorUtils.cpp:(.text+0x1d1): undefined reference to `_imp__PyErr_NormalizeException'
ErrorUtils.o:ErrorUtils.cpp:(.text+0x28b): undefined reference to `_imp__PyMem_Free'
ErrorUtils.o:ErrorUtils.cpp:(.text+0x297): undefined reference to `_imp__PyObject_Str'
ErrorUtils.o:ErrorUtils.cpp:(.text+0x2a9): undefined reference to `_imp__PyString_AsString'
ErrorUtils.o:ErrorUtils.cpp:(.text+0x333): undefined reference to `_imp__PyObject_Str'
ErrorUtils.o:ErrorUtils.cpp:(.text+0x342): undefined reference to `_imp__PyString_AsString'
ErrorUtils.o:ErrorUtils.cpp:(.text+0x3ec): undefined reference to `_imp__PyErr_Restore'
etc.....

.. ??

# Re: Problème d'installation PyXPCOM

Envoyé par : laurentj

Date : 02/03/2006 12:01

Il me semble que tu as une erreur dans ton mozconfig. c'est ça qu'il faut spécifier :

--enable-extensions=default,python

# Re: Problème d'installation PyXPCOM

Envoyé par : Utilisateur anonyme

Date : 02/03/2006 21:11

Hum, visiblement, --enable-extensions=python est rendu possible uniquement si on applique un patch spécifique https://bugzilla.mozilla.org/show_bug.cg(..) qui permet à la compilation d'ajouter toutes les extensions relatives au python. Moi je veux juste xpcom.

Le problème se situe vraiment à la fin de la compilation de l'extension...

Il n'est plus possible de poster des messages dans ce forum.


Copyright © 2003-2013 association xulfr, 2013-2016 Laurent Jouanneau - Informations légales.

Mozilla® est une marque déposée de la fondation Mozilla.
Mozilla.org™, Firefox™, Thunderbird™, Mozilla Suite™ et XUL™ sont des marques de la fondation Mozilla.