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

Update Ubuntu version #416

Merged
merged 2 commits into from
Apr 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions Compile.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,33 @@ Compiling Attract-Mode

Build instructions are set out by operating system below:

Linux, FreeBSD:
---------------
Linux, FreeBSD, Ubuntu:
----------------------

These instructions assume that you have the GNU C/C++ compilers and basic
build utilities (make, pkg-config, ar) on your system. This means the
"build-essential" and "pkg-config" packages on Debian or Ubuntu-based
distributions. Other distributions should have similar packages available.

1. Install the following *development* libraries on your system:
1. Install the following *development* libraries on your system [use sudo apt-get install xxx, where xxx should be replaced by the library name between brackets, eg. sudo apt-get install libsfml-dev]:
* Required:
- SFML SDK version 2.x (<http://sfml-dev.org>)
- OpenAL
- zlib
- FreeType 2
- The following FFmpeg libraries (required for videos): avformat,
avcodec, swscale, avutil and either swresample or avresample.
- OpenGL and GLU (or OpenGLES for GLES version)
- SFML SDK version 2.x (<http://sfml-dev.org>) [libsfml-dev]
- OpenAL [libopenal-dev]
- Zlib [zlib1g-dev]
- FreeType 2 [libfreetype6-dev]
- The following FFmpeg libraries (required for videos):
* avformat [libavformat-dev],
* avcodec [libavcodec-dev],
* swscale [libswscale-dev],
* avutil [libavutil-dev],
* swresample [libswresample-dev] or avresample [libavresample-dev].
- OpenGL and GLU (or OpenGLES for GLES version) [freeglut3-dev]
- JPEG library [libjpeg-dev]
- Make [make] and Package Config [pkg-config]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make is covered above:

These instructions assume that you have the GNU C/C++ compilers and basic
build utilities (make, pkg-config, ar) on your system. This means the build utilities (make, pkg-config, ar) on your system. This means the
"build-essential" and "pkg-config" packages on Debian or Ubuntu-based "build-essential" and "pkg-config" packages on Debian or Ubuntu-based
distributions. Other distributions should have similar packages available. distributions.

I did have to install pkg-config explicitly though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your comments.
When I tried to install AttractMode for the first time, I didn't quite understand the comment on make, pkg-config, ar. It was all new to me. I spend some time searching for librairies that I needed.
That's why I added [make] and [pkg-config], just in case ;-)

* Optional:
- Fontconfig (to assist with finding fonts).
- Xinerama (for multiple monitor support).
- libarchive (for .7z, .rar, .tar.gz and .tar.bz2 archive support).
- libarchive (for .7z, .rar, .tar.gz and .tar.bz2 archive support). [libarchive-dev]

2. Extract the Attract-Mode source to your system.

Expand Down Expand Up @@ -141,7 +147,7 @@ Windows (native compile):

2. Launch the MSYS2 shell and update the system:

pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime`
pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime

3. Close MSYS2 Shell, run it again and run the following command:

Expand Down