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.
Test wxWidgets project doesn't work
-
- CodeLite Curious
- Posts: 4
- Joined: Tue Jan 20, 2009 9:39 pm
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Test wxWidgets project doesn't work
Can u please paste the build log ? (from the 'Build' tab)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
2 Quick things to check:
1) are u using msys?
2) have u played with the PATH environment variable from within codelite?
right click on the project -> settings -> compilerbigpilot wrote:I can't find the file paths the compiler and linker use.
right click on the project -> settings -> linker
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 herebigpilot 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.
CodeLite in many ways is similar to VS2003/2005 - you can find many similarities especially in the project settingsbigpilot 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
Eran
Make sure you have read the HOW TO POST thread
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Test wxWidgets project doesn't work
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 4
- Joined: Tue Jan 20, 2009 9:39 pm
- Contact:
Re: Test wxWidgets project doesn't work
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?
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?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Test wxWidgets project doesn't work
Because some people may want to use msys and cmd.exebigpilot wrote:My first thought is: why aren't these things set correctly by the installation program?
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)bigpilot wrote:Cannot find wxmsw28ud_gcc_custom.dll (c:\wxWidgets-2.8.7\lib\gcc_dll\wxmsw28ud_gcc_custom.dll does exist)
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 1
- Joined: Wed Feb 04, 2009 6:26 am
- Contact:
Re: Test wxWidgets project doesn't work
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!
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!
-
- 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
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).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?
--
Jérémie
Jérémie