Code::Blocks Forums

User forums => Help => Topic started by: dkaip on December 13, 2016, 06:18:12 pm

Title: Use Andvanced Optios and Unicode Build of wxWidgets gives fatal error: wx/app.h:
Post by: dkaip on December 13, 2016, 06:18:12 pm
Hi,
i am in Linux Mint and trying the first C++ wxWidgets 3.0 program and Use Andvanced Options and Unicode Build of wxWidgets gives fatal error: wx/app.h: no sutch file or folder.
As i see at Build options, Compiler settings are `wx-config  --version=3.0 --static=yes --unicode=yes --debug=yes --cflags` and Linker settings are `wx-config  --version=3.0 --static=yes --unicode=yes --debug=yes --libs.
What i must do to build and run?
The execute file, is whith this way solid and standalone?

Thanks

Jim
Title: Re: Use Andvanced Optios and Unicode Build of wxWidgets gives fatal error: wx/app.h:
Post by: stahta01 on December 13, 2016, 07:32:14 pm
When on the command line what does the below command return?

Code
wx-config  --version=3.0 --static=yes --unicode=yes --debug=yes --cflags

Also, what does this command return?
Code
wx-config  --list

Tim S.
Title: Re: Use Andvanced Optios and Unicode Build of wxWidgets gives fatal error: wx/app.h:
Post by: dkaip on December 13, 2016, 07:35:57 pm
a@a-desktop ~ $ wx-config  --version=3.0 --static=yes --unicode=yes --debug=yes --cflags

          Warning: No config found to match: /usr/local/bin/wx-config --version=3.0 --static=yes --unicode=yes --debug=yes --cflags
                   in /usr/local/lib/wx/config
          If you require this configuration, please install the desired
          library build.  If this is part of an automated configuration
          test and no other errors occur, you may safely ignore it.
          You may use wx-config --list to see all configs available in
          the default prefix.

a@a-desktop ~ $

and

a@a-desktop ~ $ wx-config  --list

    Default config is gtk2-unicode-static-3.1

  Default config will be used for output

  Alternate matches:
    gtk2-unicode-3.1

a@a-desktop ~ $

Title: Re: Use Andvanced Optios and Unicode Build of wxWidgets gives fatal error: wx/app.h:
Post by: stahta01 on December 13, 2016, 07:43:28 pm
So, you now know the problem.

Tim S.
Title: Re: Use Andvanced Optios and Unicode Build of wxWidgets gives fatal error: wx/app.h:
Post by: dkaip on December 13, 2016, 07:58:59 pm
I am a beginer, so i hope that i will find it out.

Thank you very mutch.

Jim.
Title: Re: Use Andvanced Optios and Unicode Build of wxWidgets gives fatal error: wx/app.h:
Post by: stahta01 on December 13, 2016, 08:57:26 pm
I am a beginer, so i hope that i will find it out.

Thank you very mutch.

Jim.

You CAN NOT use an library that is NOT [installed] on your PC!
Either use the version of the library installed on your PC or install the software library version you are trying to use!

Tim S.
Title: Re: Use Andvanced Optios and Unicode Build of wxWidgets gives fatal error: wx/app.h:
Post by: oBFusCATed on December 13, 2016, 09:56:03 pm
Change:
$ wx-config  --version=3.0 --static=yes --unicode=yes --debug=yes --cflags
to
$ wx-config --cflags
And it will work fine.
Then do the same thing for the linker command.
If you need these option you'll have to build other versions of wx, but this is out of the scope of the forum.