Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
C++ from Visual Studio to Anjuta...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Malcolm
n00b
n00b


Joined: 11 Jul 2002
Posts: 59
Location: Ontario, Canada

PostPosted: Thu Jul 11, 2002 4:07 am    Post subject: C++ from Visual Studio to Anjuta... Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Thu Jul 11, 2002 4:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Codec & Electron
n00b
n00b


Joined: 10 Jul 2002
Posts: 43
Location: Düsseldorf, Germany

PostPosted: Thu Jul 11, 2002 1:12 pm    Post subject: Re: C++ from Visual Studio to Anjuta... Reply with quote

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
View user's profile Send private message
credmp
Apprentice
Apprentice


Joined: 02 Jul 2002
Posts: 207
Location: Netherlands

PostPosted: Thu Jul 11, 2002 1:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Malcolm
n00b
n00b


Joined: 11 Jul 2002
Posts: 59
Location: Ontario, Canada

PostPosted: Fri Jul 12, 2002 1:31 am    Post subject: Reply with quote

thanks, i got everything up and running now Qt looks fun ;)
Back to top
View user's profile Send private message
duff
Guru
Guru


Joined: 19 Jun 2002
Posts: 466
Location: Clemson, SC

PostPosted: Wed Jul 24, 2002 12:34 pm    Post subject: Re: C++ from Visual Studio to Anjuta... Reply with quote

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
View user's profile Send private message
dioxmat
Bodhisattva
Bodhisattva


Joined: 04 May 2002
Posts: 709
Location: /home/mat

PostPosted: Wed Jul 24, 2002 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
AnimalMachine
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2002
Posts: 106
Location: Milwaukee, WI USA

PostPosted: Wed Jul 24, 2002 6:12 pm    Post subject: Reply with quote

[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 :wink:).
Back to top
View user's profile Send private message
burzmali
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 235
Location: ca

PostPosted: Tue Jul 30, 2002 5:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum