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. Ibase SQL plugin build error on Windows 10 / MSVC 2017 64 bits for Firebird 3
Forum Updated to NodeBB v4.3 + New Features

Ibase SQL plugin build error on Windows 10 / MSVC 2017 64 bits for Firebird 3

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 4 Posters 2.9k Views 3 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.
  • L Offline
    L Offline
    lqsa
    wrote on last edited by lqsa
    #1

    How compile the ibase SQL plugin for Fireberid 3 on Windows 10, MSVC 2017 64 bits?

    Firebird is installed on D:\Firebird.

    Executing this:

    C:\Qt\5.9.2\msvc2017_64\bin\qmake "INCLUDEPATH+=D:/Firebird/include" "LIBS+=-lfbclient" ibase.pro
    

    on C:\Qt\5.9.2\Src\qtbase\src\plugins\sqldrivers\ibase

    Appears:

    Project ERROR: Library 'ibase' is not defined.
    

    After read this post: https://forum.qt.io/topic/75419/ibase-sql-plugin-build-error, I've commented QMAKE_USE += ibase on ibase.pro, but gives this error:

    Cannot read C:/Qt/5.9.2/Src/qtbase/src/plugins/sqldrivers/qtsqldrivers-config.pri
    

    This file doesn't exist. So, I've commented include($$shadowed($$PWD)/qtsqldrivers-config.pri) on qsqldriverbase.pri.

    Now qmake finish ok.

    When try to run nmake, it isn't found on the path, so I've executed this bat: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"

    After do:

    cd C:\Qt\5.9.2\Src\qtbase\src\plugins\sqldrivers\ibase
    nmake
    

    appears a link error:

    Utilidad de mantenimiento de programas de Microsoft (R) versión 14.11.25508.2
    (C) Microsoft Corporation. Todos los derechos reservados.
    
            "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\nmake.exe" -f Makefile.Release all
    
    Utilidad de mantenimiento de programas de Microsoft (R) versión 14.11.25508.2
    (C) Microsoft Corporation. Todos los derechos reservados.
    
            link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /OPT:REF /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /VERSION:5.9 /OUT:..\plugins\sqldrivers\qsqlibase.dll @C:\Users\mabg\AppData\Local\Temp\nm4CA6.tmp
    LINK : fatal error LNK1181: no se puede abrir el archivo de entrada 'fbclient.lib'
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\link.EXE"' : código devuelto '0x49d'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\nmake.exe"' : código devuelto '0x2'
    Stop.
    

    fbclient.lib doesn't exist, what can I do now?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      IIRC you have to configure Qt once and then you should be able to build the driver.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        IIRC you have to configure Qt once and then you should be able to build the driver.

        L Offline
        L Offline
        lqsa
        wrote on last edited by
        #3

        @SGaist How configure QT? I'm not compiling QT, I've installed QT with the installer.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I didn't say you had to compile Qt, just configure it using the configure.bat script.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          L 1 Reply Last reply
          0
          • SGaistS SGaist

            I didn't say you had to compile Qt, just configure it using the configure.bat script.

            L Offline
            L Offline
            lqsa
            wrote on last edited by
            #5

            @SGaist After run configure.bat, I've run again nmake, but appears the same error.

            jsulmJ 1 Reply Last reply
            0
            • L lqsa

              @SGaist After run configure.bat, I've run again nmake, but appears the same error.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @lqsa "LIBS+=-lfbclient" - this is not enough, you need to tell the linker where it is located:

              LIBS+="-LPATH_WHERE_LIB_IS_LOCATED -lfbclient"
              

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              L 1 Reply Last reply
              1
              • jsulmJ jsulm

                @lqsa "LIBS+=-lfbclient" - this is not enough, you need to tell the linker where it is located:

                LIBS+="-LPATH_WHERE_LIB_IS_LOCATED -lfbclient"
                
                L Offline
                L Offline
                lqsa
                wrote on last edited by
                #7

                @jsulm It works! Thank you very much!.

                Just say that fbclient.lib doesn't exist on Firebird, but it exists fbclient_ms.lib. Finally LIBS is: LIBS+="-LD:/Firebird/lib -lfbclient_ms"

                piervalliP 1 Reply Last reply
                0
                • L lqsa

                  @jsulm It works! Thank you very much!.

                  Just say that fbclient.lib doesn't exist on Firebird, but it exists fbclient_ms.lib. Finally LIBS is: LIBS+="-LD:/Firebird/lib -lfbclient_ms"

                  piervalliP Offline
                  piervalliP Offline
                  piervalli
                  wrote on last edited by
                  #8

                  @lqsa thanks

                  In addtion when we compile by source with configure.bat for Firebird I used this IBASE_LIBS="-LC:\Qt\Firebird\Firebird_4_0/lib -lfbclient_ms"

                  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