Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, April 2007
apt-get install qt doesn't work in ubuntu


Message 1 in thread

hi,all
i am trying install qt in ubuntu follow these steps:
step1: run "apt-get install gcc cpp g++ libc6-dev libx11-dev make gdb" in a
terminal , and have done successfully;
step2: run "apt-get install libq4-core libqt4-gui libqt4-dev libqt4-debug
libqt4-debug-dev qt4-designer qt4-dev-tools qt4-doc", but it doesn't work at
all and output errors like this:
error report:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package qt

then what's the problem do you think ? anyone knows?

to be honest , i have tried install qt in ubuntu for a few times but all
failed .
be puzzled.

regards
fengli

Message 2 in thread

"张凤丽" <zhangfenglisdu@xxxxxxxxx> wrote on 04/15/2007 09:00:06:

> hi,all
> i am trying install qt in ubuntu follow these steps:
> step1: run "apt-get install gcc cpp g++ libc6-dev libx11-dev make
> gdb" in a terminal , and have done successfully;
> step2: run "apt-get install libq4-core libqt4-gui libqt4-dev libqt4-
> debug libqt4-debug-dev qt4-designer qt4-dev-tools qt4-doc", but it
> doesn't work at all and output errors like this:
> error report:
> Reading package lists... Done
> Building dependency tree... Done
> E: Couldn't find package qt
>
> then what's the problem do you think ? anyone knows?
>
> to be honest , i have tried install qt in ubuntu for a few times but
> all failed .
> be puzzled.

First of all, this is a problem with the package-management of ubuntu, not
qt.
What you can do:
first do a
apt-get update
to get the latest possible packages for your system. And the search for qt
by doing
apt-cache search qt
and have a look at the packages, which are provided in the output.
If no qt-package is provided search the internet for ubuntu and qt. I do
not know, if there is a webpage like packages.debian.org for ubuntu. But I
guess it is a good point to start at www.ubuntu.org.
Maybe you have to add another source to your /etc/sources.list (iirc)
after that do a
apt-get update
apt-cache search qt
and then add the given package to your
apt-get install - command.

hth!

Bye,
Sumpi

Message 3 in thread

hi,
i have done as your suggestions , but it still doesn't work well.
first i have apt-get update my system
and then apt-cache search qt,  the output seems includes qt3 but not qt4,
which looks like this:

gtk2-engines-gtk-qt - theme engine using Qt for GTK+ 2.x
gwenview - image viewer for KDE
kdesdk-scripts - a set of useful development scripts for KDE
latex-xft-fonts - Xft-compatible versions of some LaTeX fonts
libcppunit-dev - Unit Testing Library for C++
libodbcinstq1c2 - Qt-based ODBC configuration library
libqscintilla-dev - Qt source code editing component - development files
libqscintilla-doc - Qt source code editing component - documentation
libqscintilla6 - Qt source code editing component based on Scintilla
libqt-perl - Perl bindings for the Qt library
libqthreads-12 - QuickThreads library for Guile
libscim-dev - development library for SCIM platform
libsmokeqt-dev - SMOKE Binding Library to Qt - Development Files
libsmokeqt1 - SMOKE Binding Library to Qt
libwvstreams4.2-qt - WvStreams and Qt Event Integration Library
pyqt-tools - pyuic and pylupdate for Qt3
python-qt-dev - Qt bindings for Python - Development files
python-qt3 - Qt3 bindings for Python (default version)
python-qt3-doc - Qt bindings for Python - Documentation and examples
python-qtext - Qt extensions for PyQt (default version)
python2.4-qt3 - Qt3 bindings for Python 2.4
python2.4-qtext - Qt extensions for PyQt
python2.4-sip4-dev - Python/C++ bindings generator - Python2.4+Qt3 devel
python2.4-sip4-qt3 - Python/C++ bindings generator - Python2.3+Qt3 runtime
qca-tls - TLS plugin for the Qt Cryptographic Architecture (QCA)
qtparted - A parted frontend using QT
scim - smart common input method platform
scim-qtimm - SCIM context plugin for qt-immodule
scribus - Open Source Desktop Publishing
sip4 - Python/C++ bindings generator
adept - package manager for KDE
language-selector-qt - Language selector for kubuntu linux
libavahi-qt3-1 - Avahi QT3 integration library
libavahi-qt3-dev - Development headers for the Avahi QT3 integration library
libdbus-qt-1-1c2 - simple interprocess messaging system (Qt-based shared
library)
libdbus-qt-1-dev - simple interprocess messaging system (Qt interface)
libpoppler-qt-dev - PDF rendering library -- development files (Qt
interface)
libpoppler1-qt - PDF rendering library (Qt-based shared library)
libqt3-compat-headers - Qt 1.x and 2.x compatibility includes
libqt3-headers - Qt3 header files
libqt3-mt - Qt GUI Library (Threaded runtime version), Version 3
libqt3-mt-dev - Qt development files (Threaded)
linux-source-2.6.15 - Linux kernel source for version 2.6.15 with Ubuntu
patchesopenoffice.org-kde - KDE Integration for OpenOffice.org (Widgets,
Dialogs, Addressbook)
qt3-apps-dev - Qt3 Developer applications development files
qt3-dev-tools - Qt3 development tools
qt3-doc - Qt3 API documentation
fglrx-control - Control panel for the ATI graphics accelerators
linux-source-2.6.15-magma - Linux kernel source for version 2.6.15-magma

