![]() |
[GUIDE] Ubuntu repository - maintained by djcj - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html) +--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html) +--- Thread: [GUIDE] Ubuntu repository - maintained by djcj (/thread-18.html) |
RE: Ubuntu repository - maintained by djcj - Selur - 13.07.2019 Okay, Ubuntu 19.04 required: sudo dpkg --add-architecture i386 Cu Selur Ps.: now, I see your posts about it. ![]() RE: Ubuntu repository - maintained by djcj - Selur - 13.07.2019 About Vapoursynth: I'm not sure installing it to ~/vapoursynth is such a good idea. I guess for both the Hybrid and Vapoursynth a 'good' location should be /opt/hybrid and /opt/vapoursynth. What do you think? (or /usr/share/hybrid and /usr/share/vapoursynth or ~/bin/hybrid and ~/bin/vapoursynth) Small correction: shouldn't be: git clone --depth=1 https://github.com/Selur/VapoursynthScriptsInHybrid vsfilters git clone --depth=1 https://github.com/Selur/VapoursynthScriptsInHybrid vsscripts Cu Selur RE: Ubuntu repository - maintained by djcj - djcj - 13.07.2019 About the compression thing... you can simply change the script to use the directory name "hybrid" instead of "deploy" and just add the compression command at the end. Modify the script to your needs. By the way I hope you're not planning to use Ubuntu 19.04 as your default build system, because that would mean most of the binaries you build will not work on older Ubuntu versions. You should better keep 16.04 as your build system. In fact, the linuxdeploy guys even recommend using Ubuntu 14.04. RE: Ubuntu repository - maintained by djcj - Selur - 13.07.2019 I plan to stick with 16.04 as build system until the LTS maintenance support runs out (iirc April 2021). I just used 19.04 since I haven't used it and new users might potentially use it. I mainly dropped 14.04 because of the lack of Qt5. ![]() Cu Selur RE: Ubuntu repository - maintained by djcj - Selur - 14.07.2019 ARGH,... sadly it seems like at least export PYTHONPATH="/home/selur/bin/vapoursynth/lib/python3.7/site-packages:$PYTHONPATH" Adjusting the process environment to: QT_ACCESSIBILITY=1 Starting vsViewer while PYTHONPATH is only set in the process environment of vsViewer results in 'Failed to initialize VapourSynth' when trying to start the preview. :/ Cu Selur RE: Ubuntu repository - maintained by djcj - djcj - 14.07.2019 If there's no other way you could rename vsViewer to vsViewer.real and create a shell script with the name vsViewer that sets PYTHONPATH and launches vsViewer.real. I can also change the build script to use program checkinstall to install vapoursynth globally. RE: Ubuntu repository - maintained by djcj - Selur - 14.07.2019 I'll play around with the idea, not sure whether this would cause other problems,.. RE: Ubuntu repository - maintained by djcj - Selur - 14.07.2019 Okay, seems to work, but I'm struggling with linux shell syntax: I thought that (vsViewer_withenv.sh): #!/bin/bash Problem is when I use, for example "/home/selur/bin/hybrid/vsViewer_withenv.sh" --preview-only "/home/selur/Schreibtisch/HybridTemp/tempPreviewVapoursynthFile10_53_36_442.vpy" --aspect 1 --matrix Rec709 --crop off#0#0#0#0 Quote:failed to open the file --preview-only Seems like the exec call at the end of the vsViewer_withenv.sh script is not totally correct. :/ Any idea how this should look to work properly? => think I got it with exec -l "$vsViewer" "$@" Cu Selur RE: Ubuntu repository - maintained by djcj - Selur - 14.07.2019 Would be nice if: a. the build-vapoursynth-ubuntu.sh will also create an executable 'vspipe_withenv.sh' next to vspipe with the following content: #!/bin/bash b. if build-vapoursynth-ubuntu.sh instead of installing vapoursynth to '$HOME/vapoursynth' would install to '$HOME/vapoursynth/bin' by default. c. the 'deploy.sh' script would also create a 'vsViewer_withenv.sh' next to vsViewer with the following content: #!/bin/bash Okay, so the general calling of vsViewer seems to work, problem now is the compilation&deployment of the Vapoursynth filters. Do you have a build script for the filters? Cu Selur Ps.: uploaded a package to https://selur.net/dev/linux/Hybrid_20190714.7z (includes vsViewer_withenv.sh and has an adjusted Hybrid which looks for vsViewer_withenv.sh next to the vsViewer binary and for vspipe_withenv.sh next to vspipe, both try to source ~/bin/vapoursynth/env.sh) RE: Ubuntu repository - maintained by djcj - djcj - 14.07.2019 Why not use "$HOME/.hybrid/vapoursynth" for the VS installation? I have "$HOME/bin" added to PATH and I try to avoid installing directories in there. The following script works for me: #!/bin/sh Running ./Hybrid/vsViewer_withenv.sh --preview-only filedoesntexist.vpy gives me an error about "filedoesntexist.vpy" being missing and not "--preview-only". By the way, now that I think about it I remember that you cannot set LD_LIBRARY_PATH in C/C++ using setenv() and then excpet the exec() functions to use that new path. But I can set a RUNPATH for the installed libraries, maybe that way vsViewer runs VS properly by only setting the PYTHONPATH. |