Recent Posts

Pages: 1 2 3 4 [5] 6 7 8 9 10
41
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by jerryofaz on February 19, 2018, 06:05:17 pm »
I am new, I am here

From what I've seen so far, this IDE looks very well written.  You should be proud of your accomplishments. 
42
CodeCompletion redesign / draw the expression tree(a testing project)
« Last post by ollydbg on February 19, 2018, 04:28:40 pm »
I try to print the expression tree in this Code completion and STM32 peripheral registers, and I found the wxtreelayout class(only exists in wx 2.x, but removed for wx 3.x) is quit interesting.

It is not finished, but I can show a screen shot, still not finished yet. :)
43
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.
44
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.

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
45
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.
46
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!

wxGTK (wxWidgets) links to either GTK 2 or GTK 3.

Tim S.

Thank you, Tim!

I changed the version in the linker command from 3.0 to 2.0 and it builds just fine!
47
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!

wxGTK (wxWidgets) links to either GTK 2 or GTK 3.

Tim S.
48
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 in CodeBlocks besides the linker to specify the version of GTK+ to use?

2. If not, will wxWidgets 3.1.0 work with GTK+2?

Thanks!
49
The source code is not needed for correct operation. But installing it might help with debugging what is going on.
My guess is that you have assertions enabled and you're hitting on. Start the program in terminal and you'll probably see which one it is.
Thanks for the quick reply!
After enabling more debugging, I see that GTK is trying to use both versions 2 and 3!
Code: [Select]
[debug](Graphs:28558): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supportedIs there a way to specify which version to use?
I'm leery of uninstalling GTK+2.0 since that was on my system initially and I don't want to chance breaking something else.

UPDATE:
I just looked through my CodeBlocks linker settings and see that I've added:
Code: [Select]
`pkg-config --libs gtk+-3.0`
Should that be there, should I remove it and let CodeBlocks resolve which version of GTK+ to use, or just remove GTK+2.0?
-Mike
50
The source code is not needed for correct operation. But installing it might help with debugging what is going on.
My guess is that you have assertions enabled and you're hitting on. Start the program in terminal and you'll probably see which one it is.
Pages: 1 2 3 4 [5] 6 7 8 9 10