
Originally Posted by
wysota
I missed that the problem regards Qt3... It won't work as qmake3 uses different variable names. You should consult the docs to see if you can convert the solution to Qt3.
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
I think the problem is with this statement
tst.CONFIG = no_link
I tried looking for it in Qt3.3.5 but couldnt find. I googled to find this
Not linking with the output of QMAKE_EXTRA_UNIX_COMPILERS
qmake assumes that the output of the extra compilers is destined to be linked into the final library or application. If this isn't the case, then you need to do something to stop it.
If "mycompiler" is the name of your compiler compound variable, then if you have a member .CONFIG set to no_link, then the output won't get linked. Example.
mycompiler.output = ${QMAKE_FILE_BASE}.out
mycompiler.input = MYCOMPILER_INPUT_FILES
mycompiler.commands = foo ${QMAKE_FILE_NAME}
mycompiler.CONFIG = no_link
QMAKE_EXTRA_UNIX_COMPILERS += my_compiler
Examples when you might want to do this are for things like generating documentation.
Not linking with the output of QMAKE_EXTRA_UNIX_COMPILERS
qmake assumes that the output of the extra compilers is destined to be linked into the final library or application. If this isn't the case, then you need to do something to stop it.
If "mycompiler" is the name of your compiler compound variable, then if you have a member .CONFIG set to no_link, then the output won't get linked. Example.
mycompiler.output = ${QMAKE_FILE_BASE}.out
mycompiler.input = MYCOMPILER_INPUT_FILES
mycompiler.commands = foo ${QMAKE_FILE_NAME}
mycompiler.CONFIG = no_link
QMAKE_EXTRA_UNIX_COMPILERS += my_compiler
Examples when you might want to do this are for things like generating documentation.
To copy to clipboard, switch view to plain text mode
This is related to Qt4.. What should I replace with no_link in Qt3.3.5 to resolve the above problem.
Hi camel I tried what you have suggested but I get the same error as shown in above post.
Is there any way out???
Bookmarks