LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Ubustu 8.10 and Qt-4.x (https://www.linuxquestions.org/questions/ubuntu-63/ubustu-8-10-and-qt-4-x-681642/)

impeteperry 11-06-2008 05:29 PM

Ubustu 8.10 and Qt-4.x
 
I am an engineer and have been running Kubuntu for my programming and tried 8.10. It is a disaster with KDE 4.x
(enhancement to the point of non-usability) so I tried Ubuntu 8.10. What a pleasant surprise, so I downloaded Qt-x11-opensource-src.4.4.3 ok, but I could not run su -c "make install". I tried all variations of the command line, check for "make" (which was installed)
Help would be most appreciated.
Thanks

amani 11-06-2008 05:36 PM

That is not the way.

#sudo apt-get ...

or synaptic or adept_manager

Read the apt-get documentation for working with src etc too

You could have added ubuntu to kubuntu directly.

amani 11-06-2008 05:37 PM

#sudo make install

impeteperry 11-06-2008 08:05 PM

I'm sorry, but I don't understand. I'm pretty new to this. As far as adding "ubuntu" to "kubuntu", I am trying to keep them separate. I am doing my programming on kubuntu 8.04 which is ok. I use 2 hard drives.
when an upgrade is released I do a fresh install on the old hard drive, in this case I used the drive that had kubuntu 7.10 on it. When I saw what a mess kubuntu 8.10 was, I decided to try ubuntu 8.10 last night. I hadn't used ubuntu before. I think I will go back and do afresh install of Qt on the ubuntu, being a little more careful as I want to use it. It will be a couple of days as I shall be away.

Thanks

jglen490 11-06-2008 08:37 PM

amani was pointing out that *buntu defaults to sudo rather than su.

Ubuntu and Kubuntu are essentially the same with the difference being the Gnome desktop (with gtk libraries) and the KDE desktop (with QT libraries). You can install both the gnome-desktop and the kde-desktop packages and make a choice at login as to whether you want Gnome or KDE as your desktop experience.

impeteperry 11-07-2008 12:11 AM

Well I could not leave it alone, so I am embarrassed to say that I had forgotten to run "make" after the "./configure xshape". All is fine now, I thank you all.

impeteperry 11-07-2008 04:25 PM

Ok, apparently I am missing a lot of stuff I need to program in Qt in Ubuntu 8.10. As I said I have a 2 hard drive system. I have access to the Ot-4.4.1 directory for my Kubuntu 8.04 installation and the Qt-4.4.3 in the Ubuntu installation.

Two questions:
1. Can I just copy the missing files over?
2. If I wanted a straight Ubuntu installation of Qt-4.4.3 what would I have to have installed before installing Qt? Is there a document anywhere?

Thanks

samjh 11-07-2008 04:43 PM

How come you're not using Ubuntu's Qt packages?

You can easily install Qt 4.4.3 development packages by running:
Code:

sudo apt-get install qt4-dev-tools
There is no need to compile Qt from source.

impeteperry 11-07-2008 05:16 PM

thanks.
Code:

pete@myComputer:~$ sudo apt-get install qt4-dev-tools
[sudo] password for pete:
Reading package lists... Done
Building dependency tree     
Reading state information... Done
qt4-dev-tools is already the newest version.
qt4-dev-tools set to manually installed.
The following packages were automatically installed and are no longer required:
  libhugs-hgl-bundled libopenal1 libhugs-x11-bundled libhugs-stm-bundled
  libhugs-unix-bundled libhugs-network-bundled libhugs-hunit-bundled
  libhugs-parsec-bundled libhugs-cabal-bundled libalut0
  libhugs-haskell-src-bundled libhugs-haskell98-bundled libhugs-fgl-bundled
  libhugs-mtl-bundled libhugs-xhtml-bundled libhugs-opengl-bundled
  libhugs-time-bundled libhugs-haxml libhugs-quickcheck-bundled hugs
  libhugs-base-bundled
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pete@myComputer:~$

I don't see where this helps.

samjh 11-08-2008 12:30 AM

Quote:

Originally Posted by impeteperry (Post 3334905)
thanks.

...

I don't see where this helps.

It helps because the apt-get utility says you have already installed qt4-dev-tools. Therefore, you do not need to install Qt from source, which is what you seem to be doing as indicated in this earlier post:
Quote:

Originally Posted by impeteperry (Post 3333920)
downloaded Qt-x11-opensource-src.4.4.3 ok, but I could not run su -c "make install".

If you've installed qt4-dev-tools, you do NOT need to install Qt from source. There is no need to download Qt-x11-opensource-src.4.4.3 and do the whole make install business. In fact, it will probably screw up your installation entirely.

The qt4-dev-tools package is enough.

Also make sure that build-essential package is installed too (but if you've already programmed in C++ using your current Ubuntu installation, the package should be installed already).

In summary, starting from a clean Ubuntu installation, these are the only commands you need to run in order to install g++ and Qt 4.4.3 for development:
Code:

sudo apt-get install build-essential qt4-dev-tools
That is all.

Always check whether the applications or libraries you require are in the official package repositories first, before attempting to install from tar.gz sources. Ubuntu (like Debian) has excellent support for Qt development with all core and optional components and tools, the packages are already in the repositories.

impeteperry 11-08-2008 02:54 AM

Thanks. I am leaving for a week or so. Will let you know how I make out when I get back. again thanks.

pete perry

impeteperry 11-18-2008 09:45 AM

Hi I'm back and have qt stuff up and running. I thank you for your help, but I discovered I had not run my up grades. tsk! tsk! shame on me.

impeteperry 11-19-2008 01:44 PM

A followup problem:
A fresh Ubuntu installation
do full Upgrades
run your "sudo apt-get....". No warnings or errors that I saw.
able to edit and run existing programs OK
BUT
When I go to load "kdevelop" or "qdevelop"
Code:

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/m/m4/m4_1.4.11-1_i386.deb
  Could not resolve 'us.archive.ubuntu.com'


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/a/autoconf/autoconf_2.61-7ubuntu1_all.deb
  Could not resolve 'us.archive.ubuntu.com'


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/a/autotools-dev/autotools-dev_20080123.1_all.deb
  Could not resolve 'us.archive.ubuntu.com'


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/a/automake1.10/automake_1.10.1-3_all.deb
  Could not resolve 'us.archive.ubuntu.com'


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/phonon/libphonon4_4.2.0-0ubuntu1_i386.deb
  Could not resolve 'us.archive.ubuntu.com'

I have been using these for debuging. I use index-strings for controlling program flow and I need to be able to inspect QStrings when debugging. When installing Qt-4 by downloading qt-4 I have them, but I don't know all the additional items to run Qt in Ubuntu 8.10

Is there a way to correct this condition? In the past I have not had much luck with "gdb" or "insight" debugging.
Thanks for your help

samjh 11-19-2008 10:45 PM

It looks like the APT package manager can't get the right *.deb files for installation. That is (or was) a problem with your repository mirror. Try again, and if it still doesn't work, go to Software Sources and change the mirror location to somewhere else.

impeteperry 11-20-2008 07:36 AM

Thanks, I shall try that and let you know.
In other words, just running
Quote:

sudo apt-get install qt4-dev-tools
should allow me to run KDevelop and/or QDevelop?


On my other computer where I loaded Qt-4 the old fashion way, using
Quote:

qt-x11-opensource-4.4.3.tar.gz
and waiting 4 or more hours, I have the problem of a missing "QtGui" package which I can't find to install.


All times are GMT -5. The time now is 06:34 AM.