Closed mad-student closed 6 years ago
You will need to run the build script inside the Sources
folder, not outside it. In other words, you should be doing this:
cd Sources
./build-linux64.sh
it also looks like no C++ compiler is installed
if you enter g++
on the commandline, what happens? if it's command not found, try sudo apt-get install build-essential
, which should install gcc, g++, make and some basic system headers
you'll also (at least) need the libsdl2-dev
package
I install packages that you said and also installed bison and also installed bison and flex (because thay was mentioned as required packages) run command "./build-linux64.sh" from Sources directory and got this:
Will build with 'make -j4' ... please edit this script if incorrect.
Maybe I don't have some other packages that needed for building binaries. I don't have much expiriece in Linux.
[ 0%] Generating ../Ecc/Scanner.cpp [ 0%] Generating ../Ecc/Parser.cpp, ../Ecc/Parser.hpp Ecc/Parser.y:1435 parser name defined to default :"parse" Ecc/Parser.y contains 86 shift/reduce conflicts and 1 reduce/reduce conflict. [ 0%] Generating ../Ecc/Parser.h Error copying file "Ecc/Parser.hpp" to "Ecc/Parser.h".
That is quite a strange copying error, since the file is generated right before the copying is supposed to take place.
Try and delete all of these files inside your Sources/Ecc/
folder if they exist:
Scanner.cpp
Parser.cpp
Parser.hpp
Parser.h
Then re-run ./build-linux64.sh
. Does it still show the same error?
Also may I know the version of flex and bison that you are using? (via flex --version
and bison --version
)
flex 2.6.4 bison (GNU Bison) 3.0.4 Also, sorry, I cheated a little and create 2 conversation at the same time: here and on fork from this engine by ptitSeb (https://github.com/ptitSeb/Serious-Engine/issues/3). Looks like it work fine. Thanks for the help - you are great, guys!
I started command Sources/build-linux64.sh and got this: Will build with 'make -j4' ... please edit this script if incorrect.
rm -rf cmake-build
mkdir cmake-build
cd cmake-build
cmake -DCMAKE_BUILD_TYPE=Debug .. CMake Error: The source directory "/Serious-Engine" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. Found CMakeLists.txt in "/Serious-Engine/Sources" and copy it to "/Serious-Engine".
After that restart command and got this: Will build with 'make -j4' ... please edit this script if incorrect.
rm -rf cmake-build
mkdir cmake-build
cd cmake-build
cmake -DCMAKE_BUILD_TYPE=Debug .. -- The C compiler identification is GNU 7.3.0 -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done CMake Error at CMakeLists.txt:2 (project): No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred! See also "/Serious-Engine/cmake-build/CMakeFiles/CMakeOutput.log". See also "/Serious-Engine/cmake-build/CMakeFiles/CMakeError.log".
Is there any possibility to fix that error? P.S. Sorry for my English. This language isn't native for me. I use Lubuntu 18.04 if this matter.