I am trying to add ffmpeg into my android project. I am using ubuntu 14.04 OS.

I am following this link. [Link](https://software.intel.com/en-us/android/blogs/2013/12/06/building-ffmpeg-for-android-on-x86)

But I am getting error while executing this line.

```
$ANDROID_NDK/build/tools/make-standalone-toolchain.sh --toolchain=x86-4.8 --arch=x86 --system=linux-x86_64 --platform=android-14 --install-dir=/tmp/vplayer

```

I am getting this following error.

```
HOST_OS=linux
HOST_EXE=
HOST_ARCH=x86_64
HOST_TAG=linux-x86_64
HOST_NUM_CPUS=1
BUILD_NUM_CPUS=2
ERROR: Unknown option '--system'. See --help for usage.

```

Please help me how to solve this issue and add ffmpeg into my project.
['https://Stackoverflow.com/questions/36443086', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3564344/']
**Yes**: CLion doesn't allow you to open multiple projects *from the menu* because it uses the *CMake* system, which is script based.

However, *CMake* is quite capable of encompassing multiple projects, and CLion will correctly parse your CMake file and show all relevant directories in the project explorer.

### Example

To do this, just like in Visual Studio, you need a parent "solution" and one or more child "projects".

Here is a simple CMake example in which "my\_solution" references two child projects, "my\_application" and "my\_library". Here, my three folders are arranged:

* `xxx/my_solution/CMakeLists.txt`
* `xxx/my_application/CMakeLists.txt`
* `xxx/my_library/CMakeLists.txt`

And `xxx/my_solution/CMakeLists.txt` simply reads:

```
cmake_minimum_required(VERSION 3.7)
project(my_solution)

add_subdirectory("${PROJECT_SOURCE_DIR}/../my_library" "${PROJECT_SOURCE_DIR}/my_library_output")
add_subdirectory("${PROJECT_SOURCE_DIR}/../my_application" "${PROJECT_SOURCE_DIR}/my_application_output")

```

Note that it *is* also permitted to put `my_application` and `my_library` *within* the `my_solution` directory, as in Visual Studio.
Adding some visual clues based on the answer from @c-z

This is how my project structure looking -
[![enter image description here](https://i.stack.imgur.com/2vF6D.png)](https://i.stack.imgur.com/2vF6D.png)

This is how my root level CMakeLists.txt is looking -
[![enter image description here](https://i.stack.imgur.com/GDQDT.png)](https://i.stack.imgur.com/GDQDT.png)

Finally, this is how my sub-directory level CMakeLists.txt is looking -
[![enter image description here](https://i.stack.imgur.com/5WqQb.png)](https://i.stack.imgur.com/5WqQb.png)

**NOTE:**
You may choose to remove the outer level main.cpp file (I've deleted it)
Also, you can remove the project level executable to remove it from the run configuration.