LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-13-2010, 10:45 PM   #1
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 304

Rep: Reputation: 33
qt 4.5 vs qt 3.8 (textbook says qt 4.3)


Alright dig this, what if I have slack 12.2 and I remove the qt 3.8 (or 3.8.8 or whatever it was) with pkgtool and then I install qt 4.5 or something with a slackbuild. If I do that then the command "qmake" now does nothing.

I have to create a file called ".profile" in my home directory and put
PATH=/tmp/SBo/qt-x11-opensource-src-4.5.1/bin:$PATH
export PATH

in that file, then log out and log back in. Now "qmake" works. So slackbuilds don't do that stuff automatically for me? Or was I supposed to do something with ldconfig or something?

Okay now suppose I have a book that teaches QT but it says to use QT 4.3.2 or better. Can I put qt 3.8 back on my system to get konsole and konqueror and all that stuff running again and still use qt 4.5 to compile my own stuff? Or is it possible for my KDE 3 apps to use qt 4.5 instead? (I doubt that.) Can KDevelop 3.5 compile and do stuff with qt 4.5? Or should I just give up and install slackware 13 and use the beta version of kdevelop 4? (I'm not sure I want to use a beta kdevelop.)
 
Old 04-13-2010, 11:01 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,252

Rep: Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630
Did you read the readme that accompanies the qt4 SlackBuild? The package is built to coexist with QT3. You should leave the QT3 stuff alone on your system (ie reinstall it if you have uninstalled it at some point) and then compile QT4 with the SlackBuild. It looks like you missed a step -- actually installing the package. Follow these instructions to use SlackBuilds properly. It should have created a package in /tmp/ (or whatever you set the OUTPUT variable to) that you can install with
Code:
# installpkg /tmp/packagename.tgz
 
Old 04-13-2010, 11:03 PM   #3
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,636

Rep: Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429
I recommend using Qt Creator as your IDE.

Last edited by dugan; 04-13-2010 at 11:31 PM.
 
Old 04-13-2010, 11:08 PM   #4
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
Since you are running 12.2 which came natively with QT 3.x, you have a few choices in which will allow you to maintain a working system.

Correctly follow the instruction from the SlackBuild which was written for QT 4 and Slackware 12.2 ( http://slackbuilds.org/repository/12.2/libraries/qt4/ )

Correctly follow the instructions, and upgrade to KDE 4 and QT 4 from testing, you'll have to write info at slackware.com and express interest in obtaining this disc. Or perhaps some knows of a mirror that keeps previous testing/ directories populated.

Looks like T3slider got in before I did
 
Old 04-13-2010, 11:10 PM   #5
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 304

Original Poster
Rep: Reputation: 33
That's what I did until the end. I just installed the package with pkgtool instead of the installpkg command. You think that's why I had to add the /bin directory to PATH manually? I guess I will test that right now.

But yeah they seem to be working side by side. I didn't even have to do "qmake-qt4" like it says I'm supposed to, it automatically used the correct qmake. (maybe because the qt4 variable is in my PATH before the qt 3 variable? but konsole and everything still find qt3 just fine.) Beats me.
 
Old 04-13-2010, 11:16 PM   #6
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 304

Original Poster
Rep: Reputation: 33
Oh wait... I wonder if they were working correctly side by side since the beginning but I was typing "qmake" instead of "qmake-qt4" like I was supposed to so it was using the qt3 for the qt4 examples I typed up from my textbook and it wouldn't work. And then when I added /tmp/SBo/qt-x11-opensource-src-4.5.1/bin to my PATH variable manually then the command "qmake" found qt4 first just because it was my first string in PATH? Hold on I gotta read the readme's again and start over. It's possible I never had any problems to begin with and I just made them up.
 
Old 04-13-2010, 11:22 PM   #7
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 304

Original Poster
Rep: Reputation: 33
lol, that was it. I actually had them both installed correctly on my first try. I just kept typing "qmake -project", "qmake xxx.pro", "make" instead of "qmake-qt4 -project", "qmake-qt4 xxx.pro", "make" like I was supposed to so it was using qt3.

Last edited by icecubeflower; 04-13-2010 at 11:32 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Online Textbook palisetty_suman Linux - General 4 02-05-2009 09:55 PM
koffice textbook or workbook tsergeetho Linux - Software 3 04-17-2007 11:30 PM
chapter reviewers for new OS textbook needed wllmst Linux - News 0 03-21-2007 05:34 PM
IPV6 security question (from textbook). schitzo1978 Linux - Security 3 03-21-2006 09:44 AM
LISP Online textbook/references. frob23 Programming 5 01-28-2005 08:18 AM


All times are GMT -5. The time now is 11:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration