Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-873

Wrongly formatted linker invocation string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 1.7.0
    • 1.4.2
    • General
    • None
    • Ubuntu 15.04 64 clang
    • a9fa34172dd37d1d90628c236f0eee00459500c3

    Description

      when i try to build a simple app qbs invokes the linker with options: (some stripped)

      /usr/bin/clang++ objFilesListStripped -m64 -g -Wall -Wextra '-Wl,-rpath,/home/ds/qt5/qtbase/lib,-rpath,$ORIGIN' -L/home/ds/qt5/qtbase/lib -l -l -l -l -l -l -l -Wl,--unresolved-symbols=ignore-in-shared-libs -o outPathHere
      

      The weird parts are:
      First, the string '-Wl,-rpath,/home/ds/qt5/qtbase/lib,-rpath,$ORIGIN' for some reason in quotation marks.
      Second, the list of empty libraries -l -l -l -l

      the qbs file is:

      import qbs
      
      QtGuiApplication {
      	name: "Test"
      	files: [hereWasListOfInputs]
      	Properties {
      		condition: qbs.buildVariant == "debug"
      		cpp.defines: ["DEBUG"]
      		Qt.quick.qmlDebugging: true
      	}
      	Properties {
      		condition: qbs.buildVariant == "release"
      		cpp.optimization: "fast"
      	}
      	//cpp.cxxLanguageVersion : "c++14" //doesnt work for some reason. 
       	cpp.cppFlags: "-std=c++14"  // this works though
      	cpp.cxxPrecompiledHeader: "src/precomp.h"
      	Depends { name: "Qt"; submodules: ["quick", "svg"] }
      }
      

      Attachments

        1. qbs.zip
          5 kB
        2. testo.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            baltic dima
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes