Giter Club home page Giter Club logo

Comments (33)

d3cod3 avatar d3cod3 commented on July 28, 2024

Hi,
the Mosaic.desktop is not the app, is the linux .desktop file for adding a menu shortcut.

If the qtcreator project compiled fine you'll find the executable inside the bin/ folder:

Mosaic

or

Mosaic_debug

depending on which one you choose to compile in the qtcreator project.

In order to open it you just ./Mosaic or ./Mosaic_debug inside the bin/ folder

Let me know if you have other problems.

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

hey thanks apparently i am getting lot of error when building with qt creator, i tried editint the script file for linux mint installation and procedded long way but i think some other addons is creating a compilation issue

Here is my error in qtcreator

0:00:33: Running steps for project Mosaic...
compiling AAPeakEQ.cpp [Mosaic]
compiling DataOsc.cpp [Mosaic]
compiling ofxOscMessage.cpp [Mosaic]
compiling MidiControls.cpp [Mosaic]
compiling AudioDevice.cpp [Mosaic]
compiling PythonScript.cpp [Mosaic]
compiling ImageExporter.cpp [Mosaic]
compiling acos.c [Mosaic]
compiling ofxFileDialog.cpp [Mosaic]

home/shank/of-workspace/addons/ofxTimeline/src/ofxTween -I/home/shank/of-workspace/addons/ofxTimeline/src/ofxTween/src -I/home/shank/of-workspace/addons/ofxTimeline/src/ofxTween/src/Easings -I/home/shank/of-workspace/addons/ofxTimeMeasurements/src -I/home/shank/of-workspace/addons/ofxVisualProgramming/src -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/audio_analysis -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/communications -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/data -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/graphics -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/gui -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/logic -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/math -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/sound -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/video -I/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/windowing -I/home/shank/of-workspace/addons/ofxVisualProgramming/libs/isaac -I/home/shank/of-workspace/addons/ofxWarp/src -I/home/shank/of-workspace/addons/ofxWarp/src/ofxWarp -I/usr/include/libusb-1.0 -I/usr/include/opencv4 -I/usr/include/python2.7 -I/home/shank/of-workspace/apps/myApps/Mosaic/src -o /home/shank/of-workspace/apps/myApps/build-Mosaic-Desktop-Debug/Debug/Mosaic.eede5042/b487c375915d616f/PythonScript.cpp.o -c /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp
In file included from /usr/include/python2.7/Python.h:8,
from /home/shank/of-workspace/addons/ofxPython/src/ofxPython.h:6,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/utils.h:40,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/PatchObject.h:37,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.h:35,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:33:
/usr/include/python2.7/pyconfig.h:1220: warning: "_POSIX_C_SOURCE" redefined
#define _POSIX_C_SOURCE 200112L

In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/stdint.h:9,
from /home/shank/of-workspace/libs/openFrameworks/utils/ofConstants.h:2,
from /home/shank/of-workspace/libs/openFrameworks/ofMain.h:6,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/PatchObject.h:34,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.h:35,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:33:
/usr/include/features.h:266: note: this is the location of the previous definition

define _POSIX_C_SOURCE 200809L

In file included from /usr/include/python2.7/Python.h:8,
from /home/shank/of-workspace/addons/ofxPython/src/ofxPython.h:6,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/utils.h:40,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/PatchObject.h:37,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.h:35,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:33:
/usr/include/python2.7/pyconfig.h:1242: warning: "_XOPEN_SOURCE" redefined
#define _XOPEN_SOURCE 600

In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/stdint.h:9,
from /home/shank/of-workspace/libs/openFrameworks/utils/ofConstants.h:2,
from /home/shank/of-workspace/libs/openFrameworks/ofMain.h:6,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/PatchObject.h:34,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.h:35,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:33:
/usr/include/features.h:203: note: this is the location of the previous definition

define _XOPEN_SOURCE 700

