Page 1 of 2
Building problem
Posted: Tue Dec 16, 2008 11:59 pm
by Sergey
Hello. I just installed codelite-mingw3.4.5-wx2.8.7-1.0.2527 under WinXP SP3. I chose
The easy way. I checked definition of variables WXCFG and WXWIN. But after compilition of simple wxWidgets GUI program, when I try run it I have taken the message that wxmsw28ud_gcc_custom.dll is missing and it crushing after that. This message I read even when I try to debug my program. What I should repair?
Re: Building problem
Posted: Wed Dec 17, 2008 12:36 am
by eranif
Just copy the dll wxmsw28ud_gcc_custom.dll to C:\WINDOWS\ or any other location which is in the PATH.
You can find the dll under C:\wxWidgets-2.8.7\lib\gcc_dll\ (unless you installed WX elsewhere).
In addition, it is advised to copy mingwm10.dll (which can be found under C:\MinGW-3.4.5\bin) to C:\WINDOWS or any other location which is in the PATH.
When you distribute your application, remember to include these 2 dll (the first one wxmsw28ud_gcc_custom.dll is needed for debug builds, while wxmsw28u_gcc_custom.dll is for release)
Eran
Re: Building problem
Posted: Wed Dec 17, 2008 4:35 pm
by Sergey
Thanks you, Eran. All work fine.
Can I distribute my applications without wxmsw28u_gcc_custom.dll (it approximately 9.91 MB, but when I use wxDev final application size approximately 4.09 MB and no dll needed)?
Re: Building problem
Posted: Wed Dec 17, 2008 4:37 pm
by eranif
Sergey wrote:Can I distribute my applications without wxmsw28u_gcc_custom.dll (it approximately 9.91 MB, but when I use wxDev final application size approximately 4.09 MB and no dll needed)?
for this, you will need to build WX as static library.
CodeLite installer does not provide this type of build. However, linking against static library of WX will only reduce the dependency not the size, since now you will have one 9.9 executable but without additional dlls
Eran
Re: Building problem
Posted: Wed Dec 17, 2008 6:28 pm
by Sergey
Maybe question not for this topic.
Can I add
wxAdditions for wxFormBuilder into my wxWidgets build? Or what I should to do for using wxScintilla control from CodeLite?
TIA
Re: Building problem
Posted: Wed Dec 17, 2008 6:36 pm
by eranif
Sergey wrote:Or what I should to do for using wxScintilla control from CodeLite?
checkout codelite sources, and copy the directory: trunk/sdk/wxscintilla/ to your project tree.
Next, right click on your workspace and select 'add an existing project', browse and select wxscintilla.project file and thats it
Eran
Re: Building problem
Posted: Wed Dec 17, 2008 7:13 pm
by Sergey
eranif wrote:browse and select wxscintilla.project file and thats it
where I can find this project file?
Re: Building problem
Posted: Wed Dec 17, 2008 7:17 pm
by eranif
did u checkout codelite sources?
if u do, it should be under:
/path/to/codelite/sources/sdk/wxscintilla/
Eran
Re: Building problem
Posted: Wed Dec 17, 2008 8:05 pm
by Sergey
OK. I cheked codelite sources and added wxscintilla.project to my workspace but when I try use it I take error messages:
C:/CodeLite/Test/testa_frame.h:5:37: wxscintilla/wxscintilla.h: No such file or directory
In file included from C:/CodeLite/Test/testa_app.cpp:5:
C:/CodeLite/Test/testa_frame.h:13: error: ISO C++ forbids declaration of `wxScintilla' with no type
C:/CodeLite/Test/testa_frame.h:13: error: expected `;' before '*' token
code of unit:
Code: Select all
#ifndef __TestaFrame__
#define __TestaFrame__
#include "wx/frame.h"
#include "wxscintilla/wxscintilla.h"
class TestaFrame : public wxFrame {
private:
void Initialize();
void CreateMenuBar();
wxScintilla * editor;
public:
TestaFrame(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER);
~TestaFrame();
DECLARE_EVENT_TABLE()
void OnClose(wxCloseEvent &e);
void OnQuit(wxCommandEvent &e);
};
#endif // __TestaFrame__
P.S. I copy wxscintilla into my project folder. Why compiler don't see this file?
Re: Building problem
Posted: Wed Dec 17, 2008 8:32 pm
by eranif
In your project settings -> compiler -> additional search path add:
./wxscintilla/include/
in your code, include it like this:
Eran