News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Use Andvanced Optios and Unicode Build of wxWidgets gives fatal error: wx/app.h:

Started by dkaip, December 13, 2016, 06:18:12 PM

Previous topic - Next topic

dkaip

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

stahta01

When on the command line what does the below command return?


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


Also, what does this command return?

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]

dkaip

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 ~ $


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]

dkaip

I am a beginer, so i hope that i will find it out.

Thank you very mutch.

Jim.

stahta01

Quote from: 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.

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

Change:
Quote from: dkaip on December 13, 2016, 07:35:57 PM
$ wx-config  --version=3.0 --static=yes --unicode=yes --debug=yes --cflags
to
Quote from: dkaip on December 13, 2016, 07:35:57 PM
$ 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.
(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!]