[Qt-interest] Qt4.6: problems with examples/demos

Benjamin Frigan frigan at itap.physik.uni-stuttgart.de
Wed Jan 6 02:45:34 CET 2010


Hi everyone,

my distro: opensuse 11.1 x64

I've had several problems installing the examples and demos that come with qt4.6.
I already tried several things:

First I installed Qt SDK (this huge file from the website). The installation went fine. It also
installed qtdemo but not all examples. I couldn't figure out why. Anyway, I tried to build some
examples with qtcreator. When I built qmediaplayer, the following error occured:
Phonon/AudioOutput: No such file or directory...and a bunch of other errors.

I didn't know how to solve this issue. For that reason I removed Qt SDK and updated my current Qt with
yast (I think from 4.4.3 to 4.6.0). Furthermore, I installed qtcreator. Everything works except that
I don't have any examples now.
So, I downloaded the newest Qt4.6 source code and tried to install all examples manually. That did not
work either. Again I get the same error when I try to build qmediaplayer with qtcreator. But this
time, it's obvious because I don't have this 3rdparty stuff on my system. I just don't know how to do
that. 

All I wanna do, is install qtdemo with all examples and demos without qt since I already have
that. I looked at configure --help and saw that I can use 'make' and 'nomake' as an option. But how do
I tell it to install all that 3rdparty stuff?

As I wasn't sure about that I went to the examples directory and did the regular procedure: qmake
-project, qmake and then make. It started building the examples but after a while I got following
error:

make[2]: Entering directory `/home/benjamin/Desktop/examples/tools/plugandpaint'
g++ -m64 -Wl,-O1 -o plugandpaint main.o mainwindow.o paintarea.o plugindialog.o moc_mainwindow.o
moc_paintarea.o moc_plugindialog.o    -L/usr/lib64 -L/examples/tools/plugandpaint/plugins
-lpnp_basictools -lQtGui -L/usr/lib64 -L/usr/X11R6/lib64 -lQtCore -lpthread 
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find
-lpnp_basictools
collect2: ld returned 1 exit status
make[2]: *** [plugandpaint] Error 1
make[2]: Leaving directory `/home/benjamin/Desktop/examples/tools/plugandpaint'
make[1]: *** [sub-plugandpaint-make_default-ordered] Error 2
make[1]: Leaving directory `/home/benjamin/Desktop/examples/tools'
make: *** [sub-tools-make_default] Error 2

I was looking for lpnp_basictools but couldn't find it anywhere. In the directory
~/examples/tools/plugandpaint/plugins is a file called libpnp_basictools.a and libpnp_extrafilters.so.
After that error, the make process stopped. 

What do you recommend? I was trying do avoid uninstalling the Qt-version that is already on my system.
Otherwise, I will have to update it 'by hand'.



Regards,
Ben



 



More information about the Qt-interest-old mailing list