regards
fengli


2007/4/15, andreas.sumper@xxxxxxxxxxxx <andreas.sumper@xxxxxxxxxxxx>:
>
>
> "张凤丽" <zhangfenglisdu@xxxxxxxxx> wrote on 04/15/2007 09:00:06:
>
> > hi,all
> > i am trying install qt in ubuntu follow these steps:
> > step1: run "apt-get install gcc cpp g++ libc6-dev libx11-dev make
> > gdb" in a terminal , and have done successfully;
> > step2: run "apt-get install libq4-core libqt4-gui libqt4-dev libqt4-
> > debug libqt4-debug-dev qt4-designer qt4-dev-tools qt4-doc", but it
> > doesn't work at all and output errors like this:
> > error report:
> > Reading package lists... Done
> > Building dependency tree... Done
> > E: Couldn't find package qt
> >
> > then what's the problem do you think ? anyone knows?
> >
> > to be honest , i have tried install qt in ubuntu for a few times but
> > all failed .
> > be puzzled.
>
> First of all, this is a problem with the package-management of ubuntu, not
> qt.
> What you can do:
> first do a
> apt-get update
> to get the latest possible packages for your system. And the search for qt
> by doing
> apt-cache search qt
> and have a look at the packages, which are provided in the output.
> If no qt-package is provided search the internet for ubuntu and qt. I do
> not know, if there is a webpage like packages.debian.org for ubuntu. But I
> guess it is a good point to start at www.ubuntu.org.
> Maybe you have to add another source to your /etc/sources.list (iirc)
> after that do a
> apt-get update
> apt-cache search qt
> and then add the given package to your
> apt-get install - command.
>
> hth!
>
> Bye,
> Sumpi

Message 4 in thread

On 15.04.07 16:51:38, ååä wrote:
> hi,
> i have done as your suggestions , but it still doesn't work well.
> first i have apt-get update my system
> and then apt-cache search qt,  the output seems includes qt3 but not qt4,

Then you need to switch to a newer ubuntu release or add some other
repository. To find more information look at the ubuntu websites and if
that doesn't help find an ubuntu forum where you can ask how to get qt4.

Andreas

-- 
 [ signature omitted ] 

Message 5 in thread

you might also want to have a look at
http://packages.ubuntu.com/

manu


Andreas Pakulat wrote:
> On 15.04.07 16:51:38, ååä wrote:
>> hi,
>> i have done as your suggestions , but it still doesn't work well.
>> first i have apt-get update my system
>> and then apt-cache search qt,  the output seems includes qt3 but not qt4,
> 
> Then you need to switch to a newer ubuntu release or add some other
> repository. To find more information look at the ubuntu websites and if
> that doesn't help find an ubuntu forum where you can ask how to get qt4.
> 
> Andreas
> 

--
 [ signature omitted ] 

Message 6 in thread

Hi once again!

Another thing, you can do is installing Qt4 from scratch by compiling
everything on your own.
Go to www.trolltech.com
get the latest qt 4.x open-source - sources
unpack it
cd into the new directory and try
./configure && make
then if everything went well, switch to user root and perform a make
install

If everything went well, you will have a new directory in /usr/local/
If you need to compile, you have to use qmake with the absolute path, which
will reside in something like
/usr/local/Trolltech/Qt-4.x-opensource/bin/qmake (please have a look on
your own. Just writing this out of memory)
I suggest not to put this in your PATH-environment, to keep your kde and
other stuff working.

One thing to remind:
You have to care about updating this software by yourself, as apt does not
know anything about this qt-version!

hth!

Bye,
Sumpi

Manuela Hutter <manuela.hutter@xxxxxx> wrote on 04/15/2007 11:33:09:

> you might also want to have a look at
> http://packages.ubuntu.com/
>
> manu
>
>
> Andreas Pakulat wrote:
> > On 15.04.07 16:51:38, 张凤丽 wrote:
> >> hi,
> >> i have done as your suggestions , but it still doesn't work well.
> >> first i have apt-get update my system
> >> and then apt-cache search qt,  the output seems includes qt3 but not
qt4,
> >
> > Then you need to switch to a newer ubuntu release or add some other
> > repository. To find more information look at the ubuntu websites and if
> > that doesn't help find an ubuntu forum where you can ask how to get
qt4.
> >
> > Andreas
> >
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>

Message 7 in thread

hi,
i am using ubuntu6.06 dapper(in fact, i don't know what's the meaning of
'dapper') and the kernel version is kernel-2.6.15.
i have tried to install qt4 from compiling source after install
build-essential, but failed too. though ./configure it successfully, i get
errors when try to make it.
now, i am downloading  .deb files related qt4 from
http://packages.ubuntu.com/, and hope it works well.

regards
fengli


2007/4/15, Manuela Hutter <manuela.hutter@xxxxxx>:
>
> you might also want to have a look at
> http://packages.ubuntu.com/
>
> manu
>
>
> Andreas Pakulat wrote:
> > On 15.04.07 16:51:38, 张凤丽 wrote:
> >> hi,
> >> i have done as your suggestions , but it still doesn't work well.
> >> first i have apt-get update my system
> >> and then apt-cache search qt,  the output seems includes qt3 but not
> qt4,
> >
> > Then you need to switch to a newer ubuntu release or add some other
> > repository. To find more information look at the ubuntu websites and if
> > that doesn't help find an ubuntu forum where you can ask how to get qt4.
> >
> > Andreas
> >
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

Message 8 in thread

On Sun, 2007-04-15 at 22:13 +0800, ååä wrote:
> hi,
> i am using ubuntu6.06 dapper(in fact, i don't know what's the meaning
> of 'dapper') and the kernel version is kernel-2.6.15.
> i have tried to install qt4 from compiling source after install
> build-essential, but failed too. though ./configure it successfully, i
> get errors when try to make it. 
> now, i am downloading  .deb files related qt4 from
> http://packages.ubuntu.com/, and hope it works well. 
> 
> regards
> fengli
> 

Dapper Drake is simply the code name of 6.06.

For your information, I have installed the qt4 packages on Ubuntu 6.06
Dapper. They are in the "universe" repository, not in the "main"
repository. If apt cannot find these for you, then it would appear that
you do not have "universe" enabled. (I usually use Synaptic to manage
packages rather than calling apt directly.)

However, the Ubuntu supplied packages did not provide what I wanted, so
I removed them and built qt4 from source. This was successful.

I have since upgraded that machine to Ubuntu 6.10 Edgy, and again built
qt4 from source (version 4.2.1).

The fact that you have failed to install packages with apt implies that
the "universe" repository is not enabled in /etc/apt/sources.list

The fact that building qt from source failed implies that something is
missing from your build environment, but I cannot guess what as you have
not provided any error messages.

I hope this information helps you.

Regards,

Stephen Jackson





--
 [ signature omitted ] 

Message 9 in thread

hi, once again!
it seems that some qt files conflicts with Synaptic. when i am trying
install qt, Synaptic will be destroyed .
regards
fengli

2007/4/15, Stephen Jackson <spjackson42@xxxxxxxxx>:
>
> On Sun, 2007-04-15 at 22:13 +0800, 张凤丽 wrote:
> > hi,
> > i am using ubuntu6.06 dapper(in fact, i don't know what's the meaning
> > of 'dapper') and the kernel version is kernel-2.6.15.
> > i have tried to install qt4 from compiling source after install
> > build-essential, but failed too. though ./configure it successfully, i
> > get errors when try to make it.
> > now, i am downloading  .deb files related qt4 from
> > http://packages.ubuntu.com/, and hope it works well.
> >
> > regards
> > fengli
> >
>
> Dapper Drake is simply the code name of 6.06.
>
> For your information, I have installed the qt4 packages on Ubuntu 6.06
> Dapper. They are in the "universe" repository, not in the "main"
> repository. If apt cannot find these for you, then it would appear that
> you do not have "universe" enabled. (I usually use Synaptic to manage
> packages rather than calling apt directly.)
>
> However, the Ubuntu supplied packages did not provide what I wanted, so
> I removed them and built qt4 from source. This was successful.
>
> I have since upgraded that machine to Ubuntu 6.10 Edgy, and again built
> qt4 from source (version 4.2.1).
>
> The fact that you have failed to install packages with apt implies that
> the "universe" repository is not enabled in /etc/apt/sources.list
>
> The fact that building qt from source failed implies that something is
> missing from your build environment, but I cannot guess what as you have
> not provided any error messages.
>
> I hope this information helps you.
>
> Regards,
>
> Stephen Jackson
>
>
>
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

Message 10 in thread

Hi,

> it seems that some qt files conflicts with Synaptic. when i am trying 
> install qt, Synaptic will be destroyed .

