Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
wxSmith run time error "../src/gtk/app.cpp: No such file or directory."
mloutris:
--- Quote from: stahta01 on February 19, 2018, 12:58:40 am ---
--- Quote from: mloutris on February 19, 2018, 12:55:21 am ---Let me ask some different questions.
For whatever reason, even though I specified linking with GTK+3, CodeBlocks is detecting and using GTK+2.
1. Is there any other place to specify the version of GTK+ to use?
2. If not, will wxWidgets work with GTK+2?
Thanks!
--- End quote ---
wxGTK (wxWidgets) links to either GTK 2 or GTK 3.
Tim S.
--- End quote ---
Thank you, Tim!
I changed the version in the linker command from 3.0 to 2.0 and it builds just fine!
oBFusCATed:
If you want to use wxGTK you want to use only wx-config to setup your cflags and linker flags.
You must not use pkg-config for gtk+ if you're not explicitly calling gtk+ functions.
The version of wxGTK knows which version of gtk+ needs to be linked and loaded and it will do this automatically...
If you need to call gtk+ api functions you need to set your gtk+ compiler/linker options to match the settings of your wxgtk build.
mloutris:
--- Quote from: oBFusCATed on February 19, 2018, 01:24:13 am ---If you want to use wxGTK you want to use only wx-config to setup your cflags and linker flags.
You must not use pkg-config for gtk+ if you're not explicitly calling gtk+ functions.
The version of wxGTK knows which version of gtk+ needs to be linked and loaded and it will do this automatically...
If you need to call gtk+ api functions you need to set your gtk+ compiler/linker options to match the settings of your wxgtk build.
--- End quote ---
Thank you, oBFusCATed!
At this point, I don't see any need to make calls directly to GTK+, so I will use wx-config as you suggest.
However, I have one more question. Are you suggesting that there is a wx configuration file that I should update, if I want to use gtk+3.0, or is it an internal file specific for the version of wxSmith and that I should just use it however it is configured?
-Mike
oBFusCATed:
If you want to use gtk+3 you need to build a version of wxgtk which uses it. It is a configuration option during library built time. It cannot be changed on a built library.
Navigation
[0] Message Index
[*] Previous page
Go to full version