|
|
|
|
@ -152,14 +152,26 @@ of build dir:
|
|
|
|
|
make |
|
|
|
|
./src/MyApplication |
|
|
|
|
|
|
|
|
|
On Windows, if you don't want to touch the command-line, the easiest way is to |
|
|
|
|
open root `CMakeLists.txt` in QtCreator, let it import the project and then |
|
|
|
|
just build and run the application. If CMake isn't able to find the |
|
|
|
|
dependencies or the building fails for some reason, you might want to look at |
|
|
|
|
@ref building-windows-troubleshooting. |
|
|
|
|
|
|
|
|
|
If CMake complains about `GlutApplication` missing, you forgot to enable |
|
|
|
|
`WITH_GLUTAPPLICATION` when building %Magnum, @ref getting-started-download "go back and fix it". |
|
|
|
|
On Windows you can use either MinGW or MSVC 2013 compiler. It's then up to you |
|
|
|
|
whether you will use QtCreator or Visual Studio. With Visual Studio the most |
|
|
|
|
straightforward way to create the project file is via the command-line: |
|
|
|
|
|
|
|
|
|
mkdir build |
|
|
|
|
cd build |
|
|
|
|
cmake -DCMAKE_FIND_ROOT_PATH="C:/Sys" .. |
|
|
|
|
|
|
|
|
|
You can also use CMake GUI. Then open the `MyApplication.sln` project file |
|
|
|
|
generated by CMake in the build directory. |
|
|
|
|
|
|
|
|
|
With QtCreator just open project's root `CMakeLists.txt` file. It then asks you |
|
|
|
|
where to create build directory, allows you to specify initial CMake parameters |
|
|
|
|
(e.g. `CMAKE_FIND_ROOT_PATH`) and then you can just press *Configure* and |
|
|
|
|
everything is ready to be built. |
|
|
|
|
|
|
|
|
|
If CMake isn't able to find the dependencies on Windows, you might want to look |
|
|
|
|
at @ref building-windows. If CMake complains about `GlutApplication` missing, |
|
|
|
|
you forgot to enable `WITH_GLUTAPPLICATION` when building %Magnum, |
|
|
|
|
@ref getting-started-download "go back and fix it". |
|
|
|
|
|
|
|
|
|
@image html getting-started.png |
|
|
|
|
@image latex getting-started.png |
|
|
|
|
|