This is the first time I hear of such a problem. What are you trying to 
install exactly? How is Synaptic destroyed?

--
 [ signature omitted ] 

Message 11 in thread

Stephen Jackson wrote:

> On Sun, 2007-04-15 at 
> 
> Dapper Drake is simply the code name of 6.06.
> 
> For your information, I have installed the qt4 packages on Ubuntu 6.06
> Dapper. 

If I remember well 6.06 had the 4.1.x version that were severely broken by a
bug which prevented to select a directory in the file dialog. If your
application needs that, you must build qt4 by yourself (a breeze)  or
upgrade to a newer version of ubuntu.

Alain

--
 [ signature omitted ] 

Message 12 in thread

hi, again,
try to install qt4 from source qt-x11-opensource-src-4.2.3:
after 'apt-get install gcc cpp g++ libc6-dev libx11-dev make gdb' and
'./configure', successfully, i get 'make'  errors as follows:

/usr/bin/ld:can't find -lXext
collect2: ld return 1
make[2]: *** [../../lib/libQtGui.so.4.2.3] error 1
make[2]: Leaving directory `/home/zfl/qt-x11-opensource-src-4.2.3 /src/gui'
make[1]: *** [sub-gui-make_default] error 2
make[1]: Leaving directory `/home/zfl/qt- x11-opensource-src-4.2.3/src'
make: *** [sub-src-make_default-ordered] error 2

regards
fengli


2007/4/16, denebet <denebet@xxxxxxxxxxxx>:
>
> Stephen Jackson wrote:
>
> > On Sun, 2007-04-15 at
> >
> > Dapper Drake is simply the code name of 6.06.
> >
> > For your information, I have installed the qt4 packages on Ubuntu 6.06
> > Dapper.
>
> If I remember well 6.06 had the 4.1.x version that were severely broken by
> a
> bug which prevented to select a directory in the file dialog. If your
> application needs that, you must build qt4 by yourself (a breeze)  or
> upgrade to a newer version of ubuntu.
>
> Alain
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

Message 13 in thread

hi, all
thank you for all your favor from the bottom of my heart! installing qt4 is
really so difficult in ubuntu? be worried.
but now 'apt-get install libqt4-core libqt4-gui libqt4-dev libqt4-debug
libqt4-debug-dev' works well after i have modify the /etc/apt/source.list.
regards
fengli

2007/4/16, 张凤丽 <zhangfenglisdu@xxxxxxxxx>:
>
> hi, again,
> try to install qt4 from source qt-x11-opensource-src-4.2.3:
> after 'apt-get install gcc cpp g++ libc6-dev libx11-dev make gdb' and
> './configure', successfully, i get 'make'  errors as follows:
>
> /usr/bin/ld:can't find -lXext
> collect2: ld return 1
> make[2]: *** [../../lib/libQtGui.so.4.2.3] error 1
> make[2]: Leaving directory `/home/zfl/qt-x11-opensource-src-4.2.3/src/gui'
> make[1]: *** [sub-gui-make_default] error 2
> make[1]: Leaving directory `/home/zfl/qt- x11-opensource-src-4.2.3/src'
> make: *** [sub-src-make_default-ordered] error 2
>
> regards
> fengli
>
> 2007/4/16, denebet <denebet@xxxxxxxxxxxx>:
> >
> > Stephen Jackson wrote:
> >
> > > On Sun, 2007-04-15 at
> > >
> > > Dapper Drake is simply the code name of 6.06.
> > >
> > > For your information, I have installed the qt4 packages on Ubuntu 6.06
> > > Dapper.
> >
> > If I remember well 6.06 had the 4.1.x version that were severely broken
> > by a
> > bug which prevented to select a directory in the file dialog. If your
> > application needs that, you must build qt4 by yourself (a breeze)  or
> > upgrade to a newer version of ubuntu.
> >
> > Alain
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> > "unsubscribe" in the subject or the body.
> > List archive and information: http://lists.trolltech.com/qt-interest/
> >
> >
>

Message 14 in thread

张凤丽 schrieb:
> hi, all
> thank you for all your favor from the bottom of my heart! installing qt4
> is really so difficult in ubuntu? be worried.

No. We are not worried :) What you have described are the obstacles each
beginner has to master, for example setting up his/her development
environment.

You might have to set the LD_LIBRARY_PATH.

No offense taken, but linker messages such as

  /usr/bin/ld:can't find -lXext

should clearly tell you where to look for the solution. If this is
"difficult" for you then you should refer to the man pages of g++ where
and how it locates libraries (and header files) or consult google.

Also make sure that you have the *developer* packages for Ubuntu
installed (for example the Xext library developer packages; they are
*not* installed by default). Again, this is very basic stuff every
developer should be familiar with :)

Cheers, Oliver

--
 [ signature omitted ]