clementine-player / Clementine

:tangerine: Clementine Music Player
https://www.clementine-player.org/
GNU General Public License v3.0
3.72k stars 671 forks source link

[wiki] "Compiling from Source (Windows)" outdated #5656

Open fireandfuel opened 7 years ago

fireandfuel commented 7 years ago

I followed the wiki article to test my changes for the Windows build and found out the article is out of date.

Compiling the dependencies needs the following things installed:

The cmake command to configure the Windows build of clementine is wrong, it's /target/bin/protoc.exe and not /target/bin/protoc.

The correct command is:

    cmake .. \
    -DCMAKE_TOOLCHAIN_FILE=/src/Toolchain-mingw32.cmake \
    -DQT_HEADERS_DIR=/target/include \
    -DQT_LIBRARY_DIR=/target/bin \
    -DPROTOBUF_PROTOC_EXECUTABLE=/target/bin/protoc.exe

Wine needs to be reconfigured to build clementine, otherwise it won't find some libraries. ~/.wine/system.reg

[System\\CurrentControlSet\\Control\\Session Manager\\Environment]
"PATH"=str(2):"C:\\windows\\system32;C:\\windows;C:\\windows\\system32\\wbem;Z:\\src\\windows\\clementine-deps\\"

I try to build clementine and its dependencies on: Branch: master Host system for schroot: Arch Linux x64 (up to date)

jonaski commented 6 years ago

It uses mingw, not wine. I use mxe instead: http://mxe.cc/

fireandfuel commented 6 years ago

@jonaski You are right, mingw is the build environment, but if you have a look at Compiling form Source (Windows) wine is a build dependency. But it's still broken and needs to be updated. If you have a better way to build it, please update the wiki entry.