Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
MouseSap fails to compile with wxgtk + gtk3
sodev:
I don't think i've ever build CodeBlocks with CodeBlocks on Linux but i guess the project files contain plain calls to wx-config and your wx-config defaults to the gtk2 variant. In autotools builds i just specifiy the wx-config script of the variant i want to use, a hotfix for your case might be to change the wx-config script, which is only a symlink to the real script, to point the the script of the gtk3 variant.
Pecan:
--- Quote from: sodev on September 30, 2019, 05:35:47 pm ---... a hotfix for your case might be to change the wx-config script, which is only a symlink to the real script, to point the the script of the gtk3 variant.
--- End quote ---
Where is location of the wx-config script?
oBFusCATed:
1. Go to Project -> Build options -> select the root in the tree -> Custom variables
2. WX_CONFIG to "wx-config --version=3.0 --toolkit=gtk3"
I thought you've already passed this step, that's why I've not mentioned it. This is going to work only if wx-config --list returns an output which has a gtk3 version. If not you'll have to change the whole wx-config to point to the correct version of this script.
p.s. You'll have to do this for every plugin project you need to build. :(
sodev:
--- Quote from: Pecan on September 30, 2019, 06:33:30 pm ---Where is location of the wx-config script?
--- End quote ---
Depends on your system, for me it is:
--- Code: ---$ which wx-config
/usr/local/bin/wx-config
$ ls -l /usr/local/bin
wx-config -> /usr/local/lib64/wx/config/gtk3-unicode-3.1
--- End code ---
The other scripts will be in a similar location. This is faster than editing every CodeBlocks project file :)
Pecan:
Fixed in head r11871 (maybe).
I removed all direct GTK calls. Hopefully this fixes the problem on wxGTK with GTK 3.
But I cannot test that since I cannot get CodeBlocks to compile on Mint 19 using GTK3.
I'd appreciate it if someone running GTK3 would try to compile MouseSap and report the actual errors.
Navigation
[0] Message Index
[*] Previous page
Go to full version