jchelly / gadgetviewer

Simple tool for interactive visualisation of Gadget and SWIFT N-body simulations
GNU General Public License v3.0
24 stars 9 forks source link

gtk3+ support #10

Open weiguangcui opened 4 years ago

weiguangcui commented 4 years ago

Is it possible to compile gadgetviewer with gtk3+? I tried to point the program to the correct folder, but it seems only look for gtk+-2.0.pc

checking for GTK+ - version >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'

Thank you for any suggestions.

jchelly commented 4 years ago

I believe the gtk2 and 3 APIs are incompatible. Gadgetviewer uses the gtk2 API so at the moment it's not possible to compile it with gtk3. Are you able to install packages on your system? It may be that you already have the gtk-2 libraries but not the 'dev' package (which contains the headers and the .pc files, amongst other things). On Ubuntu I think something like 'sudo apt install libgtk2.0-dev' would do it.

For my own reference, I'm going to leave a link to this migration guide I found here: https://developer.gnome.org/gtk3/3.0/migrating.html

weiguangcui commented 4 years ago

I thought they are compatible, at least downwards. But it seems they are not. I will install gtk2+ for gadgetviewer, but it would be good to have gtk3+ supported as well. Thank you.

jchelly commented 1 year ago

Partially implemented in #23.