UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yes, "sudo apt-get install qt4-dev-tools" should be enough.
In order to run KDevelop and/or QDevelop, you'll obviously need to get packages for those, but qt4-dev-tools will have all the required dependencies. In fact, right now I'm running QDevelop and did nothing more than "sudo apt-get install qt4-dev-tools qdevelop".
qt4-dev-tools will install Qt Designer, Qt Linguist, Qt Assistant, and all the Qt4-related development tools like qmake, moc, etc.
qdevelop is the package for QDevelop. I think KDevelop comes in the kdevelop package, but I'm not sure as I've never used KDevelop.
Thanks, Did as you suggested. Works great!!!
Will load the Designer and the Assistant as well.
I started using KDevelop back when I first got Qt_3. I find it a little bit more user friendly then QDevelop, but QDevelop is fine.
I shell go back to my Desktop and reinstall Ubuntu and Qt-4 your way.
I have a two hard drives desktop system and toggle between drives when up grades arrive. I have Kubuntu 8.04 (KDE 3) as my working drive. When Kubuntu 810 arrived with KDE 4, I shuddered!!
"Enhancement to the point of non-usability" thus the switch to Ubuntu.
Hi I'm back a gain.
I use a program "grpn-1.1.2" which is a great calculator
When I try to run it get
Quote:
pete@pete-laptop:~/grpn-1.1.2$ ./grpn
./grpn: error while loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: No such file or directory
pete@pete-laptop:~/grpn-1.1.2$
I am not sure as what my sudo apt-get should look like so I am asking for your help again.
Incidently I am storing all your suggestions in my "Document file" for future reference when I forget what I'm doing again.
Looks like you need to install the libgtk1.2 package (ie. sudo apt-get install libgtk1.2).
When you see those kinds of errors, go to your Synaptic package manager (or Adept if you're using Kubuntu) and do a search fro the library name. Install the one or ones that look relevant and see if it solves the problem.
along the same line of something missing. I have a program that used Qt-4 designer. It runs fine, but when I make a change in the code and run "make" I get a lot of missing items. (the ones defined in the designer). so I stripped it down and tried to run "qmake -project" I got the following error message
Quote:
pete@pete-laptop:~/myPrograms/myKPrograms/myPrograms/dg-files/dg80NU/dg$ qmake -project
Failure to open file: /home/pete/myPrograms/myKPrograms/myPrograms/dg-files/dg80NU/dg//dg.pro
Unable to generate project file.
pete@pete-laptop:~/myPrograms/myKPrograms/myPrograms/dg-files/dg80NU/dg$
sorry about the long path
Any suggestions besides "go away"
Thanks
So The "//" was put in by the "qmake -project" function.
I went back to my Kubuntu 8.04, and ran the "qmake -project" using the same source code. The "dg.pro" was generated without warnings or errors so there is somthing amiss or missing in my Ubuntu 8.10 "qmake -project".
I don't normally use designer except to develop a "user interface" I like and with the "ui_..." file as a reference, write the "baseform.h" and the "baseform.cpp" modules.
I would like to have my "Unbuntu" fully functional however.
Thanks I have a tbz file that I Used on both intallation so Kubuntu and Ubuntu were running the identical source code.
I have used the "sudo apt-get..." that I have been given and they did the job. Maybe I need one more.
I have tried it on my laptop and my desktop. Both were installed from the same DVD Both ran the updates. and only the same additional program downloads. I get exactly the same results from each computer.
Another question if I may.
As I've said, I have a twx HD system. I have Kubuntu 8.04 on disk 0ne and Ubuntu 8.10 on disk two.
From disk 2 (Ubuntu) I can open up the /usr/local/Trolltech folder one disk 1 (Kubuntu) and get the demos and examples given there.
Can I just copy that folder to disk2 with out screwing things up and free up the need to keep the "Kubuntu" on disk one so I can use it for the next version of Ubuntu when it comes out?
I have looked at Qt Assistand, but not in great detail yet, but it does not give me what I'm used to.
Have you ever installed Qt4 in Kubuntu? If you have, look at "/usr/local/Trolltech/Qt-4.4.1" and you will see what I was asking about.
In Kubuntu, you download a package, follow the directions, install it and you are ready to run.
In Ubuntu, you say you do it with a series of apt-gets, which you have kindly given me, that work fine, but is there a list of them on (Qt's) web site or anywhere else?
I am switching from Kubuntu because Kubuntu uses kde which was fine up to kde 4 which I found not to my liking. (a disaster is more like it).
Ubuntu 8.10 was simple to find your way around in, (one night for me) so I thought of doing my programming there. Because of your help, I am up and running there.
I have tried the designer again as I am having trouble with the user interface. This time the "qmake -project" generated the dg.pro file.
Now when I run "make" I get
Quote:
pete@pete-desktop:~/Desktop/dg$ make
/usr/bin/uic-qt4 baseform.ui -o ui_baseform.h
Warning: name gridLayout is already used
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o baseform.o baseform.cpp
baseform.cpp: In constructor ‘BaseForm::BaseForm(QWidget*)’:
baseform.cpp:15: error: ‘cNum’ was not declared in this scope
baseform.cpp:15: error: invalid use of incomplete type ‘struct CNum’
baseform.h:29: error: forward declaration of ‘struct CNum’
baseform.cpp:16: error: ‘cName’ was not declared in this scope
baseform.cpp:16: error: invalid use of incomplete type ‘struct CName’
baseform.h:30: error: forward declaration of ‘struct CName’
baseform.cpp:17: error: ‘gNum’ was not declared in this scope
baseform.cpp:17: error: invalid use of incomplete type ‘struct GNum’
baseform.h:32: error: forward declaration of ‘struct GNum’
baseform.cpp:18: error: ‘dNum’ was not declared in this scope
baseform.cpp:18: error: invalid use of incomplete type ‘struct DNum’
baseform.h:35: error: forward declaration of ‘struct DNum’
baseform.cpp:19: error: ‘sNum’ was not declared in this scope
baseform.cpp:19: error: invalid use of incomplete type ‘struct SNum’
baseform.h:38: error: forward declaration of ‘struct SNum’
baseform.cpp:20: error: ‘kHelp’ was not declared in this scope
baseform.cpp:20: error: invalid use of incomplete type ‘struct KHelp’
baseform.h:40: error: forward declaration of ‘struct KHelp’
baseform.cpp: At global scope:
baseform.cpp:92: error: no ‘void BaseForm::slotInOutStringList(QString, QString, QStringList*, bool*)’ member function declared in class ‘BaseForm’
baseform.cpp:182: warning: unused parameter ‘caller’
baseform.cpp: In member function ‘void BaseForm::slotFromKeyboard()’:
baseform.cpp:210: error: ‘inputText’ was not declared in this scope
baseform.cpp:210: error: ‘textItem’ was not declared in this scope
baseform.cpp:211: error: ‘setMessageBox’ was not declared in this scope
make: *** [baseform.o] Error 1
pete@pete-desktop:~/Desktop/dg$
I am going back to "disk1" (Kubuntu) as I have toget this simple program on the road. It is an index sheet for a "discGear" disc storage sysetem. I write my oun index as I don't like their's and I run Linux.
FORGET EVERYTHING I had the same problem in Kubunu so it is my data, sorry
Last edited by impeteperry; 11-24-2008 at 08:45 PM.
Kubuntu is just a KDE version of Ubuntu (same for Xubuntu, which is the Xfce version of Ubuntu). The packages are all the same, whether you use Kubuntu, Ubuntu, or whatever *buntu. So my instructions apply equally to any official *buntu.
As for finding the package names from Qt's website, no. You probably know already that every Linux distro is responsible for packaging (with few exceptions) their own software, so Ubuntu package maintainers prepare Qt packages for *buntu. If you want to find out the list of Qt-related packages that are available for *buntu, then you can use Ubuntu packages search website, otherwise open up Adept (on Kubuntu) or Synaptic (on Ubuntu) and use the search function to look for "qt4". You can also do it from the terminal, by typing "sudo apt-cache search qt4", which will spit out a long list of packages that include or use qt4.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.