473,770 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2419
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******** *************@z 14g2000cwz.goog legroups.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******** *************@l 41g2000cwc.goog legroups.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 misunderstandin g 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******** *************@z 14g2000cwz.goog legroups.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 misunderstandin g.

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

Jul 23 '05 #9

<da******@gmail .com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.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

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

Similar topics

2
1844
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 me to it.
7
4842
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. OT: I'm also looking for books and websites for cross platform XHTML and DHTML.
0
2054
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 built with it. AVG is as well.. "wxWindows An open source C++ GUI framework to make cross-platform programming child's play." <http://www.wxwindows.org/>
14
2144
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 assumption is wrong, then nevermind! :) But if it's true, what will be necessary to run these programs on a Mac, for example? I know they would need an equivalent to the .NET Framework, but does something like this exist yet, or is the "platform...
35
5512
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 indeed fixed. Being in a hurry, I originally used a q&d hack...: if sys.platform in ('linux2', 'darwin'): def _memsize(): """ this function tries to return a measurement of how much memory this process is consuming, in some arbitrary unit...
7
2638
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 you agree? Do you have other tips? How Cygwin could help me? Thanks.
3
2094
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 windows platform as the most relevant in this case. os.access() doesn't handle env PATHEXT and can't detect if a given path would be executable or not. Here "executable" means file that
5
10096
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 worked with C# and VB.net a bit and it was really easy because of the debugger, the interactive debugger, intellisense, command completer and so on. I would like to stick to this ide. But I thought about to invest in C++ instant of C# / VB.net...
12
2005
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 efficient code, and who'd like the library to fit well with the C++ Standard Library? Also I'd like the library to work on as many platforms as possible (Windows, Linux, Mac, and even the new game consoles such as Playstation 3 and XBox 360 if...
1
7825
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 must share the same endian format. Redo log files and control files from the source database are not transported to destination database . New control files and redo log files are created for the new database during the transport process, and an ...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10101
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9906
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.