Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. qt qxorm error to use .c files
Forum Updated to NodeBB v4.3 + New Features

qt qxorm error to use .c files

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 3 Posters 946 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.
  • J Offline
    J Offline
    jchaviano
    wrote on last edited by
    #1

    I am creating an app with qt and qxorm everything works ok but when adding a .c file it stops recognizing libraries that were ok before

    jsulmJ 1 Reply Last reply
    0
    • J jchaviano

      I am creating an app with qt and qxorm everything works ok but when adding a .c file it stops recognizing libraries that were ok before

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

      @jchaviano This is not enough information.
      How do you add this c file?
      What errors do you get then?

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

      J 1 Reply Last reply
      0
      • jsulmJ jsulm

        @jchaviano This is not enough information.
        How do you add this c file?
        What errors do you get then?

        J Offline
        J Offline
        jchaviano
        wrote on last edited by jchaviano
        #3

        @jsulm
        The problem is simple, everything works ok, but as soon as I add a .c to the project, it stops recognizing the libraries that worked ok before including the .c. the solution is what I think is difficult hehe. everything looks like a qxorm problem with c

        SGaistS 1 Reply Last reply
        0
        • J jchaviano

          @jsulm
          The problem is simple, everything works ok, but as soon as I add a .c to the project, it stops recognizing the libraries that worked ok before including the .c. the solution is what I think is difficult hehe. everything looks like a qxorm problem with c

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @jchaviano hi,

          As @jsulm already requested, how are you adding that file ?
          What exact error are you getting ?

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

          J 1 Reply Last reply
          0
          • SGaistS SGaist

            @jchaviano hi,

            As @jsulm already requested, how are you adding that file ?
            What exact error are you getting ?

            J Offline
            J Offline
            jchaviano
            wrote on last edited by jchaviano
            #5

            @SGaist qtimagenes.png
            the project compiles but just by adding a .c file the libraries are lost

            qtimagenes2.png
            the project works correctly, say that this is a simple implementation to show the error.
            qtimagenes3.png

            In this last photo you can see qxorm working correctly qml ok the static project with its dependencies all ok. I mean, just adding a .c file damages the app and stops recognizing the libraries that worked before

            I have to integrate another project that is practically developed in c and I can't redeploy the project. I've already wasted a lot of time with qxorm for this reason. I must assume that it's incompatible with c or is it something I have to do with qt

            jsulmJ 1 Reply Last reply
            0
            • J jchaviano

              @SGaist qtimagenes.png
              the project compiles but just by adding a .c file the libraries are lost

              qtimagenes2.png
              the project works correctly, say that this is a simple implementation to show the error.
              qtimagenes3.png

              In this last photo you can see qxorm working correctly qml ok the static project with its dependencies all ok. I mean, just adding a .c file damages the app and stops recognizing the libraries that worked before

              I have to integrate another project that is practically developed in c and I can't redeploy the project. I've already wasted a lot of time with qxorm for this reason. I must assume that it's incompatible with c or is it something I have to do with qt

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

              @jchaviano Please show your pro file

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

              J 1 Reply Last reply
              0
              • jsulmJ jsulm

                @jchaviano Please show your pro file

                J Offline
                J Offline
                jchaviano
                wrote on last edited by
                #7

                @jsulm qtimagenes4.png

                QT += quick

                CONFIG += c++11

                #qxorm ok init
                include(../QxOrm/QxOrm.pri)
                TEMPLATE = app
                DEFINES += _BUILDING_QX_BLOG
                INCLUDEPATH += ../QxOrm/include/
                DESTDIR = $$PWD/_bin/
                LIBS += -L"$$PWD/libQxormx32"

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

                !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER) {
                PRECOMPILED_HEADER = ./include/precompiled.h
                } # !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER)
                #qxorm ok end

                DEFINES += QT_DEPRECATED_WARNINGS

                #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

                SOURCES +=
                classproyects/conectmongodb.cpp
                main.cpp

                RESOURCES += qml.qrc

                Additional import path used to resolve QML modules in Qt Creator's code model

                QML_IMPORT_PATH =

                Additional import path used to resolve QML modules just for Qt Quick Designer

                QML_DESIGNER_IMPORT_PATH =

                Default rules for deployment.

                qnx: target.path = /tmp/$${TARGET}/bin
                else: unix:!android: target.path = /opt/$${TARGET}/bin
                !isEmpty(target.path): INSTALLS += target

                HEADERS +=
                classproyects/conectmongodb.h
                include/author.h
                include/export.h

                SGaistS 1 Reply Last reply
                0
                • J jchaviano

                  @jsulm qtimagenes4.png

                  QT += quick

                  CONFIG += c++11

                  #qxorm ok init
                  include(../QxOrm/QxOrm.pri)
                  TEMPLATE = app
                  DEFINES += _BUILDING_QX_BLOG
                  INCLUDEPATH += ../QxOrm/include/
                  DESTDIR = $$PWD/_bin/
                  LIBS += -L"$$PWD/libQxormx32"

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

                  !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER) {
                  PRECOMPILED_HEADER = ./include/precompiled.h
                  } # !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER)
                  #qxorm ok end

                  DEFINES += QT_DEPRECATED_WARNINGS

                  #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

                  SOURCES +=
                  classproyects/conectmongodb.cpp
                  main.cpp

                  RESOURCES += qml.qrc

                  Additional import path used to resolve QML modules in Qt Creator's code model

                  QML_IMPORT_PATH =

                  Additional import path used to resolve QML modules just for Qt Quick Designer

                  QML_DESIGNER_IMPORT_PATH =

                  Default rules for deployment.

                  qnx: target.path = /tmp/$${TARGET}/bin
                  else: unix:!android: target.path = /opt/$${TARGET}/bin
                  !isEmpty(target.path): INSTALLS += target

                  HEADERS +=
                  classproyects/conectmongodb.h
                  include/author.h
                  include/export.h

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Please use coding tags. Without them, it's unreadable.

                  That said, there's no mention of any .c file in what you posted.

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

                  J 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Please use coding tags. Without them, it's unreadable.

                    That said, there's no mention of any .c file in what you posted.

                    J Offline
                    J Offline
                    jchaviano
                    wrote on last edited by jchaviano
                    #9

                    @SGaist

                    QT += quick

                    CONFIG += c++11

                    #qxorm ok init
                    include(../QxOrm/QxOrm.pri)
                    TEMPLATE = app
                    DEFINES += _BUILDING_QX_BLOG
                    INCLUDEPATH += ../QxOrm/include/
                    DESTDIR = $$PWD/_bin/
                    LIBS += -L"$$PWD/libQxormx32"

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

                    !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER) {
                    PRECOMPILED_HEADER = ./include/precompiled.h
                    } # !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER)
                    #qxorm ok end

                    DEFINES += QT_DEPRECATED_WARNINGS

                    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

                    SOURCES +=
                    classproyects/conectmongodb.cpp
                    main.cpp
                    mi_c_file.c

                    RESOURCES += qml.qrc

                    Additional import path used to resolve QML modules in Qt Creator's code model

                    QML_IMPORT_PATH =

                    Additional import path used to resolve QML modules just for Qt Quick Designer

                    QML_DESIGNER_IMPORT_PATH =

                    Default rules for deployment.

                    qnx: target.path = /tmp/$${TARGET}/bin
                    else: unix:!android: target.path = /opt/$${TARGET}/bin
                    !isEmpty(target.path): INSTALLS += target

                    HEADERS +=
                    classproyects/conectmongodb.h
                    include/author.h
                    include/export.h

                    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