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

build.sh documentation missing #129

Closed
seank-com opened this issue May 4, 2017 · 2 comments
Closed

build.sh documentation missing #129

seank-com opened this issue May 4, 2017 · 2 comments
Labels

Comments

@seank-com
Copy link

The build steps for the SDK say to use CMake but there is a build_all/Linux/build.sh script that seems to build. What is the purpose of this script? Are there two ways to build the SDK, should we ignore this script as it is only used internally? A build_all/README.md would be helpful to explain what the purpose of this set of folders is for.

@czyba
Copy link

czyba commented May 5, 2017

Hi @seank-com

For building the SDK it doesn't really matter which one you take. The build.sh script itself is simply a wrapper script for cmake. I believe the main reason for that scripts existence is that it's not trivial for someone to find out all possible SDK-defined cmake flags, i.e. how to enable/disable certain protocols and so on. Furthermore you can call build.sh --help in order to found out the usage of the script.

There is one major difference however. If you use the build.sh script, you cannot make install the libraries and sources. See this issue for more information. If you wish to install them in your system/sysroot you need to use cmake and build the four components separately and with the -Duse_installed_dependencies=ON argument when calling cmake.

As a sidenote, you could also just call cmake, go to the build directory and use the ccmake to see all the flags in an ncurses gui.

I hope this helps. Kind Regards,
Christopher Czyba

@tameraw
Copy link
Contributor

tameraw commented Jun 12, 2017

@czyba - Thanks for your helpful notes.
@seank-com - cmake should be used with the SDK. The build.sh have been a legacy way of building and are currently used internally for our build system. We intend to migrate away from those scripts and remove them from our repo in the future.

@tameraw tameraw closed this as completed Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants