Comments (21)
Yes, I tried the prebuilt package. I ended up installing xwayland
and after that, the gyroflow starts!
from gyroflow.
Looks like your c++/clang is too old? I don't think it has anything to do with Qt version. Also, it says 6.5.3 in the path?
You shouldn't run cargo run
, you should use just run
from gyroflow.
just run
does the same thing as cargo run
on linux, at least if I understand the just
script properly. c++
is currently set to gcc-12.3
. If I manually switch out all the references to 6.5.3
for 6.7.0
, the failing command builds fine, so I don't think its an outdated toolchain issue.
I have no v6.5.3 installed on my system, so I don't know where it's pulling that number from...
from gyroflow.
just run
is not the same as cargo run
, the most important thing that it does is to set environment variables to point to correct dependencies versions (Qt, ffmpeg, OpenCV, mdk-sdk)
6.5.3 is nowhere in the sources, so it must be the qmake
in your PATH that causes it. Make sure you run just run
or set PATH
properly
from gyroflow.
I have also been running just run
with the same effect. Can you show me where just
configures the env vars? I only see
[no-cd]
run *param:
cargo run --release -- {{param}}
in _scripts/linux.just
. Maybe if I can get at the configured variables, I can figure out who is missetting them...I also don't have a qmake
on my system...
from gyroflow.
common.just
is included at the beginning which sets all the variables first, it's a very important step
did you run just install-deps
?
from gyroflow.
I am not on a debian-based system, so just install-deps
won't work for me (no apt-get
). I have all the required libraries already installed on my system, though I am now running into trouble with OpenCV...
Executing
OPENCV_CMAKE_NAME=OpenCV OPENCV_CMAKE_BIN=`which cmake` LIBCLANG_PATH=/usr/lib/llvm/17/lib64/ just run
seems to have no effect on the builds ability to find OpenCV, though if I run
OPENCV_CMAKE_NAME=OpenCV OPENCV_CMAKE_BIN=`which cmake` LIBCLANG_PATH=/usr/lib/llvm/17/lib64/ cargo run --release
it finds OpenCV just fine, though I get a linking with cc failed: exit status 1
on a hugely long call to the linker.
from gyroflow.
I've made a little bit of progress. I installed OpenCV 4.8.0
via vcpkg
into gyroflow/ext
and now LIBCLANG_PATH=/usr/lib/llvm/17/lib64/ just run
terminates with
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng
which is strange because directly running
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld -lpng --verbose|grep libpng
shows attempt to open /lib64/libpng.so succeeded
, which means that that version of ld
is definitely capable of finding libpng
.
from gyroflow.
it would be the easiest to just replace apt
calls to your system package manager and leave everything else as is and use the just script. I takes care of all the proper environment variables, the Qt version, ffmpeg version and OpenCV version. (and none of these are debian-specific)
The apt
calls are very minimal, just install these packages your way and leave everything else to the just
script
from gyroflow.
I'm a bit confused...must of what is done in just install-deps
seems to be Debian specific, and just install-deps
should not leave any residual env vars set. So, given that I have all the packages installed that just install-deps
would install, running just run
should set up the env vars that you're talking about, right?
If you had the time to do a screen share, I could show you, and maybe you'd understand the issue.
from gyroflow.
I'm a bit confused...must of what is done in just install-deps seems to be Debian specific,
These are the only debian-specific lines:
sudo apt-get install -y p7zip-full python3-pip clang libclang-dev bison pkg-config gperf curl unzip zip git
sudo apt-get install -y libc++-dev libva-dev libvdpau-dev libvdpau1 mesa-va-drivers ocl-icd-opencl-dev opencl-headers
sudo apt-get install -y libpulse-dev libasound-dev libxkbcommon-dev
sudo apt-get install -y libfontconfig1 libfreetype6
Everything else is universal
and just install-deps should not leave any residual env vars set.
It doesn't, it installs all deps to the ext
folder
So, given that I have all the packages installed that just install-deps would install, running just run should set up the env vars that you're talking about, right?
Yes, but they have to be in the ext
folder, not on your system
from gyroflow.
I have followed your suggestion in a fresh clone of the repo. I commented out all the sudo apt-get
lines in linux.just
and ran just install-deps
followed by just run
. Since the build system could not find libclang.so
, I had to set LIBCLANG_PATH
, so the command I actually ran was:
LIBCLANG_PATH="/usr/lib/llvm/16/lib64" just run
I get an error when building gyroflow
:
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng
I have tried both GCC v12 and v13, as well as linking to libclang.so
v16 and v17.
Any ideas why it might be failing to resolve libpng (which is installed on my system, as I showed before...)
from gyroflow.
install libpng for your system
from gyroflow.
install libpng for your system
Like I said, libpng
is installed and recognized by ld
.
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld -lpng --verbose|grep libpng
attempt to open /lib64/libpng.so succeeded
/lib64/libpng.so
from gyroflow.
but you have the shared binary installed (.so). You need the static library for libpng - the libpng.a
file. On debian, these packages have the -dev
suffix
from gyroflow.
Thank you! Installing with static-libs
got past the -lpng
error :-).
There's a new one now, though...
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /home/albert/downloads/gyroflow2/target/release/build/qml-video-rs-600d545abebb22ba/out/mdk-sdk/lib/amd64//libmdk.so: undefined reference to `std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(char const*, unsigned long)'
I checked and libmdk.so.0
is in that folder.
from gyroflow.
this error indicates some mismatch in c++ standard library, possibly because of different clang versions used? Try cargo clean
and just run
again
from gyroflow.
cargo clean
didn't help, but it turned out I needed to install Gentoo's sys-libs/libcxx
. Now there's progress! I get the message
warning: libwayland-client.so.0, needed by /home/albert/downloads/gyroflow2/target/release/build/qml-video-rs-600d545abebb22ba/out/mdk-sdk/lib/amd64//libmdk.so, not found
The entire reason I am trying to build this package myself is because the AppImage fails due to me no having Wayland. Is there a way to build without wayland?
from gyroflow.
This looks like a warning, are you sure it's that message that's stopping your build? Wayland shouldn't required. Also, did you try the prebuilt .tar.gz package from the website?
from gyroflow.
I'm going to try to produce a Gentoo ebuild
for gyrflow. Hopefully this thread can be useful to some others.
Do you think I should recreate the steps in the just install-deps
steps, or can install-deps
be made to separate out the apt-get
commands from the others?
from gyroflow.
it'd be better to add an if
to the debian specific lines and add gentoo-specific lines there
from gyroflow.
Related Issues (20)
- Does an extension tube affect lens profile? HOT 5
- Video blank if gyro data is imported but not if just the video is imported and not the gyro data HOT 8
- Lens profile loading error with Insta360 Ace Pro footage HOT 1
- (Android build) Preview on S22 Ultra Android 14 does not play with videos 5min+ HOT 11
- Improve "Browse" feature HOT 1
- Inquiry Regarding Implementation Details of lock_horizon_angle Function in horizon.rs HOT 11
- Switching "Device for video processing" from OpenCL to wgpu, then back to OpenCL results in broken render HOT 1
- mkv file format not supported HOT 8
- Full Sony metadata support HOT 8
- ffmpeg error for the export HOT 9
- 2d Optical-flow stabalization HOT 3
- Export-Folderaccess for Render queue under MacOS HOT 3
- BRAW crashing when loading new file after successfully loaded another one HOT 1
- Trimm settings is not working correctly from created settings preset HOT 8
- Implement AI-based optical flow
- Automatic limit of lens profile radial distortion HOT 1
- Motion blur magic HOT 4
- Broken on Nobara Linux HOT 2
- smoothed gyro data or final applied rotation matrics for image stabilization HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gyroflow.