Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Qt Deployment error in Mac OSX

    Installation and Deployment
    3
    11
    263
    Loading More Posts
    • 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.
    • V
      VinayP last edited by

      Hi Developers, I am new to Mac OS so spare with me for my silly questions. right now i am porting a project from windows to mac. while i am trying to compile i get a make file error while making object file. the compile window shows the following

      -F/Users/macbookair/Qt/5.13.2/clang_64/lib -framework QtQuick -framework QtWidgets -framework QtGui -framework QtQml -framework QtNetwork -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL
      clang: error: no such file or directory: '.o'
      make: *** [WirelessConfigurator.app/Contents/MacOS/WirelessConfigurator] Error 1
      13:17:33: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project WirelessConfigurator (kit: Desktop Qt 5.13.2 clang 64bit)
      When executing step "Make"
      13:17:33: Elapsed time: 00:12

      can someone make me understand what is the problem here? I find the dependencies properly linked but i get this error. I dont know whats wrong here

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        This currently has nothing to do with deployment.

        Can you show your .pro file ?

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

        1 Reply Last reply Reply Quote 0
        • V
          VinayP last edited by

          Hi Thank you for the reply. Please find the .pro below.

          QT Config

          TEMPLATE = app

          TARGET = WirelessConfigurator

          CONFIG += embed_manifest_exe

          CONFIG += app_bundle

          #ICON = icon.icns

          QT += quick

          QT += core

          QT += gui

          QT += widgets

          #CONFIG += app_bundle

          CONFIG += c++11

          CONFIG(debug, debug|release) {

          } else {

          }

          INCLUDEPATH += classes/include/unix/

          #LIBS += -Lclasses/lib/mac64/ -lusb_control

          LIBS += -Lclasses/lib/mac64/ -lftd2xx

          The following define makes your compiler emit warnings if you use

          any Qt feature that has been marked deprecated (the exact warnings

          depend on your compiler). Refer to the documentation for the

          deprecated API to know how to port your code away from it.

          #DEFINES += QT_DEPRECATED_WARNINGS

          You can also make your code fail to compile if it uses deprecated APIs.

          In order to do so, uncomment the following line.

          You can also select to disable deprecated APIs only up to a certain version of Qt.

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

          SOURCES += \

              DropdownModel.cpp \
          	config.cpp \
             frequency.cpp \
              serial.cpp \
              usbd.cpp \
              wfp.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 += \

          DropdownItem.h \

          DropdownModel.h \
          
          classes/FrequencyMaskingModel.h \
          
          config.h \
          
          frequency\
          
          serial\
          usbconfig.h \
          
          usbd.h \\
          

          DISTFILES +=

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            You seem to have files without extensions and backslashes even beside the last entries of your lists. That something you should clean and do a rebuild from scratch.

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

            1 Reply Last reply Reply Quote 1
            • V
              VinayP last edited by

              Hi what do you mean by i dont have file extensions ? sorry i have some text error while typing. please look at it again here
              TEMPLATE = app

              TARGET = WirelessConfigurator

              CONFIG += embed_manifest_exe

              CONFIG += app_bundle

              #ICON = icon.icns

              QT += quick

              QT += core

              QT += gui

              QT += widgets

              #CONFIG += app_bundle

              CONFIG += c++11

              CONFIG(debug, debug|release) {

              } else {

              }

              INCLUDEPATH += classes/include/unix/

              LIBS += -Lclasses/lib/mac64/ -lusb_control

              LIBS += -Lclasses/lib/mac64/ -lftd2xx

              #DEFINES += QT_DEPRECATED_WARNINGS

              SOURCES += \

                  Dropdown.cpp \
              
                  Frequency.cpp\        
              
                  configurator.cpp \
              
                  frequency.cpp \
              
                  serial.cpp \
              
                  usbd.cpp \
              
                  wfp.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 += \

              Dropdown.h \
              
              
              Frequency.h \
              
              
              coex_protocol.h \
              

              configurator.h \

              serial.h \
              
              taskbar.h \
              
              usb.h \
              
              usbconfig.h \
              

              usbd.h \

              wfp.h \\
              

              DISTFILES +=

              jsulm 1 Reply Last reply Reply Quote 0
              • jsulm
                jsulm Lifetime Qt Champion @VinayP last edited by

                @VinayP said in Qt Deployment error in Mac OSX:

                what do you mean by i dont have file extensions ?

                Simply check what you posted before. Example:

                frequency\
                

                If you post your code then please really post what you have.
                Why do you have \\

                main.cpp \\
                

                and

                wfp.h \\
                

                ?

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

                1 Reply Last reply Reply Quote 1
                • V
                  VinayP last edited by

                  @jslum Thanks for the reply. i have posted what i have written in the .pro file. those are the included projec files. and that is the way i have written it and it works for me in windows version of it. as i said, the previous reply was wrongly sent when i am trying to remove the comments. please see the next reply.

                  jsulm 1 Reply Last reply Reply Quote 0
                  • jsulm
                    jsulm Lifetime Qt Champion @VinayP last edited by

                    @VinayP You did not answer my last question

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

                    1 Reply Last reply Reply Quote 0
                    • V
                      VinayP last edited by

                      Hi again, those are my main file and some other(wfp) header file for the source file

                      jsulm 1 Reply Last reply Reply Quote 0
                      • jsulm
                        jsulm Lifetime Qt Champion @VinayP last edited by jsulm

                        @VinayP You don't understand my question. My question is: why do you have \\ after main.cpp and wfp.h?

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

                        V 1 Reply Last reply Reply Quote 0
                        • V
                          VinayP @jsulm last edited by

                          @jsulm if your are asking about "//" part that can be neglected that is a text error as well. i am working on different machines so copying texts causing some unknown errors in the format

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post