========================================================================================================

[olej@notebook wxWidgets]$ ./wxPython
Traceback (most recent call last):
  File "./wxPython", line 3, in <module>
    import wx
ImportError: No module named wx



[olej@notebook include]$ yum install wx*
...
Готово!
New leaves:
  wxGlade.noarch
  wxMaxima.i686
  wxPython-devel.i686
  wxPython-docs.noarch
  wxapt.i686
  wxiax.i686


[olej@notebook wxWidgets]$ ./wxPython
...


========================================================================================================


[olej@notebook wxWidgets]$ ./wxPerl
Base class package "Wx::Frame" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .).
 at ./wxPerl line 5
BEGIN failed--compilation aborted at ./wxPerl line 5.


[olej@notebook include]$ sudo yum install perl-Wx*
...
Установлено:
  perl-Wx.i686 0:0.92-1.fc12                     perl-Wx-Perl-DataWalker.noarch 0:0.02-5.fc12                     perl-Wx-Perl-ProcessStream.noarch 0:0.11-3.fc12                    

Зависимости установлены:
  perl-Devel-Size.i686 0:0.71-2.fc12                                                                                                                                                 

Готово!
New leaves:
  perl-Wx-Perl-DataWalker.noarch
  perl-Wx-Perl-ProcessStream.noarch


--------------------------------------------------------------------------------------------------------

========================================================================================================


[olej@notebook include]$ sudo yum install codeblocks
...
Зависимости разрешены

=====================================================================================================================================================================================
 Пакет                                            Архитектура                           Версия                                        Репозиторий                              Размер
=====================================================================================================================================================================================
Установка:
 codeblocks                                       i686                                  10.05-1.fc12                                  updates                                  4.1 M
Установка зависимостей:
 codeblocks-libs                                  i686                                  10.05-1.fc12                                  updates                                  1.4 M

Результат операции
=====================================================================================================================================================================================
Install       2 Package(s)

Объем загрузки: 5.5 M
Будет установлено: 15 M
Продолжить? [y/N]: y
...
Готово!
New leaves:
  codeblocks.i686


--------------------------------------------------------------------------------------------------------


[olej@notebook wx]$ pwd
/usr/include/wx-2.8/wx

[olej@notebook wxWidgets]$ cc -I /usr/include/wx-2.8 minimal.cc -o minimal 2>&1 | wc -l
417

[olej@notebook wxWidgets]$ `pkg-config --cflags --libs wx-2.8`
Package wx-2.8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `wx-2.8.pc'
to the PKG_CONFIG_PATH environment variable
No package 'wx-2.8' found


[olej@notebook include]$ pkg-config --help
Usage: pkg-config [OPTION...]
  --version                                      output version of pkg-config
  --modversion                                   output version for package
  --atleast-pkgconfig-version=VERSION            require given version of
                                                 pkg-config
  --libs                                         output all linker flags
  --static                                       output linker flags for
                                                 static linking
  --short-errors                                 print short errors
  --libs-only-l                                  output -l flags
  --libs-only-other                              output other libs (e.g.
                                                 -pthread)
  --libs-only-L                                  output -L flags
  --cflags                                       output all pre-processor and
                                                 compiler flags
  --cflags-only-I                                output -I flags
  --cflags-only-other                            output cflags not covered by
                                                 the cflags-only-I option
  --variable=VARIABLENAME                        get the value of a variable
  --define-variable=VARIABLENAME=VARIABLEVALUE   set the value of a variable
  --exists                                       return 0 if the module(s)
                                                 exist
  --uninstalled                                  return 0 if the uninstalled
                                                 version of one or more
                                                 module(s) or their
                                                 dependencies will be used
  --atleast-version=VERSION                      return 0 if the module is at
                                                 least version VERSION
  --exact-version=VERSION                        return 0 if the module is at
                                                 exactly version VERSION
  --max-version=VERSION                          return 0 if the module is at
                                                 no newer than version VERSION
  --list-all                                     list all known packages
  --debug                                        show verbose debug information
  --print-errors                                 show verbose information
                                                 about missing or conflicting
                                                 packages
  --silence-errors                               show verbose information
                                                 about missing or conflicting
                                                 packages
  --errors-to-stdout                             print errors from
                                                 --print-errors to stdout not
                                                 stderr
  --print-provides                               print which packages the
                                                 package provides
  --print-requires                               print which packages the
                                                 package requires

Help options
  -?, --help                                     Show this help message
  --usage                                        Display brief usage message



[olej@notebook include]$ pkg-config --list-all | grep gtk+
gtk+-2.0                            GTK+ - GTK+ Graphical UI Library (x11 target)
gtk+-x11-2.0                        GTK+ - GTK+ Graphical UI Library (x11 target)
gtk+-unix-print-2.0                 GTK+ - GTK+ Unix print support
gtk+                                GTK+ - GIMP Tool Kit






--------------------------------------------------------------------------------------------------------

[olej@notebook ~]$ ls /usr/bin/wx*
/usr/bin/wxapt      /usr/bin/wxcopy   /usr/bin/wxiax     /usr/bin/wxpaste          /usr/bin/wxrc
/usr/bin/wx-config  /usr/bin/wxglade  /usr/bin/wxmaxima  /usr/bin/wxperl_overload  /usr/bin/wxrc-2.8


[olej@notebook wxWidgets]$ ls /usr/include/wx-2.8/wx/wx.h
/usr/include/wx-2.8/wx/wx.h

[olej@notebook wxWidgets]$ ls /usr/include/wx-2.8/wx/setup.h
ls: невозможно получить доступ к /usr/include/wx-2.8/wx/setup.h: Нет такого файла или каталога


[olej@notebook wxWidgets]$ wx-config

 wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release] [--version-full]
           [--list] [--selected-config] [--host=HOST] [--toolkit=TOOLKIT]
	   [--universal[=yes|no]] [--unicode[=yes|no]] [--debug[=yes|no]]
	   [--static[=yes|no]] [--version[=VERSION]] [--basename] [--cc]
	   [--cppflags] [--cflags] [--cxxflags] [--rescomp] [--libs] [--cxx]
	   [--ld] [--linkdeps] [--utility=UTIL] [LIB ...] 

    wx-config returns information about the wxWidgets libraries available on
  your system.  It may be used to retrieve the information required to build
  applications using these libraries using --cppflags, --cflags,  --cxxflags
  and --libs options. And you may query the properties of this configuration
  using --query-{host,toolkit,widgetset,chartype,debugtype,version,linkage}.

    If multiple builds of wxWidgets  are available,  you can use the options
  --prefix, --host, --toolkit, --unicode, --debug, --static, --universal and
  --version to select from them. The --selected-config option shows the name
  of the current configuration and --list shows available alternatives which
  match specified criteria. The --utility option returns the correct version
  of UTIL to use with the selected build. The --linkdeps option returns only
  static libraries for your makefile link rule dependencies.

    Optional LIB arguments (comma or space separated) may be used to specify
  the wxWidgets libraries that  you wish  to use.  The magic "std" label may
  be used to import all libraries that would be used by default if none were
  specified explicitly, e.g. wx-config --libs core,base.

[olej@notebook wxWidgets]$ 
[olej@notebook wxWidgets]$ 
[olej@notebook wxWidgets]$ wx-config --libs
-pthread   -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 
[olej@notebook wxWidgets]$ wx-config --cxxflags
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread



[olej@notebook wxWidgets]$ make
cc -E `wx-config --cxxflags` `wx-config --libs` minimal.cc -o minimal 
minimal.cc:51:16: warning: missing terminating " character
minimal.cc:52:1: warning: missing terminating " character
minimal.cc:54:23: warning: missing terminating " character
minimal.cc:55:32: error: macro "wxT" passed 2 arguments, but takes just 1
minimal.cc:62:10: warning: missing terminating " character
minimal.cc:62:10: error: #include expects "FILENAME" or <FILENAME>
make: *** [minimal] Ошибка 1




[olej@notebook wxWidgets]$ make
cc -E -I /usr/include/wx-2.8 minimal.cc -o minimal 
In file included from /usr/include/wx-2.8/wx/defs.h:21,
                 from /usr/include/wx-2.8/wx/wx.h:15,
                 from minimal.cc:4:
/usr/include/wx-2.8/wx/platform.h:196:22: error: wx/setup.h: Нет такого файла или каталога
In file included from /usr/include/wx-2.8/wx/platform.h:293,
                 from /usr/include/wx-2.8/wx/defs.h:21,
                 from /usr/include/wx-2.8/wx/wx.h:15,
                 from minimal.cc:4:
/usr/include/wx-2.8/wx/chkconf.h:103:9: error: #error "wxUSE_DYNLIB_CLASS must be defined."
/usr/include/wx-2.8/wx/chkconf.h:111:9: error: #error "wxUSE_EXCEPTIONS must be defined."
/usr/include/wx-2.8/wx/chkconf.h:119:9: error: #error "wxUSE_FILESYSTEM must be defined."
/usr/include/wx-2.8/wx/chkconf.h:127:9: error: #error "wxUSE_FS_ARCHIVE must be defined."
...




[olej@notebook wxWidgets]$ make
cc -E `wx-config --cppflags` `wx-config --libs` minimal.cc -o minimal 
In file included from minimal.cc:10:
setup.h:1:1: warning: "wxUSE_DYNLIB_CLASS" redefined
In file included from /usr/include/wx-2.8/wx/platform.h:196,
                 from /usr/include/wx-2.8/wx/defs.h:21,
                 from /usr/include/wx-2.8/wx/wx.h:15,
                 from minimal.cc:5:
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h:241:1: warning: this is the location of the previous definition
In file included from minimal.cc:10:
setup.h:2:1: warning: "wxUSE_EXCEPTIONS" redefined
In file included from /usr/include/wx-2.8/wx/platform.h:196,
                 from /usr/include/wx-2.8/wx/defs.h:21,
                 from /usr/include/wx-2.8/wx/wx.h:15,
                 from minimal.cc:5:
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h:182:1: warning: this is the location of the previous definition
In file included from minimal.cc:10:
setup.h:3:1: warning: "wxUSE_FILESYSTEM" redefined
In file included from /usr/include/wx-2.8/wx/platform.h:196,
                 from /usr/include/wx-2.8/wx/defs.h:21,
                 from /usr/include/wx-2.8/wx/wx.h:15,
                 from minimal.cc:5:
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h:247:1: warning: this is the location of the previous definition
In file included from minimal.cc:10:
setup.h:4:1: warning: "wxUSE_FS_ARCHIVE" redefined
In file included from /usr/include/wx-2.8/wx/platform.h:196,
                 from /usr/include/wx-2.8/wx/defs.h:21,
                 from /usr/include/wx-2.8/wx/wx.h:15,
                 from minimal.cc:5:
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h:251:1: warning: this is the location of the previous definition
In file included from minimal.cc:10:
setup.h:5:1: warning: "wxUSE_DYNAMIC_LOADER" redefined
In file included from /usr/include/wx-2.8/wx/platform.h:196,
                 from /usr/include/wx-2.8/wx/defs.h:21,
                 from /usr/include/wx-2.8/wx/wx.h:15,
                 from minimal.cc:5:
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h:243:1: warning: this is the location of the previous definition
In file included from minimal.cc:10:
setup.h:6:1: warning: "wxUSE_LOG" redefined
In file included from /usr/include/wx-2.8/wx/platform.h:196,
                 from /usr/include/wx-2.8/wx/defs.h:21,
                 from /usr/include/wx-2.8/wx/wx.h:15,
                 from minimal.cc:5:
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h:188:1: warning: this is the location of the previous definition



[olej@notebook wxWidgets]$ make
cc -E `wx-config --cppflags` `wx-config --libs` minimal.cc -o minimal.cpp 

[olej@notebook wxWidgets]$ ls -l minimal*
-rw-rw-r-- 1 olej olej    2129 Мар  8 18:15 minimal.cc
-rw-rw-r-- 1 olej olej 1607153 Мар  8 18:18 minimal.cpp

[olej@notebook wxWidgets]$ g++ `wx-config --libs` minimal.cpp -o minimal

[olej@notebook wxWidgets]$ ls -l minimal*
-rwxrwxr-x 1 olej olej   73547 Мар  8 18:18 minimal
-rw-rw-r-- 1 olej olej    2129 Мар  8 18:15 minimal.cc
-rw-rw-r-- 1 olej olej 1607153 Мар  8 18:18 minimal.cpp

[olej@notebook wxWidgets]$ ./minimal
...

--------------------------------------------------------------------------------------------------------


[olej@notebook wxWidgets]$ make
cc `wx-config --cppflags` `wx-config --libs` minimal.cc -o minimal

[olej@notebook wxWidgets]$ ./minimal 
[olej@notebook wxWidgets]$ 


========================================================================================================


