View previous topic :: View next topic |
Author |
Message |
Malcolm n00b
Joined: 11 Jul 2002 Posts: 59 Location: Ontario, Canada
|
Posted: Thu Jul 11, 2002 4:07 am Post subject: C++ from Visual Studio to Anjuta... |
|
|
I currently know how to program in C++ with the Windows header files, but I am at a loss of what I should be using to create windows (not MS WIndows, like window windows ) under Linux. All I'm looking for is a link to information about a header htat is the equilivent to the windows.h header for Linux.
I'm currently running KDE 3.0.1 and Anjuta 1.1.8
Any assistance whould be helpful
Thanks in advance,
Malcolm |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Thu Jul 11, 2002 4:31 am Post subject: |
|
|
With graphical programming under Linux you have several options. You can talk to X directly, which is the equivalent of using the Win32 SDK, but that's mean and unpleasnt and not all that fun. You probably want to do it using some widget toolkit (believe me, you want to), and there are many to do this. Qt is common for KDE, GTK is common for Gnome, but there's also Motif and millions of others. Ask Google. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Codec & Electron n00b
Joined: 10 Jul 2002 Posts: 43 Location: Düsseldorf, Germany
|
Posted: Thu Jul 11, 2002 1:12 pm Post subject: Re: C++ from Visual Studio to Anjuta... |
|
|
As delta407 said -- there are lots of toolkits available. Have a look at Qt (Documentation is here).
Here the famous "Hello world"--Button with Qt ...
Code: | #include <qapplication.h>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton button( "Hello World", 0 );
QObject::connect( &button, SIGNAL(clicked()), &a, SLOT(quit()) );
a.setMainWidget( &button );
button.show();
return a.exec();
}
|
Kind regards,
C&E |
|
Back to top |
|
|
credmp Apprentice
Joined: 02 Jul 2002 Posts: 207 Location: Netherlands
|
Posted: Thu Jul 11, 2002 1:34 pm Post subject: |
|
|
Most definitly I would recommend QT. If you merge Qt and Qt-docs you should have /usr/qt/3/bin/assistent which is the document browser... It has some tutorials and many examples.
it's a great and powerfull toolkit as illustrated. As for tools you would be able to use KDevelop or Emacs ( also merge kdesdk for some good .el's for Emacs + KDE/Qt development ).
Regards,
Arjen |
|
Back to top |
|
|
Malcolm n00b
Joined: 11 Jul 2002 Posts: 59 Location: Ontario, Canada
|
Posted: Fri Jul 12, 2002 1:31 am Post subject: |
|
|
thanks, i got everything up and running now Qt looks fun |
|
Back to top |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Wed Jul 24, 2002 12:34 pm Post subject: Re: C++ from Visual Studio to Anjuta... |
|
|
Malcolm wrote: |
I'm currently running KDE 3.0.1 and Anjuta 1.1.8
|
Anjuta is aimed more for people developing with GTK+/--. Since you're using Qt, you might want to give KDevelop a shot. I've never used it, but a friend of mine seemed to like it for a project he did. |
|
Back to top |
|
|
dioxmat Bodhisattva
Joined: 04 May 2002 Posts: 709 Location: /home/mat
|
Posted: Wed Jul 24, 2002 3:09 pm Post subject: |
|
|
note that delta407 forgot to mention directfb :) ... you can talk
to your graphic card directly :) http://www.directfb.org
gtk+ is really good, you can have c++ bindings for it and you've got anjuta, which is a really good IDE... _________________ mat |
|
Back to top |
|
|
AnimalMachine Tux's lil' helper
Joined: 27 Apr 2002 Posts: 106 Location: Milwaukee, WI USA
|
Posted: Wed Jul 24, 2002 6:12 pm Post subject: |
|
|
[disclaimer: not trying to stir up licensing wars]
Also consider the license of the toolkit you wish to use. If you want to use QT for commercial software you'll have to purchase a license from trolltech.
Another toolkit you may be interested in, coming from MS Windows, is wxWindows. It's cross-platform and is designed to feel very similar to MFC (which may or may not be a good thing ). |
|
Back to top |
|
|
burzmali Apprentice
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Tue Jul 30, 2002 5:46 pm Post subject: |
|
|
i would like to try anjuta but it is being a real pain to install
it seems it has some dependancies that are not listed in the ebuild (gnome-vfs and gtkmm). i have emerged gnome-vfs and gnome-vfs-extra and still get an error with anjuta during ./configure.
Code: |
checking for X11/SM/SMlib.h... yes
checking for XpmFreeXpmImage in -lXpm... yes
checking for orbit-config... /usr/bin/orbit-config
checking for gnome-vfs-config... no
configure: error: Couldn't find gnome-vfs-config
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -121, Exitcode 1
!!! (no error message)
!!! emerge aborting on /usr/portage/dev-util/anjuta/anjuta-0.1.9.ebuild .
|
i went looking around the web and it seems the latest gnome-vfs packages no longer make gnome-vfs-config! i found a rpm that included it, but it is not the latest verion, the latest release does not install it. am i missing something? any help would be appreciated, thank you.
here is the current rpmfind page (scroll to bottum to see list of installed files):
http://rpmfind.net//linux/RPM/gnome/pre-gnome2/redhat/i386/gnome-vfs/gnome-vfs-devel-1.9.7-1.i386.html
and here is the one that includes gnome-vfs-config:
http://rpmfind.net//linux/RPM/rawhide/1.0/i386/RedHat/RPMS/gnome-vfs-devel-1.0.5-6.i386.html _________________ burzmali
www.burzmali.net |
|
Back to top |
|
|
|