I used this and it runs the makefile
PRE_TARGETDEPS += libcryp.a
MKFL = cryptoPP/GNUmakefile
tst.input = MKFL
tst.commands = cd cryptoPP/ && make
tst.CONFIG = no_link
tst.output = libcryp.a
QMAKE_EXTRA_UNIX_COMPILERS += tst
PRE_TARGETDEPS += libcryp.a
MKFL = cryptoPP/GNUmakefile
tst.input = MKFL
tst.commands = cd cryptoPP/ && make
tst.CONFIG = no_link
tst.output = libcryp.a
QMAKE_EXTRA_UNIX_COMPILERS += tst
To copy to clipboard, switch view to plain text mode
It creates the static library libcryp.a. Evenrything goes on fine
but at last this error occurs
[raj@fedora4 cmbedit]# qmake ce.pro
[raj@fedora4 cmbedit]# make clean
rm -f *~ core *.core
[raj@fedora4 cmbedit]# make
cd cryptoPP/ && make
make[1]: Entering directory `/raj/rajTest/cmbedit/cryptoPP'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/raj/rajTest/cmbedit/cryptoPP'
g++ -o ce -L/usr/lib/qt-3.3/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0x18): In function
`_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [ce] Error 1
[raj@fedora4 cmbedit]# qmake ce.pro
[raj@fedora4 cmbedit]# make clean
rm -f *~ core *.core
[raj@fedora4 cmbedit]# make
cd cryptoPP/ && make
make[1]: Entering directory `/raj/rajTest/cmbedit/cryptoPP'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/raj/rajTest/cmbedit/cryptoPP'
g++ -o ce -L/usr/lib/qt-3.3/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0x18): In function
`_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [ce] Error 1
To copy to clipboard, switch view to plain text mode
What is wrong here now???
Bookmarks