Hi all,
I am puzzled. I am trying to build wxPython from its source code using MSW 7.1, and I do follow the instructions of Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub but the link stage fails, with unresolved symbols
My command line to build the (bundled with the wxPython source) wxWidgets release is :
nmake -f makefile.vc OFFICIAL_BUILD=1 SHARED=1 MONOLITHIC=1 USE_OPENGL=1 DEBUG_FLAG=1 CXXFLAGS=/D__NO_VC_CRTDBG__ WXDEBUGFLAG=h BUILD=release UNICODE=1 MSLU=1
which works great (no error), creating the "hybrid" unicode library.
Then I try to build wxPython with this commad line :
python setup.pybuild_ext --inplace MONOLITHIC=1 UNICODE=1 HYBRID=1
.. and the linker complains, as it can't find 16 symbols.
Any idea why ??
Trying to use non Unicode, or Debug, or release builds don't help, I get different unresolved sumbols...
Thanks in advance for your help.
Sylvain
Log for the wxPython linking phase:
···
---------------------------------------------------------------------------
Création de la bibliothèque build.unicode\temp.win32-2.4\Release\src\_core_.l
ib et de l'objet build.unicode\temp.win32-2.4\Release\src\_core_.exp
helpers.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) v
oid __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wx
Assert@@YAXHPBDH00@Z) référencé dans la fonction "public: void __thiscall wxMemo
ryBuffer::SetDataLen(unsigned int)" (?SetDataLen@wxMemoryBuffer@@QAEXI@Z)
_core_wrap.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport
) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_
?wxAssert@@YAXHPBDH00@Z) référencé dans la fonction _init_core_
helpers.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) p
ublic: int __thiscall wxString::Cmp(char const *)const " (__imp_?Cmp@wxString@@Q
BEHPBD@Z) référencé dans la fonction "bool __cdecl operator==(class wxString con
st &,char const *)" (??8@YA_NABVwxString@@PBD@Z)
helpers.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) p
ublic: __thiscall wxString::wxString(char const *)" (__imp_??0wxString@@QAE@PBD@
Z) référencé dans la fonction "public: static class wxString __cdecl wxPyApp::Ge
tMacHelpMenuTitleName(void)" (?GetMacHelpMenuTitleName@wxPyApp@@SA?AVwxString@@X
Z)
_core_wrap.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport
) public: __thiscall wxString::wxString(char const *)" (__imp_??0wxString@@QAE@P
BD@Z) référencé dans la fonction _init_core_
helpers.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) c
har const * const wxEmptyString" (__imp_?wxEmptyString@@3PBDB) référencé dans la
fonction "public: static class wxString __cdecl wxPyApp::GetMacHelpMenuTitleNam
e(void)" (?GetMacHelpMenuTitleName@wxPyApp@@SA?AVwxString@@XZ)
_core_wrap.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport
) char const * const wxEmptyString" (__imp_?wxEmptyString@@3PBDB) référencé dans
la fonction _init_core_
helpers.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) p
rotected: void __thiscall wxStringBase::InitWith(char const *,unsigned int,unsig
ned int)" (__imp_?InitWith@wxStringBase@@IAEXPBDII@Z) référencé dans la fonction
"class wxString * __cdecl wxString_in_helper(struct _object *)" (?wxString_in_h
elper@@YAPAVwxString@@PAU_object@@@Z)
helpers.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) p
ublic: char __thiscall wxString::GetChar(unsigned int)const " (__imp_?GetChar@wx
String@@QBEDI@Z) référencé dans la fonction "bool __cdecl wxColour_helper(struct
_object *,class wxColour * *)" (?wxColour_helper@@YA_NPAU_object@@PAPAVwxColour
@@@Z)
helpers.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) p
ublic: int __cdecl wxString::Printf(char const *,...)" (__imp_?Printf@wxString@@
QAAHPBDZZ) référencé dans la fonction "bool __cdecl wxPyTwoIntItem_helper<class
(struct _object *,class wxSize * *,char const *)"
(??$wxPyTwoIntItem_help
er@VwxSize@@@@YA_NPAU_object@@PAPAVwxSize@@PBD@Z)
_core_wrap.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport
) public: int __cdecl wxString::Printf(char const *,...)" (__imp_?Printf@wxStrin
g@@QAAHPBDZZ)
helpers.obj : error LNK2001: symbole externe non résolu "public: virtual bool __
thiscall wxApp::Initialize(int &,char * *)" (?Initialize@wxApp@@UAE_NAAHPAPAD@Z)
helpers.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) p
ublic: virtual void __thiscall wxAppConsole::OnAssert(char const *,int,char cons
t *,char const *)" (__imp_?OnAssert@wxAppConsole@@UAEXPBDH00@Z) référencé dans l
a fonction "public: virtual void __thiscall wxPyApp::OnAssert(char const *,int,c
har const *,char const *)" (?OnAssert@wxPyApp@@UAEXPBDH00@Z)
helpers.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) v
oid __cdecl wxLogDebug(char const *,...)" (__imp_?wxLogDebug@@YAXPBDZZ) référenc
é dans la fonction "public: virtual void __thiscall wxPyApp::OnAssert(char const
*,int,char const *,char const *)" (?OnAssert@wxPyApp@@UAEXPBDH00@Z)
helpers.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) p
ublic: class wxString & __thiscall wxString::operator+=(char const *)" (__imp_??
YwxString@@QAEAAV0@PBD@Z) référencé dans la fonction "public: virtual void __thi
scall wxPyApp::OnAssert(char const *,int,char const *,char const *)" (?OnAssert@
wxPyApp@@UAEXPBDH00@Z)
helpers.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) p
ublic: class wxStringBase & __thiscall wxStringBase::operator=(char const *)" (_
_imp_??4wxStringBase@@QAEAAV0@PBD@Z) référencé dans la fonction "struct _object
* __cdecl wxPyMake_wxObject(class wxObject *,bool,bool)" (?wxPyMake_wxObject@@YA
PAU_object@@PAVwxObject@@_N1@Z)
_core_wrap.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport
) public: class wxStringBase & __thiscall wxStringBase::operator=(char const *)"
(__imp_??4wxStringBase@@QAEAAV0@PBD@Z)
_core_wrap.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport
) public: static unsigned long __cdecl wxStringHash::wxCharStringHash(char const
*)" (__imp_?wxCharStringHash@wxStringHash@@SAKPBD@Z) référencé dans la fonction
"protected: static unsigned int __cdecl wxPyTypeInfoHashMap_wxImplementation_Ha
shTable::GetBucketForNode(class wxPyTypeInfoHashMap_wxImplementation_HashTable *
,struct wxPyTypeInfoHashMap_wxImplementation_HashTable::Node *)" (?GetBucketForN
ode@wxPyTypeInfoHashMap_wxImplementation_HashTable@@KAIPAV1@PAUNode@1@@Z)
_core_wrap.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport
) public: class wxString & __thiscall wxString::Append(char const *)" (__imp_?Ap
pend@wxString@@QAEAAV1@PBD@Z) référencé dans la fonction "struct swig_type_info
* __cdecl wxPyFindSwigType(char const *)" (?wxPyFindSwigType@@YAPAUswig_type_inf
o@@PBD@Z)
_core_wrap.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport
) char const * const wxPanelNameStr" (__imp_?wxPanelNameStr@@3PBDB) référencé da
ns la fonction _$E49
_core_wrap.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport
) char const * const wxControlNameStr" (__imp_?wxControlNameStr@@3PBDB) référenc
é dans la fonction _$E55
wx\_core_.pyd : fatal error LNK1120: 16 externes non résolus
error: command '"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link
.exe"' failed with exit status 1120