-
Notifications
You must be signed in to change notification settings - Fork 23
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
Linux general compile issues #29
Comments
https://github.com/d3cod3/ofxPython uses |
Thanks @alcomposer i didn't have an install file for Arch Linux, as you can see here: https://gist.github.com/d3cod3 If you can kindly give me some more info about your OF install, we can try to write a specific script for Arch. Maybe we can start from the debian one as base? |
Here is the output of
|
Ok, that is probably related with this part of the install script: if [ ! -e /usr/lib/x86_64-linux-gnu/pkgconfig/python.pc ]; then
ln -s /usr/lib/x86_64-linux-gnu/pkgconfig/python-2.7.pc /usr/lib/x86_64-linux-gnu/pkgconfig/python.pc
fi That works on some of the other linux i've tested (ubuntu, debian and mint) While in fedora the path is another one: if [ ! -e /usr/lib64/pkgconfig/python.pc ]; then
ln -s /usr/lib64/pkgconfig/python-2.7.pc /usr/lib64/pkgconfig/python.pc
fi We need to check in Arch which is the correct path and the pre-existing .pc file name, maybe python2.pc? so the solution could be: ln -s /ARCH_PKG_CONFIG_PATH/python2.pc /ARCH_PKG_CONFIG_PATH/python.pc Then restore the |
Which install script? I'm just manually installing the add-ons & myApp Mosaic. Then after cd into Mosaic and make Release. |
Take a look here: https://gist.github.com/d3cod3/fbb76735554c3b38e811414d96fc28d6 before make, there are some things to do! |
Some info and patches here about compiling of 0.10 on Arch Linux: |
Ok, i'm writing a specific install script for Arch Linux, i'm testing it on a virtual machine, specifically on vagrant archlinux/archlinux box: https://app.vagrantup.com/archlinux/boxes/archlinux I'm having the most strange issue with the ofxImGui addon, that returns an error for using I have zero experience with arch linux, did you know something about this error? |
Hm, yeah- I added in an And, Considering that Arch is a rolling release it could be caused by a newer version of Cmake or other build stack software. I have installed openFrameworks from the AUR, and the examples build correctly. |
Ok, in order to build Mosaic, first we need to make all the addons dependencies compile first, i have installed openFrameworks from here: https://openframeworks.cc/versions/v0.11.0/of_v0.11.0_linux64gcc6_release.tar.gz i had to apply a couple of patches: https://aur.archlinux.org/cgit/aur.git/tree/make_4.3_error_fix.patch?h=openframeworks https://aur.archlinux.org/cgit/aur.git/tree/openal_fix.patch?h=openframeworks and then OF compiled and the examples too But here we are dealing with a lot of external addons, and it seems that something is going on with ofxImGui, so one step at the time, we need to solve this first. The struct WindowOpen
{
std::stack<std::vector<std::string>> usedNames;
std::shared_ptr<ofParameter<bool>> parameter;
bool value;
}; is a std::stack var and yet the compiler is not seeing it. I've made a fast search on the web about arch linux gcc compiler and this issue and i didn't find anything, let me know if you find something. In my arch virtual machine gcc -- version is returning: gcc 10.1.0 maybe we need to downgrade gcc to something between 7 and 9? in ubuntu 18.04 with gcc 7.5.0 and ubuntu 20.04 with gcc 9.3.0 is compiling without problems. I'll try tomorrow to install a lower gcc on arch and re-compile with it |
Ok I have it working without installing older libs:
|
Amazing! thank you for the info, i'll test it on the virtual machine and publish today an install script for Arch Linux! |
Arch linux auto install script: https://gist.github.com/d3cod3/46fb10b028d7210f54a6d408f7d5ad84 |
On Debian Bullseye using the Mosaic-Installer script:
From what I recall with OF is that this is caused by some addon. Bit tricky to find which one. |
HI, that must be related to this: https://aur.archlinux.org/cgit/aur.git/plain/make_4.3_error_fix.patch?h=openframeworks it is a patch for arch linux, already included in Mosaic installer, but activating only on arch right now! I'll check it with debian 11 and will modify the installer script, thanks for the info! |
I was able to install Release version using the script on Ubuntu 20.04, but neither audio, nor video worked reliably. Sound crashes almost instantly after I start connecting some signals if I use default pulsaudio driver and there is no option in UI to select other out. If I set any block with a video it just crashes. I'd like to contribute but it is been quite a while since I've done any c++ and of, so I'm not sure how that will go, but I was thinking to try to revamp the sound settings part and make it work with sound on linux and windows in the near future. |
Hi @anpin At the stage we are right now, just debugging and find bugs will be super helpful, depending on the OS, different situations happens ( hardware, drivers, codecs, memory management, etc.. ) and what happens on one distro doesn't happen on another one, so yes, just debugging and find specific OS related bugs will be amazing! @Daandelange is working on integrating Tracy Profiler #33 , but in the meantime it would be just fine to use gdb, just compile Mosaic debug: cd /opt/openframeworks/apps/d3cod3/Mosaic
make -j4 Debug and run it with gdb: cd bin/
gdb Mosaic_debug And if you feel to contribute to the code, we can open a specific issue related and working together on that, i will explain the current code about the specific issue and we'll start from that! Thanks again for your interest! |
Mosaic is now available in flathub!!! thanks to soma95 https://flathub.org/apps/details/org.d3cod3.Mosaic So for average linux users without technical background about compiling, code and terminal commands, this install method is highly recommended. |
No description provided.
The text was updated successfully, but these errors were encountered: