Codelite fails to build with wxWidgets

CodeLite installation/troubleshooting forum
willliamford35
CodeLite Curious
Posts: 7
Joined: Sun Nov 27, 2022 1:37 am
Genuine User: Yes
IDE Question: C++
Contact:

Codelite fails to build with wxWidgets

Post by willliamford35 »

MacOs 13.1
arm64 iMac
16G ram

Codelite omits any wxWidgets references in a build.


C++ compiler options:
-g;-O0;-Wall;/usr/local/bin/wx-config --cxxflags

Include paths:
.;./include;/usr/local/include;/usr/local/include/miracl;/usr/local/include/cryptopp

Linker options:
/usr/local/bin/wx-config --libs

Libraries:
-L/usr/local/lib;-framework;IOKit;-framework;Carbon;-framework;Cocoa;-framework;QuartzCore;-framework;AudioToolbox;-framework;System;-framework;OpenGL;/usr/local/lib/libwx_osx_cocoau-3.2.a;-framework;AVFoundation;-framework;CoreMedia;-weak_framework;AVKit;-ljpeg;-L/opt/homebrew/Cellar/libtiff/4.4.0_1/lib;-ltiff;-framework;WebKit;-lexpat;-lwxpng-3.2;-lwxscintilla-3.2;-lz;-lexpat;-L/opt/homebrew/Cellar/pcre2/10.40/lib;-lpcre2-32;-ljpeg;-L/opt/homebrew/Cellar/libtiff/4.4.0_1/lib;-ltiff;-lz;-framework;Security;-lpthread;-liconv;-lcurl;-L/usr/local/lib;-lmiracl;-lntl;-lgmp;-lcryptopp

***** Build results. Note that no reference to wxWidgets is present. *****************

/usr/bin/make -j8 -e -f Makefile
----------Building project:[ DigitalSignature - Debug ]----------
/Applications/Xcode.app/Contents/Developer/usr/bin/g++ -c "/Volumes/Mercury SSD/DiscreteMathCalculator/DiscreteMathCalculatorProject/AlgorithmImplementation/DigitalSignature/include/client.cpp" -g -O0 -Wall -std=c++0x -o build-Debug/include_client.cpp.o -I. -I. -I./include -I/usr/local/include -I/usr/local/include/miracl -I/usr/local/include/cryptopp
/Volumes/Mercury SSD/DiscreteMathCalculator/DiscreteMathCalculatorProject/AlgorithmImplementation/DigitalSignature/include/client.cpp:23:10: fatal error: 'wx/wxprec.h' file not found
#include "wx/wxprec.h"
~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/usr/bin/g++ -c "/Volumes/Mercury SSD/DiscreteMathCalculator/DiscreteMathCalculatorProject/AlgorithmImplementation/DigitalSignature/src/ImageFiles.cpp" -g -O0 -Wall -std=c++0x -o build-Debug/src_ImageFiles.cpp.o -I. -I. -I./include -I/usr/local/include -I/usr/local/include/miracl -I/usr/local/include/cryptopp
1 error generated.
/Volumes/Mercury SSD/DiscreteMathCalculator/DiscreteMathCalculatorProject/AlgorithmImplementation/DigitalSignature/src/ImageFiles.cpp:1:10: fatal error: 'wx/string.h' file not found
#include <wx/string.h>
~~~~~~~~~
1 error generated.
make[1]: *** [build-Debug/src_ImageFiles.cpp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [build-Debug/include_client.cpp.o] Error 1
make[1]: *** wait: No child processes. Stop.
make: *** [All] Error 2
==== build ended with errors (3 errors, 0 warnings) ===

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

Re: Codelite fails to build with wxWidgets

Post by DavidGH »

Hi,

Unless MacOs is different (I'm Linux only) shouldn't that be:

Code: Select all

-g;-O0;-Wall;$(shell /usr/local/bin/wx-config --cxxflags)

and

Code: Select all

$(shell /usr/local/bin/wx-config --libs)

Otherwise you're passing those text strings to the compiler/linker, instead of wx-config's output.

Regards,

David

Post Reply