flat assembler
Message board for the users of flat assembler.

Index > Linux > GUI on Linux

Author
Thread Post new topic Reply to topic
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 14 May 2007, 01:04
Hello!
I've been Windows user/programmer for years.
Now I'm running dual boot with Ubuntu Linux.
I'd like to try Linux ASM programming.
Can someone show me tutorials for Linux programming and also how do GUI ASM programs on Linux?

Thanks
Post 14 May 2007, 01:04
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 14 May 2007, 10:19
Ozzy: most native form of doing GUI for linux is programming directly the X server. There are some examples from Feryno on this board.

But programming X server can be painful, so there are few libraries that do it for you.

Most notably, there is GTK. It's C library, you can read few tutorials and try to write examples, it would be mostly welcomed.

Then, there is Qt. This one is C++ library, so you won't go very far with it in assembly.

Third very popular is WxWidgets. It's C++ too, so no go. This one is most portable (all three of them are ported to windows, but this one uses native looks of OS).

I would suggest you to go for GTK.
Post 14 May 2007, 10:19
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
rob.rice



Joined: 20 Dec 2003
Posts: 54
rob.rice 07 Dec 2007, 03:03
there is also svgalib and frame buffer graphics these run in the terminal without X11
they may be a better starting point than X11

note on the frame buffer this one needs to be started from with in the kernel at boot time
here is some info on using the frame buffer http://asm.sourceforge.net/articles/fb.html

OH I almost forgot you may have to build a kernel to support the frame buffer depends on your distro
Post 07 Dec 2007, 03:03
View user's profile Send private message Reply with quote
Ward



Joined: 23 Feb 2008
Posts: 1
Ward 23 Feb 2008, 09:27
Quote:

But programming X server can be painful, so there are few libraries that do it for you.

Most notably, there is GTK. It's C library, you can read few tutorials and try to write examples, it would be mostly welcomed.

Then, there is Qt. This one is C++ library, so you won't go very far with it in assembly.


Third very popular is WxWidgets. It's C++ too, so no go. This one is most portable (all three of them are ported to windows, but this one uses native looks of OS).

I would suggest you to go for GTK.


so If I use GTK my asm program's GUI will run on all distros of linux?
Post 23 Feb 2008, 09:27
View user's profile Send private message Reply with quote
dap



Joined: 01 Dec 2007
Posts: 61
Location: Belgium
dap 23 Feb 2008, 10:32
You may start here : http://asm.sourceforge.net/

_________________
(French only) http://dap.developpez.com
Post 23 Feb 2008, 10:32
View user's profile Send private message Visit poster's website Reply with quote
drhowarddrfine



Joined: 10 Jul 2007
Posts: 533
drhowarddrfine 23 Feb 2008, 13:43
Ward wrote:

so If I use GTK my asm program's GUI will run on all distros of linux?
It should but GTK needs to be installed, but it's not unusual at all for anyone to already have it, or be willing to install it to run your program. Gnome uses GTK (Gnome Tool Kit) but you don't need Gnome to run GTK.
Post 23 Feb 2008, 13:43
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.