Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Gui toolkit?
Index -> Programming, C -> C Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DtY




PostPosted: Thu Nov 12, 2009 8:20 pm   Post subject: Gui toolkit?

I need to make really simple Gui (one textarea, two push buttons, and a settings menu that will be check boxes and text inputs).
I need something really lightweight that will work and look "natural" on Windows, Linux and Mac OS X. It also needs to be LGPL or more permissive.

I'm thinking of Tcl/TK, but I know nothing about it. Is it lightweight enough to compile into a small program with little overhead, more importantly is it easy enough to use to just get a Gui? Are there any tutorials on using Tcl/TK to make a gui for a C program?
Sponsor
Sponsor
Sponsor
sponsor
rdrake




PostPosted: Thu Nov 12, 2009 8:48 pm   Post subject: RE:Gui toolkit?

If using C++, check out wxWidgets. If using C, there exists wxWidgets bindings in C called wxC.

Looks native on just about any platform, comes with an LGPL-ish license, and was pretty simple when I played around with it.

Edit: Punctuation.
DtY




PostPosted: Thu Nov 12, 2009 8:55 pm   Post subject: RE:Gui toolkit?

I think I've used the python binding for that before, I didn't even think of it

Thanks!

[edit] Are there binaries anywhere, or do I have to checkout from SVN and compile from source? If I need to compile from source, I assume I need wxWidgets compiled first?
Brightguy




PostPosted: Fri Nov 13, 2009 3:31 am   Post subject: Re: Gui toolkit?

Yes, wxWidgets needs to be compiled first. The standard way is to get it from their download page and compile it yourself, but you might be able to find binaries around if you're willing to sacrifice flexibility (e.g., the Debian package libwxgtk2.8-dev).
DtY




PostPosted: Fri Nov 13, 2009 7:35 am   Post subject: RE:Gui toolkit?

I am having trouble compiling wxWidgets.. I followed the instructions for OS X.6, but I get the error:

code:
?
./src/html/htmlctrl/webkit/webkit.mm:439: error: ?WebInitForCarbon? was not declared in this scope
./src/html/htmlctrl/webkit/webkit.mm:440: error: ?HIWebViewCreate? was not declared in this scope
./src/html/htmlctrl/webkit/webkit.mm:442: error: ?HIWebViewGetWebView? was not declared in this scope
./src/html/htmlctrl/webkit/webkit.mm:445: error: ?HIViewSetVisible? was not declared in this scope
./src/html/htmlctrl/webkit/webkit.mm:449: error: ?HIViewChangeFeatures? was not declared in this scope
./src/html/htmlctrl/webkit/webkit.mm:451: error: ?GetControlEventTarget? was not declared in this scope
./src/html/htmlctrl/webkit/webkit.mm: In member function ?void wxWebKitCtrl::OnSize(wxSizeEvent&)?:
./src/html/htmlctrl/webkit/webkit.mm:726: error: ?HIViewGetRoot? was not declared in this scope
./src/html/htmlctrl/webkit/webkit.mm:726: error: ?HIViewConvertRect? was not declared in this scope
./src/html/htmlctrl/webkit/webkit.mm: In member function ?virtual void wxWebKitCtrl::MacVisibilityChanged()?:
./src/html/htmlctrl/webkit/webkit.mm:754: error: ?IsControlVisible? was not declared in this scope
make: *** [corelib_webkit.o] Error 1


Anyone know what this is about? I configured with ./configure --disable-shared CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXX="$arch_flags"
Where arch_flags="-arch i386"

[edit] Nvm, apparently I missed some, I edited the makefile and there were two compilers that needed the -arch 386.
I haven't tried compiling any wxWidgets programs or wxC yet, so I might need more help, but I'll post again if I do.
Display posts from previous:   
   Index -> Programming, C -> C Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: