Skip to content

Instantly share code, notes, and snippets.

@penguinus
Forked from bentongxyz/crossover-howtocompile.md
Last active April 9, 2020 08:24
Show Gist options
  • Save penguinus/627444d3c3ce96ae95a63f03aff8c4d9 to your computer and use it in GitHub Desktop.
Save penguinus/627444d3c3ce96ae95a63f03aff8c4d9 to your computer and use it in GitHub Desktop.
CodeWeavers CrossOver - How to compile from source! for macOS

How to compile codeweavers crossover from source

Support wine development by supporting Crossover.

Installing Dependencies

To install, you need following dependencies to be installed on your Mac machine.

  • Xcode developer tools (Command Line)
  • cmake
  • gcc or clang to compile c codes.
  • bison >= 3.0 (can be upgraded via homebrew)
  • xquartz
  • flex
  • mingw-w64
  • pkgconfig

(If more dependencies are found, the list will be updated)

Getting the Source

Go to CodeWeavers CrossOver FOSS version Source and download the source.

This guide is strictly for Compiling on Mac. use command tar -xzf whatever_the_filename_is.tar.gz to untar it.

Compiling LLVM

Go to llvm directory and create build directory with command mkdir build.

cd build to go there and run cmake ../ to configure build directory.
When cmake is done, you can run make to compile.
This will take a long time... Take your time and have a break.
(Build Time: 1h 25m 45s on 2018 Macbook Pro with intel Core i9 Processor)
now cd bin and add binaries to PATH via export PATH="$(pwd):$PATH".

Compiling Clang

Go to clang directory and create build directory with command mkdir build. (PATH setup from llvm required!!)

cd build to go there and run cmake ../ to configure build directory.
When cmake is done, you can run make to compile.
This will take some time... Take your time and have a break.
(Build Time: 34m 36s on 2018 Macbook Pro with intel Core i9 Processor)
now cd bin and add binaries to PATH via export PATH="$(pwd):$PATH".

Compiling Wine

The custom build of wine by codeweavers have special flag called --enable-win32on64.
Use that to when you setup with ./configure.

Use command CC="clang" CXX="clang++" ./configure --enable-win32on64 --disable-winedbg --without-x --without-vulkan --disable-mscms
Then compile with make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment