How to Build wxWidgets debug library?

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Earned some good credits
Earned some good credits
Posts: 100
Joined: Wed Feb 18, 2015 4:56 pm

How to Build wxWidgets debug library?

Post by AshtonC1 » Sun Jul 24, 2016 1:41 am

Someone suggested that I 'build the missing wxWidgets debug library'

Could this solve a project build error indicating no such file or directory?

Build log:

Code: Select all

-------------- Clean: Release in Form2 (compiler: GNU GCC Compiler)---------------

Cleaned "Form2 - Release"

-------------- Build: Release in Form2 (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wall -O2 -IC:\wxWidgets-3.1.0\include -I\msw -IC:\MinGW\include -IC:\MinGW\bin -IC:\MinGW -c C:\Users\Admin\Desktop\Briefcase\CPP_projects\CodeBlocks\Form2\Form2App.cpp -o obj\Release\Form2App.o
In file included from C:\Users\Admin\Desktop\Briefcase\CPP_projects\CodeBlocks\Form2\Form2App.cpp:10:0:
C:\Users\Admin\Desktop\Briefcase\CPP_projects\CodeBlocks\Form2\Form2App.h:13:20: fatal error: wx/app.h: No such file or directory
 #include <wx/app.h>
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
I have already performed a Build=debug.

Advice appreciated

User avatar
Super wx Problem Solver
Super wx Problem Solver
Posts: 429
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France

Re: How to Build wxWidgets debug library?

Post by xaviou » Mon Jul 25, 2016 7:53 am


A debug wxWidgets configuration won't help you building the "Release" target or your project.

From the build result you've posted, you are just missing an include directory witch should be something like "C:\wxWidgets-3.1.0\lib\gcc_lib\mswu".

My wxWidgets stuff web page : [email protected]'s wxStuff

Post Reply