|
Lines 54-79
Link Here
|
| 54 |
env.Exit(1) |
54 |
env.Exit(1) |
| 55 |
env['TDEDIR'] = os.popen('tde-config -prefix').read().strip() |
55 |
env['TDEDIR'] = os.popen('tde-config -prefix').read().strip() |
| 56 |
|
56 |
|
| 57 |
print "Checking for kde version : ", |
57 |
print "Checking for tde version : ", |
| 58 |
kde_version = os.popen("tde-config --version|grep KDE").read().strip().split()[1] |
58 |
tde_version = os.popen("tde-config --version|grep TDE").read().strip().split()[1] |
| 59 |
try: |
59 |
tde_major = tde_version.split('.')[0].lstrip('R') |
| 60 |
env['KDEm1']=int(kde_version[0]) |
60 |
tde_minor = tde_version.split('.')[1] |
| 61 |
except: |
61 |
tde_patch = tde_version.split('.')[2] |
| 62 |
pass |
62 |
if int(tde_major) != 14: |
| 63 |
try: |
63 |
print RED + tde_version |
| 64 |
env['KDEm2']=int(kde_version[2]) |
64 |
print RED + "Your tde version can be too old" + NORMAL |
| 65 |
except: |
65 |
print RED + "Please make sure tde is at least R14.0" + NORMAL |
| 66 |
pass |
|
|
| 67 |
try: |
| 68 |
env['KDEm3']=int(kde_version[4]) |
| 69 |
except: |
| 70 |
pass |
| 71 |
if int(kde_version[0]) != 3 or int(kde_version[2]) < 2: |
| 72 |
print RED+kde_version |
| 73 |
print RED+"Your kde version can be too old"+NORMAL |
| 74 |
print RED+"Please make sure kde is at least 3.2"+NORMAL |
| 75 |
else: |
66 |
else: |
| 76 |
print GREEN+kde_version+NORMAL |
67 |
print GREEN + tde_version + NORMAL |
|
|
68 |
env['KDEm2']=int(5) |
| 77 |
|
69 |
|
| 78 |
## Detect the qt library |
70 |
## Detect the qt library |
| 79 |
print "Checking for the qt library : ", |
71 |
print "Checking for the qt library : ", |
|
Lines 94-100
Link Here
|
| 94 |
env['QTDIR'] = qtdir.strip() |
86 |
env['QTDIR'] = qtdir.strip() |
| 95 |
|
87 |
|
| 96 |
## Find the necessary programs uic-tqt and moc |
88 |
## Find the necessary programs uic-tqt and moc |
| 97 |
print "Checking for uic-tqt : ", |
89 |
print "Checking for uic-tqt : ", |
| 98 |
uic = qtdir + "/bin/uic-tqt" |
90 |
uic = qtdir + "/bin/uic-tqt" |
| 99 |
if os.path.isfile(uic): |
91 |
if os.path.isfile(uic): |
| 100 |
print GREEN+"uic-tqt was found as "+uic+NORMAL |
92 |
print GREEN+"uic-tqt was found as "+uic+NORMAL |
|
Lines 129-135
Link Here
|
| 129 |
|
121 |
|
| 130 |
## check for the qt and kde includes |
122 |
## check for the qt and kde includes |
| 131 |
print "Checking for the qt includes : ", |
123 |
print "Checking for the qt includes : ", |
| 132 |
if qtincludes and os.path.isfile(qtincludes + "/qlayout.h"): |
124 |
if qtincludes and os.path.isfile(qtincludes + "/tqlayout.h"): |
| 133 |
# The user told where to look for and it looks valid |
125 |
# The user told where to look for and it looks valid |
| 134 |
print GREEN + "ok " + qtincludes + NORMAL |
126 |
print GREEN + "ok " + qtincludes + NORMAL |
| 135 |
else: |
127 |
else: |
|
Lines 137-146
Link Here
|
| 137 |
# Automatic detection |
129 |
# Automatic detection |
| 138 |
print GREEN + "ok " + qtdir + "/include/ " + NORMAL |
130 |
print GREEN + "ok " + qtdir + "/include/ " + NORMAL |
| 139 |
qtincludes = qtdir + "/include/" |
131 |
qtincludes = qtdir + "/include/" |
| 140 |
elif os.path.isfile("/usr/include/qt3/qlayout.h"): |
132 |
elif os.path.isfile("/usr/include/tqt/tqlayout.h"): |
| 141 |
# Debian probably |
133 |
# Debian probably |
| 142 |
print YELLOW + "the qt headers were found in /usr/include/qt3/ " + NORMAL |
134 |
print YELLOW + "the qt headers were found in /usr/include/tqt/ " + NORMAL |
| 143 |
qtincludes = "/usr/include/qt3" |
135 |
qtincludes = "/usr/include/tqt" |
| 144 |
elif os.path.isfile("/usr/include/qt4/Qt/qglobal.h"): |
136 |
elif os.path.isfile("/usr/include/qt4/Qt/qglobal.h"): |
| 145 |
# Debian probably |
137 |
# Debian probably |
| 146 |
print YELLOW + "the qt headers were found in /usr/include/qt4/ " + NORMAL |
138 |
print YELLOW + "the qt headers were found in /usr/include/qt4/ " + NORMAL |
|
Lines 149-155
Link Here
|
| 149 |
print RED + "the qt headers were not found" + NORMAL |
141 |
print RED + "the qt headers were not found" + NORMAL |
| 150 |
env.Exit(1) |
142 |
env.Exit(1) |
| 151 |
|
143 |
|
| 152 |
print "Checking for the kde includes : ", |
144 |
print "Checking for the tde includes : ", |
| 153 |
kdeprefix = os.popen("tde-config --prefix").read().strip() |
145 |
kdeprefix = os.popen("tde-config --prefix").read().strip() |
| 154 |
if not kdeincludes: |
146 |
if not kdeincludes: |
| 155 |
kdeincludes = kdeprefix+"/include/" |
147 |
kdeincludes = kdeprefix+"/include/" |