Building problem

CodeLite installation/troubleshooting forum
Sergey
CodeLite Enthusiast
Posts: 15
Joined: Tue Dec 16, 2008 11:37 pm
Location: Ukraine
Contact:

Building problem

Post 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?
Смотри в корень!
Лучше скажи мало, но хорошо.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building problem

Post 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
Make sure you have read the HOW TO POST thread
Sergey
CodeLite Enthusiast
Posts: 15
Joined: Tue Dec 16, 2008 11:37 pm
Location: Ukraine
Contact:

Re: Building problem

Post 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)? :?:
Смотри в корень!
Лучше скажи мало, но хорошо.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building problem

Post 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
Make sure you have read the HOW TO POST thread
Sergey
CodeLite Enthusiast
Posts: 15
Joined: Tue Dec 16, 2008 11:37 pm
Location: Ukraine
Contact:

Re: Building problem

Post 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
Смотри в корень!
Лучше скажи мало, но хорошо.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building problem

Post 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
Make sure you have read the HOW TO POST thread
Sergey
CodeLite Enthusiast
Posts: 15
Joined: Tue Dec 16, 2008 11:37 pm
Location: Ukraine
Contact:

Re: Building problem

Post by Sergey »

eranif wrote:browse and select wxscintilla.project file and thats it
where I can find this project file?
Смотри в корень!
Лучше скажи мало, но хорошо.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building problem

Post by eranif »

did u checkout codelite sources?

if u do, it should be under:
/path/to/codelite/sources/sdk/wxscintilla/

Eran
Make sure you have read the HOW TO POST thread
Sergey
CodeLite Enthusiast
Posts: 15
Joined: Tue Dec 16, 2008 11:37 pm
Location: Ukraine
Contact:

Re: Building problem

Post 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?
Смотри в корень!
Лучше скажи мало, но хорошо.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building problem

Post by eranif »

In your project settings -> compiler -> additional search path add:
./wxscintilla/include/

in your code, include it like this:

Code: Select all

#include <wx/wxscintilla.h>
Eran
Make sure you have read the HOW TO POST thread
Post Reply