Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: sebarubiolo on August 27, 2017, 08:56:06 pm

Title: configure libraries of wxwidget
Post by: sebarubiolo on August 27, 2017, 08:56:06 pm
Hi.
I cant configure the libraries of wxwidgets.
when build i have an error: 'fatal error: wx/wxprec.h: No existe el fichero o el directorio'
the files are in /usr/include/wx-3.0/wx/ , but I do not know how to modify the directory.
Please help me.... that i have to do?
Title: Re: configure libraries of wxwidget
Post by: stahta01 on August 27, 2017, 09:16:36 pm
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)
Title: Re: configure libraries of wxwidget
Post by: sebarubiolo on August 28, 2017, 03:06:36 am
hi stahta01! Thank for answered.
My codeblocks version is 16.01 installed from Synaptic of Debian Strech.
after i installed the program, i install wxwidgets also from Synaptic.

I try run a empty project wx3.0 but the build log throw an error:

Code

-------------- Build: Debug in prueba4 (compiler: GNU GCC Compiler)---------------

g++ -Wall -g  -c /home/sebarubiolo/Documentos/programacion/pruebas/wx/prueba4/GUIFrame.cpp -o obj/Debug/GUIFrame.o
/home/sebarubiolo/Documentos/programacion/pruebas/wx/prueba4/GUIFrame.cpp:8:23: fatal error: wx/wxprec.h: No existe el fichero o el directorio
 #include "wx/wxprec.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 searched the library and exist in 'usr/include/wx-3.0/wx', but the codeblock not recognize.

Which one is my error?


edit: the compiler is:

Code

g++ (Debian 6.3.0-18) 6.3.0 20170516
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Title: Re: configure libraries of wxwidget
Post by: stahta01 on August 28, 2017, 04:09:14 am
What is the output of the below command on the command line?

Code
wx-config --list

Tim S.
Title: Re: configure libraries of wxwidget
Post by: oBFusCATed on August 28, 2017, 09:05:32 am
sebarubiolo: You need to install the dev or devel package for wxgtk.
Title: Re: configure libraries of wxwidget
Post by: sebarubiolo on August 29, 2017, 12:26:21 am
i wrote in terminal wx-config and i realized that i dont have this command. (thansk Tim)
So, installed twxgtk (thanks oBFusCATed) and everything is working.

Gracias Amigos!!!!!!