Giter Club home page Giter Club logo

Comments (9)

d3cod3 avatar d3cod3 commented on July 28, 2024

Hello there, sorry but the update_mosaic.sh was deprecated and i forget to delete it.
Right now, the same script you've used to install mosaic, can be used for update and re-compile, it will automatically detect that Mosaic is already installed and will just check/update/re-compile.

I've just deleted the deprecated gist, so no one will fall for the same!

Let me know if everything is working fine after the update.

from mosaic.

ferhoyo avatar ferhoyo commented on July 28, 2024

Hi
thanks for the reply.
I run install_mosaic_ubuntu.sh and I got exactly the same error
/opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed make: *** [Release] Error 2 "make -j$NUMPU Release" command failed with exit code 2.

Should I manually delete the previous installation?

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

No, don't delete the previous install.

First, did you run it with: ./install_mosaic_ubuntu.sh ?

Then, it seem like something related with the system threads available, try this in a command line:

nproc

It should return a number, this are the your system max threads (double the cores of your processor)

Is really awkward that the script worked for the install and is not working now!

If is still not working, you can try to hack the script, go to line 51, you will find this:

NPROC="$( nproc )"
NUMPU="1"
if [ $NPROC -gt "1" ]; then
    NUMPU="$( expr $NPROC / 2 )"
else
    NUMPU="1"
fi

change it like this:

#NPROC="$( nproc )"
#NUMPU="1"
#if [ $NPROC -gt "1" ]; then
#    NUMPU="$( expr $NPROC / 2 )"
#else
#   NUMPU="1"
#fi

NUMPU="1"

this will force to use only one thread for compiling.

Try this and let me know, in the meantime i will check on some other linux box.

from mosaic.

ferhoyo avatar ferhoyo commented on July 28, 2024

Hello again

Yes I did run the script with sudo ./install_mosaic_ubuntu.sh
The number of processes is 32 (nproc)
Procesador: Intel® Xeon(R) CPU E5-2620 v4 @ 2.10GHz × 32

I hacked the script as per your instructions and with 1 process I've got the same error:

/opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed make: *** [Release] Error 2 "make -j$NUMPU Release" command failed with exit code 2.

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Ok, let's try this then:

got to line 309, you'll find:

make -j$NUMPU Release

change that to:

make Release

or to use 8 threads for example:

make -j8 Release

This should silence your error.

In the meantime i'll investigate the issue...

from mosaic.

ferhoyo avatar ferhoyo commented on July 28, 2024

Hello

Changing the line 309 to make Release

I had this error

from /opt/openFrameworks/apps/d3cod3/Mosaic/src/ofApp.cpp:33: /opt/openFrameworks/addons/ofxVisualProgramming/src/objects/windowing/ProjectionMapping.h:37:10: fatal error: ofxMtlMapping2D.h: No existe el archivo o el directorio #include "ofxMtlMapping2D.h" ^~~~~~~~~~~~~~~~~~~ compilation terminated. /opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:215: recipe for target 'obj/linux64/Release/src/ofApp.o' failed make[1]: *** [obj/linux64/Release/src/ofApp.o] Error 1 make[1]: se sale del directorio '/opt/openFrameworks/apps/d3cod3/Mosaic' /opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed make: *** [Release] Error 2 "make Release" command failed with exit code 2.

Changing the line 309 to make -j8 Release

I have a different error:

Compiling Mosaic for Release make[1]: se entra en el directorio '/opt/openFrameworks/apps/d3cod3/Mosaic' HOST_OS=Linux checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123 with PKG_CONFIG_LIBDIR= make[1]: *** No hay ninguna regla para construir el objetivo '/opt/openFrameworks/addons/obj/linux64/Release/ofxMtlMapping2D/./src/ofApp.o', necesario para 'bin/Mosaic'. Alto. make[1]: *** Se espera a que terminen otras tareas.... make[1]: se sale del directorio '/opt/openFrameworks/apps/d3cod3/Mosaic' /opt/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed make: *** [Release] Error 2 "make -j8 Release" command failed with exit code 2.

from mosaic.

ferhoyo avatar ferhoyo commented on July 28, 2024

I've renamed /opt/openFrameworks to try a new installation and now it can't find librtaudio4

No se ha podido localizar el paquete librtaudio4 "apt install git curl wget libpython2.7-dev libcurl3 librtaudio4 libjack0 libjack-jackd2-dev" command failed with exit code 100.

I'm on Ubuntu 18.04

from mosaic.

d3cod3 avatar d3cod3 commented on July 28, 2024

Yes, it's the last addition for linux mint installation, i didn't check it, sorry!

Just change that line from

apt install git curl wget libpython2.7-dev libcurl3 librtaudio4 libjack0 libjack-jackd2-dev

to

apt install git curl wget libpython2.7-dev

Anyway, i've just fixed the ubuntu script and added a new specific one for linux mint.

And about the real error, it's the last addon addition i've made for the projection mapping object, i forgot to add it to the install/update script, i've just fixed all the scripts, do not rename and reinstall openframeworks, just download the ubuntu script again and test it.

Thank you for helping me with this!

from mosaic.

ferhoyo avatar ferhoyo commented on July 28, 2024

I did download the latest script and it worked great on my Ubuntu 18.04
Thanks a lot

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.