Hi,
I am trying to make Thuban using wxpython 2.8.
Under Debian (wxpython 2.8.7.1), everything runs fine. On windows
(wxpython 2.8.9.2), it seems that we have some compiler/linker issue
causing troubles when starting the app. A dailog box appears with the
following message.
0:27:54: Debug: ..\..\src\common\stdpbase.cpp(56): assert "traits"
failed in wxStandardPathsBase::Get(): create wxApp before calling this
If clicking on "Cancel", the application runs fine.
Googling a bit, I found that it could be related to the linking of
dll's. I have to admit that it goes out of my skills. So, if anybody
here can suggest me something to do, I would be pleased
Here are the macros, and libraries used during the compilation and
linking of the extension :
wx_cs_params[CS_DEFS] = \
[ ('WIN32', None), # Some of these are no longer
('__WIN32__', None), # necessary. Anybody know
which?
('_WINDOWS', None),
('__WINDOWS__', None),
('WINVER', '0x0400'),
('__WIN95__', None),
('STRICT', None),
#('__WXMSW__', None),
('WXUSINGDLL', '1'),
('SWIG_GLOBAL', None),
('HAVE_CONFIG_H', None),
('WXP_USE_THREAD', '1'),
]
wx_cs_params[CS_LIBS] = ['wxmsw28uh_core' , 'wxmsw28uh_stc',
'wxbase28uh' ,\
'wxmsw28uh_html' , 'wxmsw28uh_richtext' ,
'wxmsw28uh_adv' , \
'wxmsw28uh_xrc' , 'wxmsw28uh_aui',
'wxmsw28uh_gl' , 'wxmsw28uh_gizmos' , \
'wxbase28uh_net' , 'wxbase28uh_xml']
When building the extension, we have the following output :
···
------------------------------------------------------------
running build_ext
building 'Lib.wxproj' extension
creating build
creating build\temp.win32-2.5
creating build\temp.win32-2.5\Release
creating build\temp.win32-2.5\Release\libraries
creating build\temp.win32-2.5\Release\libraries\thuban
C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\cl.exe /c /nologo
/Ox /MD /W3 /GX /DNDEBUG -DWIN32 -D__WIN32__ -D_WINDOWS -D__WINDOWS__
-DWINVER=0x0400 -
D__WIN95__ -DSTRICT -DWXUSINGDLL=1 -DSWIG_GLOBAL -DHAVE_CONFIG_H
-DWXP_USE_THREAD=1 /Ilibraries/shapelib /I..\proj-4.5.0\src
/Ilibraries/pyshapelib/ /I..\wxPyth
on-2.8.9.2\lib\vc_dll\mswuh /I..\wxPython-2.8.9.2\include
/IC:\Python25\include /IC:\Python25\PC /Tplibraries/thuban/wxproj.cpp
/Fobuild\temp.win32-2.5\Release\
libraries/thuban/wxproj.obj wxproj.cpp
creating build\lib.win32-2.5
creating build\lib.win32-2.5\Lib
C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\link.exe /DLL
/nologo /INCREMENTAL:NO /LIBPATH:..\proj-4.5.0\src
/LIBPATH:..\wxPython-2.8.9.2\lib\vc_dll
/LIBPATH:C:\Python25\libs /LIBPATH:C:\Python25\PCBuild proj_i.lib
wxmsw28uh_core.lib wxmsw28uh_stc.lib wxbase28uh.lib wxmsw28uh_html.lib
wxmsw28uh_richtext.lib
wxmsw28uh_adv.lib wxmsw28uh_xrc.lib wxmsw28uh_aui.lib wxmsw28uh_gl.lib
wxmsw28uh_gizmos.lib wxbase28uh_net.lib wxbase28uh_xml.lib
/EXPORT:initwxproj build\temp.
win32-2.5\Release\libraries/thuban/wxproj.obj
/OUT:build\lib.win32-2.5\Lib\wxproj.pyd
/IMPLIB:build\temp.win32-2.5\Release\libraries/thuban\wxproj.lib
Creating library
build\temp.win32-2.5\Release\libraries/thuban\wxproj.lib and object
build\temp.win32-2.5\Release\libraries/thuban\wxproj.exp
LINK : warning LNK4089: all references to 'msvcp71.dll' discarded by
/OPT:REF
LINK : warning LNK4089: all references to 'wxbase28uh_vc.dll' discarded
by /OPT:REF
------------------------------------------------------------
So it builds successfully but we have this message when starting the
application.
Thanks for any help.
Didrik
--
Didrik Pinte - Gérant/Manager
Dipole Consulting SPRL
E-mail : dpinte@dipole-consulting.com
Tel : +32 (0)10 779 005
Mobile : +32 (0)475 665 668
Fax : +32 (0)2 791 56 61
Web : http://www.dipole-consulting.com
TVA : BE.0895.560.517