Lines 1-33
Link Here
|
1 |
--- ./compile_lib.sh.orig 2009-04-20 17:59:59.000000000 +0400 |
|
|
2 |
+++ ./compile_lib.sh 2009-07-12 15:18:58.000000000 +0400 |
3 |
@@ -1,4 +1,4 @@ |
4 |
-#!/bin/env bash |
5 |
+#!/bin/env sh |
6 |
# get latest from http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html |
7 |
# for more info, you can visit the links on above page to FreePascal and Lazarus wiki |
8 |
|
9 |
@@ -7,18 +7,16 @@ |
10 |
# do configure and gmake in that Qt4 dir |
11 |
|
12 |
NAME=libqt4intf.so |
13 |
-QTDIR=../qt-all-opensource-src-4.5.0 |
14 |
-INCLUDE_PATH="-I. -I$QTDIR/include -I$QTDIR/include/Qt -I$QTDIR/include/QtGui -I$QTDIR/include/QtCore -Iqlcl " |
15 |
-LIB_PATH=$QTDIR/lib |
16 |
-export LD_LIBRARY_PATH=$LIB_PATH |
17 |
+QTDIR=%%QT_INCDIR%% |
18 |
+INCLUDE_PATH="-I. -I$QTDIR -I$QTDIR/Qt -I$QTDIR/QtGui -I$QTDIR/QtCore -Iqlcl " |
19 |
+LIB_PATH=%%QT_LIBDIR%% |
20 |
+ |
21 |
if [ -e "$LIB_PATH/libQtCore.so.4" ] |
22 |
then |
23 |
echo please wait for compile to finish ... |
24 |
- g++ -D BINUX $INCLUDE_PATH qtpas.cpp -o libqt4intf.so -shared -fPIC -lQtCore -lQtGui -lQtNetwork -lQtWebKit -Xlinker -soname=$NAME -Xlinker --library-path -Xlinker $LIB_PATH |
25 |
- echo Showing used Qt libraries when LD_LIBRARY_PATH=$LD_LIBRARY_PATH |
26 |
- ldd $NAME | grep libQt |
27 |
+ %%CXX%% -D BINUX $INCLUDE_PATH qtpas.cpp -o libqt4intf.so -shared -fPIC -lQtCore -lQtGui -lQtNetwork -lQtWebKit -Xlinker -soname=$NAME -Xlinker --library-path -Xlinker $LIB_PATH |
28 |
echo stripping library |
29 |
- strip --strip-all $NAME |
30 |
+ %%STRIP_CMD%% --strip-all $NAME |
31 |
echo Done |
32 |
else |
33 |
echo "Please Modify location of Qt4 in this script" |