473,395 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Cross Platform C++ GUI API

Hello. I am looking for a GUI API that is cross platform and works
with Windows, Mac, and Linux. I was hoping for something free and open
source. You see, I have yet to find anything that fits this criteria.

GTK+ is good, but it doesn't work on the Mac. Qt claims to work on all
Operating Systems, but it requires a recompile on that platform and
I've yet to figure out how to accomplish that without buying the
commerical version. So if anyone can recommend an alternative, please
do.

Anyways, if there isnt anything out there that would suit my needs, I
am thinking about writing my own maybe? If you can provide any
information on how I would do this, such as how I would draw GUI
widgets and things of that sort so I can go about programming my own,
that would be great.

Thanks

Jul 23 '05 #1
10 2384
darkhack wrote:
Hello. I am looking for a GUI API that is cross platform and works
with Windows, Mac, and Linux. I was hoping for something free and open
source. You see, I have yet to find anything that fits this criteria.


Why C++? All the top OSs support Ruby and Tk.

C++ is for hard system code. A GUI is light event-driven command and control
code.

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces
Jul 23 '05 #2
<da******@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hello. I am looking for a GUI API that is cross platform and works
with Windows, Mac, and Linux. I was hoping for something free and open
source. You see, I have yet to find anything that fits this criteria.

GTK+ is good, but it doesn't work on the Mac. Qt claims to work on all
Operating Systems, but it requires a recompile on that platform
Virtually any such package (except perhaps those which run on interpreters
or 'engines' implemented on all desired platforms) would require a recompile
for different platforms -- they'll have different OS calls and/or processor
instruction sets.
and
I've yet to figure out how to accomplish that without buying the
commerical version.
In your stated case, a 'commercial' version would not obviate the
need for separate compilation for each platform. It would probably
just add more 'advanced' features and perhaps less restrictive
licensing.
So if anyone can recommend an alternative, please
do.
Face reality. :-)

Anyways, if there isnt anything out there that would suit my needs, I
am thinking about writing my own maybe?
Good luck with that. :-)
If you can provide any
information on how I would do this, such as how I would draw GUI
widgets and things of that sort so I can go about programming my own,
that would be great.


This necessarily depends upon the target platform, so you'd need
separate code for each platform, compiled for each platform, ideally
residing in the same code base, with conditional compilation directives.
Which brings us back to .... :-)

-Mike
Jul 23 '05 #3
Mike... you obviously havn't worked with the Qt library before. Yes, I
realize that a recompile is required no matter what.

If you read my post rather than trying to start in by flaming it, you
would realize that I wasn't asking for an api that didnt require a
recompile (because non such exist) but rather one that can easily be
recompiled. Qt CAN be recompiled on windows but not without a lot of
trouble, and I havn't found any documentation on recompiling Qt
programs for the Mac.

Jul 23 '05 #4

<da******@gmail.com> wrote in message
news:11*********************@l41g2000cwc.googlegro ups.com...
Mike... you obviously havn't worked with the Qt library before.
No I have not.
Yes, I
realize that a recompile is required no matter what.
Perhaps I misunderstood your query.

If you read my post rather than trying to start in by flaming it,
If you feel my reply was a 'flame', so be it. But it seems
you have a very 'thin skin'. My reply was a genuine attempt
to help, not meant in any way to be a 'flame.' Sometimes
(via misunderstanding or other reason(s)), my advice is not
helpful. That's just the way it is with any person trying to help
another.
you
would realize that I wasn't asking for an api that didnt require a
recompile (because non such exist) but rather one that can easily be
recompiled.
'Ease of compilation' is a tool issue, not a language issue.
This *is* a language group. Perhaps newsgroups or mailing
lists which adress the tools of interest would be better places
to ask.
Qt CAN be recompiled on windows but not without a lot of
trouble, and I havn't found any documentation on recompiling Qt
programs for the Mac.


Sorry to hear that, but this is not the place to find or ask
about such documentation. Perhaps write to the authors of
the tools you're interested in?

You might also benefit from checking the "List of Available C++
Libraries" at www.trumphurst.com

-Mike
Jul 23 '05 #5
Hi,

I would suggest giving a try to wxWidgets (former wxWindow) library.
Hello. I am looking for a GUI API that is cross platform and works
with Windows, Mac, and Linux. I was hoping for something free and open
source. You see, I have yet to find anything that fits this criteria.

GTK+ is good, but it doesn't work on the Mac. Qt claims to work on all
Operating Systems, but it requires a recompile on that platform and
I've yet to figure out how to accomplish that without buying the
commerical version. So if anyone can recommend an alternative, please
do.

Anyways, if there isnt anything out there that would suit my needs, I
am thinking about writing my own maybe? If you can provide any
information on how I would do this, such as how I would draw GUI
widgets and things of that sort so I can go about programming my own,
that would be great.

Thanks

Jul 23 '05 #6
<da******@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hello. I am looking for a GUI API that is cross platform and works
with Windows, Mac, and Linux. I was hoping for something free and open
source. You see, I have yet to find anything that fits this criteria.

GTK+ is good, but it doesn't work on the Mac. Qt claims to work on all
Operating Systems, but it requires a recompile on that platform and
I've yet to figure out how to accomplish that without buying the
commerical version. So if anyone can recommend an alternative, please
do.
wxWidgets is a totally free (and popular) library:
http://www.wxwidgets.org/
It does not have as much support and documentation, and the better
graphical GUI editors for it are not free, but it is a mature and
usable solution. It offers a native look on the platforms it supports
(Windows, GTK, MaxOSX, ...).
Design-wise, I would have preferred something less monolithic and
more in line with modern C++ style (and using the std lib), but well...

Another popular, more lightweight solution, is FLTK:
http://www.fltk.org/
(uses custom widgets...)

There are more...
Anyways, if there isnt anything out there that would suit my needs, I
am thinking about writing my own maybe? If you can provide any
information on how I would do this, such as how I would draw GUI
widgets and things of that sort so I can go about programming my own,
that would be great.


This is not such an easy job...
I hope this helps,
Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Jul 23 '05 #7
da******@gmail.com wrote:
Hello. I am looking for a GUI API that is cross platform and works
with Windows, Mac, and Linux. I was hoping for something free and open
source. You see, I have yet to find anything that fits this criteria.

GTK+ is good, but it doesn't work on the Mac. Qt claims to work on all
Operating Systems, but it requires a recompile on that platform and
I've yet to figure out how to accomplish that without buying the
commerical version. So if anyone can recommend an alternative, please
do.

Anyways, if there isnt anything out there that would suit my needs, I
am thinking about writing my own maybe? If you can provide any
information on how I would do this, such as how I would draw GUI
widgets and things of that sort so I can go about programming my own,
that would be great.

Thanks


1. wxWidgets.
I don't like it (it's more similar to winapi then gtk/gtkmm/qt), but it
have bad documentation (I don't understand it :( ).
2. Gcc cross-compilation and qt

Regards.
--
Linux user: #376500 (see http://counter.li.org/)
Jul 23 '05 #8
Ok, thanks mike. Sorry about the misunderstanding.

I'll take a look at wxwidgets and see what I think.

Jul 23 '05 #9

<da******@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hello. I am looking for a GUI API that is cross platform and works
with Windows, Mac, and Linux. I was hoping for something free and open
source. You see, I have yet to find anything that fits this criteria.

GTK+ is good, but it doesn't work on the Mac. Qt claims to work on all
Operating Systems, but it requires a recompile on that platform and
I've yet to figure out how to accomplish that without buying the
commerical version. So if anyone can recommend an alternative, please
do.
Zoolib:
http://zoolib.sourceforge.net/

Anyways, if there isnt anything out there that would suit my needs, I
am thinking about writing my own maybe? If you can provide any
information on how I would do this, such as how I would draw GUI
widgets and things of that sort so I can go about programming my own,
that would be great.

Thanks

Jul 23 '05 #10
da******@gmail.com skrev:
Hello. I am looking for a GUI API that is cross platform and works
with Windows, Mac, and Linux. I was hoping for something free and open
source. You see, I have yet to find anything that fits this criteria.

GTK+ is good, but it doesn't work on the Mac. Qt claims to work on all
Operating Systems, but it requires a recompile on that platform and
I've yet to figure out how to accomplish that without buying the
commerical version. So if anyone can recommend an alternative, please
do.

Anyways, if there isnt anything out there that would suit my needs, I
am thinking about writing my own maybe? If you can provide any
information on how I would do this, such as how I would draw GUI
widgets and things of that sort so I can go about programming my own,
that would be great.

Thanks


I think Qt 4 will be offered as open source for windows too
when it's out, but I'm not sure. Have a look at www.trolltech.com.

And the way I understand it Qt makes no difference in
performace, easy-of-use etc. between "free" and commerical versions.

-- Pelle
Jul 23 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Karsten | last post by:
Hi I'm a really a new with this cross platform development, so I have some dumb questions, which I hope you can help me with. If there is a better newsgroup for this question, please point...
7
by: Web Master | last post by:
Are there any good websites or books that deal with cross platform XML? I'd like to target Internet Explorer/Netscape Navigator 5 or later, as well as Opera, possibly konqueror on Linux as well. ...
0
by: demibee | last post by:
Thought this might be of interest to some out there... For those who've never encountered it, it's a free, open-source, cross-platform GUI library (Windows/Mac/Linux). Forte's Agent 2.0 will be...
14
by: John Salerno | last post by:
Bear with me, but I've been reading a lot about how the .NET languages are platform independent, and I assume this means a program written in C# can be run on a Unix or Mac machine. If this...
35
by: Alex Martelli | last post by:
Having fixed a memory leak (not the leak of a Python reference, some other stuff I wasn't properly freeing in certain cases) in a C-coded extension I maintain, I need a way to test that the leak is...
7
by: Charles | last post by:
I'd like to develop a simple cross-platform application in C++. I'd like it to run in Windows, OS X, PC-BSD and Linux. From my research, it seems I should use Qt or Gtk as a graphical library. Do...
3
by: techtonik | last post by:
Hello, everyb. Does anybody know simple cross-platform method of probing if executable binary is available and launching it. Problem no.1: test if executable file is available I'll take...
5
by: Michael Reichenbach | last post by:
After working with script languages, notepad(++) and co. and several other ide`s I found something which really improved my productivity (Visual Studio 2005). It`s imho better then dev-cpp... I...
12
by: Tomás Ó hÉilidhe | last post by:
I don't know the first thing about cross-platform GUI programming, so I'd like to ask a few quick questions. Which library is best for someone who appreciates portable programming and correct...
1
by: Vinod Sadanandan | last post by:
Cross Platform Migration An Unproblematic Approach (Windows-UNIX ) Oracle 10\11g The principal restriction on cross-platform transportable database is that the source and destination platform...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.