Wxwidgets looks old in Linux
-
- Earned some good credits
- Posts: 107
- Joined: Thu Mar 31, 2022 7:45 pm
- Location: Morocco
Wxwidgets looks old in Linux
Hello,
I started with wxwidgets programming, so i made a simple app but my problem is that the look is too old, i don't know where is the problem,
Can ang one please help me.
I started with wxwidgets programming, so i made a simple app but my problem is that the look is too old, i don't know where is the problem,
Can ang one please help me.
Re: Wxwidgets looks old in Linux
That's very vague, can you show a screenshot?
If i had to guess, you've probably used the X11 port rather than the GTK port.
How did you install wxWidgets?
If you built it yourself, which configure line did you use, and which command did you use to build?
If i had to guess, you've probably used the X11 port rather than the GTK port.
How did you install wxWidgets?
If you built it yourself, which configure line did you use, and which command did you use to build?
Use the source, Luke!
-
- Earned some good credits
- Posts: 107
- Joined: Thu Mar 31, 2022 7:45 pm
- Location: Morocco
Re: Wxwidgets looks old in Linux
Hello,
Thanks for reply,
First of all, i built wxwidgets as static library,
Second, i don't know exactly wich port i used because i don't even know what's the difference between them.
Thanks for reply,
First of all, i built wxwidgets as static library,
Second, i don't know exactly wich port i used because i don't even know what's the difference between them.
Last edited by Mamo_Grag17 on Thu Mar 31, 2022 9:22 pm, edited 1 time in total.
Re: Wxwidgets looks old in Linux
That's very unusual under Linux and not recommended.
How exactly did you build wxWidgets? Which configure command and build command did you use?Second, i don't know exactly wich port i used because i don't even know what's the difference between them.
https://wiki.wxwidgets.org/Compiling_an ... he_library
Use the source, Luke!
-
- Earned some good credits
- Posts: 107
- Joined: Thu Mar 31, 2022 7:45 pm
- Location: Morocco
Re: Wxwidgets looks old in Linux
Sorry actually i built it as shared library using :
So how do i need to build it, wich command should i use ?
This is how it looks :
https://ibb.co/KyRbtdd
Code: Select all
../configure --disable-shared --enable-unicode
Code: Select all
make
This is how it looks :
https://ibb.co/KyRbtdd
-
- Earned some good credits
- Posts: 107
- Joined: Thu Mar 31, 2022 7:45 pm
- Location: Morocco
Re: Wxwidgets looks old in Linux
I am using CMakeFiles to build the project, does it have any relationship with this problem?
Re: Wxwidgets looks old in Linux
Hi,
What distro do you use?
You should have GTK-development package installed and all of its dependencies.
And then re-run "configure &make" as follows:
Thank you.
P.S.: And yes - building STATIC library on *nix is STRONGLY DISCOURAGED. You are opening yourself for the possibility of the lawsuit if the underlying toolkit either GTK, Qt or Cocoa will change the license to prohibit static linking altogether.
What distro do you use?
You should have GTK-development package installed and all of its dependencies.
And then re-run "configure &make" as follows:
Code: Select all
make distclean
../configure --enable-debug --with-gtk=3 && make -j4
cd samples/minimal
make
P.S.: And yes - building STATIC library on *nix is STRONGLY DISCOURAGED. You are opening yourself for the possibility of the lawsuit if the underlying toolkit either GTK, Qt or Cocoa will change the license to prohibit static linking altogether.
Re: Wxwidgets looks old in Linux
wxWidgets already comes with makefiles for Linux, these should work out of the box.Mamo_Grag17 wrote: ↑Thu Mar 31, 2022 9:25 pm I am using CMakeFiles to build the project, does it have any relationship with this problem?
Can you show the last part of the "configure" output, the part that looks like this:
Code: Select all
Configured wxWidgets 3.1.6 for `x86_64-pc-linux-gnu'
Which GUI toolkit should wxWidgets use? GTK+ 3 with support for GTK+ printing
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.8 no
wxWidgets 3.0 yes
Which libraries should wxWidgets use?
STL no
jpeg builtin
png sys
regex builtin
tiff builtin
lzma no
zlib sys
expat sys
libmspack no
sdl no
Use the source, Luke!
-
- Earned some good credits
- Posts: 107
- Joined: Thu Mar 31, 2022 7:45 pm
- Location: Morocco
Re: Wxwidgets looks old in Linux
Thanks for replying,
I am using Arch Linux, i don't know wich package should i install exactly, do you mean these :
Gtk4 and gtk3 and gtkmm4 and gtkmm3 ?
If yes i already have them installed.
I am using Arch Linux, i don't know wich package should i install exactly, do you mean these :
Gtk4 and gtk3 and gtkmm4 and gtkmm3 ?
If yes i already have them installed.
Re: Wxwidgets looks old in Linux
Code: Select all
Which GUI toolkit should wxWidgets use? GTK+ 3 with support for GTK+ printing
Use the source, Luke!
-
- Earned some good credits
- Posts: 107
- Joined: Thu Mar 31, 2022 7:45 pm
- Location: Morocco
Re: Wxwidgets looks old in Linux
I built it using the command thag you gave me, so when i ran the minimal example, the look is good, but when i ran mine, it's still the same old look, does how i included the library effects,
I am doing this to include it(the version that i built just now :
I also tried :
And :
But the same problem !!
I am doing this to include it(the version that i built just now :
Code: Select all
#include <wx-3.1/wx/wx.h>
Code: Select all
#include <wx-3.0/wx/wx.h>
Code: Select all
#include <wx/wx.h>
Re: Wxwidgets looks old in Linux
Hi,
Various points:
You can find which wx version your program is using by doing Ctl-Shift-MiddleClick over a running instance.
According to google, Arch uses 'update-alternatives'. If so, you should be able to select which wx install is the default:
and follow the instructions.
Alternatively, point to a particular wx-config in your terminal's PATH:
If you want several wx versions to co-exist, the easiest way is to 'install' each in a separate subdir of the source dir. e.g.:
You don't need to do 'make install'. Instead you point to the resulting wx-config e.g.
Regards,
David
Various points:
You can find which wx version your program is using by doing Ctl-Shift-MiddleClick over a running instance.
It's usually not necessary to point to a particular wx version in that way; it should be found automatically.I am doing this to include it
#include <wx-3.1/wx/wx.h>...
According to google, Arch uses 'update-alternatives'. If so, you should be able to select which wx install is the default:
Code: Select all
#> update-alternatives --config wx-config
Alternatively, point to a particular wx-config in your terminal's PATH:
Code: Select all
PATH=/full/path/to/that/wx-config:$PATH
Code: Select all
mkdir wx3.1.6 && cd wx3.1.6 && ../configure --enable-debug --with-gtk=3 && make -j$(nproc)
Code: Select all
PATH=/full/path/to/sourcedir/wx3.1.6/wx-config:$PATH
David
Re: Wxwidgets looks old in Linux
Hi,
Moe than likely you need to fix you Makefile/CMake files to point to the appropriate configuration.
At this point I'd delete everything wx related unpack a new wx folder , build the debug version with the command I provided (make sure to note configure output per doublemax reply above), build and run minimal sample and then try to build you project.
Thank you.
Moe than likely you need to fix you Makefile/CMake files to point to the appropriate configuration.
At this point I'd delete everything wx related unpack a new wx folder , build the debug version with the command I provided (make sure to note configure output per doublemax reply above), build and run minimal sample and then try to build you project.
Thank you.
-
- Earned some good credits
- Posts: 107
- Joined: Thu Mar 31, 2022 7:45 pm
- Location: Morocco
Re: Wxwidgets looks old in Linux
Hello,
So when i ran :
I got :
Then when i tried :
I got some errors :
Does these errors have any relationship with my problem ?
So when i ran :
Code: Select all
../configure --enable-debug --with-gtk=3
Code: Select all
which GUI toolkit should wxWidgets use?
GTK+ 3 with support for GTK+ printing libnotify
Code: Select all
su
make install
Code: Select all
/bin/sh: line 1: cd: ../build/ bakefiles/wxpresets/presets: No such file or directory
/usr/bin/install: cannot stat 'wx.bkl': No such file or directory
/usr/bin/install: cannot stat 'wx_unix.bkl': No such file or directory
/usr/bin/install: cannot stat 'wx win32.bkl": No such file or directory
/usr/bin/install: cannot stat 'wx_xrc.bkl': No such file or directory
/usr/bin/install: cannot stat 'wx_presets.py': No such file or directory
make: *** [Makefile: 13884: install] Error 1
Re: Wxwidgets looks old in Linux
Hi,
I presume you started a fresh...
Please post a complete configure result output
Did you run "make" after running configure?
Thank you.
I presume you started a fresh...
Please post a complete configure result output
Did you run "make" after running configure?
Thank you.