Skip to content

Instantly share code, notes, and snippets.

@skrat
Created February 8, 2022 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skrat/a912edf303926896d2670c585c7f8c02 to your computer and use it in GitHub Desktop.
Save skrat/a912edf303926896d2670c585c7f8c02 to your computer and use it in GitHub Desktop.
~/D/gyroflow-1.0.0-rc1 45.5s $ cargo run --release
Compiling gyroflow v1.0.0-rc1 (/home/skrat/Downloads/gyroflow-1.0.0-rc1)
Compiling qml-video-rs v0.1.0 (https://github.com/AdrianEddy/qml-video-rs.git#09d68194)
The following warnings were emitted during compilation:
warning: In file included from src/qt_gpu/qrhi_undistort.rs:13:
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp: In member function ‘bool QtRHIUndistort::init(MDKPlayer*, QSize, QSizeF, QSize)’:
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:77:19: error: ‘class QRhiTexture’ has no member named ‘create’
warning: 77 | m_texOut->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:81:27: error: ‘class QRhiBuffer’ has no member named ‘create’
warning: 81 | m_computeUniform->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:85:26: error: ‘class QRhiBuffer’ has no member named ‘create’
warning: 85 | m_computeParams->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:89:27: error: ‘class QRhiBuffer’ has no member named ‘create’
warning: 89 | m_featuresPixels->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:93:26: error: ‘class QRhiBuffer’ has no member named ‘create’
warning: 93 | m_optflowPixels->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:105:28: error: ‘class QRhiShaderResourceBindings’ has no member named ‘create’
warning: 105 | m_computeBindings->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:111:28: error: ‘class QRhiComputePipeline’ has no member named ‘create’
warning: 111 | m_computePipeline->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:119:25: error: ‘class QRhiBuffer’ has no member named ‘create’
warning: 119 | m_vertexBuffer->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:125:24: error: ‘class QRhiBuffer’ has no member named ‘create’
warning: 125 | m_indexBuffer->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:131:27: error: ‘class QRhiBuffer’ has no member named ‘create’
warning: 131 | m_drawingUniform->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:139:27: error: ‘class QRhiSampler’ has no member named ‘create’; did you mean ‘Greater’?
warning: 139 | m_drawingSampler->create();
warning: | ^~~~~~
warning: | Greater
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:147:16: error: ‘class QRhiShaderResourceBindings’ has no member named ‘create’
warning: 147 | m_srb->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:166:21: error: ‘class QRhiGraphicsPipeline’ has no member named ‘create’; did you mean ‘Greater’?
warning: 166 | m_pipeline->create();
warning: | ^~~~~~
warning: | Greater
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp: In member function ‘bool QtRHIUndistort::render(MDKPlayer*, double, int, const float*, int, float*, bool, float*, int, float*, int)’:
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:206:31: error: ‘class QRhiBuffer’ has no member named ‘create’
warning: 206 | m_featuresPixels->create();
warning: | ^~~~~~
warning: /home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:211:30: error: ‘class QRhiBuffer’ has no member named ‘create’
warning: 211 | m_optflowPixels->create();
warning: | ^~~~~~
warning: src/util.rs: In function ‘bool __cpp_closure_3749924654610161134_impl()’:
warning: src/util.rs:42:30: error: ‘graphicsApi’ is not a member of ‘QQuickWindow’
warning: 42 | return QQuickWindow::graphicsApi() == QSGRendererInterface::OpenGLRhi;
warning: | ^~~~~~~~~~~
error: failed to run custom build command for `gyroflow v1.0.0-rc1 (/home/skrat/Downloads/gyroflow-1.0.0-rc1)`
Caused by:
process didn't exit successfully: `/home/skrat/Downloads/gyroflow-1.0.0-rc1/target/release/build/gyroflow-818d549dc0fcca52/build-script-build` (exit status: 1)
--- stdout
cargo:rustc-link-search=/usr/lib
cargo:rustc-link-search=/home/skrat/Downloads/gyroflow-1.0.0-rc1/ext/ffmpeg-4.4-linux-clang-gpl-lite/lib/amd64
cargo:rustc-link-search=/home/skrat/Downloads/gyroflow-1.0.0-rc1/ext/ffmpeg-4.4-linux-clang-gpl-lite/lib
cargo:rustc-link-lib=static=z
cargo:rustc-link-lib=static=opencv_core
cargo:rustc-link-lib=static=opencv_calib3d
cargo:rustc-link-lib=static=opencv_features2d
cargo:rustc-link-lib=static=opencv_imgproc
cargo:rustc-link-lib=static=opencv_video
cargo:rustc-link-lib=static=opencv_flann
cargo:rustc-env=BUILD_TIME=3058
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-unknown-linux-gnu")
CXX_x86_64-unknown-linux-gnu = None
CXX_x86_64_unknown_linux_gnu = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-unknown-linux-gnu = None
CXXFLAGS_x86_64_unknown_linux_gnu = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
CXX_x86_64-unknown-linux-gnu = None
CXX_x86_64_unknown_linux_gnu = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-unknown-linux-gnu = None
CXXFLAGS_x86_64_unknown_linux_gnu = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
CXX_x86_64-unknown-linux-gnu = None
CXX_x86_64_unknown_linux_gnu = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-unknown-linux-gnu = None
CXXFLAGS_x86_64_unknown_linux_gnu = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
CXX_x86_64-unknown-linux-gnu = None
CXX_x86_64_unknown_linux_gnu = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-unknown-linux-gnu = None
CXXFLAGS_x86_64_unknown_linux_gnu = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/home/skrat/Downloads/gyroflow-1.0.0-rc1" "-I" "/usr/include/qt/QtCore" "-I" "/usr/include/qt/QtGui" "-I" "/usr/include/qt/QtQuick" "-I" "/usr/include/qt/QtQml" "-I" "/usr/include/qt/QtQuickControls2" "-I" "/usr/include/qt/QtCore/5.15.2" "-I" "/usr/include/qt/QtCore/5.15.2/QtCore" "-I" "/usr/include/qt/QtGui/5.15.2" "-I" "/usr/include/qt/QtGui/5.15.2/QtGui" "-I" "/usr/include/qt/QtQuick/5.15.2" "-I" "/usr/include/qt/QtQuick/5.15.2/QtQuick" "-I" "/usr/include/qt/QtQml/5.15.2" "-I" "/usr/include/qt/QtQml/5.15.2/QtQml" "-I" "/usr/include/qt" "-Wall" "-Wextra" "-std=c++17" "-o" "/home/skrat/Downloads/gyroflow-1.0.0-rc1/target/release/build/gyroflow-c4dd7442e05e6cf6/out/rust_cpp/cpp_closures.o" "-c" "/home/skrat/Downloads/gyroflow-1.0.0-rc1/target/release/build/gyroflow-c4dd7442e05e6cf6/out/rust_cpp/cpp_closures.cpp"
cargo:warning=In file included from src/qt_gpu/qrhi_undistort.rs:13:
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp: In member function ‘bool QtRHIUndistort::init(MDKPlayer*, QSize, QSizeF, QSize)’:
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:77:19: error: ‘class QRhiTexture’ has no member named ‘create’
cargo:warning= 77 | m_texOut->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:81:27: error: ‘class QRhiBuffer’ has no member named ‘create’
cargo:warning= 81 | m_computeUniform->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:85:26: error: ‘class QRhiBuffer’ has no member named ‘create’
cargo:warning= 85 | m_computeParams->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:89:27: error: ‘class QRhiBuffer’ has no member named ‘create’
cargo:warning= 89 | m_featuresPixels->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:93:26: error: ‘class QRhiBuffer’ has no member named ‘create’
cargo:warning= 93 | m_optflowPixels->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:105:28: error: ‘class QRhiShaderResourceBindings’ has no member named ‘create’
cargo:warning= 105 | m_computeBindings->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:111:28: error: ‘class QRhiComputePipeline’ has no member named ‘create’
cargo:warning= 111 | m_computePipeline->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:119:25: error: ‘class QRhiBuffer’ has no member named ‘create’
cargo:warning= 119 | m_vertexBuffer->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:125:24: error: ‘class QRhiBuffer’ has no member named ‘create’
cargo:warning= 125 | m_indexBuffer->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:131:27: error: ‘class QRhiBuffer’ has no member named ‘create’
cargo:warning= 131 | m_drawingUniform->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:139:27: error: ‘class QRhiSampler’ has no member named ‘create’; did you mean ‘Greater’?
cargo:warning= 139 | m_drawingSampler->create();
cargo:warning= | ^~~~~~
cargo:warning= | Greater
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:147:16: error: ‘class QRhiShaderResourceBindings’ has no member named ‘create’
cargo:warning= 147 | m_srb->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:166:21: error: ‘class QRhiGraphicsPipeline’ has no member named ‘create’; did you mean ‘Greater’?
cargo:warning= 166 | m_pipeline->create();
cargo:warning= | ^~~~~~
cargo:warning= | Greater
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp: In member function ‘bool QtRHIUndistort::render(MDKPlayer*, double, int, const float*, int, float*, bool, float*, int, float*, int)’:
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:206:31: error: ‘class QRhiBuffer’ has no member named ‘create’
cargo:warning= 206 | m_featuresPixels->create();
cargo:warning= | ^~~~~~
cargo:warning=/home/skrat/Downloads/gyroflow-1.0.0-rc1/src/qt_gpu/qrhi_undistort.cpp:211:30: error: ‘class QRhiBuffer’ has no member named ‘create’
cargo:warning= 211 | m_optflowPixels->create();
cargo:warning= | ^~~~~~
cargo:warning=src/util.rs: In function ‘bool __cpp_closure_3749924654610161134_impl()’:
cargo:warning=src/util.rs:42:30: error: ‘graphicsApi’ is not a member of ‘QQuickWindow’
cargo:warning= 42 | return QQuickWindow::graphicsApi() == QSGRendererInterface::OpenGLRhi;
cargo:warning= | ^~~~~~~~~~~
exit status: 1
--- stderr
error occurred: ToolExecError: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/home/skrat/Downloads/gyroflow-1.0.0-rc1" "-I" "/usr/include/qt/QtCore" "-I" "/usr/include/qt/QtGui" "-I" "/usr/include/qt/QtQuick" "-I" "/usr/include/qt/QtQml" "-I" "/usr/include/qt/QtQuickControls2" "-I" "/usr/include/qt/QtCore/5.15.2" "-I" "/usr/include/qt/QtCore/5.15.2/QtCore" "-I" "/usr/include/qt/QtGui/5.15.2" "-I" "/usr/include/qt/QtGui/5.15.2/QtGui" "-I" "/usr/include/qt/QtQuick/5.15.2" "-I" "/usr/include/qt/QtQuick/5.15.2/QtQuick" "-I" "/usr/include/qt/QtQml/5.15.2" "-I" "/usr/include/qt/QtQml/5.15.2/QtQml" "-I" "/usr/include/qt" "-Wall" "-Wextra" "-std=c++17" "-o" "/home/skrat/Downloads/gyroflow-1.0.0-rc1/target/release/build/gyroflow-c4dd7442e05e6cf6/out/rust_cpp/cpp_closures.o" "-c" "/home/skrat/Downloads/gyroflow-1.0.0-rc1/target/release/build/gyroflow-c4dd7442e05e6cf6/out/rust_cpp/cpp_closures.cpp" with args "c++" did not execute successfully (status code exit status: 1).
warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:
warning: In file included from src/video_player.rs:7:
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp: In member function ‘QSGTexture* VideoTextureNodePriv::createTexture(mdk::Player*, const QSize&)’:
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp:16:21: error: ‘class QRhiTexture’ has no member named ‘create’
warning: 16 | if (!m_texture->create()) {
warning: | ^~~~~~
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp:20:22: error: ‘class QRhiTexture’ has no member named ‘create’
warning: 20 | if (!m_texture2->create()) {
warning: | ^~~~~~
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp:40:16: error: ‘class QRhiTextureRenderTarget’ has no member named ‘create’
warning: 40 | if (!m_rt->create()) {
warning: | ^~~~~~
warning: In file included from /usr/include/qt/QtQuick/5.15.2/QtQuick/private/qsgrenderer_p.h:54,
warning: from /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.h:9,
warning: from src/video_player.rs:6:
warning: /usr/include/qt/QtQuick/qsgabstractrenderer.h:46:16: error: cast from ‘const void*’ to ‘uint’ {aka ‘unsigned int’} loses precision [-fpermissive]
warning: 46 | #define GLuint uint
warning: /usr/include/qt/QtQuick/qsgabstractrenderer.h:46:16: note: in definition of macro ‘GLuint’
warning: 46 | #define GLuint uint
warning: | ^~~~
warning: In file included from src/video_player.rs:7:
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp:57:24: error: ‘QNativeInterface’ has not been declared
warning: 57 | return QNativeInterface::QSGOpenGLTexture::fromNative(tex, m_window, size);
warning: | ^~~~~~~~~~~~~~~~
warning: In file included from src/video_player.rs:7:
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp:109:24: error: ‘QNativeInterface’ has not been declared
warning: 109 | return QNativeInterface::QSGVulkanTexture::fromNative(ra.rt, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, m_window, size);
warning: | ^~~~~~~~~~~~~~~~
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp: In member function ‘QImage VideoTextureNodePriv::toImage(bool)’:
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp:148:13: error: ‘class QImage’ has no member named ‘mirror’; did you mean ‘mirrored’?
warning: 148 | ret.mirror();
warning: | ^~~~~~
warning: | mirrored
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp: In member function ‘bool VideoTextureNodePriv::fromImage(const QImage&, bool)’:
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp:160:34: error: ‘class QImage’ has no member named ‘mirror’; did you mean ‘mirrored’?
warning: 160 | const_cast<QImage&>(img).mirror();
warning: | ^~~~~~
warning: | mirrored
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp: In member function ‘void VideoTextureNodePriv::releaseResources()’:
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp:175:15: error: ‘class QRhiTextureRenderTarget’ has no member named ‘destroy’
warning: 175 | m_rt->destroy();
warning: | ^~~~~~~
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp:180:17: error: ‘class QRhiRenderPassDescriptor’ has no member named ‘destroy’
warning: 180 | m_rtRp->destroy();
warning: | ^~~~~~~
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp:185:20: error: ‘class QRhiTexture’ has no member named ‘destroy’
warning: 185 | m_texture->destroy();
warning: | ^~~~~~~
warning: /home/skrat/.cargo/git/checkouts/qml-video-rs-a29d2c8701d704e5/09d6819/src/cpp/VideoTextureNode.cpp:190:21: error: ‘class QRhiTexture’ has no member named ‘destroy’
warning: 190 | m_texture2->destroy();
warning: | ^~~~~~~
error: build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment