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 » Tue Dec 16, 2008 11:59 pm

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: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building problem

Post by eranif » Wed Dec 17, 2008 12:36 am

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 » Wed Dec 17, 2008 4:35 pm

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: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building problem

Post by eranif » Wed Dec 17, 2008 4:37 pm

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 » Wed Dec 17, 2008 6:28 pm

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: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building problem

Post by eranif » Wed Dec 17, 2008 6:36 pm

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 » Wed Dec 17, 2008 7:13 pm

eranif wrote:browse and select wxscintilla.project file and thats it
where I can find this project file?
Смотри в корень!
Лучше скажи мало, но хорошо.

User avatar
eranif
CodeLite Plugin
Posts: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building problem

Post by eranif » Wed Dec 17, 2008 7:17 pm

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 » Wed Dec 17, 2008 8:05 pm

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: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building problem

Post by eranif » Wed Dec 17, 2008 8:32 pm

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