OpenShot / libopenshot

OpenShot Video Library (libopenshot) is a free, open-source project dedicated to delivering high quality video editing, animation, and playback solutions to the world. API currently supports C++, Python, and Ruby.
http://www.openshot.org
GNU Lesser General Public License v3.0
1.28k stars 276 forks source link

Need a little help building on Windows #944

Open HasseM opened 12 months ago

HasseM commented 12 months ago

I am following this guide to get libopensource working on Windows 64 bit: https://www.openshot.org/static/files/libopenshot/md__home_gitlab-runner_builds_d0022447_0_OpenShot_libopenshot_doc_INSTALL-WINDOWS.html

I am going down the rabbit hole and I am currently stuck at the following: "pacman -S mingw-w64-i686-python-pyopengl" gives: error: target not found: mingw-w64-x86_64-python3-pyopengl

I couldn't solve it, so I continued. No problems with all the Pip instyalls. But then at step 7) I get stuck again. I'm not sure were to find /MSYS2/[USER]/unittest-cpp-master/ and from were I should perform this step: cmd prompt? This msys64 prompt? Be noted that the Msys64 prompt does not understand cmake (-bash: cmake: command not found), so next step in 7 will also fail.

So I skipped again, who need unit tests?

So I jumped directly to the Windows Build Instructions a little lower to see what output I was getting so far. It seems that for the audio I need: -- Could NOT find ASIO (missing: ASIO_SDK_DIR) and Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR). Do these both come from the manual dependencies? This rabbit hole seems to go deeper and deeper.....

step 8: meson install -> Install data not found. Run this command in build directory root. Build seem to have gone okay though. just 2 warning: meson.build:404: WARNING: env is required to build documentation WARNING: Running the setup command as meson [options] instead of meson setup [options] is ambiguous and deprecated.

step 9: git checkout '4.3.0' -> error: pathspec ''4.3.0'' did not match any file(s) known to git

Meanwhile I am trying to get these manual depencies going:

johnhaire89 commented 4 months ago

I'm also struggling, but was using this version of the guide (not sure which is more recent but I think they're both out of date) https://github.com/OpenShot/libopenshot/wiki/Windows-Build-Instructions

I'm not sure were to find /MSYS2/[USER]/unittest-cpp-master/ and from were I should perform this step: cmd prompt? This msys64 prompt? I ran it from the home directory in the msys64 prompt. No idea if that's correct. Once I'd cloned the repo, I could cd into unittest-cpp-master

I got up to Step 8

Download Resvg (https://github.com/RazrFalcon/resvg) into /MSYS2/[USER]/resvg/

git clone https://github.com/RazrFalcon/resvg cd resvg/capi QT_DIR="C:\msys64\mingw64\" cargo build --verbose --release --features="qt-backend" OR QT_DIR="C:\msys32\mingw32\" cargo build --verbose --release --features="qt-backend"

cd ../

#copy all required files into the system directories cp target/release/resvg.dll /usr/lib/ mkdir -p /usr/include/resvg/ cp capi/include/*.h /usr/include/resvg/

It looks like cd resvg/capi and --features="qt-backend" are no longer relevant. That directory doesn't exist and from the ReSVG changelog

## [0.11.0] - 2020-07-04 ### Highlights

  • All backends except Skia were removed. Skia is the only official one from now.
  • New C API implementation.