I was trying to compile and install shotcut to “$HOME/.local”. I use Debian.
=== MLT ===
The first problem I encountered, was that an MLT version newer then the official Debian repo has available. Then, I realized I would have to compile and install MLT to “$HOME/.local”.
In order to compile and install MLT, I checked it out from the Git repo. And followed the instructions. I had to install lots of development libraries. I did so until I got rid of all “No package xxx” messages.
This is the output of cmake .
:
– The following features have been enabled:
- GPLv2
- GPLv3
- Module: avformat
- Module: DeckLink
- Module: Frei0r
- Module: GDK
- Module: JACKRack
- Module: Kdenlive
- Module: Normalize
- Module: Oldfilm
- Module: Movit
- Module: Plus
- Module: PlusGPL
- Module: Qt
- Module: Resample
- Module: RtAudio
- Module: Rubberband
- Module: SDL1
- Module: SDL2
- Module: SoX
- Module: vid.stab
- Module: Vorbis
- Module: XINE
- Module: XML
– The following OPTIONAL packages have been found:
- JACK
- OpenGL
- Freetype
- Fontconfig
- Qt5Core
- Qt5Gui
- Qt5Xml
- Qt5Svg
- Qt5Widgets
- Qt5
- SWIG
– The following REQUIRED packages have been found:
- Threads
- PkgConfig
- X11
– The following features have been disabled:
- Tests
- Doxygen
- Module: NDI
- Module: OpenCV
- SWIG: C#
- SWIG: Java
- SWIG: Lua
- SWIG: Node.js
- SWIG: Perl
- SWIG: PHP
- SWIG: Python
- SWIG: Ruby
- SWIG: Tcl
– Configuring done
– Generating done
– Build files have been written to: /home/andre/repositorios/mlt
The only concern I have is SWIG: Python
not being enabled.
Then, I compiled and installed it to $HOME/.local
. I don’t remember the arguments I passed to cmake
to have it installed to this local directory.
=== Shotcut ===
The hard part was figuring out how qmake
works.
I ended up with this:
qmake -d “PREFIX=$HOME/.local/” “QMAKE_CFLAGS += -I $HOME/.local/include/mlt-7 -I $HOME/.local/include/mlt-7/mlt++” “QMAKE_CXXFLAGS += -I $HOME/.local/include/mlt-7 -I $HOME/.local/include/mlt-7/mlt++” “QMAKE_LFLAGS += -L $HOME/.local/lib” shotcut.pro
When I set up “include paths” the way I find “proper”, qmake gives lowest precedence to it . For that reason, I used things like
QMAKE_CXXFLAGS
.
Also, make install
does not work in the root directory, because the Makefile
target install_qmfiles
generated byqmake
does not respect the variable PREFIX
.
So, to install it, I just went to src/
and typed
$ make install
And IT WORKED!!!
=== Executing it ===
To execute it, I used
LD_LIBRARY_PATH="$HOME/.local/lib" “$HOME/.local/bin/shotcut”
And IT WORKED!!!
=== BUT… ===
Nothing appears on the timeline.
Not even the buttons. Only the word Timeline
and an empty widget. No buttons, no context menu…
The other widgets seem okay, though.
When I drag a clip from the playlist to the timeline, the console shows
[Debug ] TimelineDock::dragEnterEvent true
However, the mouse pointer becomes , and I cannot drop it. When I open an MLT file which already has things on the timeline, nothing appears on the timeline.
$ git pull
Already up to date.
What could it be? Any thoughts?