Qt Deployment error in Mac OSX
-
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:12can 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
-
Hi,
This currently has nothing to do with deployment.
Can you show your .pro file ?
-
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 +=
-
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.
-
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 = appTARGET = 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 +=
-
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 = appTARGET = 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 +=
@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 \\
?
-
@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.
-
@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.
-
@VinayP You don't understand my question. My question is: why do you have \\ after main.cpp and wfp.h?