QBS depends from qmake's *.pro library



  • Hi all.

    I wanted to use a library to process xlsx-format, but one had wrotten with old build system. I stuck into problem with telling qbs which library i want to use. Described

    QT += xlsx
    

    I tried to translate but neither

    Depends { // Dependency 'Qt.xlsx' not found for product 'st3000'.
        name: "Qt"
        submodules: ["charts", "qml", "quick", "serialport", "network", "xlsx"]
    }
    

    nor

    Depends { // Dependency 'xlsx' not found for product 'st3000'.
        name: "xlsx"
    }
    

    did not working. What I have to do? How to import .pro in qbs project if one could be done or is there another workaround?

    Installation had been done successfully.

    >> dir C:\Qt\5.8\mingw53_32\bin | findstr dll
    18.01.2017  20:44            22 016 libEGL.dll
    18.01.2017  20:44            70 588 libEGLd.dll
    28.12.2015  22:25           120 334 libgcc_s_dw2-1.dll
    18.01.2017  20:43         2 801 664 libGLESv2.dll
    18.01.2017  20:43        77 377 494 libGLESv2d.dll
    28.12.2015  22:25         1 540 622 libstdc++-6.dll
    28.12.2015  22:25            79 360 libwinpthread-1.dll
    14.06.2016  13:08        15 995 904 opengl32sw.dll
    18.01.2017  22:21           303 104 Qt53DCore.dll
    18.01.2017  22:21        25 621 263 Qt53DCored.dll
    18.01.2017  22:54           386 560 Qt53DExtras.dll
    18.01.2017  22:56        19 609 894 Qt53DExtrasd.dll
    18.01.2017  22:50           553 472 Qt53DInput.dll
    18.01.2017  22:51        53 357 106 Qt53DInputd.dll
    18.01.2017  22:21            54 784 Qt53DLogic.dll
    18.01.2017  22:22         3 128 464 Qt53DLogicd.dll
    18.01.2017  22:52           156 160 Qt53DQuick.dll
    18.01.2017  22:53         7 805 618 Qt53DQuickd.dll
    18.01.2017  22:59            33 280 Qt53DQuickExtras.dll
    18.01.2017  22:59         1 108 396 Qt53DQuickExtrasd.dll
    18.01.2017  22:58            49 152 Qt53DQuickInput.dll
    18.01.2017  22:59         6 014 883 Qt53DQuickInputd.dll
    18.01.2017  22:57           132 096 Qt53DQuickRender.dll
    18.01.2017  22:59        17 693 283 Qt53DQuickRenderd.dll
    18.01.2017  22:44         2 320 384 Qt53DRender.dll
    18.01.2017  22:45       193 910 640 Qt53DRenderd.dll
    18.01.2017  22:15           296 960 Qt5Bluetooth.dll
    18.01.2017  22:17        14 932 415 Qt5Bluetoothd.dll
    18.01.2017  22:52         1 345 536 Qt5Charts.dll
    18.01.2017  22:52        77 804 465 Qt5Chartsd.dll
    18.01.2017  22:21           878 592 Qt5CLucene.dll
    18.01.2017  22:22        30 341 274 Qt5CLucened.dll
    18.01.2017  20:45            31 232 Qt5Concurrent.dll
    18.01.2017  20:45         1 512 391 Qt5Concurrentd.dll
    19.02.2017  16:09         5 421 056 Qt5Core.dll
    19.02.2017  16:09       125 139 512 Qt5Cored.dll
    18.01.2017  22:49         1 389 568 Qt5DataVisualization.dll
    18.01.2017  22:49        74 041 735 Qt5DataVisualizationd.dll
    18.01.2017  20:46           573 440 Qt5DBus.dll
    18.01.2017  20:46        16 466 758 Qt5DBusd.dll
    18.01.2017  22:21         5 157 376 Qt5Designer.dll
    18.01.2017  22:32         2 471 936 Qt5DesignerComponents.dll
    18.01.2017  22:33        92 686 965 Qt5DesignerComponentsd.dll
    18.01.2017  22:23       136 144 961 Qt5Designerd.dll
    18.01.2017  20:50         5 307 392 Qt5Gui.dll
    18.01.2017  20:50       210 888 197 Qt5Guid.dll
    18.01.2017  22:25           600 064 Qt5Help.dll
    18.01.2017  22:25        16 953 020 Qt5Helpd.dll
    18.01.2017  22:35           626 176 Qt5Location.dll
    18.01.2017  22:35        30 034 477 Qt5Locationd.dll
    18.01.2017  22:21           862 208 Qt5Multimedia.dll
    18.01.2017  22:21        45 589 070 Qt5Multimediad.dll
    18.01.2017  22:22           110 592 Qt5MultimediaQuick_p.dll
    18.01.2017  22:22         5 697 981 Qt5MultimediaQuick_pd.dll
    18.01.2017  22:21           101 376 Qt5MultimediaWidgets.dll
    18.01.2017  22:22         2 941 815 Qt5MultimediaWidgetsd.dll
    18.01.2017  20:45         1 749 504 Qt5Network.dll
    18.01.2017  20:45        61 290 226 Qt5Networkd.dll
    18.01.2017  22:15           190 464 Qt5Nfc.dll
    18.01.2017  22:16        12 392 229 Qt5Nfcd.dll
    18.01.2017  20:58           330 240 Qt5OpenGL.dll
    18.01.2017  20:58        16 408 162 Qt5OpenGLd.dll
    18.01.2017  22:30           263 680 Qt5Positioning.dll
    18.01.2017  22:30         9 519 743 Qt5Positioningd.dll
    18.01.2017  20:58           363 520 Qt5PrintSupport.dll
    18.01.2017  20:58        11 842 657 Qt5PrintSupportd.dll
    18.01.2017  21:50         4 058 112 Qt5Qml.dll
    18.01.2017  21:50       193 954 598 Qt5Qmld.dll
    18.01.2017  22:01         4 039 168 Qt5Quick.dll
    18.01.2017  22:27            94 208 Qt5QuickControls2.dll
    18.01.2017  22:27         6 612 306 Qt5QuickControls2d.dll
    18.01.2017  22:01       211 546 053 Qt5Quickd.dll
    18.01.2017  22:03           574 464 Qt5QuickParticles.dll
    18.01.2017  22:03        35 881 759 Qt5QuickParticlesd.dll
    18.01.2017  22:25           761 344 Qt5QuickTemplates2.dll
    18.01.2017  22:26        69 684 503 Qt5QuickTemplates2d.dll
    18.01.2017  22:01           117 760 Qt5QuickTest.dll
    18.01.2017  22:01         3 571 459 Qt5QuickTestd.dll
    18.01.2017  22:03            67 072 Qt5QuickWidgets.dll
    18.01.2017  22:03         1 787 328 Qt5QuickWidgetsd.dll
    18.01.2017  22:15           437 760 Qt5Scxml.dll
    18.01.2017  22:14        13 596 607 Qt5Scxmld.dll
    18.01.2017  22:14           209 408 Qt5Sensors.dll
    18.01.2017  22:14        10 379 805 Qt5Sensorsd.dll
    18.01.2017  21:19           266 240 Qt5SerialBus.dll
    18.01.2017  21:19         9 976 200 Qt5SerialBusd.dll
    18.01.2017  21:14            77 312 Qt5SerialPort.dll
    18.01.2017  21:14         1 580 256 Qt5SerialPortd.dll
    18.01.2017  20:44           278 016 Qt5Sql.dll
    18.01.2017  20:44         7 920 543 Qt5Sqld.dll
    18.01.2017  21:14           349 696 Qt5Svg.dll
    18.01.2017  21:14         9 903 837 Qt5Svgd.dll
    18.01.2017  20:58           243 712 Qt5Test.dll
    18.01.2017  20:58         6 891 996 Qt5Testd.dll
    18.01.2017  22:18           125 952 Qt5WebChannel.dll
    18.01.2017  22:18         3 776 016 Qt5WebChanneld.dll
    18.01.2017  22:14           190 976 Qt5WebSockets.dll
    18.01.2017  22:14         7 808 081 Qt5WebSocketsd.dll
    18.01.2017  20:56         6 350 848 Qt5Widgets.dll
    18.01.2017  20:57       158 307 780 Qt5Widgetsd.dll
    18.01.2017  22:36           232 448 Qt5WinExtras.dll
    18.01.2017  22:36         5 781 284 Qt5WinExtrasd.dll
    21.03.2017  12:28           696 832 Qt5Xlsx.dll ; << There is one
    21.03.2017  12:28        16 176 856 Qt5Xlsxd.dll
    18.01.2017  20:44           216 064 Qt5Xml.dll
    18.01.2017  20:44         1 788 249 Qt5Xmld.dll
    18.01.2017  21:33         3 496 960 Qt5XmlPatterns.dll
    18.01.2017  21:33       200 317 372 Qt5XmlPatternsd.dll
    
    >> dir C:\Qt\5.8\mingw53_32\include
    19.02.2017  16:06    <DIR>          ActiveQt
    19.02.2017  16:21    <DIR>          EGL
    19.02.2017  16:21    <DIR>          GLES2
    19.02.2017  16:21    <DIR>          GLES3
    19.02.2017  16:21    <DIR>          KHR
    19.02.2017  16:06    <DIR>          Qt3DCore
    19.02.2017  16:06    <DIR>          Qt3DExtras
    19.02.2017  16:06    <DIR>          Qt3DInput
    19.02.2017  16:06    <DIR>          Qt3DLogic
    19.02.2017  16:06    <DIR>          Qt3DQuick
    19.02.2017  16:06    <DIR>          Qt3DQuickExtras
    19.02.2017  16:06    <DIR>          Qt3DQuickInput
    19.02.2017  16:06    <DIR>          Qt3DQuickRender
    19.02.2017  16:06    <DIR>          Qt3DRender
    19.02.2017  16:07    <DIR>          QtAccessibilitySupport
    19.02.2017  16:07    <DIR>          QtANGLE
    19.02.2017  16:07    <DIR>          QtBluetooth
    19.02.2017  16:10    <DIR>          QtCharts
    19.02.2017  16:08    <DIR>          QtCLucene
    19.02.2017  16:07    <DIR>          QtConcurrent
    19.02.2017  16:07    <DIR>          QtCore
    19.02.2017  16:10    <DIR>          QtDataVisualization
    19.02.2017  16:07    <DIR>          QtDBus
    19.02.2017  16:08    <DIR>          QtDesigner
    19.02.2017  16:08    <DIR>          QtDesignerComponents
    19.02.2017  16:07    <DIR>          QtDeviceDiscoverySupport
    19.02.2017  16:07    <DIR>          QtEglSupport
    19.02.2017  16:07    <DIR>          QtEventDispatcherSupport
    19.02.2017  16:07    <DIR>          QtFbSupport
    19.02.2017  16:07    <DIR>          QtFontDatabaseSupport
    19.02.2017  16:07    <DIR>          QtGui
    19.02.2017  16:08    <DIR>          QtHelp
    19.02.2017  16:08    <DIR>          QtLocation
    19.02.2017  16:08    <DIR>          QtMultimedia
    19.02.2017  16:08    <DIR>          QtMultimediaQuick_p
    19.02.2017  16:08    <DIR>          QtMultimediaWidgets
    19.02.2017  16:07    <DIR>          QtNetwork
    19.02.2017  16:07    <DIR>          QtNfc
    19.02.2017  16:07    <DIR>          QtOpenGL
    19.02.2017  16:07    <DIR>          QtOpenGLExtensions
    19.02.2017  16:07    <DIR>          QtPacketProtocol
    19.02.2017  16:07    <DIR>          QtPlatformCompositorSupport
    19.02.2017  16:07    <DIR>          QtPlatformHeaders
    19.02.2017  16:08    <DIR>          QtPositioning
    19.02.2017  16:07    <DIR>          QtPrintSupport
    19.02.2017  16:07    <DIR>          QtQml
    19.02.2017  16:07    <DIR>          QtQmlDebug
    19.02.2017  16:07    <DIR>          QtQmlDevTools
    19.02.2017  16:07    <DIR>          QtQuick
    19.02.2017  16:08    <DIR>          QtQuickControls2
    19.02.2017  16:07    <DIR>          QtQuickParticles
    19.02.2017  16:08    <DIR>          QtQuickTemplates2
    19.02.2017  16:07    <DIR>          QtQuickTest
    19.02.2017  16:07    <DIR>          QtQuickWidgets
    19.02.2017  16:08    <DIR>          QtScxml
    19.02.2017  16:08    <DIR>          QtSensors
    19.02.2017  16:08    <DIR>          QtSerialBus
    19.02.2017  16:08    <DIR>          QtSerialPort
    19.02.2017  16:07    <DIR>          QtSql
    19.02.2017  16:08    <DIR>          QtSvg
    19.02.2017  16:07    <DIR>          QtTest
    19.02.2017  16:07    <DIR>          QtThemeSupport
    19.02.2017  16:08    <DIR>          QtUiPlugin
    19.02.2017  16:08    <DIR>          QtUiTools
    19.02.2017  16:08    <DIR>          QtWebChannel
    19.02.2017  16:08    <DIR>          QtWebSockets
    19.02.2017  16:07    <DIR>          QtWidgets
    19.02.2017  16:08    <DIR>          QtWinExtras
    21.03.2017  12:28    <DIR>          QtXlsx ; << There is too
    19.02.2017  16:07    <DIR>          QtXml
    19.02.2017  16:09    <DIR>          QtXmlPatterns
    

    Thank you in advance.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Which version are you using exactly ?

    This library is not an official Qt module so it might be missing something to work with QBS.



  • Thank you, there is versions:

    >> c:\Qt\Tools\QtCreator\bin\qbs --version
    1.7.1
    
    >> c:\Qt\5.8\mingw53_32\bin\qmake --version
    QMake version 3.1
    Using Qt version 5.8.0 in C:/Qt/5.8/mingw53_32/lib
    

    And what qt-plugin must have to work properly with qbs system? Documentation is lack there.


  • Lifetime Qt Champion

    Sorry, I mean't the version of xlsx but anyway, thanks for the details about your installation.



  • Oh. I just cloned master-branch. 0.3 i thougth.


  • Lifetime Qt Champion

    From the main repo or from one of the fork like the one of @VRonin which is more recent.



  • Oh, link is wrong. I mean @VRonin 's fork cause main repo had not built.



  • What compiler/OS are you using? How are you invoking the build?


    had wrotten with old build system

    qmake is not an "old build system" it's the system used to build Qt itself. QBS is an alternative but to be honest I'm not sure how popular it is. I'd say CMake is far more widely used than QBS as alternative



  • @VRonin Compiling with mingw 5.3 32bit, but i do not think that one is a decisive factor. Same with my Windows 7 SP1 64bit. Cause make (qmake is wrapper of make, like cmake) as well as qbs (not a wrapper) just call compiler to translate and link objects. Anyway, I want to know, how to friend libraries that had been built with qmake to project, that building with qbs. While qbs provide more consistent and portable way to say compiler where are libraries I want to use one. But documentation is lack, examples (mainly Qt itself) is too hard to understand. Of couse this time it could be done by inserting library into source tree but how about better way?



  • Sorry, probably I misunderstood.

    • did you build the QXlsx library successfully using qmake?
    • did you run make install too?
    • did you try linking in qbs as an external library rather than a qt module?


  • Yep, library build successfully. Dll's are in Qt's directory, so make install run successfully too. And sorry, this is quite strange, but i do not know how to link external library in qbs.



  • @VRonin problem still did not solved.





  • @VRonin Hm... Thank you. But what about qbs' import? Is *pro projects сompatible with *qbs ones?



  • Ok. I could not solve this issue. As I see right now QBS totaly undocumented (though sources are accessible) and buggy. By the way Qt Xlsx licensed under MIT so I just use them by adding into my tree source. All is working properly and easy way to slightly edit one in order to fit my project is also pretty point.

    Thank you any body who tried to help me.


Log in to reply