Page 1 of 1

Test wxWidgets project doesn't work

Posted: Tue Jan 20, 2009 9:51 pm
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.

Re: Test wxWidgets project doesn't work

Posted: Tue Jan 20, 2009 11:05 pm
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

Re: Test wxWidgets project doesn't work

Posted: Tue Jan 20, 2009 11:42 pm
by eranif

Re: Test wxWidgets project doesn't work

Posted: Wed Jan 21, 2009 12:21 am
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?

Re: Test wxWidgets project doesn't work

Posted: Wed Jan 21, 2009 12:27 am
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

Re: Test wxWidgets project doesn't work

Posted: Wed Feb 04, 2009 6:42 am
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!

Re: Test wxWidgets project doesn't work

Posted: Wed Feb 04, 2009 11:21 am
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