Page 1 of 1

CodeLite with wxWidgets

Posted: Thu Nov 09, 2017 5:18 pm
by rjl6789
Hi
CodeLite 11.0.1
MinGW TDM 5.1 64 bit
wxWidgets 3.0.3
Windows 10

Hi I'm really just experimenting at this point and was hoping to use CodeLite in combination with wxWidgets. wxWidgets was built according to:
http://codelite.org/Developers/BuildingWxWidgetsWin

and system environment variables are set as:
WXWIN C:\wxWidgets-3.0.3
WXCFG gcc_dll\mswu
PATH C:\TDM-GCC-64\bin;rest of paths

When I try to build and run any of my test projects I get the error:
The program can't start because "insert dll here" is missing from your computer. Try reinstalling the program to fix this problem
dll's it thinks are missing are:
wxbase30u_gcc_cl.dll
wxmsw30u_xrc_gcc_cl.dll
wxmsw30u_core_gcc_cl.dll

However, I can find all of these files in the c:\wxWidgets-3.0.3\lib\gcc_dll folder

Codelites Build Window reports:
c:\WINDOWS\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f Makefile
"-----Building project:[ wxTest - Debug ]----"
mingw32-make.exe[1]: Entering directory 'C:/CodeLite_Test/wxTest'
c:/TDM-GCC-64/bin/g++.exe -o ./Debug/wxTest @"wxTest.txt" -L. -mthreads -LC:/wxwidgets-3.0.3/lib/gcc_dll -lwxmsw30u_richtext -lwxmsw30u_xrc -lwxmsw30u_aui .....
=====0errors, 0 warnings====

Please could someone help with how to configure CodeLite for wxWidgets use - I have a feeling I'm almost there and there is some path/environment variable I might not have set. Any links to windows CodeLite and wxWidgets tutorials would also be appreciated.

Thanks very much

Rob

Re: CodeLite with wxWidgets

Posted: Thu Nov 09, 2017 5:41 pm
by eranif
wxWidgets applications require wxWidgets DLLs to be in their path.

From CodeLite->Settings->Environment variables, add this line (exactly as I typed it here):

Code: Select all

PATH=C:\wxWidgets-3.0.3\lib\gcc_dll;$PATH
It should work (assuming your code complied and linked successfully

Eran

Re: CodeLite with wxWidgets

Posted: Thu Nov 09, 2017 6:01 pm
by rjl6789
Thank you, that is great!

In the meantime I'd been and uninstalled, re-installed and attempted the tutorial:
http://codelite.org/LiteEditor/WxCrafterHelloWorld

With the addition of your environment variable this now works perfectly.

Thanks once again!

Rob