Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. On Travis CI 'make' command not generating .a file for static library which is used by another project.
Forum Updated to NodeBB v4.3 + New Features

On Travis CI 'make' command not generating .a file for static library which is used by another project.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    osamic
    wrote on last edited by
    #1

    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 :

    language: cpp
    os: linux
    group: stable
    dist: xenial

    install:

    • 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

    script:

    • 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
    • make
    • pwd
    • ls -l
    • cd ../Prototype01
    • qmake -project "QT = core widgets"
    • qmake Prototype01.pro
    • make

    following is the failed log on travis CI : log
    0_1554555307863_1.PNG
    0_1554555314760_2.PNG

    sierdzioS 1 Reply Last reply
    0
    • O osamic

      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 :

      language: cpp
      os: linux
      group: stable
      dist: xenial

      install:

      • 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

      script:

      • 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
      • make
      • pwd
      • ls -l
      • cd ../Prototype01
      • qmake -project "QT = core widgets"
      • qmake Prototype01.pro
      • make

      following is the failed log on travis CI : log
      0_1554555307863_1.PNG
      0_1554555314760_2.PNG

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @osamic said in On Travis CI 'make' command not generating .a file for static library which is used by another project.:

      it does not generates the files of that static library

      That's not the bug.

      undefined reference to main

      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.

      (Z(:^

      O 1 Reply Last reply
      3
      • O Offline
        O Offline
        osamic
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • sierdzioS sierdzio

          @osamic said in On Travis CI 'make' command not generating .a file for static library which is used by another project.:

          it does not generates the files of that static library

          That's not the bug.

          undefined reference to main

          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.

          O Offline
          O Offline
          osamic
          wrote on last edited by
          #4

          @sierdzio yes it does build on the local PC , i'm attaching the screenshots of before and after build from my local system 0_1555402453173_before.PNG 0_1555402457456_after.PNG

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            And where is that codeeditor.h file that Travis is complaining about?

            (Z(:^

            O 1 Reply Last reply
            0
            • sierdzioS sierdzio

              And where is that codeeditor.h file that Travis is complaining about?

              O Offline
              O Offline
              osamic
              wrote on last edited by
              #6

              @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 .

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                Right, looks like it is trying to build an application instead of a library... weird. Are you sure your .pro has TEMPLATE = lib set?

                (Z(:^

                O 1 Reply Last reply
                0
                • sierdzioS sierdzio

                  Right, looks like it is trying to build an application instead of a library... weird. Are you sure your .pro has TEMPLATE = lib set?

                  O Offline
                  O Offline
                  osamic
                  wrote on last edited by
                  #8

                  @sierdzio yes it is set to lib 0_1555410386250_lib.PNG

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #9

                    I don't know then. Too old linker perhaps? Travis runs some very old toolchains.

                    (Z(:^

                    O 1 Reply Last reply
                    0
                    • sierdzioS sierdzio

                      I don't know then. Too old linker perhaps? Travis runs some very old toolchains.

                      O Offline
                      O Offline
                      osamic
                      wrote on last edited by
                      #10

                      @sierdzio thank you for your response though .

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved