You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Updated Windows Build Instructions (markdown)
@@ -76,8 +76,8 @@ The following environment variables need to be added to your “System Variables
|
||||
### Example Variables
|
||||
|
||||
* LIBOPENSHOT_AUDIO_DIR (`C:\msys64\usr`)
|
||||
* SNDFILE_DIR (`C:\Program Files\libsndfile`)
|
||||
* UNITTEST_DIR (`C:\msys64\usr`)
|
||||
* RESVGDIR (`C:\msys64\usr`)
|
||||
|
||||
|
||||
## Obtaining Source Code
|
||||
@@ -190,7 +190,8 @@ pip3 install httplib2 tinys3 github3.py==0.9.6 requests
|
||||
git clone https://github.com/unittest-cpp/unittest-cpp.git
|
||||
cd unittest-cpp/builds
|
||||
cmake -G "MSYS Makefiles" -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_INSTALL_PREFIX:PATH=/usr ../
|
||||
mingw32-make install
|
||||
make
|
||||
make install
|
||||
```
|
||||
**NOTE: Be sure to create a `UNITTEST_DIR` system environment variable pointing to the install directory: `C:\msys64\usr`.**
|
||||
|
||||
@@ -221,11 +222,6 @@ cp capi/include/*.h /usr/include/resvg/
|
||||
* Download and Install the SDK Setup program. This is needed for the JUCE library to play audio on Windows.
|
||||
Create an environment variable called DXSDK_DIR and set the value to C:\Program Files\Microsoft DirectX SDK (June 2010)\ (your path might be different). This environment variable will be used by CMake to find the binaries and header files.
|
||||
|
||||
* ### libSndFile
|
||||
* http://www.mega-nerd.com/libsndfile/#Download
|
||||
* Download and Install the Win32 Setup program
|
||||
* Create an environment variable called SNDFILE_DIR and set the value to C:\Program Files\libsndfile. This environment variable will be used by CMake to find the binary and header files.
|
||||
|
||||
* ### ASIO SDK
|
||||
* https://www.steinberg.net/asiosdk
|
||||
* Download and extract to a folder
|
||||
@@ -239,7 +235,8 @@ cd [libopenshot-audio repo folder]
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "MSYS Makefiles" -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_INSTALL_PREFIX:PATH=/usr ../
|
||||
mingw32-make install
|
||||
make
|
||||
make install
|
||||
openshot-audio-test-sound (This should play a test sound)
|
||||
```
|
||||
**NOTE: Be sure to create a `LIBOPENSHOT_AUDIO_DIR` system environment variable pointing to the libopenshot-audio install directory: `C:\msys64\usr`.**
|
||||
@@ -252,7 +249,8 @@ cd [libopenshot repo folder]
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "MSYS Makefiles" -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_INSTALL_PREFIX:PATH=/usr ../
|
||||
mingw32-make install
|
||||
make
|
||||
make install
|
||||
```
|
||||
|
||||
If you are missing any dependencies for libopenshot, you will receive error messages at this point. Just install the missing dependencies, and run the above commands again. Repeat until no error messages are displayed and the build process completes.
|
||||
@@ -262,19 +260,19 @@ Also, if you are having trouble building, please see the CMake Flags section abo
|
||||
To run all unit tests (and verify everything is working correctly), launch a terminal, and enter:
|
||||
|
||||
```
|
||||
mingw32-make test
|
||||
make os-test
|
||||
```
|
||||
|
||||
To auto-generate the documentation for libopenshot, launch a terminal, and enter:
|
||||
|
||||
```
|
||||
mingw32-make doc
|
||||
make doc
|
||||
```
|
||||
|
||||
This will use doxygen to generate a folder of HTML files, with all classes and methods documented. The folder is located at build/doc/html/. Once libopenshot has been successfully built, we need to install it (i.e. copy it to the correct folder, so other libraries can find it).
|
||||
|
||||
```
|
||||
mingw32-make install
|
||||
make install
|
||||
```
|
||||
|
||||
This should copy the binary files to C:\Program Files\openshot\lib\, and the header files to C:\Program Files\openshot\include\... This is where other projects will look for the libopenshot files when building.. Python 3 bindings are also installed at this point. let's verify the python bindings work:
|
||||
|
||||
Reference in New Issue
Block a user