wxWidgets for 3rd party software on CentOS 6.9? [SOLVED]

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Perrault
In need of some credit
In need of some credit
Posts: 5
Joined: Sun Mar 11, 2018 10:22 pm

wxWidgets for 3rd party software on CentOS 6.9? [SOLVED]

Post by Perrault »

Hello everybody,
I'm trying to install a software called maitreya (an astrology software, that's supposed to run flawlessly on Linux). The Installation instructions say I must get all the dependencies right before attempting to install the SW per se. Among them are a series of wxWindows and wxWidgets pgks. From the Installation instructions:
The following command can be pasted to the console:
"sudo apt-get install libwxbase3.0-0 libwxbase3.0-dev libwxgtk3.0-0 libwxgtk3.0-dev wx3.0-headers wx3.0-i18n libfontconfig1-dev"

Other platforms have only 2 or 3 such packages. On Redhat/Fedora the wx packages are called wxGTK and wxGTK-dev.

We recommend Unicode packages if your platform provides Ansi and Unicode versions of the software. If not mentioned, Unicode will most likely be the default.

You can also compile wx from source code, see the wxWidgets Site.
This is the content of the wxWidgets-3.0.4 source folder (once I've expanded the tarball):

Code: Select all

[dolly@centos wxWidgets-3.0.4]$ ls -l 
total 4396
-rw-r--r--.  1 dolly dolly   26959 Mar  7 17:55 acinclude.m4
-rw-r--r--.  1 dolly dolly    1343 Mar  7 17:55 aclocal.m4
-rw-r--r--.  1 dolly dolly    1245 Mar  7 17:55 appveyor.yml
drwxr-xr-x.  6 dolly dolly    4096 Mar  7 17:55 art
-rw-r--r--.  1 dolly dolly  254248 Mar  7 17:55 autoconf_inc.m4
-rwxr-xr-x.  1 dolly dolly      52 Mar  7 17:55 autogen.sh
drwxr-xr-x. 12 dolly dolly    4096 Mar  7 17:55 build
-rw-r--r--.  1 dolly dolly     637 Mar  7 17:55 BuildGit.txt
-rwxr-xr-x.  1 dolly dolly   43815 Mar  7 17:55 config.guess
-rwxr-xr-x.  1 dolly dolly   36692 Mar  7 17:55 config.sub
-rwxr-xr-x.  1 dolly dolly 1270033 Mar  7 17:55 configure
-rw-r--r--.  1 dolly dolly  314259 Mar  7 17:55 configure.in
drwxr-xr-x.  7 dolly dolly    4096 Mar  7 17:55 demos
-rw-r--r--.  1 dolly dolly   15570 Mar  7 17:55 descrip.mms
drwxr-xr-x.  5 dolly dolly    4096 Mar  7 17:55 distrib
drwxr-xr-x. 18 dolly dolly    4096 Mar  7 17:55 docs
drwxr-xr-x.  4 dolly dolly    4096 Mar  7 17:55 include
-rwxr-xr-x.  1 dolly dolly    5584 Mar  7 17:55 install-sh
drwxr-xr-x.  3 dolly dolly    4096 Mar  7 17:55 interface
drwxr-xr-x.  3 dolly dolly    4096 Mar  7 17:55 lib
drwxr-xr-x.  3 dolly dolly    4096 Mar  7 18:11 locale
-rw-r--r--.  1 dolly dolly 2275525 Mar  7 17:55 Makefile.in
drwxr-xr-x.  9 dolly dolly    4096 Mar  7 17:55 misc
-rw-r--r--.  1 dolly dolly     675 Mar  7 17:55 mkinstalldirs
-rwxr-xr-x.  1 dolly dolly     547 Mar  7 17:55 regen
drwxr-xr-x. 90 dolly dolly    4096 Mar  7 17:55 samples
-rw-r--r--.  1 dolly dolly   26299 Mar  7 17:55 setup.h.in
-rw-r--r--.  1 dolly dolly   29425 Mar  7 17:55 setup.h_vms
drwxr-xr-x. 30 dolly dolly    4096 Mar  7 17:55 src
drwxr-xr-x. 50 dolly dolly    4096 Mar  7 17:55 tests
drwxr-xr-x.  9 dolly dolly    4096 Mar  7 17:55 utils
-rw-r--r--.  1 dolly dolly    1909 Mar  7 17:55 version-script.in
-rwxr-xr-x.  1 dolly dolly   48144 Mar  7 17:55 wx-config.in
-rw-r--r--.  1 dolly dolly    1131 Mar  7 17:55 wx-config-inplace.in
-rw-r--r--.  1 dolly dolly   40561 Mar  7 17:55 wxwin.m4
[dolly@centos wxWidgets-3.0.4]$ 


I proceeded with "./configure" and I think it went well:

Code: Select all

config.status: executing libtool commands

Configured wxWidgets 3.0.4 for `i686-pc-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+ 2 with support for GTK+ printing libnotify
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets support Unicode?                       yes (using wchar_t)
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.6      no
                                       wxWidgets 2.8      yes
  Which libraries should wxWidgets use?
                                       STL                no
                                       jpeg               builtin
                                       png                sys
                                       regex              builtin
                                       tiff               builtin
                                       zlib               sys
                                       expat              builtin
                                       libmspack          no
                                       sdl                no

[dolly@centos wxWidgets-3.0.4]$ 
What should I do next to install wxWidgets before attempting to install Maitreya?
Last edited by Perrault on Mon Mar 12, 2018 6:08 pm, edited 1 time in total.
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: wxWidgets for 3rd party software on CentOS 6.9?

Post by DavidHart »

Hi,
On Redhat/Fedora the wx packages are called wxGTK and wxGTK-dev.
For the record, that should be wxGTK-devel. And the easiest way to have built maitreya would be to install them: they come pre-built.
I proceeded with "./configure" and I think it went well
What should I do next to install wxWidgets
In that terminal:

Code: Select all

make -j
su
make install
ldconfig
If you then do:
wx-config --list
you should see that you have wxGTK-3.0.4 installed. It will probably be called gtk2-unicode-3.0

Regards,

David
Perrault
In need of some credit
In need of some credit
Posts: 5
Joined: Sun Mar 11, 2018 10:22 pm

Re: wxWidgets for 3rd party software on CentOS 6.9?

Post by Perrault »

Hello David,
Thank you for your quick response.
I've encountered a few problems.
  • "sudo yum -y install wxGTK" returned this: "Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    Nothing to do
    "
  • "sudo yum -y install wxGTK-devel" returned instead (please read the last 6-7 lines, below):

    Code: Select all

    [dolly@centos /]$ sudo yum -y install wxGTK-devel 
    Loaded plugins: fastestmirror, refresh-packagekit, security
    Setting up Install Process
    Loading mirror speeds from cached hostfile
     * base: mirrors.prometeus.net
     * centosplus: mirrors.prometeus.net
     * epel: mirror.kinamo.be
     * extras: ftp.hosteurope.de
     * fasttrack: mirrors.prometeus.net
     * nux-dextop: mirror.li.nux.ro
     * updates: mirror.eu.oneandone.net
    https://copr-be.cloud.fedoraproject.org/results/dperson/neovim/epel-7-i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    To address this issue please refer to the below knowledge base article 
    
    https://access.redhat.com/articles/1320623
    
    If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.
    
    Resolving Dependencies
    --> Running transaction check
    ---> Package wxGTK-devel.i686 0:2.8.12-1.el6.centos will be installed
    --> Processing Dependency: wxGTK-media = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    --> Processing Dependency: wxGTK-gl = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-gl-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxGTK = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxBase = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxBase-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: libGLU-devel for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    --> Processing Dependency: libGL-devel for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    --> Processing Dependency: bakefile for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    --> Running transaction check
    ---> Package bakefile.i686 0:0.2.8-3.el6.centos will be installed
    --> Processing Dependency: python-empy for package: bakefile-0.2.8-3.el6.centos.i686
    ---> Package mesa-libGL-devel.i686 0:11.0.7-4.el6 will be installed
    --> Processing Dependency: pkgconfig(libdrm) >= 2.4.60 for package: mesa-libGL-devel-11.0.7-4.el6.i686
    --> Processing Dependency: pkgconfig(xxf86vm) for package: mesa-libGL-devel-11.0.7-4.el6.i686
    --> Processing Dependency: pkgconfig(xdamage) for package: mesa-libGL-devel-11.0.7-4.el6.i686
    ---> Package mesa-libGLU-devel.i686 0:11.0.7-4.el6 will be installed
    ---> Package wxGTK-devel.i686 0:2.8.12-1.el6.centos will be installed
    --> Processing Dependency: wxGTK-gl = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-gl-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxGTK = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxBase = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxBase-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    ---> Package wxGTK-media.i686 0:2.8.12-1.el6.centos will be installed
    --> Processing Dependency: wxGTK = 2.8.12-1.el6.centos for package: wxGTK-media-2.8.12-1.el6.centos.i686
    Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Running transaction check
    ---> Package libXdamage-devel.i686 0:1.1.3-4.el6 will be installed
    ---> Package libXxf86vm-devel.i686 0:1.1.3-2.1.el6 will be installed
    ---> Package libdrm-devel.i686 0:2.4.65-2.el6 will be installed
    ---> Package python-empy.noarch 0:3.3-5.el6.centos will be installed
    ---> Package wxGTK-devel.i686 0:2.8.12-1.el6.centos will be installed
    --> Processing Dependency: wxGTK-gl = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-gl-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxGTK = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxBase = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxBase-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    ---> Package wxGTK-media.i686 0:2.8.12-1.el6.centos will be installed
    --> Processing Dependency: wxGTK = 2.8.12-1.el6.centos for package: wxGTK-media-2.8.12-1.el6.centos.i686
    Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Finished Dependency Resolution
    Error: Package: wxGTK-media-2.8.12-1.el6.centos.i686 (C6.8-extras)
               Requires: wxGTK = 2.8.12-1.el6.centos
               Installed: libwxgtk-2.8.12-4.el6.i686 (@linuxtech)
                   wxGTK = 2.8.12-4.el6
               Available: wxGTK-2.8.12-1.el6.i686 (epel)
                   wxGTK = 2.8.12-1.el6
               Available: wxGTK-2.8.12-1.el6.centos.i686 (C6.8-extras)
                   wxGTK = 2.8.12-1.el6.centos
    Error: Package: wxGTK-devel-2.8.12-1.el6.centos.i686 (C6.8-extras)
               Requires: wxGTK = 2.8.12-1.el6.centos
               Installed: libwxgtk-2.8.12-4.el6.i686 (@linuxtech)
                   wxGTK = 2.8.12-4.el6
               Available: wxGTK-2.8.12-1.el6.i686 (epel)
                   wxGTK = 2.8.12-1.el6
               Available: wxGTK-2.8.12-1.el6.centos.i686 (C6.8-extras)
                   wxGTK = 2.8.12-1.el6.centos
    Error: Package: wxGTK-devel-2.8.12-1.el6.centos.i686 (C6.8-extras)
               Requires: wxGTK-gl = 2.8.12-1.el6.centos
               Installed: libwxgtk-2.8.12-4.el6.i686 (@linuxtech)
                   wxGTK-gl = 2.8.12-4.el6
               Available: wxGTK-gl-2.8.12-1.el6.i686 (epel)
                   wxGTK-gl = 2.8.12-1.el6
               Available: wxGTK-gl-2.8.12-1.el6.centos.i686 (C6.8-extras)
                   wxGTK-gl = 2.8.12-1.el6.centos
    Error: Package: wxGTK-devel-2.8.12-1.el6.centos.i686 (C6.8-extras)
               Requires: wxBase = 2.8.12-1.el6.centos
               Installed: libwxgtk-2.8.12-4.el6.i686 (@linuxtech)
                   wxBase = 2.8.12-4.el6
               Available: wxBase-2.8.12-1.el6.i686 (epel)
                   wxBase = 2.8.12-1.el6
               Available: wxBase-2.8.12-1.el6.centos.i686 (C6.8-extras)
                   wxBase = 2.8.12-1.el6.centos
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    
    Do I have a pkg that's a more recent than the one required? How do I fix these errors? I have manually created a file "/etc/yum.repos.d/linuxtech.repo". Do I eliminate it?

    Code: Select all

    [dolly@centos /]$ cat /etc/yum.repos.d/linuxtech.repo 
    [linuxtech]
    name=LinuxTECH
    baseurl=http://pkgrepo.linuxtech.net/el6/release/
    enabled=1
    gpgcheck=1
    gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET
    [dolly@centos /]$
  • I "cd" into ~/Downloads/wxWidgets-3.0.4 then ran "make -j" (after "./configure"), the Terminal started working, lots of writings came up but after some 10-15 min, the screen froze. Nothing was moving -- no mouse, no Terminal, nothing (processor was heating up the pc). I had to manually re-start the system by keeping the power-on button pressed. Is it normal?
Perrault
In need of some credit
In need of some credit
Posts: 5
Joined: Sun Mar 11, 2018 10:22 pm

Re: wxWidgets for 3rd party software on CentOS 6.9?

Post by Perrault »

Hello David,
  • "make -j" in the long run froze the screen. I had to force a restart of the system because nothing was responding (no mouse, no Ctrl+C, no terminal..)
  • I think I have a recent version of wxGTK (called libwxgtk-2.8.12-4.el6.i686 which I got via a manually created file, "/etc/yum.repos.d/linuxtech.repo") that's conflicting with the installation ("make") of wxWidgets.

    Code: Select all

    [dolly@centos wxWidgets-3.0.4]$ sudo yum -y install wxGTK wxGTK-devel
    [sudo] password for dolly: 
    Loaded plugins: fastestmirror, refresh-packagekit, security
    Setting up Install Process
    Loading mirror speeds from cached hostfile
     * base: mirrors.prometeus.net
     * centosplus: mirrors.prometeus.net
     * epel: mirror.kinamo.be
     * extras: ftp.hosteurope.de
     * fasttrack: mirrors.prometeus.net
     * nux-dextop: mirror.li.nux.ro
     * updates: mirror.eu.oneandone.net
    Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    Resolving Dependencies
    --> Running transaction check
    ---> Package wxGTK-devel.i686 0:2.8.12-1.el6.centos will be installed
    --> Processing Dependency: wxGTK-media = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    --> Processing Dependency: wxGTK-gl = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-gl-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxGTK = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxBase = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxBase-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: libGLU-devel for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    --> Processing Dependency: libGL-devel for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    --> Processing Dependency: bakefile for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    --> Running transaction check
    ---> Package bakefile.i686 0:0.2.8-3.el6.centos will be installed
    --> Processing Dependency: python-empy for package: bakefile-0.2.8-3.el6.centos.i686
    ---> Package mesa-libGL-devel.i686 0:11.0.7-4.el6 will be installed
    --> Processing Dependency: pkgconfig(libdrm) >= 2.4.60 for package: mesa-libGL-devel-11.0.7-4.el6.i686
    --> Processing Dependency: pkgconfig(xxf86vm) for package: mesa-libGL-devel-11.0.7-4.el6.i686
    --> Processing Dependency: pkgconfig(xdamage) for package: mesa-libGL-devel-11.0.7-4.el6.i686
    ---> Package mesa-libGLU-devel.i686 0:11.0.7-4.el6 will be installed
    ---> Package wxGTK-devel.i686 0:2.8.12-1.el6.centos will be installed
    --> Processing Dependency: wxGTK-gl = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-gl-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxGTK = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxBase = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxBase-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    ---> Package wxGTK-media.i686 0:2.8.12-1.el6.centos will be installed
    --> Processing Dependency: wxGTK = 2.8.12-1.el6.centos for package: wxGTK-media-2.8.12-1.el6.centos.i686
    Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Running transaction check
    ---> Package libXdamage-devel.i686 0:1.1.3-4.el6 will be installed
    ---> Package libXxf86vm-devel.i686 0:1.1.3-2.1.el6 will be installed
    ---> Package libdrm-devel.i686 0:2.4.65-2.el6 will be installed
    ---> Package python-empy.noarch 0:3.3-5.el6.centos will be installed
    ---> Package wxGTK-devel.i686 0:2.8.12-1.el6.centos will be installed
    --> Processing Dependency: wxGTK-gl = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-gl-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxGTK = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Processing Dependency: wxBase = 2.8.12-1.el6.centos for package: wxGTK-devel-2.8.12-1.el6.centos.i686
    Package wxBase-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    ---> Package wxGTK-media.i686 0:2.8.12-1.el6.centos will be installed
    --> Processing Dependency: wxGTK = 2.8.12-1.el6.centos for package: wxGTK-media-2.8.12-1.el6.centos.i686
    Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
    --> Finished Dependency Resolution
    Error: Package: wxGTK-media-2.8.12-1.el6.centos.i686 (C6.8-extras)
               Requires: wxGTK = 2.8.12-1.el6.centos
               Installed: libwxgtk-2.8.12-4.el6.i686 (@linuxtech)
                   wxGTK = 2.8.12-4.el6
               Available: wxGTK-2.8.12-1.el6.i686 (epel)
                   wxGTK = 2.8.12-1.el6
               Available: wxGTK-2.8.12-1.el6.centos.i686 (C6.8-extras)
                   wxGTK = 2.8.12-1.el6.centos
    Error: Package: wxGTK-devel-2.8.12-1.el6.centos.i686 (C6.8-extras)
               Requires: wxGTK = 2.8.12-1.el6.centos
               Installed: libwxgtk-2.8.12-4.el6.i686 (@linuxtech)
                   wxGTK = 2.8.12-4.el6
               Available: wxGTK-2.8.12-1.el6.i686 (epel)
                   wxGTK = 2.8.12-1.el6
               Available: wxGTK-2.8.12-1.el6.centos.i686 (C6.8-extras)
                   wxGTK = 2.8.12-1.el6.centos
    Error: Package: wxGTK-devel-2.8.12-1.el6.centos.i686 (C6.8-extras)
               Requires: wxGTK-gl = 2.8.12-1.el6.centos
               Installed: libwxgtk-2.8.12-4.el6.i686 (@linuxtech)
                   wxGTK-gl = 2.8.12-4.el6
               Available: wxGTK-gl-2.8.12-1.el6.i686 (epel)
                   wxGTK-gl = 2.8.12-1.el6
               Available: wxGTK-gl-2.8.12-1.el6.centos.i686 (C6.8-extras)
                   wxGTK-gl = 2.8.12-1.el6.centos
    Error: Package: wxGTK-devel-2.8.12-1.el6.centos.i686 (C6.8-extras)
               Requires: wxBase = 2.8.12-1.el6.centos
               Installed: libwxgtk-2.8.12-4.el6.i686 (@linuxtech)
                   wxBase = 2.8.12-4.el6
               Available: wxBase-2.8.12-1.el6.i686 (epel)
                   wxBase = 2.8.12-1.el6
               Available: wxBase-2.8.12-1.el6.centos.i686 (C6.8-extras)
                   wxBase = 2.8.12-1.el6.centos
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    [dolly@centos wxWidgets-3.0.4]$ 

    How do I get around this problem and get "make" to work?
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: wxWidgets for 3rd party software on CentOS 6.9?

Post by DavidHart »

sudo yum -y install wxGTK" returned this: "Package wxGTK-2.8.12-1.el6.centos.i686 is obsoleted by libwxgtk-2.8.12-4.el6.i686 which is already installed
I hadn't realised that your CentOS version was old (at least by non-Redhat/Centos standards). It won't have wx3. However the maitreya build instructions say: "Version 3.0 is recommended. Legacy version 2.8 works as well." so you could just use the wx2.8.12 that's already installed; assuming it is. If you do, in a terminal:
wx-config --cxxflags
and
wx-config --version
do you get output that suggests you have 2.8 installed? If so you could try using it.
"make -j" (after "./configure"), the Terminal started working, lots of writings came up but after some 10-15 min, the screen froze. Nothing was moving -- no mouse, no Terminal, nothing (processor was heating up the pc). I had to manually re-start the system by keeping the power-on button pressed. Is it normal?
-j is supposed to work, but I've had that happen too (all too often in fact) in virtualbox guests with too little memory or /tmp/ space or...

Assuming you don't just use your installed 2.8.12, I suggest you try again, restricting the number of cores you're trying to use. So if you have a 4-core box, use make -j4 (or even -j3). (If that still fails there are other things to try...)
Perrault
In need of some credit
In need of some credit
Posts: 5
Joined: Sun Mar 11, 2018 10:22 pm

Re: wxWidgets for 3rd party software on CentOS 6.9?

Post by Perrault »

Hi there David!
While waiting for your instructions I went a little ahead...
I first got rid of the uber-new "libwxgtk-2.8.12-4.el6(i686)" (sudo yum remove libwxgtk) and in its place installed a bunch of rpms I downloaded from this web site. I installed them one by one (some of them had unresolved dependencies but never mind). Here's the list of rpms:
  • wxBase-2.8.12-1.el6.centos.i686.rpm
  • wxGTK-2.8.12-1.el6.centos.i686.rpm
  • wxGTK-gl-2.8.12-1.el6.centos.i686.rpm
  • wxGTK-media-2.8.12-1.el6.centos.i686.rpm
  • bakefile-0.2.8-3.el6.centos.i686.rpm
  • python-empy-3.3-5.el6.centos.noarch.rpm
Too bad I didn't manage to install wxGTK-devel-2.8.12-1.el6.centos.i686.rpm.

Then, I again launched make (without the "-j") from within wxWidgets-3.0.4 directory. This time the "make" exited well. I followed your suggestions and did this:

Code: Select all

su
make install
ldconfig
This is what I got back:

Code: Select all

 ------------------------------------------------------
 
 The installation of wxWidgets is finished.  On certain
 platforms (e.g. Linux) you'll now have to run ldconfig
 if you installed a shared library and also modify the
 LD_LIBRARY_PATH (or equivalent) environment variable.
 
 wxWidgets comes with no guarantees and doesn't claim
 to be suitable for any purpose.
 
 Read the wxWindows Licence on licencing conditions.
 
 ------------------------------------------------------
 
[root@centos wxWidgets-3.0.4]# ldconfig
[root@centos wxWidgets-3.0.4]# wx-config --list 

    Default config is gtk2-unicode-3.0

  Default config will be used for output

[root@centos wxWidgets-3.0.4]# 
[root@centos wxWidgets-3.0.4]# wx-config --libs
-L/usr/local/lib -pthread   -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 
[root@centos wxWidgets-3.0.4]# 
I'd say I managed to install wxWindows/wxWidgets, don't you think? I'll try to build maitreya (./configure, make, make install, ldconfig, correct?) and keep you updated.
Perrault
In need of some credit
In need of some credit
Posts: 5
Joined: Sun Mar 11, 2018 10:22 pm

Re: wxWidgets for 3rd party software on CentOS 6.9? [SOLVED]

Post by Perrault »

Hello again!
I managed to build and install maitreya. It took some time though. I build and installed maitreya8 from source after installing wxWidgets (formerly called wxWindows). Only after wx-config is properly installed and responsive one can proceed with 3rd party software.
Still after installing it, the software (SW) wasn't starting up, a menu entry appeared but was not responsive to mouse-click. The Terminal was giving possible hints as to why this was happening:

Code: Select all

[dolly@centos gui]$ maitreya8

Maitreya 8 startup parameters are
  Executable: /usr/local/bin/maitreya8.bin
  Datadir:    /usr/local/share/maitreya8
  Command:    /usr/local/bin/maitreya8.bin /usr/local/share/maitreya8 

/usr/local/bin/maitreya8.bin: error while loading shared libraries: libwx_gtk2u_xrc-3.0.so.0: cannot open shared object file: No such file or directory
[dolly@centos gui]$
A missing shared library called libwx_gtk2u_xrc-3.0.so.0!
Basically I had to "sudo yum install wxGTK3".
Tried again to launch maitreya8 both from terminal and via menu (gui) -- nothing!

Perhaps it was the empty environment variable LD_LIBRARY_PATH that was causing the problem. So I went ahead and created a MyLocalLib.conf in /etc/ld.so.conf.d/, updated with "sudo ldconfig".

Also "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib", again "sudo ldconfig" and "source ~/.bash_profile". Tried again to launch the SW -- voilà! Everything is working now.
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: wxWidgets for 3rd party software on CentOS 6.9? [SOLVED]

Post by DavidHart »

I first got rid of the uber-new "libwxgtk-2.8.12-4.el6(i686)" (sudo yum remove libwxgtk) and in its place installed a bunch of rpms I downloaded from this web site.
Just for the record, it was unnecessary and possibly harmful to install those libs when you were going to build and install your own wx. Still, no harm done as it happens.
Also "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib", again "sudo ldconfig" and "source ~/.bash_profile". Tried again to launch the SW -- voilà! Everything is working now.
That was the important thing. Not all distros look in /usr/local/
Post Reply