News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

configure libraries of wxwidget

Started by sebarubiolo, August 27, 2017, 08:56:06 PM

Previous topic - Next topic

sebarubiolo

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?

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

sebarubiolo

#2
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:



-------------- 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:



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.



stahta01

What is the output of the below command on the command line?


wx-config --list


Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

sebarubiolo: You need to install the dev or devel package for wxgtk.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

sebarubiolo

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!!!!!!