Codelite project Clean & Build issues - also Language Server issues

General questions regarding the usage of CodeLite
thomasg_peters
CodeLite Curious
Posts: 2
Joined: Sat Sep 11, 2021 7:27 pm
Genuine User: Yes
IDE Question: C++
Contact:

Codelite project Clean & Build issues - also Language Server issues

Post by thomasg_peters »

Installed Codelite 15.0.6 and also wxWidgets-3.1.5 from source using procedure on this site. https://docs.codelite.org/build/build_wx_widgets/ When creating project using wxCrafter - wxDialog or any wx[Method] the project can not clean or build. Same issue with projects created as C++ wxCrafter enabled.

Code: Select all

/usr/bin/make -j16 -e -f  Makefile clean
----------Cleaning project:[ C-Simple-Projects - Debug ]----------
make[1]: wx-config: Command not found
make[1]: wx-config: Command not found
rm -f -r ../build-Debug/C-Simple-Projects
=== build completed successfully (0 errors, 0 warnings) ===

I can understand the Compiler & Linker Options setting which calls

Code: Select all

wx-config --cxxflags

indicating Command not found above, but calling

Code: Select all

wx-config --cxxflags

from the command line works.

However I am stuck changing project setting each time. There must be another root cause. Also little red arrows pointing to code indicate the IDE can not find the libs.

Code: Select all

sudo make install

which completed successfully and can find wx-config in my shell using terminal.

Code: Select all

> % wx-config --cxxflags
-I/usr/local/lib/wx/include/osx_cocoa-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__

Thomas

DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Codelite project Clean & Build issues - also Language Server issues

Post by DavidGH »

Hi (again),

calling wx-config --cxxflags from the command line works

Presumably /usr/local/bin/ is in your terminal's PATH.

You can either:
1) In your Project's Compiler Settings, change
$(shell wx-config --cxxflags...
to
$(shell wx-config --cxxflags/usr/local/bin/wx-config --cxxflags...
(and similarly in the linker ones)
Or:
2) In the main menubar, Settings > Environmental Variables, add something like:
PATH=/usr/local/bin/:$PATH

Regards,

David

thomasg_peters
CodeLite Curious
Posts: 2
Joined: Sat Sep 11, 2021 7:27 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite project Clean & Build issues - also Language Server issues

Post by thomasg_peters »

Thank you Dave. Changed settings for make in the project to "default" and the application started building. Issue may be related to Codelite makefile generator setting - however, I also put the fully qualified path to wx-config into the compiler options, and linker options. I also changed the compiler options to include fully qualified path to wx-config executable. Will try to use Save as Template - see if that will generate other projects with these setting preconfigured. Fingers crossed.

Post Reply