diff --git a/CMakeLists.txt b/CMakeLists.txt index b437bae29..e63685b61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,8 +96,7 @@ list(APPEND APP_OPTIONS "-DENABLE_OPUS=${ENABLE_OPUS}") if(ENABLE_V4L) list(APPEND APP_OPTIONS "-DENABLE_V4L=${ENABLE_V4L}") endif() - -list(APPEND APP_OPTIONS "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}") + list(APPEND APP_OPTIONS "-DLINPHONE_OUTPUT_DIR=${LINPHONE_OUTPUT_DIR}") include(ExternalProject) diff --git a/README.md b/README.md index f6a27d55f..c574127ca 100644 --- a/README.md +++ b/README.md @@ -66,9 +66,9 @@ The build is done by building the SDK, the submodule Minizip and the application 1. Create your build folder at the root of the project : `mkdir build-desktop` Go to this new folder and begin the build process : `cd build-desktop` -2. Prepare your options : `cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo`. By default, it will try compile all needed dependencies. You can remove some by adding `-DENABLE_=NO` to the command. You can use `cmake-gui ..` if you want to have a better access to them. +2. Prepare your options : `cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo`. By default, it will try compile all needed dependencies. You can remove some by adding `-DENABLE_=NO` to the command. You can use `cmake-gui ..` if you want to have a better access to them. You can add `-DCMAKE_BUILD_PARALLEL_LEVEL=10` to do 10 parallel builds for speeding up the process. If it doesn't seem to work then it will be better to use CMake >= 3.12 -3. Build and install the whole project : `cmake --build . --target install --config RelWithDebInfo`. You can add `--parallel 10` to 10 parallel builds for speeding up the process if you have CMake>3.12. +3. Build and install the whole project : `cmake --build . --target all` or `cmake --build . --target ALL_BUILD` on Windows. It is important to set the config in the process or you can have a bad configuration for your binary that could lead to some corruption : on Windows, this issue is spotted when trying to start the application and an empty file with a random name is created. So, if you are working on an IDE (like Qt Creator), you may override the build command. @@ -76,7 +76,7 @@ When all are over, the files will be in the OUTPUT folder in the build directory 4. When doing some modifications in the SDK, you can rebuild only the sdk with the target `sdk` -5. For doing a package for specific platform, you can use `package` as target. This is only supported yet for Mac and Windows. +5. In order to get packages, you can use `cmake .. -DENABLE_APP_PACKAGING=YES`. The files will be in `OUTPUT/packages` folder. #### General Troubleshooting