Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofelia on Debian/buster #11

Open
umlaeute opened this issue Jun 19, 2019 · 10 comments
Open

ofelia on Debian/buster #11

umlaeute opened this issue Jun 19, 2019 · 10 comments

Comments

@umlaeute
Copy link

can we expect a binary release for Debian/buster?

the problem being, that the ofelia releases link to some outdated libraries (libglew2.0, libboost-filesystem1.65.1, libboost-system1.65.1), which are no longer available in Debian/buster.

afaict, this also affects users of Ubuntu/disco (19.04) and onwards.

(my filesystem is full of devtools, but i'm somewhat reluctant to install the full OF sdk for playing around)

@cuinjune
Copy link
Owner

@umlaeute I'm not sure at the moment but I can try building ofelia on Debian/buster after its stable release. Please leave a comment here again after this happens.

@umlaeute
Copy link
Author

buster has been released last saturday...

@salkin-mada
Copy link

salkin-mada commented Dec 8, 2019

running debian buster - swaywm - rt kernel
wanted to give ofelia a go today.
But I am not able to run any ofelia examples. Pd not so happy.

 ldd ofelia.pd_linux | grep not        
        libglfw.so.3 => not found
        libGLEW.so.2.0 => not found
        libboost_filesystem.so.1.65.1 => not found
        libboost_system.so.1.65.1 => not found
        liburiparser.so.1 => not found

sudo ./Pd/externals/ofelia/scripts/debian/install_dependencies.sh
is not solving my problem, i guess this is directly related to OP @umlaeute
debian buster is no longer using these outdated libraries.

I obtained ofelia by using the PD external getter.

is an ofelia update in the making or did i miss something?

@cuinjune
Copy link
Owner

cuinjune commented Dec 8, 2019

I think you need to build the external yourself.

https://forum.openframeworks.cc/t/rpi-4-raspbian-buster-openframeworks/32856/59

Install openFrameworks, download ofxOfelia_Linux

Unzip, rename(to ofxOfelia) and copy the folder to "OF/addons" folder.
cd to "ofxOfelia/LinuxExternal" directory and type make to build the external.
You will find the generated binary "ofelia.l_arm" inside "ofxOfelia/LinuxExternal/bin" folder.
Copy and replace it with the existing one in "Pd/externals/ofelia" folder.

@cuinjune
Copy link
Owner

cuinjune commented Dec 9, 2019

This is how I could build ofelia on Rapbian Buster.

Install openFrameworks 0.11.0 following the link in the above comment.

In ofxOfelia/libs/ofxLua/src/bindings/glmbindings.cpp,
comment out the following line:
#include <glm/gtc/functions.hpp>

Find and open config.make in both LinuxExample and LinuxExternal and then find and change
-Os to -O2

Now compile using make

I will apply these changes to Ofelia soon so it can work with OF 0.11.0

@salkin-mada
Copy link

Perfecto, thanks @cuinjune. Will try asap. And good to hear an update is in the making.

@umlaeute
Copy link
Author

thanks for the detailed instructions on how to build ofelia yourself.

but to re-ask my original question:

can we expect a binary release for Debian/buster?

😉

@ingox--
Copy link

ingox-- commented Apr 17, 2020

I could make Ofelia run on debian buster by changing in scripts/debian/install_dependencies.sh on line 40: libgles1-mesa-dev to libglvnd-dev

and then doing:
sudo ln -s libGLEW.so.2.1.0 libGLEW.so.2.0
sudo ln -s libboost_filesystem.so.1.67.0 libboost_filesystem.so.1.65.1
sudo ln -s libboost_system.so.1.67.0 libboost_system.so.1.65.1

After that it seems to work fine. :)

Thank you, @cuinjune!

@umlaeute
Copy link
Author

this way lies madness.

seriously, while your symlinks might make things work, they can severely break other applications.
after all, there's a very good reason why those dynamic libraries have their names changed.

(it might work for you alright; but the internet is full of awful advise that people blindly follow without having a clue what they are actually doing - rendering their systems unusable, and then claiming that "linux is just broken")

@ingox--
Copy link

ingox-- commented Apr 17, 2020

@umlaeute True. I reported this so the installation files could possibly be adapted to use the updated libraries. Then Ofelia could simply be installed via Deken and would work on Buster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants