Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Building project from QxEntityEditor

Building project from QxEntityEditor

Scheduled Pinned Locked Moved Solved 3rd Party Software
11 Posts 2 Posters 1.4k Views
  • 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.
  • H Offline
    H Offline
    henrik2016
    wrote on last edited by
    #1

    Hi,

    it's the first time working with QxOrm library and QxEntityEditor.

    I tried to build a Qt project after exporting it from QxEntityEditor. I can run qmake without any errors, but I can't build the project. The compiler can't find -lQxOrmd.
    I have no idea what I can do.

    My project file:
    include($$PWD/../QxOrm.pri)

    TEMPLATE = lib
    CONFIG += dll
    DEFINES += _BUILDING_MESSWERTE
    INCLUDEPATH += $$PWD/../include
    DESTDIR = $$PWD/bin/

    CONFIG(debug, debug|release) {
    TARGET = messwerted
    } else {
    TARGET = messwerte
    } # CONFIG(debug, debug|release)

    LIBS += -L"$$PWD/../lib"

    CONFIG(debug, debug|release) {
    LIBS += -l"QxOrmd"
    } else {
    LIBS += -l"QxOrm"
    } # CONFIG(debug, debug|release)

    include($$PWD/messwerte.gen.pri)

    !contains(DEFINES, _QX_UNITY_BUILD) {
    SOURCES += $$PWD/src/messwerte_main.gen.cpp
    } # !contains(DEFINES, _QX_UNITY_BUILD)

    jsulmJ 1 Reply Last reply
    0
    • H henrik2016

      Hi,

      it's the first time working with QxOrm library and QxEntityEditor.

      I tried to build a Qt project after exporting it from QxEntityEditor. I can run qmake without any errors, but I can't build the project. The compiler can't find -lQxOrmd.
      I have no idea what I can do.

      My project file:
      include($$PWD/../QxOrm.pri)

      TEMPLATE = lib
      CONFIG += dll
      DEFINES += _BUILDING_MESSWERTE
      INCLUDEPATH += $$PWD/../include
      DESTDIR = $$PWD/bin/

      CONFIG(debug, debug|release) {
      TARGET = messwerted
      } else {
      TARGET = messwerte
      } # CONFIG(debug, debug|release)

      LIBS += -L"$$PWD/../lib"

      CONFIG(debug, debug|release) {
      LIBS += -l"QxOrmd"
      } else {
      LIBS += -l"QxOrm"
      } # CONFIG(debug, debug|release)

      include($$PWD/messwerte.gen.pri)

      !contains(DEFINES, _QX_UNITY_BUILD) {
      SOURCES += $$PWD/src/messwerte_main.gen.cpp
      } # !contains(DEFINES, _QX_UNITY_BUILD)

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

      @henrik2016 said in Building project from QxEntityEditor:

      lQxOrmd

      This is the debug build of that lib - do you have it?

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

      1 Reply Last reply
      0
      • H Offline
        H Offline
        henrik2016
        wrote on last edited by
        #3

        I even tried to build the library, but it was canceled by an error.

        debug/moc_IxModel.o:moc_IxModel.cpp:(.rdata$_ZTVN2qx7IxModelE[_ZTVN2qx7IxModelE]+0x178): undefined reference to `QAbstractItemModel::revert()'
        collect2.exe: error: ld returned 1 exit status
        NMAKE : fatal error U1077: "C:\Strawberry\c\bin\g++.EXE": Rückgabe-Code "0x1"
        Stop.
        NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\nmake.exe"": Rückgabe-Code "0x2"
        Stop.

        jsulmJ 1 Reply Last reply
        0
        • H henrik2016

          I even tried to build the library, but it was canceled by an error.

          debug/moc_IxModel.o:moc_IxModel.cpp:(.rdata$_ZTVN2qx7IxModelE[_ZTVN2qx7IxModelE]+0x178): undefined reference to `QAbstractItemModel::revert()'
          collect2.exe: error: ld returned 1 exit status
          NMAKE : fatal error U1077: "C:\Strawberry\c\bin\g++.EXE": Rückgabe-Code "0x1"
          Stop.
          NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\nmake.exe"": Rückgabe-Code "0x2"
          Stop.

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

          @henrik2016 So, you're using Microsoft compiler. Was the QxOrm lib build using same compiler?
          Can you build the project in release mode?

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

          1 Reply Last reply
          1
          • H Offline
            H Offline
            henrik2016
            wrote on last edited by
            #5

            The error was displayed when I was trying to build the QxOrm library. in debug and release mode too. I'm using the same compiler.

            jsulmJ 1 Reply Last reply
            0
            • H henrik2016

              The error was displayed when I was trying to build the QxOrm library. in debug and release mode too. I'm using the same compiler.

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

              @henrik2016 I mean this: "I tried to build a Qt project after exporting it from QxEntityEditor"

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

              1 Reply Last reply
              0
              • H Offline
                H Offline
                henrik2016
                wrote on last edited by
                #7

                Yes, I am using the same compiler.

                jsulmJ 1 Reply Last reply
                0
                • H henrik2016

                  Yes, I am using the same compiler.

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

                  @henrik2016 But did you try to build your Qt project in release mode instead of debug mode?

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

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    henrik2016
                    wrote on last edited by
                    #9

                    Yes, the same error occurs.

                    jsulmJ 1 Reply Last reply
                    0
                    • H henrik2016

                      Yes, the same error occurs.

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

                      @henrik2016 Then the linker can't find the lib.
                      Is this really correct:

                      LIBS += -L"$$PWD/../lib"
                      

                      ?
                      Also, you can check the linker call to see what exactly is passed to it.

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

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        henrik2016
                        wrote on last edited by
                        #11

                        It's all fine now. I downloaded the library again. After that I used the MinGW compiler and now it works.

                        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