Author Topic: Use Andvanced Optios and Unicode Build of wxWidgets gives fatal error: wx/app.h:  (Read 3793 times)

Offline dkaip

  • Multiple posting newcomer
  • *
  • Posts: 42
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline dkaip

  • Multiple posting newcomer
  • *
  • Posts: 42
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 ~ $


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
So, you now know the problem.

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

Offline dkaip

  • Multiple posting newcomer
  • *
  • Posts: 42
I am a beginer, so i hope that i will find it out.

Thank you very mutch.

Jim.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
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.
« Last Edit: December 13, 2016, 08:59:16 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
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.
(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!]