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. QML Extension make install gives Errors
Forum Updated to NodeBB v4.3 + New Features

QML Extension make install gives Errors

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
11 Posts 3 Posters 1.6k 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.
  • S Offline
    S Offline
    sandro4912
    wrote on last edited by
    #2

    Nobody an idea what I could check?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #3

      Hi
      On windows, to use Designer plugins (with Creator) it has to be compiled as 32 bit as Creator is a 32 bit app.
      alt text

      I would assume the same goes for QML plugins.

      Must use same compiler and Qt version.

      You seems to compile to 64 bit and that would explain the
      "File format not recognized"

      1 Reply Last reply
      1
      • S Offline
        S Offline
        sandro4912
        wrote on last edited by
        #4

        Well Im on Linux and my Creator says:

        fb30be97-75c2-48ac-8061-a7f1d9f02256-image.png

        So it should be 64 bit or not?

        mrjjM 1 Reply Last reply
        0
        • S sandro4912

          Well Im on Linux and my Creator says:

          fb30be97-75c2-48ac-8061-a7f1d9f02256-image.png

          So it should be 64 bit or not?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #5

          @sandro4912

          Yes. correct. and Qt 5.14 using gcc around 5.3
          and in release mode. ( normally)

          But it seems its a strip command that gives an error?

          1 Reply Last reply
          1
          • S Offline
            S Offline
            sandro4912
            wrote on last edited by
            #6

            Yes but what does that mean.

            The strange thing is in debug it looks like it creates the lib as you can see in the screenshot above.

            mrjjM 1 Reply Last reply
            0
            • S sandro4912

              Yes but what does that mean.

              The strange thing is in debug it looks like it creates the lib as you can see in the screenshot above.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #7

              @sandro4912

              well it seems to call strip on the qmldir and hence the error
              Not sure why.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sandro4912
                wrote on last edited by
                #8

                well what does strip anyway? in debug it wasn't even called

                mrjjM 1 Reply Last reply
                0
                • S sandro4912

                  well what does strip anyway? in debug it wasn't even called

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  @sandro4912
                  Not sure what it is used for.
                  I wondering if you have anything extra in the .pro file ?
                  https://forum.qt.io/topic/39263/resolved-installs-add-strip-command-to-makefile

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sandro4912
                    wrote on last edited by
                    #10

                    pro file looks like this:

                    TEMPLATE = lib
                    TARGET = fileio
                    QT += qml quick
                    CONFIG += plugin c++11
                    
                    TARGET = $$qtLibraryTarget($$TARGET)
                    uri = org.example.io
                    
                    # Input
                    SOURCES += \
                            fileio.cpp \
                            fileio_plugin.cpp
                    
                    HEADERS += \
                            fileio.h \
                            fileio_plugin.h
                    
                    DISTFILES = qmldir
                    
                    !equals(_PRO_FILE_PWD_, $$OUT_PWD) {
                        copy_qmldir.target = $$OUT_PWD/qmldir
                        copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
                        copy_qmldir.commands = $(COPY_FILE) "$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)" "$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)"
                        QMAKE_EXTRA_TARGETS += copy_qmldir
                        PRE_TARGETDEPS += $$copy_qmldir.target
                    }
                    
                    qmldir.files = qmldir
                    unix {
                        installPath = $$[QT_INSTALL_QML]/$$replace(uri, \., /)
                        qmldir.path = $$installPath
                        target.path = $$installPath
                        INSTALLS += target qmldir
                    }
                    

                    I did not modify it at all. I just let Creator autocreate it. I choosed "QT Quick 2 Extension Plugin" as project template

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      KaLoSZyFeR
                      wrote last edited by
                      #11

                      @sandro4912, if you are still interested... ;) Just change file permissions and remove execution rights:

                      chmod -x /home/sandro/Qt/5.14.2/gcc_64/qml/org/example/io/qmldir
                      

                      or

                      cd /home/sandro/Qt/5.14.2/gcc_64/qml/org/example/io
                      chmod -x qmldir
                      
                      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