Hi Arturo,
thanks for keeping up my hopes.
I.) Environment
Her my environment:
$ cat /etc/issue
Ubuntu 17.04
$ uname -a
Linux OFBox 4.10.0-32-generic #36-Ubuntu SMP Tue Aug 8 12:10:06 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ gcc --version
gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406
Copyright © 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ --version
g++ (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406
Copyright © 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
II.) Scripts
- git clone --recursive https://github.com/openframeworks/openFrameworks.git
- cd openFrameworks/
- Do not compile tvOS and gles.
emacs scripts/linux/buildAllExamples.sh:
Line 7, add tvOS and gles directory: if [ “$category” = “…/…/examples/android” -o “$category” = “…/…/examples/ios” -o “$category” = “…/…/examples/tvOS” -o “$category” = “…/…/examples/” ]; then
- ./scripts/linux/download_libs.sh
- cd scripts/linux/ubuntu
- sudo ./install_dependencies.sh
- sudo ./install_codecs.sh
- cd …
- g++ 6.3 does not like includes in namespace declarations.
emacs …/…/addons/ofxVectorGraphics/libs/CreEPS.cpp
move #includes to top outside the namespace declaration
- ./compileOF.sh
- ./compilePG.sh -> n (do not install anything for permissions of created files; just to be on the safe side)
- sudo ./compilePG.sh -> y (twice for installation; say explicitly “y” - there is no default in the script)
- cd …/… ($ which projectGenerator -> /usr/local/bin/projectGenerator)
- projectGenerator -r -o"." examples/
[ error ] Error parsing ofxPoco addon_config.mk
line 149: tvos:
sectionName unknown not recognized
All other projects are clean.
- cd scripts/linux/
- ./buildAllExamples.sh
III.) Comments
1.) The handish Emacs stuff is possibly PR material.
2.) Maybe we should set up several CI jobs for Linux taking into account the different versions.
3.) I am not sure whether the gles example project should be left out for Ubuntu. Looks like Raspberry Pi stuff to me.
IV.) Failed example project
One example did not compile. Not exaclty sure why. Template looks fine to me by just skimming over it. I deleted it. All other projects compiled nicely. Some warnings though every now and then.
./openFrameworks/examples/graphics/polylineBlobsExample/src/ofApp.cpp: In member function ‘virtual void ofApp::update()’:
./openFrameworks/examples/graphics/polylineBlobsExample/src/ofApp.cpp:42:46: error: no matching function for call to ‘ofPolyline_<glm::tvec3<float, (glm::precision)0u> >::addVertices(std::vector&)’
cur.addVertices(contourFinder.blobs[i].pts);
^
In file included from ./openFrameworks/libs/openFrameworks/graphics/ofPolyline.h:527:0,
from ./openFrameworks/libs/openFrameworks/gl/ofGLRenderer.h:3,
from ./openFrameworks/libs/openFrameworks/ofMain.h:48,
from ./openFrameworks/examples/graphics/polylineBlobsExample/src/ofApp.h:3,
from ./openFrameworks/examples/graphics/polylineBlobsExample/src/ofApp.cpp:1:
./openFrameworks/libs/openFrameworks/graphics/ofPolyline.inl:60:6: note: candidate: void ofPolyline_::addVertices(const std::vector&) [with T = glm::tvec3<float, (glm::precision)0u>]
void ofPolyline_::addVertices(const vector& verts) {
^~~~~~~~~~~~~~
./openFrameworks/libs/openFrameworks/graphics/ofPolyline.inl:60:6: note: no known conversion for argument 1 from ‘std::vector’ to ‘const std::vector<glm::tvec3<float, (glm::precision)0u>, std::allocator<glm::tvec3<float, (glm::precision)0u> > >&’
./openFrameworks/libs/openFrameworks/graphics/ofPolyline.inl:68:6: note: candidate: void ofPolyline_::addVertices(const T*, int) [with T = glm::tvec3<float, (glm::precision)0u>]
void ofPolyline_::addVertices(const T* verts, int numverts) {
^~~~~~~~~~~~~~
./openFrameworks/libs/openFrameworks/graphics/ofPolyline.inl:68:6: note: candidate expects 2 arguments, 1 provided
./openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:221: recipe for target ‘obj/linux64/Debug/src/ofApp.o’ failed
make[1]: *** [obj/linux64/Debug/src/ofApp.o] Error 1
make[1]: *** Waiting for unfinished jobs…
make[1]: Leaving directory ‘./openFrameworks/examples/graphics/polylineBlobsExample’
./openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:141: recipe for target ‘Debug’ failed
make: *** [Debug] Error 2
make: Leaving directory ‘./openFrameworks/examples/graphics/polylineBlobsExample’
error compiling …/…/examples/graphics/polylineBlobsExample
Sorry, posting is a bit longish.
Kind regards,
Hans-J.