Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
On Travis CI 'make' command not generating .a file for static library which is used by another project.
hi , i am trying to run a static library project which is used by another linked project , it is working fine on the local systems both on windows as well as Ubuntu on VM .. however it always fails on Travis CI and it does not generates the files of that static library .
this is the script i'm using :
- sudo aptitude install debian-keyring debian-archive-keyring
- sudo add-apt-repository -y ppa:beineri/opt-qt-5.11.3-xenial
- sudo apt-get update
- sudo apt-get install build-essential g++
- sudo apt install qt511-meta-full
- sudo apt-get install qt5-default qt5-qmake qtbase5-dev-tools
- sudo apt-get install mingw-w64
- echo -e "/opt/qt511/bin\n/opt/qt511/lib" > default.conf
- sudo rm /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf
- sudo mv default.conf /usr/lib/x86_64-linux-gnu/qtchooser/
- cd SimPlatform
- qmake SimPlatform.pro
- ls -l
- cd ../Prototype01
- qmake -project "QT = core widgets"
- qmake Prototype01.pro
following is the failed log on travis CI : log
it does not generates the files of that static library
That's not the bug.
undefined reference to
This is the error.
Are you sure the same script works on your local PC? I don't mean when you compile through Qt Creator - but when you do it by command line.
This post is deleted!
@sierdzio yes it does build on the local PC , i'm attaching the screenshots of before and after build from my local system
And where is that
codeeditor.hfile that Travis is complaining about?
@sierdzio that codeeditor.h is a header file of a static library which has function signatures which are to be used by the an other project once the library is build , but the library is not building thats the problem .
Right, looks like it is trying to build an application instead of a library... weird. Are you sure your .pro has
TEMPLATE = libset?
@sierdzio yes it is set to lib
I don't know then. Too old linker perhaps? Travis runs some very old toolchains.
@sierdzio thank you for your response though .