You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Amnon82

Beginner

  • "Amnon82" started this thread

Posts: 16

Location: Germany

  • Send private message

1

Friday, March 2nd 2007, 6:54am

QT-3 and QT-4 at the same time - possible?

I'm the KDE-Maintainer of Paldo GNU/Linux. We are using qt-3-3.3.7-1 atm. This works with KDE 3.5.6. Now I wanted to play a little with KDE 4. It uses qt-4-4.2.1-0.

I did this package but now all packages using qt-3 won't work. There is a confilict of some files as you can see in the files-logs:

qt-3.files - qt-4.files

These are the spec-files I use to build qt-3 and qt-4:

qt-4 spec
qt-3 spec

Can you guys tell me how to install it the proper way?

Btw. is a qtrc-file needed?

jucato

Trainee

Posts: 155

Location: Philippines

  • Send private message

2

Friday, March 2nd 2007, 8:17am

Yes it is possible to have Qt 3 and Qt 4 side by side. It all depends on how you install them. I guess this is the guide that you want:

http://techbase.kde.org/Getting_Started/…nstable_Version
OS: Kubuntu 6.06 LTS (Dapper Drake) | KDE 3.5.3
Computer Specs: AMD Sempron 2200 1.5Ghz | VIA KM266 Pro 8235 chipset | nVidia GeForce MX 4000 128MB DDR-RAM 32-bit AGP 8x

Amnon82

Beginner

  • "Amnon82" started this thread

Posts: 16

Location: Germany

  • Send private message

3

Friday, March 2nd 2007, 10:51pm

digg deeper

You ment this part:

Set up Qt

Next we need to get the Qt4 that is in KDE's source repository. KDE is guaranteed to build against any Qt 4.2, so you can use your distribution's packaging if you want to. However, we recommend using the copy in the KDE Subversion servers -- especially the patches.

Note that in the future KDE may require a higher version (Qt betas, for instance), so you may as well get your system building with qt-copy now.

The Recipe

Source code

1
2
3
4
5
6
7
8
cs
svn checkout svn://anonsvn.kde.org/home/kde/trunk/qt-copy
cd qt-copy
./apply_patches
./configure -qt-gif -no-exceptions -debug -fast \
 -prefix $QTDIR -qdbus 
make
make install

What's Happening

We switch back to the kde-devel user's home (line 1) and download the source code using subversion (sv) from KDE's repository (line 2). After changing into the resulting ~/qt-copy directory (line 3), we run a script that manages the patches that come with qt-copy (line 4).

Once the patches have been applied, we then set up the build using the configure script (line 5-6). The various command line options used are explained in the ~/qt-copy/README.qt-copy file. Finally, we build (line 7) and install (line 8) Qt. Note that the installation does not require root as it installs it locally into ~/qt-copy.

When I use -prefix /usr/qt4-files so all files should be installed in this subfolder? Incl. the bins?

For QT-3 we use this:

Source code

1
yes "yes" | ./configure -prefix /usr -docdir /usr/share/qt3/doc -headerdir /usr/include/qt3 -plugindir /usr/lib/qt3/plugins -datadir /usr/share/qt3 -translationdir /usr/share/qt3/translations -sysconfdir /etc/qt3 -system-zlib -fast -no-exceptions -platform linux-g++ -thread -system-libpng -system-libjpeg -system-libmng -plugin-sql-mysql -plugin-sql-psql -plugin-sql-sqlite -I/usr/include/mysql -L/usr/lib/mysql -I$(pg_config --includedir-server)


For QT-4 I used:

Source code

1
yes "yes" |./configure -prefix /usr -docdir /usr/share/qt4/doc -headerdir /usr/include/qt4 -plugindir /usr/lib/qt4/plugins -datadir /usr/share/qt4 -translationdir /usr/share/qt4/translations -sysconfdir /etc/qt4 -system-zlib -fast -no-exceptions -platform linux-g++ -system-libpng -system-libjpeg -system-libmng -plugin-sql-mysql -plugin-sql-psql -plugin-sql-sqlite -I/usr/include/mysql -L/usr/lib/mysql -I$(pg_config --includedir-server) -qt3support


That results into the conflicts of the bins in /usr/bin.

What will be the proper settings and where will be the files stored then?

This post has been edited 2 times, last edit by "Amnon82" (Mar 2nd 2007, 10:55pm)


Amnon82

Beginner

  • "Amnon82" started this thread

Posts: 16

Location: Germany

  • Send private message

4

Friday, March 2nd 2007, 11:27pm

Seems other distros did this solution:

They add -qt4 to all new binaries. Seems I've to backup the old qt-3 ones first and restore them later after renaming the qt-4 ones.

Take a look on the files-list

And here my files list. Also the qt-3.files.

I'll take a closer look into it on sunday.