From 36c3428239e774b9684a5272cafd24045a3656a8 Mon Sep 17 00:00:00 2001 From: Thibault Lemaire Date: Sat, 5 Aug 2017 10:20:55 +0200 Subject: [PATCH] Smarter error message and build dependency --- BUILD.md | 2 +- SConstruct | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BUILD.md b/BUILD.md index c56511c4..313c8e18 100644 --- a/BUILD.md +++ b/BUILD.md @@ -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 ---------------- diff --git a/SConstruct b/SConstruct index d9abf853..0c3cb35f 100644 --- a/SConstruct +++ b/SConstruct @@ -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'])