Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile instructions are now outdated... #538

Open
dabonetn opened this issue Jan 19, 2019 · 0 comments
Open

Compile instructions are now outdated... #538

dabonetn opened this issue Jan 19, 2019 · 0 comments

Comments

@dabonetn
Copy link

The page at http://attractmode.org/docs/Compile.html doesn't include the curl dependency for windows cross compiling.

Original


Windows (cross-compile):
The recommended way to build Windows binaries for Attract-Mode is to cross compile on an OS that supports MXE (http://mxe.cc) such as Linux, FreeBSD or OS X.

Follow the steps in the mxe tutorial to set up mxe on your system: http://mxe.cc/#tutorial

Make mxe's sfml, ffmpeg and libarchive packages:

make ffmpeg sfml libarchive
the above command will make 32-bit versions of ffmpeg and sfml (and anything else that they depend on). To make the 64-bit version use the following:

make MXE_TARGETS='x86_64-w64-mingw32.static' ffmpeg sfml
Extract the Attract-Mode source to your system.

From the directory you extracted the source into, run the following:

make -j 3 CROSS=1 TOOLCHAIN=i686-w64-mingw32.static WINDOWS_STATIC=1
to build the 32-bit version of Attract-Mode. To build 64-bit, run:

make -j 3 CROSS=1 TOOLCHAIN=x86_64-w64-mingw32.static WINDOWS_STATIC=1
This step will create the "attract.exe" executable file.

Copy the contents of the config directory from the Attract-Mode source directory and the executable you just built into the same directory on your Windows-based system, and you should be ready to go!

Should be..


Windows (cross-compile):
The recommended way to build Windows binaries for Attract-Mode is to cross compile on an OS that supports MXE (http://mxe.cc) such as Linux, FreeBSD or OS X.

Follow the steps in the mxe tutorial to set up mxe on your system: http://mxe.cc/#tutorial

Make mxe's sfml, ffmpeg libarchive and curl packages:

make ffmpeg sfml libarchive curl
the above command will make 32-bit versions of ffmpeg,sfml,libarchive and curl (and anything else that they depend on). To make the 64-bit version use the following:

make MXE_TARGETS='x86_64-w64-mingw32.static' ffmpeg sfml libarchive curl
Extract the Attract-Mode source to your system.

From the directory you extracted the source into, run the following:

make -j 3 CROSS=1 TOOLCHAIN=i686-w64-mingw32.static WINDOWS_STATIC=1 USE_LIBCURL=1
to build the 32-bit version of Attract-Mode. To build 64-bit, run:

make -j 3 CROSS=1 TOOLCHAIN=x86_64-w64-mingw32.static WINDOWS_STATIC=1 USE_LIBCURL=1
This step will create the "attract.exe" executable file.

Copy the contents of the config directory from the Attract-Mode source directory and the executable you just built into the same directory on your Windows-based system, and you should be ready to go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant