NO

Author Topic: Questions about Crossplatform development  (Read 3607 times)

sgalland

  • Guest
Questions about Crossplatform development
« on: October 04, 2007, 11:12:37 PM »
Hello,

I am trying to use Pelles C to create code for both Microsoft Operating systems and Linux. I am doing coding that requires the ability to use a crossplatform toolkits, such as GUI's and use the latest version of the C99 standard. As far as I can tell Pelles C is the only such compiler for Windows and GCC when forced to use the new standard craps out and throws a multitude of errors. Does anyone know any libraries that can compile under Pelles C for GUI's other than Microsofts Windows API that will work under Linux or a compiler that is updated and cross compatible?

andre104

  • Guest
Re: Questions about Crossplatform development
« Reply #1 on: October 28, 2007, 12:03:29 PM »
AFAIK, most of GUI libraries out there is for C++.
Only a few for C, e.g GTK

flewis7777

  • Guest
Re: Questions about Crossplatform development
« Reply #2 on: October 30, 2007, 02:34:53 AM »
Allegro www.talula.demon.co.uk/allegro/   ->  can use C.

is a very good library for graphics sound 2d and some 3d.

It has windows and linux ports. My strategy is to use Linux with
Wine (windows comaptibility layer) to make windows .exe
files from Linux.

For GUIs using Allegro will mean making your own GUIs. If you use WINE with
Pelles you can (as I do) make GUIs from the windows API with Pelles.


Freddy

  • Guest
Re: Questions about Crossplatform development
« Reply #3 on: May 25, 2009, 05:32:21 PM »
I'm bumping this thread because recently I got interested in cross-platform development and GTK seems to be the only mature GUI toolkit for C (others use C++).

And Pelles C is the best IDE for C.

So I have a question: Do you guys know how to set up GTK with Pelles C?

Thanks

jwzumwalt

  • Guest
Re: GTK
« Reply #4 on: May 26, 2009, 07:28:20 PM »
Simple tutorials are located here... If you get a "hello world" example to compile would you please let the rest of us know in the "graphics" forum section?

http://www.gtk.org/documentation.html

It may be of interest to you to know that I spent several days fighting with OpenGL and Glut. Then I found out that the "project setup options" are critical!

Amended: I spent 4 hours today trying to create a installer... I found a simple GTK hello World sample program and began the tedious job of adding headers and DLL's hoping to get it running. I was unsuccessful.

I am up to 5mb of support programs. GLIB, GDK, GTK, etc. The current error is a GIO support file. I have given up and will try again in a week or so. I download several MS Window GTK+ canned run file installers and they would not run any GTK.org test files because of lib ver conflicts. More reason to stay away from GTK. I used Mesa a few years back and was impressed.

Possible alternatives,
http://www.opengl.org/ load Pelle's sdk kit then use my Glut installer (graphics forum).
I am beginning to make quite a few PelleC opengl/glut tutorials... www.c.neatinfo.com/public/4-tutors

Others...
http://www.libgd.org/
http://g2.sourceforge.net/
http://www.mps.mpg.de/dislin/
http://www.mesa3d.org/

Given the unusual conglomerate of intertwining libraries I would recommend you look at a more harmonious package.
« Last Edit: May 26, 2009, 11:11:18 PM by jwzumwalt »