Simple XWindows Application

I'd like to create a simple "hello world" xWindows application for Linux. I have a little VMShare setup with Debian 7. I am new to Linux (I took a couple of intro classes, but that's it). With some research, it looked like QT was probably my best bet for an IDE. I did "aptitude search qt4" on my Debian dist and it returned qt-designer, etc. I then did "install qtcreator", and it worked on stuff for a while. A couple of errors came up regarding the inability to access a certain IP (I'm assuming to download some resources), but the errors didn't seem fatal, and it ended with some size information, so I am guessing the install was successful (ish).

My question is 2-part. First of all, how can I tell if I successfully installed QT? I looked in /usr/local and didn't see anything new. Second, does this seem like the right path for creating a simple xWindows app? Eventually, I'd like the application to have a basic webview, so I am assuming I will need the webkit engine and maybe the minibrowser.

Any suggestions would be greatly appreciated!

Thanks!
Amy
AmyLAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fridomCEO/ProgrammerCommented:
Well QT is a toolkit which runs cross platform it is documented here:
https://qt-project.org/

So what you should try is to run on of the examples. If that works, you can do whatever you like.
0
Duncan RoeSoftware DeveloperCommented:
If you have Linux source installed, cd to the top-level source directory and type make xconfig. That needs QT - if it comes up with a screen then you have it installed.
0
AmyLAuthor Commented:
That is part of the problem...I don't see where the source directory would be. I looked in /usr, /usr/bin, and /usr/local but couldn't find anything new to indicate something had been installed. I tried "make xconfig" but got: "no rule to make target xconfig.  stop".
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

AmyLAuthor Commented:
As an experiment, I typed "aptitude install qtcreator" again, to see if it would say it was already installed, or what it would do. This time, I got the same ip/404 error as before, but instead of continuing, it aborted. This is the error:

Err http://ftp.us.debian.org/debian/ wheezy/main libglu1-mesa-dev i386 8.0.5-4
  404  Not Found [IP: 128.30.2.36 80]
0
AmyLAuthor Commented:
Okay - new update. I did find /usr/share/qt4, which I'm pretty sure did not exist before. The command "make xconfig" still returns the same error, though.
0
Duncan RoeSoftware DeveloperCommented:
Source will be in /usr/src if you have it. make xconfig only works in /usr/src/linux
0
AmyLAuthor Commented:
I checked my /usr/src directory, and the only thing in there is "linux" (as a symbolic link). Does that mean qt is not installed? If that is the case, can you give me the cliff notes version of doing an install? The Debian site has a QT section, but I couldn't find anything that looked like the smoking gun, as far as a file to download. I started to think maybe there was more than one file to be downloaded, but I can't quite tell for sure. Once I download it (should it be placed in a particular directory?), I am assuming that I will tar the file(s), but I'm not sure what to do after that.

Thanks for your help!

Amy
0
Duncan RoeSoftware DeveloperCommented:
If you don't have Linux source, you should maybe try an example program as suggested earlier.
0
Duncan RoeSoftware DeveloperCommented:
Or you can fetch Linux source from ftp.kernel.org.
I thought I had an example little program but I can't find it - getting Linux source may be easiest for you. Don't disturb your /usr/src/linux - just untar in your home directory
0
Duncan RoeSoftware DeveloperCommented:
Full source URL is ftp://ftp.kernel.org/pub/linux/kernel/v3.x/
Get linux-3.11.tar.xz if you have the xz command else linux-3.11.tar.bz2 (bzip2 -d will unpack)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AmyLAuthor Commented:
Stupid question: If I already have Linux installed, why do I want to download the kernel? Sorry....I'm definitely a rookie.
0
Duncan RoeSoftware DeveloperCommented:
I only suggested it because it's the only way I know to test a Qt installation. People do build their own kernels from source - there's always something new - but you don't need to worry about that.
0
AmyLAuthor Commented:
Thank you for all of your responses, and the inclusion of specific commands. It turns out I just need to use X11 xlib directly, and I'll just skip QT altogether, but your information was helpful.
Thanks!
Amy
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.