From: John L. <jla...@gm...> - 2005-11-25 22:06:15
|
Bakefile.bkgen is not set to update the msvc6prj files, but when you turn it on you get the errors below, does anyone know how to fix it? Also, wxLua is a windows app not a console app, you can see the diffs I had to make to the dsp files to get it to compile and run using MSVS6. I don't know how to get this right in the bakefiles. It does work, completely, though. see apps.dsp here http://cvs.sourceforge.net/viewcvs.py/wxlua/wxLua/apps/build/msw/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [20/24] generating msvc6prj from ./wxlua.bkl /home/john/cvs/wxLua_SF/wxLua/build/bakefiles/wxlua.bkl:95: error: unknown target tag 'target' when processing target at /home/john/cvs/wxLua_SF/wxLua/build/bakefiles/wxlua.bkl:92 [bakefile_gen] error: bakefile exited with error wxlua.bkl <subproject id=3D"utils" cond=3D"USE_UTIL=3D=3D'1'"> <dependency-of>all</dependency-of> <dir>$(WXLUA_BASEDIR)$(DIRSEP)util$(DIRSEP)$(SUBPROJECT_POSTFIX_PAT= H)</dir> <target/> <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D PROBLEM HERE </subproject> Regards, John Labenski |
From: Francesco M. <f18...@ya...> - 2005-11-25 22:29:50
|
Hi, John Labenski wrote: > Bakefile.bkgen is not set to update the msvc6prj files, but when you > turn it on you get the errors below, does anyone know how to fix it? the problem is that msvc6prj do not support <subproject> tags... so I added the flags to disable msvc6prj for wxlua.bkl to Bakefiles.bkgen and committed them. It should now update msvc6prj whitout problems. > > Also, wxLua is a windows app not a console app, you can see the diffs > I had to make to the dsp files to get it to compile and run using > MSVS6. I don't know how to get this right in the bakefiles. It does > work, completely, though. I added the <app-type>gui</app-type> which were missing... Francesco |
From: John L. <jla...@gm...> - 2005-11-25 23:27:28
|
On 11/25/05, Francesco Montorsi <f18...@ya...> wrote: > > Bakefile.bkgen is not set to update the msvc6prj files, but when you > > turn it on you get the errors below, does anyone know how to fix it? > the problem is that msvc6prj do not support <subproject> tags... > so I added the flags to disable msvc6prj for wxlua.bkl to Bakefiles.bkgen= and committed > them. It should now update msvc6prj whitout problems. Great, thanks a lot! Maybe you saw that I went through the bakefiles and tried to add the wxluaedit app. I stuck in some more pronounced comments to help me find my way. Compiles using MSVC6 project files and linux out of the box! I will see if I can reorder mod_lua_lib to get compiled before mod_lua. Currently I do "batch build", select debug for all the projects, compile error on mod_lua_lib missing for mod_lua, compile again to get lua.exe and error on wxbind. Run genwxbind.bat in wxLua/bindings then compile again. Just a few warning about unused parameters... Regards, John Labenski |
From: klaas.holwerda <kho...@xs...> - 2005-11-26 17:14:16
|
John Labenski wrote: > >Compiles using MSVC6 project files and linux out of the box! > > > Your box that is ;-) My box refuses to do the same (MSW), not with nmake and not with project files. After i compiled contrib/stc for wxwidgets, i get all the mod_XXX compiled, using project file. For the moment using batch build, and only debug. (do all flavours compile in your case? ) app_lua is a problem ( just debug with project files), the nmake seems to have the same problem. Any idea what can be it, i think i did not see these errors before. But things are improvings ;-) regards, Klaas Next parts what i see in VC6: --------------------Configuration: app_wxlua - Win32 Debug-------------------- Linking... Searching Libraries Searching ..\..\..\lib\vc_lib\wxluadebug.lib: Searching ..\..\..\lib\vc_lib\wxluasocket.lib: Searching ..\..\..\lib\vc_lib\wxlua.lib: Searching ..\..\..\lib\vc_lib\wxbind.lib: Searching ..\..\..\lib\vc_lib\lua.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_stc.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_html.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxbase26d_net.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_xrc.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_adv.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxbase26d_xml.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_core.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxbase26d.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxtiffd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxjpegd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxpngd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxzlibd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxregexd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxexpatd.lib: Searching D:\vc6\VC98\LIB\kernel32.lib: Searching D:\vc6\VC98\LIB\user32.lib: Searching D:\vc6\VC98\LIB\gdi32.lib: Searching D:\vc6\VC98\LIB\comdlg32.lib: Searching D:\vc6\VC98\LIB\winspool.lib: Searching D:\vc6\VC98\LIB\winmm.lib: Searching D:\vc6\VC98\LIB\shell32.lib: Searching D:\vc6\VC98\LIB\comctl32.lib: Searching D:\vc6\VC98\LIB\ole32.lib: Searching D:\vc6\VC98\LIB\oleaut32.lib: Searching D:\vc6\VC98\LIB\uuid.lib: Searching D:\vc6\VC98\LIB\rpcrt4.lib: Searching D:\vc6\VC98\LIB\advapi32.lib: Searching D:\vc6\VC98\LIB\wsock32.lib: Searching D:\vc6\VC98\LIB\odbc32.lib: Searching D:\vc6\VC98\LIB\oleacc.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\lua.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxbind.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxlua.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxluadebug.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxluasocket.lib: Searching D:\vc6\VC98\LIB\MSVCRTD.lib: Searching D:\vc6\VC98\LIB\OLDNAMES.lib: Searching ..\..\..\lib\vc_lib\wxluadebug.lib: Searching ..\..\..\lib\vc_lib\wxluasocket.lib: Searching ..\..\..\lib\vc_lib\wxlua.lib: Searching ..\..\..\lib\vc_lib\wxbind.lib: Searching ..\..\..\lib\vc_lib\lua.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_stc.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_html.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxbase26d_net.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_xrc.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_adv.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxbase26d_xml.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_core.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxbase26d.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxtiffd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxjpegd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxpngd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxzlibd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxregexd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxexpatd.lib: Searching D:\vc6\VC98\LIB\kernel32.lib: Searching D:\vc6\VC98\LIB\user32.lib: Searching D:\vc6\VC98\LIB\gdi32.lib: Searching D:\vc6\VC98\LIB\comdlg32.lib: Searching D:\vc6\VC98\LIB\winspool.lib: Searching D:\vc6\VC98\LIB\winmm.lib: Searching D:\vc6\VC98\LIB\shell32.lib: Searching D:\vc6\VC98\LIB\comctl32.lib: Searching D:\vc6\VC98\LIB\ole32.lib: Searching D:\vc6\VC98\LIB\oleaut32.lib: Searching D:\vc6\VC98\LIB\uuid.lib: Searching D:\vc6\VC98\LIB\rpcrt4.lib: Searching D:\vc6\VC98\LIB\advapi32.lib: Searching D:\vc6\VC98\LIB\wsock32.lib: Searching D:\vc6\VC98\LIB\odbc32.lib: Searching D:\vc6\VC98\LIB\oleacc.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\lua.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxbind.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxlua.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxluadebug.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxluasocket.lib: Searching D:\vc6\VC98\LIB\MSVCRTD.lib: Done Searching Libraries Creating library ..\..\..\bin\wxlua.lib and object ..\..\..\bin\wxlua.exp Searching Libraries Searching ..\..\..\lib\vc_lib\wxluadebug.lib: Searching ..\..\..\lib\vc_lib\wxluasocket.lib: Searching ..\..\..\lib\vc_lib\wxlua.lib: Searching ..\..\..\lib\vc_lib\wxbind.lib: Searching ..\..\..\lib\vc_lib\lua.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_stc.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_html.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxbase26d_net.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_xrc.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_adv.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxbase26d_xml.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxmsw26d_core.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxbase26d.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxtiffd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxjpegd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxpngd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxzlibd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxregexd.lib: Searching D:\notebook\wxwin\wxWidgets-2.6.2\lib\vc_lib\wxexpatd.lib: Searching D:\vc6\VC98\LIB\kernel32.lib: Searching D:\vc6\VC98\LIB\user32.lib: Searching D:\vc6\VC98\LIB\gdi32.lib: Searching D:\vc6\VC98\LIB\comdlg32.lib: Searching D:\vc6\VC98\LIB\winspool.lib: Searching D:\vc6\VC98\LIB\winmm.lib: Searching D:\vc6\VC98\LIB\shell32.lib: Searching D:\vc6\VC98\LIB\comctl32.lib: Searching D:\vc6\VC98\LIB\ole32.lib: Searching D:\vc6\VC98\LIB\oleaut32.lib: Searching D:\vc6\VC98\LIB\uuid.lib: Searching D:\vc6\VC98\LIB\rpcrt4.lib: Searching D:\vc6\VC98\LIB\advapi32.lib: Searching D:\vc6\VC98\LIB\wsock32.lib: Searching D:\vc6\VC98\LIB\odbc32.lib: Searching D:\vc6\VC98\LIB\oleacc.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\lua.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxbind.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxlua.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxluadebug.lib: Searching \notebook\wxluacvs\wxLua\lib\vc_lib\wxluasocket.lib: Searching D:\vc6\VC98\LIB\MSVCRTD.lib: Searching D:\vc6\VC98\LIB\OLDNAMES.lib: Done Searching Libraries LINK : warning LNK4049: locally defined symbol ""public: __thiscall wxString::~wxString(void)" (??1wxString@@QAE@XZ)" imported LINK : warning LNK4049: locally defined symbol ""public: __thiscall wxCriticalSection::~wxCriticalSection(void)" (??1wxCriticalSection@@QAE@XZ)" imported LINK : warning LNK4049: locally defined symbol ""public: __thiscall wxArrayInt::~wxArrayInt(void)" (??1wxArrayInt@@QAE@XZ)" imported LINK : warning LNK4049: locally defined symbol ""public: __thiscall wxLuaSocket::~wxLuaSocket(void)" (??1wxLuaSocket@@QAE@XZ)" imported LINK : warning LNK4049: locally defined symbol ""public: __thiscall wxCondition::~wxCondition(void)" (??1wxCondition@@QAE@XZ)" imported LINK : warning LNK4049: locally defined symbol ""public: __thiscall wxMutex::~wxMutex(void)" (??1wxMutex@@QAE@XZ)" imported LINK : warning LNK4049: locally defined symbol ""public: virtual __thiscall wxObject::~wxObject(void)" (??1wxObject@@UAE@XZ)" imported LINK : warning LNK4049: locally defined symbol ""public: void __thiscall wxCriticalSection::Enter(void)" (?Enter@wxCriticalSection@@QAEXXZ)" imported LINK : warning LNK4049: locally defined symbol ""protected: static class wxLuaHandler * wxLuaHandler::sm_luahandler" (?sm_luahandler@wxLuaHandler@@1PAV1@A)" imported LINK : warning LNK4049: locally defined symbol ""public: __thiscall wxCriticalSection::wxCriticalSection(void)" (??0wxCriticalSection@@QAE@XZ)" imported =================== etc. wxluasocket.lib(wxldtarg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxLuaBufferArray::~wxLuaBufferArray(void)" (__imp_??1wxLuaBufferArray@@QAE@XZ) wxluasocket.lib(wxldtarg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxSortedArrayString::~wxSortedArrayString(void)" (__imp_??1wxSortedArrayString@@QAE@XZ) wxluasocket.lib(wxldtarg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxLuaBuffer::GetBuffer(void)const " (__imp_?GetBuffer@wxLuaBuffer@@QBE?AVwxString@@XZ) wxluasocket.lib(wxldtarg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxLuaBuffer::GetFileName(void)const " (__imp_?GetFileName@wxLuaBuffer@@QBE?AVwxString@@XZ) wxluasocket.lib(wxldtarg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall wxLuaBuffer::~wxLuaBuffer(void)" (__imp_??1wxLuaBuffer@@UAE@XZ) wxluasocket.lib(wxlsock.obj) : error LNK2001: unresolved external symbol "public: __thiscall wxLuaSocketException::wxLuaSocketException(class wxLuaSocketException const &)" (??0wxLuaSocketException@@QAE@ABV0@@Z) wxluasocket.lib(wxlsock.obj) : error LNK2001: unresolved external symbol "public: __thiscall wxLuaSocketException::~wxLuaSocketException(void)" (??1wxLuaSocketException@@QAE@XZ) wxluasocket.lib(wxlsock.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxLuaSocketException::wxLuaSocketException(enum wxLuaSocketException::SocketErrorCode)" (__imp_??0wxLuaSocketException@@QAE@W4SocketEr rorCode@0@@Z) wxbind.lib(gdi.obj) : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall wxCaretBase::DoCreate(class wxWindowBase *,int,int)" (?DoCreate@wxCaretBase@@MAE_NPAVwxWindowBase@@HH@Z) wxbind.lib(gdi.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall wxCaretBase::Hide(void)" (?Hide@wxCaretBase@@UAEXXZ) wxbind.lib(gdi.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall wxCaretBase::Show(bool)" (?Show@wxCaretBase@@UAEX_N@Z) wxbind.lib(gdi.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall wxCaretBase::~wxCaretBase(void)" (__imp_??1wxCaretBase@@UAE@XZ) wxbind.lib(gdi.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) const wxCaret::`vftable'" (__imp_??_7wxCaret@@6B@) wxbind.lib(gdi.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) const wxCaretBase::`vftable'" (__imp_??_7wxCaretBase@@6B@) wxbind.lib(gdi.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall wxCaret::~wxCaret(void)" (__imp_??1wxCaret@@UAE@XZ) wxbind.lib(wx_class.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxRegEx::~wxRegEx(void)" (__imp_??1wxRegEx@@QAE@XZ) wxbind.lib(windows.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) const wxSashLayoutWindow::`vftable'" (__imp_??_7wxSashLayoutWindow@@6B@) wxbind.lib(windows.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall wxSashLayoutWindow::~wxSashLayoutWindow(void)" (__imp_??1wxSashLayoutWindow@@UAE@XZ) wxbind.lib(data.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxLuaSmartStringArray::~wxLuaSmartStringArray(void)" (__imp_??1wxLuaSmartStringArray@@QAE@XZ) wxbind.lib(controls.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxLuaSmartStringArray::~wxLuaSmartStringArray(void)" (__imp_??1wxLuaSmartStringArray@@QAE@XZ) wxbind.lib(config.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxConfigBase::GetVendorName(void)const " (__imp_?GetVendorName@wxConfigBase@@QBE?AVwxString@@XZ) wxbind.lib(wx_builtin.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl wxInitAllImageHandlers(void)" (__imp_?wxInitAllImageHandlers@@YAXXZ) wxbind.lib(wx_builtin.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) long __cdecl wxGetNumberFromUser(class wxString const &,class wxString const &,class wxString const &,long,long,long,class wxWindow *,class wxPoint const & )" (__imp_?wxGetNumberFromUser@@YAJABVwxString@@00JJJPAVwxWindow@@ABVwxPoint@@@Z) wxbind.lib(wx_event.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) int const wxEVT_COMMAND_TOGGLEBUTTON_CLICKED" (__imp_?wxEVT_COMMAND_TOGGLEBUTTON_CLICKED@@3HB) wxbind.lib(file.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl wxDir::GetAllFiles(class wxString const &,class wxArrayString *,class wxString const &,int)" (__imp_?GetAllFiles@wxDir@@SAIAB VwxString@@PAVwxArrayString@@0H@Z) wxbind.lib(clipdrag.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall wxBitmapDataObjectBase::SetBitmap(class wxBitmap const &)" (?SetBitmap@wxBitmapDataObjectBase@@UAEXABVwxBitmap@@@Z) wxbind.lib(clipdrag.obj) : error LNK2001: unresolved external symbol "public: virtual class wxBitmap __thiscall wxBitmapDataObjectBase::GetBitmap(void)const " (?GetBitmap@wxBitmapDataObjectBase@@UBE?AVwxBitmap@@XZ) wxbind.lib(clipdrag.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxBitmapDataObject::SetData(class wxDataFormat const &,unsigned int,void const *)" (?SetData@wxBitmapDataObject@@UAE_NABVwxDataFormat@@IPBX@Z) wxbind.lib(clipdrag.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxBitmapDataObject::GetDataHere(class wxDataFormat const &,void *)const " (?GetDataHere@wxBitmapDataObject@@UBE_NABVwxDataFormat@@PAX@Z) wxbind.lib(clipdrag.obj) : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall wxBitmapDataObject::GetDataSize(class wxDataFormat const &)const " (?GetDataSize@wxBitmapDataObject@@UBEIABVwxDataFormat@@@Z) wxbind.lib(clipdrag.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall wxBitmapDataObject::~wxBitmapDataObject(void)" (__imp_??1wxBitmapDataObject@@UAE@XZ) wxbind.lib(grid.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxColour __thiscall wxGrid::GetLabelBackgroundColour(void)" (__imp_?GetLabelBackgroundColour@wxGrid@@QAE?AVwxColour@@XZ) wxbind.lib(grid.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxColour __thiscall wxGrid::GetCellHighlightColour(void)" (__imp_?GetCellHighlightColour@wxGrid@@QAE?AVwxColour@@XZ) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall wxRect2DDouble::ConstrainTo(class wxRect2DDouble const &)" (__imp_?ConstrainTo@wxRect2DDouble@@QAEXABV1@@Z) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl wxRect2DDouble::Intersect(class wxRect2DDouble const &,class wxRect2DDouble const &,class wxRect2DDouble *)" (__imp_?Intersect@wx Rect2DDouble@@SAXABV1@0PAV1@@Z) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall wxRect2DDouble::Intersects(class wxRect2DDouble const &)const " (__imp_?Intersects@wxRect2DDouble@@QBE_NABV1@@Z) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl wxRect2DDouble::Union(class wxRect2DDouble const &,class wxRect2DDouble const &,class wxRect2DDouble *)" (__imp_?Union@wxRect2DDo uble@@SAXABV1@0PAV1@@Z) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: double __thiscall wxPoint2DDouble::GetVectorAngle(void)const " (__imp_?GetVectorAngle@wxPoint2DDouble@@QBENXZ) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall wxPoint2DDouble::SetVectorAngle(double)" (__imp_?SetVectorAngle@wxPoint2DDouble@@QAEXN@Z) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall wxRect2DInt::ConstrainTo(class wxRect2DInt const &)" (__imp_?ConstrainTo@wxRect2DInt@@QAEXABV1@@Z) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl wxRect2DInt::Intersect(class wxRect2DInt const &,class wxRect2DInt const &,class wxRect2DInt *)" (__imp_?Intersect@wxRect2DInt@@S AXABV1@0PAV1@@Z) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall wxRect2DInt::Intersects(class wxRect2DInt const &)const " (__imp_?Intersects@wxRect2DInt@@QBE_NABV1@@Z) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl wxRect2DInt::Union(class wxRect2DInt const &,class wxRect2DInt const &,class wxRect2DInt *)" (__imp_?Union@wxRect2DInt@@SAXABV1@0 PAV1@@Z) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: double __thiscall wxPoint2DInt::GetVectorAngle(void)const " (__imp_?GetVectorAngle@wxPoint2DInt@@QBENXZ) wxbind.lib(geometry.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall wxPoint2DInt::SetVectorAngle(double)" (__imp_?SetVectorAngle@wxPoint2DInt@@QAEXN@Z) wxbind.lib(datetime.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxDateTime::FormatDate(void)const " (__imp_?FormatDate@wxDateTime@@QBE?AVwxString@@XZ) wxbind.lib(datetime.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxDateTime::FormatTime(void)const " (__imp_?FormatTime@wxDateTime@@QBE?AVwxString@@XZ) wxbind.lib(datetime.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxDateTime::FormatISODate(void)const " (__imp_?FormatISODate@wxDateTime@@QBE?AVwxString@@XZ) wxbind.lib(datetime.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxDateTime::FormatISOTime(void)const " (__imp_?FormatISOTime@wxDateTime@@QBE?AVwxString@@XZ) wxbind.lib(appframe.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxAppConsole::GetClassName(void)const " (__imp_?GetClassName@wxAppConsole@@QBE?AVwxString@@XZ) wxbind.lib(appframe.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxLuaSmartIntArray::~wxLuaSmartIntArray(void)" (__imp_??1wxLuaSmartIntArray@@QAE@XZ) wxbind.lib(appframe.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall wxSystemOptions::~wxSystemOptions(void)" (__imp_??1wxSystemOptions@@UAE@XZ) wxbind.lib(stc.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxStyledTextEvent::GetText(void)const " (__imp_?GetText@wxStyledTextEvent@@QBE?AVwxString@@XZ) wxbind.lib(dialogs.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxDirDialog::GetPath(void)const " (__imp_?GetPath@wxDirDialog@@QBE?AVwxString@@XZ) wxbind.lib(dialogs.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxDirDialog::GetMessage(void)const " (__imp_?GetMessage@wxDirDialog@@QBE?AVwxString@@XZ) wxbind.lib(dialogs.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxFont __thiscall wxFontData::GetInitialFont(void)const " (__imp_?GetInitialFont@wxFontData@@QBE?AVwxFont@@XZ) wxbind.lib(dialogs.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) const wxFindReplaceData::`vftable'" (__imp_??_7wxFindReplaceData@@6B@) wxbind.lib(dialogs.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall wxFindReplaceData::~wxFindReplaceData(void)" (__imp_??1wxFindReplaceData@@UAE@XZ) wxbind.lib(controls.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxFont __thiscall wxListItem::GetFont(void)const " (__imp_?GetFont@wxListItem@@QBE?AVwxFont@@XZ) wxbind.lib(controls.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxColour __thiscall wxListItem::GetTextColour(void)const " (__imp_?GetTextColour@wxListItem@@QBE?AVwxColour@@XZ) wxbind.lib(controls.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxColour __thiscall wxListItem::GetBackgroundColour(void)const " (__imp_?GetBackgroundColour@wxListItem@@QBE?AVwxColour@@XZ) wxbind.lib(html.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxHtmlLinkInfo::GetTarget(void)const " (__imp_?GetTarget@wxHtmlLinkInfo@@QBE?AVwxString@@XZ) wxbind.lib(sizer.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxSizerItem * __thiscall wxSizer::Prepend(class wxWindow *,int,int,int,class wxObject *)" (__imp_?Prepend@wxSizer@@QAEPAVwxSizerItem@@PAVwxWindow@ @HHHPAVwxObject@@@Z) wxbind.lib(sizer.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxSizerItem * __thiscall wxSizer::Prepend(class wxSizer *,int,int,int,class wxObject *)" (__imp_?Prepend@wxSizer@@QAEPAVwxSizerItem@@PAV1@HHHPAVwx Object@@@Z) wxbind.lib(sizer.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxSizerItem * __thiscall wxSizer::Prepend(int,int,int,int,int,class wxObject *)" (__imp_?Prepend@wxSizer@@QAEPAVwxSizerItem@@HHHHHPAVwxObject@@@Z) wxbind.lib(regex.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall wxRegEx::Init(void)" (__imp_?Init@wxRegEx@@AAEXXZ) wxbind.lib(regex.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall wxRegEx::Compile(class wxString const &,int)" (__imp_?Compile@wxRegEx@@QAE_NABVwxString@@H@Z) wxbind.lib(regex.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxRegEx::GetMatch(class wxString const &,unsigned int)const " (__imp_?GetMatch@wxRegEx@@QBE?AVwxString@@ABV2@I@Z) wxbind.lib(regex.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall wxRegEx::Matches(char const *,int)const " (__imp_?Matches@wxRegEx@@QBE_NPBDH@Z) wxbind.lib(regex.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall wxRegEx::GetMatch(unsigned int *,unsigned int *,unsigned int)const " (__imp_?GetMatch@wxRegEx@@QBE_NPAI0I@Z) wxbind.lib(regex.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall wxRegEx::Replace(class wxString *,class wxString const &,unsigned int)const " (__imp_?Replace@wxRegEx@@QBEHPAVwxString@@ABV2@I@Z) wxbind.lib(wxlua.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxLuaDebugEvent::GetFileName(void)const " (__imp_?GetFileName@wxLuaDebugEvent@@QBE?AVwxString@@XZ) wxbind.lib(wxlua.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxLuaDebugEvent::GetMessage(void)const " (__imp_?GetMessage@wxLuaDebugEvent@@QBE?AVwxString@@XZ) wxbind.lib(xml.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall wxXmlResource::InitAllHandlers(void)" (__imp_?InitAllHandlers@wxXmlResource@@QAEXXZ) wxbind.lib(menutool.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxMenuBase::wxMenuBase(class wxString const &,long)" (__imp_??0wxMenuBase@@QAE@ABVwxString@@J@Z) wxbind.lib(menutool.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString const __thiscall wxMenuBase::GetTitle(void)const " (__imp_?GetTitle@wxMenuBase@@QBE?BVwxString@@XZ) wxbind.lib(mdi.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxDocManager::GetLastDirectory(void)const " (__imp_?GetLastDirectory@wxDocManager@@QBE?AVwxString@@XZ) wxbind.lib(mdi.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxDocument::GetTitle(void)const " (__imp_?GetTitle@wxDocument@@QBE?AVwxString@@XZ) wxbind.lib(mdi.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxView::GetViewName(void)const " (__imp_?GetViewName@wxView@@QBE?AVwxString@@XZ) ..\..\..\bin\wxlua.exe : fatal error LNK1120: 78 unresolved externals Error executing link.exe. wxlua.exe - 80 error(s), 2409 warning(s) |
From: John L. <jla...@gm...> - 2005-11-26 18:02:53
|
On 11/26/05, klaas.holwerda <kho...@xs...> wrote: > >Compiles using MSVC6 project files and linux out of the box! > > > Your box that is ;-) > My box refuses to do the same (MSW), not with nmake and not with project > files. Grrr... why does it have to be so hard. :( > After i compiled contrib/stc for wxwidgets, i get all the mod_XXX > compiled, using project file. > For the moment using batch build, and only debug. (do all flavours > compile in your case? ) I've only used debug. Is your wxWidgets lib also in debug? > app_lua is a problem ( just debug with project files), the nmake seems > to have the same problem. > > Any idea what can be it, i think i did not see these errors before. Nor have I. I see you use 2.6.2, I use wxWidgets CVS HEAD and copy by hand all the libs wxbase27_XXX.lib to wxbase26_XXX.lib and wxmsw27_XXX.lib to wxmsw26_XXX.lib so they'll work with the VC6 project files. You've done a completely new checkout? Just delete the old and checkout aga= in. > Next parts what i see in VC6: > > --------------------Configuration: app_wxlua - Win32 > Debug-------------------- > Linking... > Searching Libraries > Searching ..\..\..\lib\vc_lib\wxluadebug.lib: > Searching ..\..\..\lib\vc_lib\wxluasocket.lib: I have to remove this "Searching" stuff, this was a test to see what libs were being loaded and it looks ok to me. > Done Searching Libraries > LINK : warning LNK4049: locally defined symbol ""public: __thiscall > wxString::~wxString(void)" (??1wxString@@QAE@XZ)" imported ... > LINK : warning LNK4049: locally defined symbol ""protected: static class > wxLuaHandler * wxLuaHandler::sm_luahandler" > (?sm_luahandler@wxLuaHandler@@1PAV1@A)" imported I'm off for today, but what does the help in MSVC6 say about LNK4049, press F1 on the error in the GUI. I don't think I've seen this before and don't understand what it could mean. But you get them for both wxWidgets classes and wxLua classes so something is strange. > wxluasocket.lib(wxldtarg.obj) : error LNK2001: unresolved external > symbol "__declspec(dllimport) public: __thiscall > wxLuaBufferArray::~wxLuaBufferArray(void)" > (__imp_??1wxLuaBufferArray@@QAE@XZ) > wxluasocket.lib(wxldtarg.obj) : error LNK2001: unresolved external > symbol "__declspec(dllimport) public: __thiscall > wxSortedArrayString::~wxSortedArrayString(void)" > (__imp_??1wxSortedArrayString@@QAE@XZ) > wxluasocket.lib(wxldtarg.obj) : error LNK2001: unresolved external > symbol "__declspec(dllimport) public: class wxString __thiscall > wxLuaBuffer::GetBuffer(void)const " > (__imp_?GetBuffer@wxLuaBuffer@@QBE?AVwxString@@XZ) > wxluasocket.lib(wxldtarg.obj) : error LNK2001: unresolved external > symbol "__declspec(dllimport) public: class wxString __thiscall There's no earlier compile warnings or errors? It looks like you're not even linking to wxWidgets, never mind wxLua. As I said please just start completely over. You have the WXWIN=3DD:\notebook\wxwin\wxWidgets-2.6.2 environment variable set too? I'm sorry that I can't help. I don't know why things could be so messed up for you. *** You are opening wxLua/build/msw/wxLua.dsw right? not anything else! Regards, John Labenski |
From: klaas.holwerda <kho...@xs...> - 2005-11-26 23:33:21
|
John Labenski wrote: > >You've done a completely new checkout? Just delete the old and checkout again. > > No i did not. But now i did, bingo!! Man how confusing. I did nothing wrong, it were all left overs somehow from previous obviously wrong builds. Why did i not think of that, always telling to all users of my stuff to start from scratch when something is not making sence. And i myself have to be told by you :-) Actually i know why, i am so much used to Cmake building outside of CVS checkout, this can simply not happen. So next time, i will throw away at least all build dirs, and check out again. And we really need a perfect clean ( deep and all ). It did not go completely without a hick. I selected all debug in the batch build. But somehow wxLua was building in release mode. So i did set i by hand to debug configuration, then it was oke. I will test again later, to see if i can repeat it. I do not like the batch build, first deselect a whole lot of optional builds, but what to do. Next i tried nmake, also this is well too. I wonder do object files for nmake end up in the same place as those from project files? If so that is risky too. Only thing left is precompiled headers, or i don't know why it takes so long to compile. Thanks, Klaas |
From: John L. <jla...@gm...> - 2005-11-28 06:21:59
|
On 11/26/05, klaas.holwerda <kho...@xs...> wrote: > So next time, i will throw away at least all build dirs, and check out > again. > And we really need a perfect clean ( deep and all ). I don't know how to do this. I just wrote a script for cygwin to remove all the obj, pdb, id*... everything that was not part of the original checkout. > It did not go completely without a hick. I selected all debug in the > batch build. But somehow wxLua was building in release mode. So i did > set i by hand to debug configuration, then it was oke. > I will test again later, to see if i can repeat it. > I do not like the batch build, first deselect a whole lot of optional > builds, but what to do. You can select them all using the shift key and then press <space> to uncheck them all. This makes it a little less painful, since you only have to check a few of them. > Next i tried nmake, also this is well too. I wonder do object files for > nmake end up in the same place as those from project files? If so that > is risky too. Bakefile needs to be fixed to give the same settings for nmake and the gui. It's a simple thing, but I couldn't find how to do it in the Bakefile source. Once they're the same it won't matter which you use to build it. https://sourceforge.net/tracker/?func=3Ddetail&aid=3D1045600&group_id=3D986= 3&atid=3D109863 > Only thing left is precompiled headers, or i don't know why it takes so > long to compile. IIRC this is only a command line switch for nmake, I think it's already on. Regards, John Labenski |
From: k. h. <kla...@nl...> - 2005-11-28 08:56:00
|
Hi John, John Labenski wrote: >I don't know how to do this. I just wrote a script for cygwin to >remove all the obj, pdb, id*... everything that was not part of the >original checkout. > > > Franscesco made a deepclean target for wxArt2d, that works well. Maybe he can add it here too. >You can select them all using the shift key and then press <space> to >uncheck them all. This makes it a little less painful, since you only >have to check a few of them. > > > Thanks! >>Only thing left is precompiled headers, or i don't know why it takes so >>long to compile. >> >> > >IIRC this is only a command line switch for nmake, I think it's already on. > > To bad not, more is involved. We can take the tricks from wxArt2D, first switches IF ( MSVC ) IF ( WXART2D_USE_PCH ) SET( CMAKE_CXX_FLAGS "/W3 /GX" ) SET( CMAKE_C_FLAGS "/W3" ) ELSE ( WXART2D_USE_PCH ) A2D_ADD_DEFINITIONS( -DNOPCH ) ENDIF ( WXART2D_USE_PCH ) ENDIF ( MSVC ) There needs to be a central file somewhere. And in all files this ( also in binding files generated) : #include "wxluaprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif //else #include (only really needed wx or wxlua headers, this is without precomp headers, so needs to be small ). Contents Central file: =============== the wxluaprec.h ====== /*! \file wxluaprec.h Licence: wxWidgets License RCS-ID: $Id: a2dprec.h,v 1.2 2005/08/10 21:10:48 titato Exp $ */ #include "wx/wxprec.h" #ifdef WX_PRECOMP #include <wx/mstream.h> #include <wx/tokenzr.h> #include "wxlua_all.h" << here all header includes ( including wx/wx.h and wxluasetup.h ) #endif // WX_PRECOMP So it is not even that complicated, only a bit of work. Regards, Klaas Unclassified |
From: Francesco M. <f18...@ya...> - 2005-11-26 14:45:02
|
Hi, John Labenski wrote: >Maybe you saw that I went through the bakefiles > and tried to add the wxluaedit app. I stuck in some more pronounced > comments to help me find my way. I saw, nice work. However for app_wxluaedit target I think that on unix the environment variable WXSTEDIT should not be used to find the headers. On unix it's common to install the dependencies in the default system paths; so I think that wxLua should expect to find wxStEdit headers & lib into system paths, too. Thus I would remove the lines <if cond="FORMAT=='autoconf'"> <include>$(DOLLAR)(WXSTEDIT)/include</include> </if> and put instead a simple check for a wxStEdit include in the configure.ac script. Also I suggest to change line: <if cond="FORMAT!='autoconf'"> to <if cond="TARGETING_WIN32=='1'"> as there is not only the autoconf format for linux (also cbx_unix, gnu, etc). > > Compiles using MSVC6 project files and linux out of the box! > > I will see if I can reorder mod_lua_lib to get compiled before > mod_lua. Take in count that wxLua\build\msw\wxLua.dsw was hand-written (by me) and not generated by bakefile (since msvc6prj doesn't support <subproject> targets). So, it doesn't contain all dependency "links" which are coded into bakefiles (and mod_lua_lib depends from mod_lua in bakefiles); thus I added the dependency manually. Now also MSVC6prj will know that mod_lua_lib needs to be compiled before mod_lua. BTW, I see that luasetup.h.in has not been removed yet and that wxLua uses it instead of the new wxluasetup.h... let me know when you've done with this so that I can make the WXLUASETUP_DIR and WXLUABINDLIB_DIR options work. I have already declared them in modules\build\bakefiles\options.bkl but they're currently unused. Francesco PS: I've updated linux configure script so that now all wxLua options are present there, too (--enable-wxlua-app, --enable-wxluaedit-app, etc) |
From: John L. <jla...@gm...> - 2005-11-26 17:47:19
|
On 11/26/05, Francesco Montorsi <f18...@ya...> wrote: > >Maybe you saw that I went through the bakefiles > > and tried to add the wxluaedit app. I stuck in some more pronounced > > comments to help me find my way. > I saw, nice work. However for app_wxluaedit target I think that on unix t= he environment > variable WXSTEDIT should not be used to find the headers. > On unix it's common to install the dependencies in the default system pat= hs; so I think > that wxLua should expect to find wxStEdit headers & lib into system paths= , too. > Thus I would remove the lines > > <if cond=3D"FORMAT=3D=3D'autoconf'"> > <include>$(DOLLAR)(WXSTEDIT)/include</include> > </if> > > and put instead a simple check for a wxStEdit include in the configure.ac= script. > Also I suggest to change line: > > <if cond=3D"FORMAT!=3D'autoconf'"> > > to > > <if cond=3D"TARGETING_WIN32=3D=3D'1'"> > > as there is not only the autoconf format for linux (also cbx_unix, gnu, e= tc). Ok, thanks. > > Compiles using MSVC6 project files and linux out of the box! > > > > I will see if I can reorder mod_lua_lib to get compiled before > > mod_lua. > Take in count that wxLua\build\msw\wxLua.dsw was hand-written (by me) and= not generated by > bakefile (since msvc6prj doesn't support <subproject> targets). > So, it doesn't contain all dependency "links" which are coded into bakefi= les (and > mod_lua_lib depends from mod_lua in bakefiles); thus I added the dependen= cy manually. > Now also MSVC6prj will know that mod_lua_lib needs to be compiled before = mod_lua. I didn't realize that was by hand, then it should be easy. I'll do it. > BTW, I see that luasetup.h.in has not been removed yet and that wxLua use= s it instead of > the new wxluasetup.h... let me know when you've done with this so that I = can make the > WXLUASETUP_DIR and WXLUABINDLIB_DIR options work. > I have already declared them in modules\build\bakefiles\options.bkl but t= hey're currently > unused. Tomorrow night, I'm off for today... > PS: I've updated linux configure script so that now all wxLua options are= present there, > too (--enable-wxlua-app, --enable-wxluaedit-app, etc) Great. Thanks alot, John |