How to make app bundle for macOS with OpenCV?
-
wrote on 21 Oct 2020, 06:00 last edited by
Hello how to create app bundle for macOS ( Catalina ) with OpenCV? When I go with this tutorial https://doc.qt.io/qt-5.9/osx-deployment.html then I have this error "make: *** No rule to make target `clean'. Stop." and when I skip this command then I have error that error "Project ERROR: opencv development package not found" I know how to fix it in Qt Creator but I don't know how to fix it in terminal.
-
Hello how to create app bundle for macOS ( Catalina ) with OpenCV? When I go with this tutorial https://doc.qt.io/qt-5.9/osx-deployment.html then I have this error "make: *** No rule to make target `clean'. Stop." and when I skip this command then I have error that error "Project ERROR: opencv development package not found" I know how to fix it in Qt Creator but I don't know how to fix it in terminal.
@NintyS said in How to make app bundle for macOS with OpenCV?:
then I have this error
At which step?
-
wrote on 21 Oct 2020, 06:19 last edited by
First error I got on this command "make clean", and second error I have on this "qmake -config release".
-
Hello how to create app bundle for macOS ( Catalina ) with OpenCV? When I go with this tutorial https://doc.qt.io/qt-5.9/osx-deployment.html then I have this error "make: *** No rule to make target `clean'. Stop." and when I skip this command then I have error that error "Project ERROR: opencv development package not found" I know how to fix it in Qt Creator but I don't know how to fix it in terminal.
@NintyS said in How to make app bundle for macOS with OpenCV?:
I know how to fix it in Qt Creator
How did you fix it in QtCreator?
-
wrote on 21 Oct 2020, 06:30 last edited by
I add to Build Environment PKG_CONFIG_PATH and modify PATH. ( I couldn't post it earlier because I don't have 1 point of reputation and I must wait every time 10 minutes ).
-
I add to Build Environment PKG_CONFIG_PATH and modify PATH. ( I couldn't post it earlier because I don't have 1 point of reputation and I must wait every time 10 minutes ).
@NintyS You can do exactly the same in the terminal, like:
export PKG_CONFIG_PATH=SOME_PATH
-
wrote on 21 Oct 2020, 06:41 last edited by
Ok it works, but what about error with make clean? "qmake -config release" and "make" works but what with "make clean"? This commands is necessary? ( I will be asking about whole way of creating app bundle, because this isn't clear to me ).
-
Ok it works, but what about error with make clean? "qmake -config release" and "make" works but what with "make clean"? This commands is necessary? ( I will be asking about whole way of creating app bundle, because this isn't clear to me ).
@NintyS If there is nothing to clean "make clean" will fail. It should work after make. "make clean" is used to delete build artefacts, for example if you want to rebuild completely.
-
wrote on 21 Oct 2020, 06:54 last edited by
Here ( in tutorial ) is a "plugins" folder and I know I must create this directory myself, but this folder will be empty and in this tutorial is that I must use "make clean", "qmake -config release" and "make" so what I supposed to do? ( Can you give me a one point of reputation to I could send you reply faster? )
-
Here ( in tutorial ) is a "plugins" folder and I know I must create this directory myself, but this folder will be empty and in this tutorial is that I must use "make clean", "qmake -config release" and "make" so what I supposed to do? ( Can you give me a one point of reputation to I could send you reply faster? )
@NintyS said in How to make app bundle for macOS with OpenCV?:
I know I must create this directory myself
According to the documentation this is not correct.
"When we built the Plug & Paint plugins, based on the DESTDIR variable in their .pro file, the plugins' .dylib files are in the plugins subdirectory under the plugandpaint directory. We just have to move this directory to the correct location."
https://doc.qt.io/qt-5.9/osx-deployment.html -
wrote on 21 Oct 2020, 07:23 last edited by NintyS
@jsulm said in How to make app bundle for macOS with OpenCV?:
According to the documentation this is not correct.
"When we built the Plug & Paint plugins, based on the DESTDIR variable in their .pro file, the plugins' .dylib files are in the plugins subdirectory under the plugandpaint directory. We just have to move this directory to the correct location."Then how to create a plugin folder? There we go to folder with app "cd /path/to/Qt/examples/widgets/tools/plugandpaint/app" and this create new file .app "make clean && qmake -config release && make" so where is command for plugins folder?
-
@jsulm said in How to make app bundle for macOS with OpenCV?:
According to the documentation this is not correct.
"When we built the Plug & Paint plugins, based on the DESTDIR variable in their .pro file, the plugins' .dylib files are in the plugins subdirectory under the plugandpaint directory. We just have to move this directory to the correct location."Then how to create a plugin folder? There we go to folder with app "cd /path/to/Qt/examples/widgets/tools/plugandpaint/app" and this create new file .app "make clean && qmake -config release && make" so where is command for plugins folder?
@NintyS This is stated in the link:
"This builds the core application. Use the following to build the plugins:"cd ../plugandpaint/plugins make clean qmake -config release make
-
wrote on 21 Oct 2020, 07:45 last edited by NintyS
This don’t make any sense for me. Why I must go intro plugins directory if this directory don’t exist? Command „cd” set user position intro this directory.
-
This don’t make any sense for me. Why I must go intro plugins directory if this directory don’t exist? Command „cd” set user position intro this directory.
@NintyS There IS plugins directory inside the plugandpaint app. It should look like this:
app plugins plugandpaint.pro
This is what you have to do:
cd /path/to/Qt/examples/widgets/tools/plugandpaint/app // Run qmake to create a new makefile for the application, and do a clean build to create the dynamically linked executable: make clean qmake -config release make // This builds the core application. // Use the following to build the plugins: cd ../plugandpaint/plugins make clean qmake -config release make
-
wrote on 21 Oct 2020, 08:02 last edited by
Do you want a screenshot?
-
@NintyS Yes, pleas.
How did you install Qt? And did you install the examples? -
wrote on 21 Oct 2020, 08:29 last edited by
-
Yes, I install qt and examples but I don't do this on the example, just on my own project. There is screenshots.
@NintyS Well, in that case I guess you do not have any own plug-ins, so simply skip that step.
-
wrote on 21 Oct 2020, 08:39 last edited by
Oooo. Ok.
-
wrote on 21 Oct 2020, 08:45 last edited by
Now I have another error: "/Applications/Mobile/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: error: 'QtGui.framework/QtGui': No such file or directory"
Why otool search framework there but not in Qt/version/clang/bin?
9/23