2012-07-08 04:41:14 +00:00
|
|
|
# What platforms are supported?
|
|
|
|
|
2013-11-23 19:01:34 +00:00
|
|
|
You should be able to compile Aseprite successfully on the following
|
2012-07-08 04:41:14 +00:00
|
|
|
platforms:
|
|
|
|
|
2014-08-13 03:37:27 +00:00
|
|
|
* Windows + MSVC 2012 + DirectX SDK
|
2014-08-14 03:41:30 +00:00
|
|
|
* Mac OS X 10.8 Mountain Lion + Xcode 5.1.1 + Mac OS X 10.4 SDK universal
|
|
|
|
* Linux + gcc with some C++11 support, this port is not compiled
|
|
|
|
regularly so you can expect some errors in the master branch.
|
2012-07-08 04:41:14 +00:00
|
|
|
|
2013-11-23 19:01:34 +00:00
|
|
|
# How can I compile Aseprite?
|
2012-07-08 04:41:14 +00:00
|
|
|
|
2014-08-14 03:41:30 +00:00
|
|
|
Aseprite uses the latest version of [CMake](http://www.cmake.org/)
|
|
|
|
(3.0) as its build system. You will not need any extra library
|
|
|
|
because the repository already contains the source code of all
|
|
|
|
dependencies, even a modified version of the Allegro library is
|
|
|
|
included in master branch.
|
2013-11-23 19:32:13 +00:00
|
|
|
|
2013-11-23 19:01:34 +00:00
|
|
|
The following are the steps to compile Aseprite (in this case we have
|
2012-07-08 04:41:14 +00:00
|
|
|
the source code in a directory called `aseprite-source`):
|
|
|
|
|
|
|
|
1. Make a build directory to leave all the files that are result of
|
|
|
|
the compilation process (`.exe`, `.lib`, `.obj`, `.a`, `.o`, etc).
|
|
|
|
|
2012-07-08 04:46:51 +00:00
|
|
|
C:\...\>cd aseprite-source
|
|
|
|
C:\...\aseprite-source>mkdir build
|
2012-07-08 04:41:14 +00:00
|
|
|
|
2013-11-23 19:01:34 +00:00
|
|
|
In this way, if you want to start with a fresh copy of Aseprite
|
2012-07-08 04:41:14 +00:00
|
|
|
source code, you can remove the `build` directory and start again.
|
|
|
|
|
|
|
|
2. Enter in the new directory and execute cmake giving to it
|
|
|
|
your compiler as generator:
|
|
|
|
|
2012-07-08 04:46:51 +00:00
|
|
|
C:\...\aseprite-source>cd build
|
2012-07-08 04:41:14 +00:00
|
|
|
|
|
|
|
If you have nmake (MSVC compilers):
|
|
|
|
|
2012-07-08 04:46:51 +00:00
|
|
|
C:\...\aseprite-source\build>cmake .. -G "NMake Makefiles"
|
2012-07-08 04:41:14 +00:00
|
|
|
|
|
|
|
If you have Visual Studio you can generate a solution:
|
|
|
|
|
2012-07-08 04:46:51 +00:00
|
|
|
C:\...\aseprite-source\build>cmake .. -G "Visual Studio 8 2005"
|
|
|
|
C:\...\aseprite-source\build>cmake .. -G "Visual Studio 9 2008"
|
|
|
|
C:\...\aseprite-source\build>cmake .. -G "Visual Studio 10"
|
2012-07-08 04:41:14 +00:00
|
|
|
|
|
|
|
If you are on Linux:
|
|
|
|
|
2012-07-08 04:46:51 +00:00
|
|
|
/.../aseprite-source/build$ cmake .. -G "Unix Makefiles"
|
2012-07-08 04:41:14 +00:00
|
|
|
|
|
|
|
If you have MinGW + MSYS:
|
|
|
|
|
2012-07-08 04:46:51 +00:00
|
|
|
C:\...\aseprite-source\build>cmake .. -G "MSYS Makefiles"
|
2012-07-08 04:41:14 +00:00
|
|
|
|
|
|
|
If you have MinGW + mingw-make:
|
|
|
|
|
2012-07-08 04:46:51 +00:00
|
|
|
C:\...\aseprite-source\build>cmake .. -G "MinGW Makefiles"
|
2012-07-08 04:41:14 +00:00
|
|
|
|
|
|
|
For more information in [CMake wiki](http://www.vtk.org/Wiki/CMake_Generator_Specific_Information).
|
|
|
|
|
|
|
|
3. After you have executed one of the `cmake .. -G <generator>`
|
|
|
|
commands, you have to compile the project executing make, nmake,
|
|
|
|
opening the solution, etc.
|
|
|
|
|
2013-11-23 19:01:34 +00:00
|
|
|
4. When the project is compiled, you can copy the resulting executable
|
|
|
|
file (e.g. `build/src/aseprite.exe`) to `aseprite-source` and
|
|
|
|
execute it. If you have used a Visual Studio project, you can copy
|
|
|
|
the whole `data/` directory to `build/src/RelWithDebInfo/` so you
|
|
|
|
can run/debug the program from Visual Studio IDE. On Linux, you can
|
|
|
|
copy the `data/` directory in `~/.aseprite/` directory.
|
2012-07-09 21:29:36 +00:00
|
|
|
|
2014-08-14 03:41:30 +00:00
|
|
|
## Mac OS X details
|
|
|
|
|
|
|
|
You need the old Mac OS X 10.4 SDK universal, which can be obtained
|
2014-08-21 04:02:11 +00:00
|
|
|
from Xcode 3.1 Developer Tools (Xcode 3.1 Developer DVD,
|
|
|
|
`xcode31_2199_developerdvd.dmg`). You can get it from Apple developer
|
2014-08-14 03:41:30 +00:00
|
|
|
website (you need to be registered):
|
|
|
|
|
|
|
|
https://developer.apple.com/downloads/
|
|
|
|
|
2014-08-21 04:02:11 +00:00
|
|
|
Inside the `Packages` folder, there is a MacOSX10.4.Universal.pkg,
|
|
|
|
install it (it will be installed in `/SDKs/MacOSX10.4u.sdk`), and run
|
|
|
|
cmake with the following parameters:
|
2014-08-14 03:41:30 +00:00
|
|
|
|
2014-08-20 02:13:15 +00:00
|
|
|
-DCMAKE_OSX_ARCHITECTURES:STRING=i386
|
2014-08-14 03:41:30 +00:00
|
|
|
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.4
|
|
|
|
-DCMAKE_OSX_SYSROOT:STRING=/SDKs/MacOSX10.4u.sdk
|
|
|
|
|
2013-11-23 19:32:13 +00:00
|
|
|
# How to use installed third party libraries?
|
|
|
|
|
|
|
|
If you don't want to use the embedded code of third party libraries
|
|
|
|
(i.e. to use your installed versions), you can disable static linking
|
|
|
|
configuring each `USE_SHARED_` option.
|
|
|
|
|
|
|
|
After running `cmake -G`, you edit `build/CMakeCache.txt` file, and
|
|
|
|
enable the `USE_SHARED_` flag (set its value to `ON`) of the library
|
|
|
|
that you want to be linked dynamically.
|
|
|
|
|
2013-11-23 19:01:34 +00:00
|
|
|
# How to profile Aseprite?
|
2012-07-09 21:29:36 +00:00
|
|
|
|
|
|
|
You must compile with `Profile` configuration. For example on Linux:
|
|
|
|
|
|
|
|
/.../aseprite-source/build$ cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:STRING=Profile -DCOMPILER_GCC:BOOL=ON
|