/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp: In member function ‘virtual void PythonScript::setupObjectContent(std::shared_ptr&)’:
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:108:10: error: ‘class ofxDatGui’ has no member named ‘setUseCustomMouse’
gui->setUseCustomMouse(true);
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:113:13: error: ‘class ofxDatGuiHeader’ has no member named ‘setUseCustomMouse’
header->setUseCustomMouse(true);
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:114:13: error: ‘class ofxDatGuiHeader’ has no member named ‘setCollapsable’; did you mean ‘setDraggable’?
header->setCollapsable(true);
^~~~~~~~~~~~~~
setDraggable
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:120:16: error: ‘class ofxDatGuiButton’ has no member named ‘setUseCustomMouse’
newButton->setUseCustomMouse(true);
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:123:17: error: ‘class ofxDatGuiButton’ has no member named ‘setUseCustomMouse’
loadButton->setUseCustomMouse(true);
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:126:17: error: ‘class ofxDatGuiButton’ has no member named ‘setUseCustomMouse’
editButton->setUseCustomMouse(true);
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:130:18: error: ‘class ofxDatGuiButton’ has no member named ‘setUseCustomMouse’
clearButton->setUseCustomMouse(true);
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:132:19: error: ‘class ofxDatGuiButton’ has no member named ‘setUseCustomMouse’
reloadButton->setUseCustomMouse(true);
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:136:13: error: ‘class ofxDatGuiHeader’ has no member named ‘setIsCollapsed’; did you mean ‘setFocused’?
header->setIsCollapsed(true);
^~~~~~~~~~~~~~
setFocused
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp: In member function ‘virtual void PythonScript::mouseMovedObjectContent(ofVec3f)’:
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:272:10: error: ‘class ofxDatGui’ has no member named ‘setCustomMousePos’
gui->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:273:13: error: ‘class ofxDatGuiHeader’ has no member named ‘setCustomMousePos’
header->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:274:16: error: ‘class ofxDatGuiButton’ has no member named ‘setCustomMousePos’
newButton->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:275:17: error: ‘class ofxDatGuiButton’ has no member named ‘setCustomMousePos’
loadButton->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:276:17: error: ‘class ofxDatGuiButton’ has no member named ‘setCustomMousePos’
editButton->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:277:18: error: ‘class ofxDatGuiButton’ has no member named ‘setCustomMousePos’
clearButton->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:278:19: error: ‘class ofxDatGuiButton’ has no member named ‘setCustomMousePos’
reloadButton->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:280:17: error: ‘class ofxDatGuiHeader’ has no member named ‘getIsCollapsed’; did you mean ‘getIsExpanded’?
if(!header->getIsCollapsed()){
^~~~~~~~~~~~~~
getIsExpanded
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp: In member function ‘virtual void PythonScript::dragGUIObject(ofVec3f)’:
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:291:14: error: ‘class ofxDatGui’ has no member named ‘setCustomMousePos’
gui->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:292:17: error: ‘class ofxDatGuiHeader’ has no member named ‘setCustomMousePos’
header->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:293:20: error: ‘class ofxDatGuiButton’ has no member named ‘setCustomMousePos’
newButton->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:294:21: error: ‘class ofxDatGuiButton’ has no member named ‘setCustomMousePos’
loadButton->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:295:21: error: ‘class ofxDatGuiButton’ has no member named ‘setCustomMousePos’
editButton->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:296:22: error: ‘class ofxDatGuiButton’ has no member named ‘setCustomMousePos’
clearButton->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:297:23: error: ‘class ofxDatGuiButton’ has no member named ‘setCustomMousePos’
reloadButton->setCustomMousePos(static_cast(_m.x - this->getPos().x),static_cast(_m.y - this->getPos().y));
^~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp: In member function ‘void PythonScript::onButtonEvent(ofxDatGuiButtonEvent)’:
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:393:17: error: ‘class ofxDatGuiHeader’ has no member named ‘getIsCollapsed’; did you mean ‘getIsExpanded’?
if(!header->getIsCollapsed()){
^~~~~~~~~~~~~~
getIsExpanded
Process failed with exit code 1.
The following products could not be built for configuration Debug:
Mosaic
Error while building/deploying project Mosaic (kit: Desktop)
The kit Desktop has configuration issues which might be the root cause for this problem.
When executing step "Qbs Build"
00:00:50: Elapsed time: 00:17.

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Ok, the python warnings are not important, but the errors related with ofxDatGui addon appears because you're not using the correct fork of that addon:

https://github.com/d3cod3/ofxDatGui

maybe you had that specific addon downloaded some time ago?

anyway, try to delete your copy/move your actual clone of ofxDatGui and use my fork

let me know if you're gettin' more errors

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

oh thanks now I am getting this error

home/shank/of-workspace/apps/myApps/build-Mosaic-Desktop-Debug/Debug/Mosaic.eede5042/75de70cdae1f0b77/FaceTracker.cpp.o -c /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.cpp
In file included from /usr/include/python2.7/Python.h:3,
from /home/shank/of-workspace/addons/ofxPython/src/ofxPython.h:5,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/utils.h:40,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/PatchObject.h:37,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.h:35,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.cpp:33:
/usr/include/python2.7/pyconfig.h:1220: warning: "_POSIX_C_SOURCE" redefined
#define _POSIX_C_SOURCE 200112L

In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/stdint.h:9,
from /home/shank/of-workspace/libs/openFrameworks/utils/ofConstants.h:2,
from /home/shank/of-workspace/libs/openFrameworks/ofMain.h:6,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/PatchObject.h:34,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.h:35,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.cpp:33:
/usr/include/features.h:266: note: this is the location of the previous definition

define _POSIX_C_SOURCE 200809L

In file included from /usr/include/python2.7/Python.h:3,
from /home/shank/of-workspace/addons/ofxPython/src/ofxPython.h:5,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/utils.h:40,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/PatchObject.h:37,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.h:35,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.cpp:33:
/usr/include/python2.7/pyconfig.h:1242: warning: "_XOPEN_SOURCE" redefined
#define _XOPEN_SOURCE 600

In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/stdint.h:9,
from /home/shank/of-workspace/libs/openFrameworks/utils/ofConstants.h:2,
from /home/shank/of-workspace/libs/openFrameworks/ofMain.h:6,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/PatchObject.h:34,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.h:35,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.cpp:33:
/usr/include/features.h:203: note: this is the location of the previous definition

define _XOPEN_SOURCE 700

In file included from /home/shank/of-workspace/addons/ofxCv/src/ofxCv.h:10,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.h:37,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.cpp:33:
/home/shank/of-workspace/addons/ofxCv/libs/ofxCv/include/ofxCv/Wrappers.h: In function ‘void ofxCv::copyGray(const S&, D&)’:
/home/shank/of-workspace/addons/ofxCv/libs/ofxCv/include/ofxCv/Wrappers.h:194:36: error: ‘CV_RGBA2GRAY’ was not declared in this scope
convertColor(src, dst, CV_RGBA2GRAY);
^~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxCv/libs/ofxCv/include/ofxCv/Wrappers.h:194:36: note: suggested alternative: ‘GL_RGBA2_EXT’
convertColor(src, dst, CV_RGBA2GRAY);
^~~~~~~~~~~~
GL_RGBA2_EXT
/home/shank/of-workspace/addons/ofxCv/libs/ofxCv/include/ofxCv/Wrappers.h:196:36: error: ‘CV_RGB2GRAY’ was not declared in this scope
convertColor(src, dst, CV_RGB2GRAY);
^~~~~~~~~~~
/home/shank/of-workspace/addons/ofxCv/libs/ofxCv/include/ofxCv/Wrappers.h:196:36: note: suggested alternative: ‘CV_RGB’
convertColor(src, dst, CV_RGB2GRAY);
^~~~~~~~~~~
CV_RGB
In file included from /home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/Tracker.h:43,
from /home/shank/of-workspace/addons/ofxFaceTracker/src/ofxFaceTracker.h:20,
from /home/shank/of-workspace/addons/ofxFaceTracker/src/ofxFaceTrackerThreaded.h:5,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.h:38,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.cpp:33:
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/FDet.h: At global scope:
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/FDet.h:82:25: error: ‘CvMemStorage’ does not name a type; did you mean ‘glTexStorage1D’?
cv::Mat small_img_; CvMemStorage* storage_;
^~~~~~~~~~~~
glTexStorage1D
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/FDet.h: In constructor ‘FACETRACKER::FDet::FDet()’:
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/FDet.h:59:12: error: ‘storage_’ was not declared in this scope
FDet(){storage_=NULL;cascade=NULL;}
^~~~~~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/FDet.h:59:12: note: suggested alternative: ‘GstTracer’
FDet(){storage
=NULL;_cascade=NULL;}
^~~~~~~~
GstTracer
In file included from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.h:38,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.cpp:33:
/home/shank/of-workspace/addons/ofxFaceTracker/src/ofxFaceTrackerThreaded.h: In member function ‘void ofxFaceTrackerThreaded::setup()’:
/home/shank/of-workspace/addons/ofxFaceTracker/src/ofxFaceTrackerThreaded.h:24:19: warning: ‘void ofThread::startThread(bool)’ is deprecated: Use tryLock instead of setting the type of lock on startThread [-Wdeprecated-declarations]
startThread(true);
^
In file included from /home/shank/of-workspace/libs/openFrameworks/ofMain.h:6,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/PatchObject.h:34,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.h:35,
from /home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/computer_vision/FaceTracker.cpp:33:
/home/shank/of-workspace/libs/openFrameworks/utils/ofThread.h:99:12: note: declared here
void startThread(bool mutexBlocks));
^~~~~~~~~~~
/home/shank/of-workspace/libs/openFrameworks/utils/ofConstants.h:57:49: note: in definition of macro ‘OF_DEPRECATED_MSG’
#define OF_DEPRECATED_MSG(message, ...) VA_ARGS attribute ((deprecated(message)))
^~~~~~~~~~~
Process failed with exit code 1.
The following products could not be built for configuration Debug:
Mosaic
Error while building/deploying project Mosaic (kit: Desktop)
The kit Desktop has configuration issues which might be the root cause for this problem.
When executing step "Qbs Build"

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Ok, questions:

1 - which openFrameworks version are you compiling with? (you have to use 0.10.0 or 0.10.1, downloaded from official OF website)
2 - Have you checked the list of correct addons you need to compile?
https://github.com/d3cod3/Mosaic#dependencies

Have you checked the my automatic install scripts for linux? (there you can find a lot of technical info about linux dependencies and issues)
https://gist.github.com/d3cod3

I didn't have a specific one for arch linux right now, but as we are here, i'm going to write one for arch, test it, make it work and add it to the collection.

I'll let you know when the script is completed, in the meantime you let me know how is going and if you solved something more.

I will download the latest arch release to make a virtual machine and test the script there.

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

thank you it would be great if there is arch linux script, i am using openframeworks 0.10.1m and have all the addons instsalledm i reinstalled openCV and tried this fix https://forum.openframeworks.cc/t/issues-compiling-ofxcv-under-linux-on-of-10-1/32269, i went a long way on the compilation process now i am getting some error related to ofxPython/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp: In member function ‘virtual void PythonScript::updateObjectContent(std::map<int, PatchObject*>&, ofxThreadedFileDialog&)’:
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:223:36: error: ‘class ofxPythonObject’ has no member named ‘isPythonError’
if(updatePython && !script.isPythonError() && !updatePython.isPythonError()){
^~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:223:69: error: ‘class ofxPythonObject’ has no member named ‘isPythonError’
if(updatePython && !script.isPythonError() && !updatePython.isPythonError()){
^~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:225:82: error: ‘class ofxPythonObject’ has no member named ‘isPythonError’
if(this->inletsConnected[0] && updateMosaicList && !updateMosaicList.isPythonError()){
^~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:236:54: error: ‘class ofxPythonObject’ has no member named ‘isPythonError’
if(updatePythonList && !updatePythonList.isPythonError() && getPythonListSize && !getPythonListSize.isPythonError()){
^~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxVisualProgramming/src/objects/scripting/PythonScript.cpp:236:113: error: ‘class ofxPythonObject’ has no member named ‘isPythonError’
if(updatePythonList && !updatePythonList.isPythonError() && getPythonListSize && !getPythonListSize.isPythonError()){
^~~~~~~~~~~~~
Process failed with exit code 1.
The following products could not be built for configuration Debug:
Mosaic
Error while building/deploying project Mosaic (kit: Desktop)
The kit Desktop has configuration issues which might be the root cause for this problem.
When executing step "Qbs Build"

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

changing pkgconfig to gtk-2.0 instead of gtk-3.0, i am getting this error, i am using qtcreator 4.9

home/shank/of-workspace/addons/ofxCv/libs/ofxCv/src/Calibration.cpp
/home/shank/of-workspace/addons/ofxCv/libs/ofxCv/src/Calibration.cpp: In member function ‘bool ofxCv::Calibration::findBoard(cv::Mat, std::vector<cv::Point_ >&, bool)’:
/home/shank/of-workspace/addons/ofxCv/libs/ofxCv/src/Calibration.cpp:310:30: error: ‘CV_CALIB_CB_ADAPTIVE_THRESH’ was not declared in this scope
int chessFlags = CV_CALIB_CB_ADAPTIVE_THRESH;// | CV_CALIB_CB_NORMALIZE_IMAGE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Process failed with exit code 1.
The following products could not be built for configuration Debug:
Mosaic
Error while building/deploying project Mosaic (kit: Desktop)
The kit Desktop has configuration issues which might be the root cause for this problem.
When executing step "Qbs Build"

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Well, is going better!

Now:

1 - the python addon needs to be:
git clone --branch=OF0.9.8 https://github.com/d3cod3/ofxPython

2 - Change back the pkgconfig to gtk-3-0, i've solved that issue on linux and i haven't updated the README, sorry

3 - I've tested everything with qtcreator 4.6.1, as the official OF documentation advise, so i'm not sure about using 4.9 release

Try fixing this stuff and let me know!

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

This is the complete list of exact addons you'll need to compile Mosaic:

git clone https://github.com/d3cod3/ofxAudioAnalyzer
git clone https://github.com/npisanti/ofxAudioFile
git clone https://github.com/d3cod3/ofxBTrack
git clone https://github.com/d3cod3/ofxChromaKeyShader
git clone https://github.com/kylemcdonald/ofxCv
git clone https://github.com/d3cod3/ofxDatGui
git clone https://github.com/kylemcdonald/ofxFaceTracker
git clone https://github.com/d3cod3/ofxFFmpegRecorder
git clone https://github.com/d3cod3/ofxFontStash
git clone https://github.com/d3cod3/ofxGLEditor
git clone https://github.com/armadillu/ofxGLError
git clone https://github.com/armadillu/ofxHistoryPlot
git clone https://github.com/jeffcrouse/ofxJSON
git clone https://github.com/jvcleave/ofxImGui
git clone https://github.com/d3cod3/ofxInfiniteCanvas
git clone https://github.com/d3cod3/ofxLoggerChannel
git clone --branch=of-0.10.0 https://github.com/d3cod3/ofxLua
git clone https://github.com/d3cod3/ofxMidi
git clone https://github.com/d3cod3/ofxModal
git clone https://github.com/d3cod3/ofxMtlMapping2D
git clone --branch=OF0.9.8 https://github.com/d3cod3/ofxPython
git clone https://github.com/d3cod3/ofxParagraph
git clone https://github.com/danomatika/ofxPd
git clone https://github.com/d3cod3/ofxPdExternals
git clone https://github.com/npisanti/ofxPDSP
git clone https://github.com/armadillu/ofxSimpleHttp
git clone https://github.com/d3cod3/ofxThreadedFileDialog
git clone http://github.com/pierrep/ofxThreadedYouTubeVideo
git clone https://github.com/d3cod3/ofxTimeline
git clone https://github.com/armadillu/ofxTimeMeasurements
git clone https://github.com/d3cod3/ofxVisualProgramming
git clone https://github.com/d3cod3/ofxWarp

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

Hi i have checked i got all theses add ons , now i am bumping into these errors,

/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc
In file included from /home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/Tracker.h:43,
from /home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:40:
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/FDet.h:82:25: error: ‘CvMemStorage’ does not name a type
cv::Mat small_img_; CvMemStorage* storage_;
^~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/FDet.h: In constructor ‘FACETRACKER::FDet::FDet()’:
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/FDet.h:59:12: error: ‘storage_’ was not declared in this scope
FDet(){storage_=NULL;cascade=NULL;}
^~~~~~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/FDet.h:59:12: note: suggested alternative: ‘strsep’
FDet(){storage
=NULL;cascade=NULL;}
^~~~~~~~
strsep
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc: In member function ‘int FACETRACKER::Tracker::Track(cv::Mat, std::vector&, int, int, double, double, bool)’:
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:94:27: error: ‘CV_BGR2GRAY’ was not declared in this scope
cv::cvtColor(im,gray
,CV_BGR2GRAY);
^~~~~~~~~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc: In member function ‘cv::Rect FACETRACKER::Tracker::ReDetect(cv::Mat&)’:
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:141:58: error: ‘CV_INTER_LINEAR’ was not declared in this scope
cv::resize(im,small_,cv::Size(TSCALEww,TSCALEhh),0,0,CV_INTER_LINEAR);
^~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:141:58: note: suggested alternative: ‘CV_INLINE’
cv::resize(im,small_,cv::Size(TSCALEww,TSCALEhh),0,0,CV_INTER_LINEAR);
^~~~~~~~~~~~~~~
CV_INLINE
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:143:3: error: ‘IplImage’ was not declared in this scope
IplImage im_o = small_,temp_o = temp_,ncc_o = ncc_;
^~~~~~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:144:20: error: ‘im_o’ was not declared in this scope
cvMatchTemplate(&im_o,&temp_o,&ncc_o,CV_TM_CCOEFF_NORMED);
^~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:144:20: note: suggested alternative: ‘id_t’
cvMatchTemplate(&im_o,&temp_o,&ncc_o,CV_TM_CCOEFF_NORMED);
^~~~
id_t
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:144:26: error: ‘temp_o’ was not declared in this scope
cvMatchTemplate(&im_o,&temp_o,&ncc_o,CV_TM_CCOEFF_NORMED);
^~~~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:144:26: note: suggested alternative: ‘temp_’
cvMatchTemplate(&im_o,&temp_o,&ncc_o,CV_TM_CCOEFF_NORMED);
^~~~~~
temp_
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:144:34: error: ‘ncc_o’ was not declared in this scope
cvMatchTemplate(&im_o,&temp_o,&ncc_o,CV_TM_CCOEFF_NORMED);
^~~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:144:34: note: suggested alternative: ‘ncc_’
cvMatchTemplate(&im_o,&temp_o,&ncc_o,CV_TM_CCOEFF_NORMED);
^~~~~
ncc_
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:144:40: error: ‘CV_TM_CCOEFF_NORMED’ was not declared in this scope
cvMatchTemplate(&im_o,&temp_o,&ncc_o,CV_TM_CCOEFF_NORMED);
^~~~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:144:3: error: ‘cvMatchTemplate’ was not declared in this scope
cvMatchTemplate(&im_o,&temp_o,&ncc_o,CV_TM_CCOEFF_NORMED);
^~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:144:3: note: suggested alternative: ‘UpdateTemplate’
cvMatchTemplate(&im_o,&temp_o,&ncc_o,CV_TM_CCOEFF_NORMED);
^~~~~~~~~~~~~~~
UpdateTemplate
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc: In member function ‘cv::Rect FACETRACKER::Tracker::UpdateTemplate(cv::Mat&, cv::Mat&, bool)’:
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:178:62: error: ‘CV_INTER_LINEAR’ was not declared in this scope
cv::resize(im,small_,cv::Size(TSCALEww,TSCALEhh),0,0,CV_INTER_LINEAR);
^~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc:178:62: note: suggested alternative: ‘CV_INLINE’
cv::resize(im,small_,cv::Size(TSCALEww,TSCALEhh),0,0,CV_INTER_LINEAR);
^~~~~~~~~~~~~~~
CV_INLINE

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Well, it seems that the ofxFaceTracker addon is having some problem with your local version of openCV.

Let's google for issues with openCV + OF + ARCH linux, and i'll take a look at the ofxFaceTracker addon github page, maybe someone else had the same problems before.

I'll inform you if i'll found something.

If we didn't find anything, i'll show you how modify the source code to disable the ofxFaceTracker dependency, the only difference will be the absence of the face tracker Mosaic computer vision object.

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

yes that would be great, I want to use it primarily for sound processing , but i am so curious to look inside the whole package..
I just found out there is no ofxCvimage.cpp file on my src folder there is only ofxCV.h as it is in the git hub repository

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

ofxCvImage.cpp is a file included in the default OF addon ofxOpenCv, not in the ofxCv addon

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

OK i though it would make a difference changing few lines in ofxCVimage.cpp but still not compiling, i guess i would go with build without ofxCV

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

It seems that the problem is related with libopencv-dev installed in your os, one thing is removing ofxFaceTracker addon, is doable, but removing ofxOpenCv or ofxCv is not doable, to much depends on this two addons, so we need to find the problem related with compiling openframeworks+opencv in arch linux.

I'll let you know when i'll have something to try

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Ok, i think i've found the problem about opencv, you'll need to launch in a terminal this script:
https://github.com/openframeworks/openFrameworks/blob/master/scripts/linux/archlinux/install_dependencies.sh

It checks which version of opencv you have on your system and setup things right.

You'll find this script in your openFrameworks_folder/scripts/linux/archlinux/install_dependencies.sh

just sudo ./install_dependencies.sh from terminal

then try to recompile Mosaic again and let me know!

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

Hi installing the dependencies i reinstalled the openCV and got ofxOpenCV to use openCV4,
Now i am getting this error I think it should be minor just error in header names

In file included from /home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/PDM.h:42,
from /home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/src/lib/PDM.cc:40:
/home/shank/of-workspace/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/IO.h:42:10: fatal error: opencv/cv.h: No such file or directory
#include <opencv/cv.h>
^~~~~~~~~~~~~
compilation terminated.

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Ok, after reinstalling libraries, it's best to reload the qtcreator project from zero, you can try from qtcreator:
Build -> Clean All
and then
Build -> Rebuild All

If the problem with ofxFaceTracker persist, we'll need to remove it from the Mosaic code:

In addons/ofxVisualProgramming/addon_config.mk

search for

linux64:
ADDON_DEPENDENCIES += ofxPdExternals ofxFaceTracker

and modify it to:

linux64:
ADDON_DEPENDENCIES += ofxPdExternals
ADDON_SOURCES_EXCLUDE = src/objects/computer_vision/FaceTracker%

Then, open Mosaic.qbs file from inside qtcreator,
remove 'ofxVisualProgramming' from the list of needed addon and save, wait for the reparsing (down on the right a green small line will appear), and then re-add 'ofxVisualProgramming' where it was and save it again. This will force to re-parse the internal code with all the ofxVisualProgramming dependencies (where we call ofxFaceTracker).

Then, at last, re-compile.

Finger crossed!

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

Ok i fixed the header file by providing location i think, i had the longest compile period of 10 mins, Now I am getting this related to audio analyzer
/home/shank/of-workspace/addons/ofxAudioAnalyzer/src/ofSoundPlayerExtended.cpp:165:6: error: no declaration matches ‘bool ofSoundPlayerExtended::mpg123ReadFile(std::__cxx11::string, std::vector&, std::vector&)’
bool ofSoundPlayerExtended::mpg123ReadFile(string path,vector & buffer,vector & fftAuxBuffer){
^~~~~~~~~~~~~~~~~~~~~
In file included from /home/shank/of-workspace/addons/ofxAudioAnalyzer/src/ofSoundPlayerExtended.cpp:2:
/home/shank/of-workspace/addons/ofxAudioAnalyzer/src/ofSoundPlayerExtended.h:99:10: note: candidate is: ‘bool ofSoundPlayerExtended::mpg123ReadFile(const boost::filesystem::path&, std::vector&, std::vector&)’
bool mpg123ReadFile(const std::filesystem::path& path,std::vector & buffer,std::vector & fftAuxBuffer);
^~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxAudioAnalyzer/src/ofSoundPlayerExtended.h:29:7: note: ‘class ofSoundPlayerExtended’ defined here
class ofSoundPlayerExtended : public ofBaseSoundPlayer, public ofThread {
^~~~~~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxAudioAnalyzer/src/ofSoundPlayerExtended.cpp: In member function ‘bool ofSoundPlayerExtended::decoderReadFile(const boost::filesystem::path&, std::vector&, std::vector&)’:
/home/shank/of-workspace/addons/ofxAudioAnalyzer/src/ofSoundPlayerExtended.cpp:231:1: error: no return statement in function returning non-void [-Werror=return-type]
}
^
/home/shank/of-workspace/addons/ofxAudioAnalyzer/src/ofSoundPlayerExtended.cpp: In member function ‘bool ofSoundPlayerExtended::mpg123Stream(const boost::filesystem::path&, std::vector&, std::vector&)’:
/home/shank/of-workspace/addons/ofxAudioAnalyzer/src/ofSoundPlayerExtended.cpp:311:74: error: ‘getMpg123EncodingString’ was not declared in this scope
ofLogError("ofSoundPlayerExtended") << "mpg123Stream(): " << getMpg123EncodingString(stream_encoding)
^~~~~~~~~~~~~~~~~~~~~~~
/home/shank/of-workspace/addons/ofxAudioAnalyzer/src/ofSoundPlayerExtended.cpp:311:74: note: suggested alternative: ‘mpg123_copy_string’
ofLogError("ofSoundPlayerExtended") << "mpg123Stream(): " << getMpg123EncodingString(stream_encoding)
^~~~~~~~~~~~~~~~~~~~~~~
mpg123_copy_string
/home/shank/of-workspace/addons/ofxAudioAnalyzer/src/ofSoundPlayerExtended.cpp: In member function ‘virtual float ofSoundPlayerExtended::getPosition() const’:
/home/shank/of-workspace/addons/ofxAudioAnalyzer/src/ofSoundPlayerExtended.cpp:740:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1plus: some warnings being treated as errors

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

I realized i had opencv4.pc in my pkgconfig and i changed it to opencv.pc, i think it is one of the build requirement like python.pc, Now i am getting this error compilation time 12mins this time
/home/shank/of-workspace/addons/ofxOpenCv/src/ofxCvHaarFinder.cpp: In member function ‘void ofxCvHaarFinder::setup(std::__cxx11::string)’:
/home/shank/of-workspace/addons/ofxOpenCv/src/ofxCvHaarFinder.cpp:53:39: error: ‘cvLoad’ was not declared in this scope
cascade = (CvHaarClassifierCascade*) cvLoad(haarFile.c_str(), 0, 0, 0);
^~~~~~
/home/shank/of-workspace/addons/ofxOpenCv/src/ofxCvHaarFinder.cpp:53:39: note: suggested alternative: ‘cvLog’
cascade = (CvHaarClassifierCascade*) cvLoad(haarFile.c_str(), 0, 0, 0);
^~~~~~
cvLog

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Ok, you must have the wrong version of ofxAudioAnalyzer, there is no ofSoundPlayerExtended class in my fork (the one you need to clone)
git clone https://github.com/d3cod3/ofxAudioAnalyzer

About the other errors for opencv, something is wrong with your installation of opencv libraries, you are getting compile errors over the ofxOpenCv addon that comes included with openFrameworks, so definitely something is not right!

Have you checked the automatic install scripts i have on gist:
https://gist.github.com/d3cod3

Maybe a completely new install of openframeworks, then a clone of all the needed addons, then a clone of Mosaic repo and finally a compile?

I'm not sure about the error, could it be for some mistake along the way, but could it be some specific issue related with your particular version os Arch Linux.

I'll let you know you if i found more information

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

hi i I am trying the script for linux mint installation m i removed the apt get command,
now I am getting error related to poco

fixing poco libs
cp: cannot stat 'openFrameworks/scripts/apothecary/poco/include/Poco': No such file or directory
"cp -R $OFFOLDERNAME/scripts/apothecary/poco/include/Poco /usr/include/" command failed with exit code 1.
I will try removing this line

This is the error i get again something to do with ofxCv
^~~~~
/opt/openFrameworks/addons/ofxCv/libs/CLD/src/ETF.cpp: In member function ‘void ETF::Smooth(int, int)’:
/opt/openFrameworks/addons/ofxCv/libs/CLD/src/ETF.cpp:205:6: warning: unused variable ‘MAX_GRADIENT’ [-Wunused-variable]
int MAX_GRADIENT = -1;
^~~~~~~~~~~~

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

That one is a warning: unused variable, the compile error must be somewhere else, can you post the entire compile output?

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

opt/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Wrappers.h:196:36: error: ‘CV_RGB2GRAY’ was not declared in this scope
convertColor(src, dst, CV_RGB2GRAY);
^~~~~~~~~~~
/opt/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Wrappers.h:196:36: note: suggested alternative: ‘CV_RGB’
convertColor(src, dst, CV_RGB2GRAY);
^~~~~~~~~~~
CV_RGB
In file included from /opt/openFrameworks/addons/ofxCv/src/ofxCv.h:23,
from /opt/openFrameworks/addons/ofxChromaKeyShader/src/ofxChromaKeyShader.h:28,
from /opt/openFrameworks/addons/ofxChromaKeyShader/src/ofxChromaKeyShader.cpp:25:
/opt/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Tracker.h: In member function ‘virtual const std::vector& ofxCv::RectTracker::track(const std::vector<cv::Rect_ >&)’:
/opt/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Tracker.h:326:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
for(int i = 0; i < labels.size(); i++) {
~~^~~~~~~~~~~~~~~
/opt/openFrameworks/addons/ofxCv/libs/ofxCv/src/Calibration.cpp: In member function ‘virtual void ofxCv::Calibration::customDraw()’:
/opt/openFrameworks/addons/ofxCv/libs/ofxCv/src/Calibration.cpp:478:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
for(int i = 0; i < size(); i++) {
~~^~~~~~~~
/opt/openFrameworks/addons/ofxCv/libs/ofxCv/src/Calibration.cpp: In member function ‘void ofxCv::Calibration::updateReprojectionError()’:
/opt/openFrameworks/addons/ofxCv/libs/ofxCv/src/Calibration.cpp:567:79: error: ‘CV_L2’ was not declared in this scope
double err = norm(cv::Mat(imagePoints[i]), cv::Mat(imagePoints2), CV_L2);
^~~~~
/opt/openFrameworks/addons/ofxCv/libs/ofxCv/src/Calibration.cpp:567:79: note: suggested alternative: ‘CV_32F’
double err = norm(cv::Mat(imagePoints[i]), cv::Mat(imagePoints2), CV_L2);
^~~~~
CV_32F
make[1]: *** [/opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:352: /opt/openFrameworks/addons/obj/linux64/Release/ofxCv/libs/ofxCv/src/Calibration.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [/opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:352: /opt/openFrameworks/addons/obj/linux64/Release/ofxChromaKeyShader/src/ofxChromaKeyShader.o] Error 1
make[1]: Leaving directory '/opt/openFrameworks/apps/d3cod3/Mosaic'
make: *** [/opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2
"make -j$NUMPU Release" command failed with exit code 2.

Here i think is posted similar issue https://forum.openframeworks.cc/t/cant-compile-ofxcv-examples-in-arch-of-nightly-build/30001

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Yeah, it seems that these are specific arch linux issues with opencv.
Which gcc comes with your arch version?

in terminal:

gcc --version

it needs to be gcc6 or later, if it's not, then you'll need to update it

Checked that, if the errors still appears, than i can't help you until i'll have a running virtual machine with your exact arch linux version (which one?).

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

i have gcc-8.3, I am trying to reinstall openframeworks I want to try with 0f-0.10.1 I was using the nightly build, because i had trouble running the of-0.10.1, I have asked the guys from openframeworks for help. If you want to run a virtual machine with my specs here they are for codecs and dependencies

warning: mpg123-1.25.10-1 is up to date -- skipping
warning: gst-plugins-ugly-1.16.0-1 is up to date
warning: pkgconf-1.6.1-1 is up to date -- skipping
warning: gcc-8.3.0-1 is up to date -- skipping
warning: openal-1.19.1-2 is up to date -- skipping
warning: glew-2.1.0-1 is up to date -- skipping
warning: freeglut-3.0.0-2 is up to date -- skipping
warning: freeimage-3.18.0-2 is up to date -- skipping
warning: gstreamer-1.16.0-2 is up to date -- skipping
warning: gst-plugins-base-1.16.0-3 is up to date -- skipping
warning: gst-plugins-good-1.16.0-1 is up to date -- skipping
warning: gst-plugins-bad-1.16.0-2 is up to date -- skipping
warning: gst-libav-1.16.0-1 is up to date -- skipping
warning: opencv-4.1.0-2 is up to date -- skipping
warning: libxcursor-1.2.0-1 is up to date -- skipping
warning: assimp-4.1.0-1 is up to date -- skipping
warning: boost-1.69.0-2 is up to date -- skipping
warning: glfw-x11-3.3-2 is up to date -- skipping
warning: uriparser-0.9.3-1 is up to date -- skipping
warning: curl-7.65.0-2 is up to date -- skipping
warning: pugixml-1.9-1 is up to date -- skipping
warning: rtaudio-5.1.0-1 is up to date -- skipping

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

ok, let's see if they can help with the issue

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

hi openframeworks 0.10.1 issue was resolved in nightly version so i can compile it, i tried compiling with the install script changing the install dir to / and folderName to of_v20190324_linux64gcc6_release, i even included the installation of poco. Since the nightly build doesnt have apothecary directory inside the scripts folder , i manually added them from the Of-0.10.1 Here is my error log

note: ‘glm::i16vec4’ {aka ‘struct glm::tvec4<short int, (glm::precision)0>’} declared here
struct tvec4
^~~~~
In file included from /of_v20190324_linux64gcc6_release/libs/glm/include/glm/./gtc/packing.hpp:579,
from /of_v20190324_linux64gcc6_release/libs/glm/include/glm/ext.hpp:48,
from /of_v20190324_linux64gcc6_release/libs/openFrameworks/math/ofVectorMath.h:21,
from /of_v20190324_linux64gcc6_release/libs/openFrameworks/ofMain.h:37,
from /of_v20190324_linux64gcc6_release/addons/ofxCv/libs/CLD/src/fdog.cpp:2:
/of_v20190324_linux64gcc6_release/libs/glm/include/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackHalf4x16(glm::uint64)’:
/of_v20190324_linux64gcc6_release/libs/glm/include/glm/./gtc/packing.inl:505:37: warning: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::i16vec4’ {aka ‘struct glm::tvec4<short int, (glm::precision)0>’} from an array of ‘glm::uint64’ {aka ‘long unsigned int’} [-Wclass-memaccess]
memcpy(&Unpack, &v, sizeof(Unpack));
^
In file included from /of_v20190324_linux64gcc6_release/libs/glm/include/glm/vec4.hpp:6,
from /of_v20190324_linux64gcc6_release/libs/openFrameworks/math/ofVec4f.h:8,
from /of_v20190324_linux64gcc6_release/libs/openFrameworks/math/ofVec3f.h:5,
from /of_v20190324_linux64gcc6_release/libs/openFrameworks/types/ofPoint.h:3,
from /of_v20190324_linux64gcc6_release/libs/openFrameworks/types/ofParameter.h:5,
from /of_v20190324_linux64gcc6_release/libs/openFrameworks/utils/ofJson.h:4,
from /of_v20190324_linux64gcc6_release/libs/openFrameworks/ofMain.h:21,
from /of_v20190324_linux64gcc6_release/addons/ofxCv/libs/CLD/src/fdog.cpp:2:
/of_v20190324_linux64gcc6_release/libs/glm/include/glm/detail/type_vec4.hpp:19:9: note: ‘glm::i16vec4’ {aka ‘struct glm::tvec4<short int, (glm::precision)0>’} declared here
struct tvec4
^~~~~
/of_v20190324_linux64gcc6_release/addons/ofxCv/libs/CLD/src/fdog.cpp: In function ‘void GetFlowDoG(ETF&, mymatrix&, mymatrix&, myvec&)’:
/of_v20190324_linux64gcc6_release/addons/ofxCv/libs/CLD/src/fdog.cpp:129:6: warning: unused variable ‘flow_DOG_sign’ [-Wunused-variable]
int flow_DOG_sign = 0;
^~~~~~~~~~~~~
/of_v20190324_linux64gcc6_release/addons/ofxCv/libs/CLD/src/fdog.cpp: In function ‘void GetFDoG(imatrix&, ETF&, double, double, double)’:
/of_v20190324_linux64gcc6_release/addons/ofxCv/libs/CLD/src/fdog.cpp:226:6: warning: variable ‘half_w1’ set but not used [-Wunused-but-set-variable]
int half_w1, half_w2, half_l;
^~~~~~~
/of_v20190324_linux64gcc6_release/addons/ofxCv/libs/CLD/src/fdog.cpp:226:15: warning: variable ‘half_w2’ set but not used [-Wunused-but-set-variable]
int half_w1, half_w2, half_l;
^~~~~~~
/of_v20190324_linux64gcc6_release/addons/ofxCv/libs/CLD/src/fdog.cpp:226:24: warning: variable ‘half_l’ set but not used [-Wunused-but-set-variable]
int half_w1, half_w2, half_l;
^~~~~~
/of_v20190324_linux64gcc6_release/addons/ofxCv/libs/CLD/src/fdog.cpp: In function ‘void GaussSmoothSep(imatrix&, double)’:
/of_v20190324_linux64gcc6_release/addons/ofxCv/libs/CLD/src/fdog.cpp:249:6: warning: unused variable ‘MAX_GRADIENT’ [-Wunused-variable]
int MAX_GRADIENT = -1;
^~~~~~~~~~~~
make[1]: Leaving directory '/of_v20190324_linux64gcc6_release/apps/d3cod3/Mosaic'
make: *** [/of_v20190324_linux64gcc6_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2
"make -j$NUMPU Release" command failed with exit code 2.

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Have you tried to compile of library first? Does it compile fine?

cd scripts/linux/compileOF.sh

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

yes it does, even your scripts compiles the library but only on the nightly build.

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Ok, i have deleted the copy of the script you posted, your change was ok

and now, in the last error log you posted there was only warnings listed, i couldn't find an error line to localize de real problem, could you please search for the lines with "error:" text and paste them here?

from mosaic.

rdtor avatar rdtor commented on July 28, 2024

Here is the error message for the above warning
/of_v20190324_linux64gcc6_release/addons/ofxFaceTracker/libs/FaceTracker/include/FaceTracker/IO.h:42:10: fatal error: opencv/cv.h: No such file or directory
#include <opencv/cv.h>
^~~~~~~~~~~~~

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

I'm closing this one, as it seem without doubts that is a specific openFrameworks issue with Arch Linux

from mosaic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.