Newbie: How to compile my GTK code?
Topic: Newbie: How to compile my GTK code?
started by: Marcux
Posted by Marcux on Nov. 26 2006,09:42Hi all!
I am new on DSL and GTK so I started on the first tutorial for "Hello World" on GTK's homepage.
First of all I have installed GTK from MyDSL and then "uppdated to GTK 2" in the "start"-menu.
I thought that this was enough to be able to compile GTK-code, but apparently not.
Do I need to install GCC to make it compile or what else to I need to get my code compiled?
Is it just some type of VM you are installing through MyDSL?
Do you need to download GTK and compile it from thair homepage?
Sorry for all the questions, I just can not get the hang of it!
Many thanks in advance!
Posted by ^thehatsrule^ on Nov. 26 2006,19:431. are you trying to compile gtk or gtk2 code?
2. the gtk and gtk2 available are only runtime libraries - usually development packages are marked as such.
3. you'll probably need gcc if you plan to code in c
Posted by Marcux on Dec. 03 2006,12:22Hi!
I want to compile GTK2 code.
I saw that you were able to download GCC through MyDSL and so I did.
But I could not find the developing parts for GTK.
Is there a "simpler" way of installing GTK2 then compile source code.
This is the missing link for me in DSL everything but that is lovley with DSL!
Posted by mikshaw on Dec. 03 2006,15:18Have you tried a debian package?
As thehats said, you will need to install development files specifically in order to compile the code. These development packages are usually a separate download from the runtime packages if you are downloading binaries, and are often named "packagename-dev" or "packagename-devel" or something similar.
opinion: As you are just beginning with the gui programming, I want to take this opportunity to suggest reconsidering your gui choice. You have picked DSL as your platform for some reason, and I'm going to guess that size and speed are probably at least part of that reason. There are alternatives to the very large (some say bloated, unstable, and slow) guis used by most developers, sme of which are also much more portable than gtk/qt. One of these alternatives, FLTK, is available as a myDSL extension (including dev files).
I say this mainly because it breaks my little heart to see so many otherwise very good applications suffer bloat and other performance limitations for the sake of a prettier interface.
Just my own perspective.
Posted by Marcux on Dec. 03 2006,16:49Thank you milkshaw for your opinion!
It seems as if we have a similar thinking.
One of the reasons a choose DSL is that in my opinion am not intrested in a real glossy package with all nice and neet graphic stuff in the OS, I just want a OS that makes the things I need and the OS is not supposed to fill up all my HD and RAM and be easily handled, like DSL. Second of all I have an "older" mashine that suits DSL fine!
I had a quick glance at FLTK and that seems intresting, a question though....
Language used in FLTK is C++, right?
As I havn't lernt C properly, I am realy intrested in lering that, could you code FLTK in C as well or is there any other good GUI for C?
Posted by mikshaw on Dec. 03 2006,17:36I think the vanilla fltk distribution is only c++, but I've barely begun with programming outside of interpreted stuff like lua so I can't say for certain.
Posted by loupdesteppes on Dec. 04 2006,09:27i have send for some weeks how to reinstall the dev environnement into a dsl distry and how to make a remaster complitly dsl with debian packages.
It works well and the "cost " is about 20 megs uncompressed and 5 to 10 megs after mkisofs...anyway after remasterizd you have the possibility to uninstall the dev environnement.
Anyway, like you, i have also some pblms with gtk...
Posted by aptenikhil on Jan. 01 2007,06:09Hi all, Wish u a very happy new year 2007,
I have developed some GUI application using Gtk+ using Glade on the Red Hat Linux PC. Now I want to port it to DSL.
Do you know what changes are required so that i can run the same application on the DSL? Can u suggest me the changes required for that?