Skip to content

Commit

Permalink
Smarter error message and build dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultLemaire committed Aug 5, 2017
1 parent 5982d47 commit 36c3428
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This will build everything inside `third-party`. Once that is done, you can proc

To install the required dependencies on Debian Linux (Or Ubuntu), type the following command:

> sudo apt-get install scons python libssl-dev libcurl4-openssl-dev libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-filesystem-dev libboost-iostreams-dev g++
> sudo apt-get install scons python libssl-dev libcurl4-openssl-dev libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-filesystem-dev libboost-iostreams-dev build-essential
Building FreeLAN
----------------
Expand Down
4 changes: 3 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ class FreelanEnvironment(Environment):
raise SCons.Errors.BuildError(
errstr=(
"Failed to detect C++ compiler : CXX environment variable not set."
"\nIs g++ or clang++ available in your PATH ?"))
"\nIs g++ or clang++ available in your PATH ?"
"\nIf you have no idea what this is about,"
"\ntry installing the 'build-essential' package"))
else:
if os.path.basename(self['CXX']) == 'clang++':
self.Append(CXXFLAGS=['-Qunused-arguments'])
Expand Down

0 comments on commit 36c3428

Please sign in to comment.