Test wxWidgets project doesn't work

General questions regarding the usage of CodeLite
bigpilot
CodeLite Curious
Posts: 4
Joined: Tue Jan 20, 2009 9:39 pm
Contact:

Test wxWidgets project doesn't work

Post by bigpilot »

Hi,

I thought I'd give CodeLite a try after seeing some videos on the website. However, when I build a wxWidgets sample project I get the following errors:

windowtest_app.cpp:2:22: wx/image.h: No such file or directory

The wxWidgets environment variable looks OK ( I got the CodeLite version which includes the pre-compiled wxWidgets 2.8.7) and although I found the project settings, I can't find the file paths the compiler and linker use.

It's these things that turn people off. When I have the version which includes the compiler and the wxWidgets library and I build a test project I expect it to work.

Except for this snafu CodeLite seems like a great piece of software, although it looks a little overly complicated. I'm not sure if any of you ever used MinGW Studio but it looked a lot more like Visual Studio 6 and a lot easier to use than CodeLite. The only problem with it was that it wasn't open source and the author has pulled the plug on it which was very frustratiing.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Test wxWidgets project doesn't work

Post by eranif »

bigpilot wrote:I thought I'd give CodeLite a try after seeing some videos on the website. However, when I build a wxWidgets sample project I get the following errors:

windowtest_app.cpp:2:22: wx/image.h: No such file or directory
Can u please paste the build log ? (from the 'Build' tab)
2 Quick things to check:
1) are u using msys?
2) have u played with the PATH environment variable from within codelite?
bigpilot wrote:I can't find the file paths the compiler and linker use.
right click on the project -> settings -> compiler
right click on the project -> settings -> linker
bigpilot wrote:When I have the version which includes the compiler and the wxWidgets library and I build a test project I expect it to work.
On a clean PC it works out of the box, however, since your computer is not "clean" it is probably something in your environment - and this is why we are here :)
bigpilot wrote:I'm not sure if any of you ever used MinGW Studio but it looked a lot more like Visual Studio 6 and a lot easier to use than CodeLite
CodeLite in many ways is similar to VS2003/2005 - you can find many similarities especially in the project settings

Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Test wxWidgets project doesn't work

Post by eranif »

Make sure you have read the HOW TO POST thread
bigpilot
CodeLite Curious
Posts: 4
Joined: Tue Jan 20, 2009 9:39 pm
Contact:

Re: Test wxWidgets project doesn't work

Post by bigpilot »

Hi Eran,

It builds after I added SHELL=cmd.exe. But I get an error running (in debug configuration):

Cannot find wxmsw28ud_gcc_custom.dll (c:\wxWidgets-2.8.7\lib\gcc_dll\wxmsw28ud_gcc_custom.dll does exist)

Do I need to add something else?

My first thought is: why aren't these things set correctly by the installation program?
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Test wxWidgets project doesn't work

Post by eranif »

bigpilot wrote:My first thought is: why aren't these things set correctly by the installation program?
Because some people may want to use msys and cmd.exe
bigpilot wrote:Cannot find wxmsw28ud_gcc_custom.dll (c:\wxWidgets-2.8.7\lib\gcc_dll\wxmsw28ud_gcc_custom.dll does exist)
copy the dll provided by codelite (which is by default is placed under C:\wxWidgets-2.8.7\lib\gcc_dll) to somewhere in your path (e.g. C:\WINDOWS) OR under the same directory where your application is OR you can add C:\wxWidgets-2.8.7\lib\gcc_dll to your system PATH environment variable (restart of codelite is required)


Eran
Make sure you have read the HOW TO POST thread
sugonaut
CodeLite Curious
Posts: 1
Joined: Wed Feb 04, 2009 6:26 am
Contact:

Re: Test wxWidgets project doesn't work

Post by sugonaut »

Hi,

Just adding to eranif's response - In my experience I've had to copy both the wxmsw28u[d]_gcc_custom.dll and the mingwm10.dll to the Debug/Release directories.

Now a question - I assume that when I get ready to distribute my (wxWidgets Windows) app I'll have to include those two DLLs and a *.exe.manifest file. Is that correct? Am I missing anything else?

Cheers! And great work!
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Test wxWidgets project doesn't work

Post by jfouche »

sugonaut wrote:Just adding to eranif's response - In my experience I've had to copy both the wxmsw28u[d]_gcc_custom.dll and the mingwm10.dll to the Debug/Release directories.

Now a question - I assume that when I get ready to distribute my (wxWidgets Windows) app I'll have to include those two DLLs and a *.exe.manifest file. Is that correct? Am I missing anything else?
You're right about DLL (don't know about manifest, 'cause I don't use them), but to be sure, you can use dependancy walker, to know what your application really needs (this will list all DLL needed by your app).
--
Jérémie
Jérémie
Post Reply