音视频开源项目shotcut源码编译

2023-05-16

(0)工具安装

  • 安装 msys2

  • 安装 fftw

    pacman -S mingw-w64-x86_64-fftw

  • 安装 pkg-config

    pacman -S mingw-w64-x86_64-pkg-config

(1)使用sdk 官网文档

  1. Download and install the following:
  • Qt Creator
  • Qt SDK version 5.15 MinGW
  • Shotcut SDK (2.3 GB current version 22.12.21)
    Extract it to C:\Projects
  1. Extract the Shotcut SDK .zip file to a new folder in C:\ named “Projects” (C:\Projects).
  2. In Qt Creator open C:\Projects\Shotcut\src\shotcut\CMakeLists.txt.
  3. In the Configure Project screen, select your previously configured Kit and click Configure Project: image.png
  4. Click Projects in the navigation bar on the left side of the Qt Creator window.
  • In the left column of the Shotcut project configuration click Build to show the Build Settings:
  • In Build Environment add environment variable PKG_CONFIG_PATH and set it to C:\Projects\Shotcut\lib\pkgconfig.
  • Prepend msys2 binary folders to environment variable Path: C:\msys64\usr\local\bin;C:\msys64\mingw64\bin;
  • In CMake > Current Configuration find CMAKE INSTALL_PREFIX and change its value to C:\Projects\Shotcut and click Run CMake.
  1. In the left column of the Shotcut project configuration click Run to show the Run Settings: image.png
  • In Run click Add… > Custom Executable;
    in Executable: enter “C:\Projects\Shotcut\shotcut.exe”: image.png
  1. After clicking Run (the green play button in bottom left of Qt Creator), you can confirm the newly built executable is the one that is running from the Help > About Shotcut… dialog: the version will be “adhoc”.

(2)Final Project

project.pngfinal.png

(3)Rebuilding Dependencies

The section above just gets you a working environment for the Shotcut code, but not any of its dependencies. Some of the dependencies included in the SDK with source code can be opened and used within Qt Creator - e.g., frei0r. Instructions for that are not yet included. In other cases you can use the Git Bash shell environment. Upon opening a Git Bash shell, enter (or add to ~/.profile and restart the shell):

export PATH="/c/Qt/x86_64-5.4.0-release-posix-seh-rt_v5-rev0/mingw64/bin:$PATH"
export QTDIR="c:/Qt/qt-5.9.7-x64-mingw540-seh"
export CC=gcc
export CXX=g++
export PKG_CONFIG_PATH="c:/Projects/Shotcut/lib/pkgconfig"
export CFLAGS="-Ic:/Projects/Shotcut/include -DHAVE_STRUCT_TIMESPEC"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-Lc:/Projects/Shotcut/lib -Lc:/Projects/Shotcut"
alias make=mingw32-make

For a project’s configure step, often you can supply the prefix as /c/Projects/Shotcut and make install will work as expected. However, sometimes you need to copy DLLs from bin/ or lib/ into /c/Projects/Shotcut where shotcut.exe resides.

When working with git repos from the SDK on Windows, it may helpful to issue git config core.fileMode false to prevent unchanged files from appearing in git status and git diff.

(4)Command Line Debugging

When using gdb at the command line to debug, using Ctrl+C to break execution will also exit the debugger. There is a program called breakgdb.exe (source) that can be used to break execution.

(5)cmake 配置截图

image.png

(6)运行报错解决方法

报错:Qt This application failed to start because no Qt platform plugin could be initialized
解决:将Qt目录下plugin文件夹中的platforms文件夹直接复制到项目.exe的运行目录下
image.png

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

音视频开源项目shotcut源码编译 的相关文章

  • Spring源码编译Java: 找不到符号 InstrumentationSavingAgent

    报错如下 xff1a 解决 xff1a 将spring context gradle文件的 下面这一行 br optional project 34 spring instrument 34 br 修改为 br compile projec
  • Qt 5.15的源码编译(Windows)

    前言 xff1a 在技术革新如此之快的时代 xff0c Qt也在为适应这些变化发生着重大的改变 又一长期 3年 支持版Qt 5 15 LTS在2020年3月发布 xff0c 重大更新的大版本Qt 6 0也在2020年12月发布 但是 xff
  • chromium for android 源码编译

    官方文档 https chromium googlesource com chromium src 43 master docs android build instructions md 准备 Ubuntu xff08 其他linux也可
  • 音视频开源项目shotcut源码编译

    xff08 0 xff09 工具安装 安装 msys2 安装 fftw pacman S mingw w64 x86 64 fftw 安装 pkg config pacman S mingw w64 x86 64 pkg config xf
  • ffmpeg源码编译

    编译 config配置 以下配置包含大部分需要使用的功能 configure prefix 61 pkg config flags 61 static enable shared enable pthreads enable version
  • Ceph 源码编译

    BUILD THE SOURCE FIRST TIME Ceph uses Python Sphinx which is generally distribution agnostic The first time you build Ce
  • 源码编译aerospike-server-3.6.4

    生产环境一直使用3 5 3这个版本 xff0c 和开发商量了一下 xff0c 在测试环境使用3 6 4搭建集群 xff0c 如果运行稳定就找机会将生产环境的集群升级 aerospike QQ群 xff1a 419183757 从github
  • ubuntu1804源码编译jdk8

    这里纯粹自己弄着玩 xff0c 因为以前没有成功过 xff0c 这里记录一下 xff0c 就是让遇到问题的人可以规避问题 xff0c 快速编译自己的jdk 相信很多学java的人都看过或者了解过一本书 深入理解java虚拟机 xff0c 里
  • OpenCV 源码编译 + cuda + cuDNN(未成功)

    目录 安装 cuda cuDNN1 1 安装 cuda1 2 安装 cuDNN 重新编译 OpenCV 测试安装结果3 1 添加配置项3 2 OpenCV cuda 测试结果 参考文章 前言 xff1a 上篇文章搭建 OpenCV 环境的时
  • Shotcut for Mac(视频编辑器)

    还没找到合适的视频编辑器吗 xff1f 小编推荐完全免费的Shotcut for Mac给大家 xff0c 这是一款跨平台的中文视频编辑器软件 拥有GPU加速 拖拽处理视频 视频特效滤镜等功能 xff0c 支持实时处理 xff0c 逐行 x
  • centos 源码编译 srpm centos-git-common

    Overview centos git common CentOS Git server
  • ORB_SLAM2--源码编译

    前言 学习ORB SLAM2 xff0c 从编译源码开始 ORB SLAM2的github地址 https github com raulmur ORB SLAM2 一 准备工作 1 安装依赖库 sudo apt install cmake
  • 玩转AOSP源码编译

    整理搬运一下大佬的文章 https www bilibili com video BV19f4y1r7E6 http liuwangshu cn batcoder aosp 3 compiling aosp html 1 前言 1 1 re
  • 编译android版本llvm编译器

    编译android版本llvm编译器 准备 编译环境 ubuntu 20 04 2 编译器版本 ndk 24 0 8215888 llvm版本 15 0 7 最近需要在android上编译C 项目 需要在android上使用arm版本的编译
  • [cmake命令笔记]target_compile_options

    编译basalt时碰到这个命令 basalt使用的第三方库pangolin老是报错 CMake Error at thirdparty CMakeLists txt 67 target compile options Cannot spec
  • 最新Tesseract-OCR源码编译1——leptonica编译

    上次写了Tesseract OCR 3 02命令行程序的简单使用 同时官网上给出了3 02版本基于VS2008平台的编译工程 但对于最新源码只是说了在VS2015 3 05 和VS2013 3 04 的编译 还是英文的 且网上关于最新源码的
  • IDEA 导入Spring源码:找不到InstrumentationSavingAgent

    错误如下 Error 26 38 java 找不到符号 符号 类 InstrumentationSavingAgent 位置 程序包 org springframework instrument 解决方法 导入项目时选择 Use local
  • obj、gltf、glb、fbx、b3dm模型项目汇总

    网址 https github com einstein20050430 Fast Quadric Mesh Simplification 项目 Fast Quadric Mesh Simplification master 功能 有损压缩
  • window 7 平台上 MXNET 源码编译

    目的 本文主要描述怎么在windows上编译mxnet源码 得到可用的libmxnet dll和libmxnet lib文件 版本 mxnet x64 release CPU版 运行环境 windows 7 64bit visual stu
  • Mac系统编译Spring源码

    下载Spring源码 Spring源码托管在GitHub 点击进去之后 选择一个版本 然后下载 下载完成后 解压压缩包 然后打开spring framework 5 2 x gradle wrapper gradle wrapper pro

随机推荐