Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[semi-OT] codeblocks + wxsmith

22 views
Skip to first unread message

Soviet_Mario

unread,
Nov 8, 2019, 5:01:13 AM11/8/19
to

when including WXWIDGETS in a stub of program under
codeblocks, using wxsmith as rad plugin, the compiler
complains about not finding

WX/SETUP.H

After a scan of the whole machine, no such file was found
anywhere


also some other headers had to be edited manually as the
actual folder of wxinstal was not set

for instance, I had to manually write
#include </usr/include/wx-3.0/wx/app.h>
instead of plain
#include <wx/app.h>

I can't find the place where to input search path for
headers, in general

but in particular SETUP.H just is missing

has anybody met this same problem ?
where should I get this and where should I put ?

sorry for the trivial question :\



--
1) Resistere, resistere, resistere.
2) Se tutti pagano le tasse, le tasse le pagano tutti
Soviet_Mario - (aka Gatto_Vizzato)

Miguel Giménez

unread,
Nov 8, 2019, 11:11:50 AM11/8/19
to
El 08/11/2019 a las 11:00, Soviet_Mario escribió:
>
> when including WXWIDGETS in a stub of program under codeblocks, using
> wxsmith as rad plugin, the compiler complains about not finding
>
> WX/SETUP.H
>
> After a scan of the whole machine, no such file was found anywhere
>
>
> also some other headers had to be edited manually as the actual folder
> of wxinstal was not set
>
> for instance, I had to manually write
> #include </usr/include/wx-3.0/wx/app.h>
> instead of plain
> #include <wx/app.h>
>
> I can't find the place where to input search path for headers, in general
>
> but in particular SETUP.H just is missing
>
> has anybody met this same problem ?
> where should I get this and where should I put ?
>
> sorry for the trivial question :\
>
>
>

wx/setup.h is in the same folder of the compiled library, in Windows it
may look like:

c:\wxWidgets-3.1.3\lib\gcc_dll\mswu\wx\setup.h

You must select Project -> Build options in the menu, and add the search
paths to the Search directories -> Compiler pane:

/usr/include/wx-3.0
c:\wxWidgets-3.1.3\lib\gcc_dll\mswu <- change to your folder

--
Saludos
Miguel Giménez

Miguel Giménez

unread,
Nov 8, 2019, 11:15:49 AM11/8/19
to
> the compiler complains about not finding WX/SETUP.H

You must search setup.h, not SETUP.H

--
Saludos
Miguel Giménez

Soviet_Mario

unread,
Nov 8, 2019, 12:50:52 PM11/8/19
to
On 08/11/2019 17:10, Miguel Giménez wrote:
> El 08/11/2019 a las 11:00, Soviet_Mario escribió:
>>
>> when including WXWIDGETS in a stub of program under
>> codeblocks, using wxsmith as rad plugin, the compiler
>> complains about not finding
>>
>> WX/SETUP.H
>>
>> After a scan of the whole machine, no such file was found
>> anywhere
>>
>>
>> also some other headers had to be edited manually as the
>> actual folder of wxinstal was not set
>>
>> for instance, I had to manually write
>> #include </usr/include/wx-3.0/wx/app.h>
>> instead of plain
>> #include <wx/app.h>
>>
>> I can't find the place where to input search path for
>> headers, in general
>>
>> but in particular SETUP.H just is missing
>>
>> has anybody met this same problem ?
>> where should I get this and where should I put ?
>>
>> sorry for the trivial question :\
>>
>>
>>
>
> wx/setup.h is in the same folder of the compiled library, in
> Windows it may look like:
>
> c:\wxWidgets-3.1.3\lib\gcc_dll\mswu\wx\setup.h


no the file is MISSING. I have scanned the whole machine
with "catfish" and it does not find ant setup.h that can be
associated with WX (there are a lot, but are distinct files
not regarding WX)

>
> You must select Project -> Build options in the menu, and
> add the search paths to the Search directories -> Compiler > pane:

TNX, this advice works, at least ! Every other header is
found without having to manually edit the include directive.
But I still lack the damn setup.h :/

>
> /usr/include/wx-3.0
> c:\wxWidgets-3.1.3\lib\gcc_dll\mswu   <- change to your folder
>


--

Soviet_Mario

unread,
Nov 8, 2019, 12:52:50 PM11/8/19
to
On 08/11/2019 17:14, Miguel Giménez wrote:
>> the compiler complains about not finding WX/SETUP.H
>
> You must search setup.h, not SETUP.H
>

well, I just stressed the word in "bold" actually.
I made a case insensitive search (here on linux case matters
in filenames, so I had been wary)

Keith Thompson

unread,
Nov 8, 2019, 12:58:47 PM11/8/19
to
Miguel Giménez <m...@privacy.net> writes:
>> the compiler complains about not finding WX/SETUP.H
>
> You must search setup.h, not SETUP.H

It depends. If the OP is on Windows, setup.h and SETUP.H are the
same file.

--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for Philips Healthcare
void Void(void) { Void(); } /* The recursive call of the void */

Miguel Giménez

unread,
Nov 8, 2019, 1:03:31 PM11/8/19
to
El 08/11/2019 a las 18:58, Keith Thompson escribió:
> Miguel Giménez <m...@privacy.net> writes:
>>> the compiler complains about not finding WX/SETUP.H
>>
>> You must search setup.h, not SETUP.H
>
> It depends. If the OP is on Windows, setup.h and SETUP.H are the
> same file.
>

He uses Linux:

> #include </usr/include/wx-3.0/wx/app.h>


--
Saludos
Miguel Giménez

Miguel Giménez

unread,
Nov 8, 2019, 1:10:01 PM11/8/19
to
The setup.h is copied during wxWidgets compilation, but the original for
your system should be still at /usr/include/wx-3.0/include/wx/gtk

--
Saludos
Miguel Giménez

Soviet_Mario

unread,
Nov 8, 2019, 6:43:12 PM11/8/19
to
On 08/11/2019 18:58, Keith Thompson wrote:
> Miguel Giménez <m...@privacy.net> writes:
>>> the compiler complains about not finding WX/SETUP.H
>>
>> You must search setup.h, not SETUP.H
>
> It depends. If the OP is on Windows, setup.h and SETUP.H are the
> same file.
>

I am on linux, but extensive system-wide search did not
discover any such file alas :(

Soviet_Mario

unread,
Nov 8, 2019, 6:44:11 PM11/8/19
to
On 08/11/2019 19:09, Miguel Giménez wrote:
> The setup.h is copied during wxWidgets compilation, but the
> original for your system should be still at
> /usr/include/wx-3.0/include/wx/gtk
>

maybe the problem arose as I installed everything from repo
package and did not compile anything manually ... dunno :(

Paavo Helde

unread,
Nov 9, 2019, 2:21:48 AM11/9/19
to
On 9.11.2019 1:44, Soviet_Mario wrote:
> On 08/11/2019 19:09, Miguel Giménez wrote:
>> The setup.h is copied during wxWidgets compilation, but the original
>> for your system should be still at /usr/include/wx-3.0/include/wx/gtk
>>
>
> maybe the problem arose as I installed everything from repo package and
> did not compile anything manually ... dunno :(

Then you probably failed to install the needed *-dev or *-devel packages.

Soviet_Mario

unread,
Nov 9, 2019, 5:33:43 AM11/9/19
to
mmm, I'll look for missing dev packages
I normally don't install them as a general rule of thumb, in
the particular case I can't remember, but I'll try to add them !
Tnx
0 new messages