[SOLVED] Compilation failure on centOS 7
#1
Hello,

I try to build cuberite on centos 7 but it failed on the cmake step with this error:

Code:
 --- Running cmake...
CMake Error: Error in cmake code at
/var/games/minecraft/cuberite/CMakeLists.txt:1:
Parse error.  Expected a command name, got unquoted argument with text "".
-- Configuring incomplete, errors occurred!


I don't know what to do. Please help me, you are my only hope Wink

Thanks in advance.
Reply
Thanks given by:
#2
Hi, welcome to the forums!

I assume you're using the compile.sh script, have you tried manually running cmake? From the cuberite folder, run:

Code:
mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
make

(from https://github.com/cuberite/cuberite/blo...reebsd-etc)
Reply
Thanks given by:
#3
Both solutions provide same result
Reply
Thanks given by:
#4
Hm, weird. On my system, CMakeLists has a weird unicode character as the first character, it could be that's what's throwing it off (but it works fine on my Ubuntu system) - maybe try deleting the first line (with nano or something) to get rid of the character.
Reply
Thanks given by:
#5
I remove all the comment section and the error still is here
Reply
Thanks given by:
#6
i found the problem the file aren't unix format so I dos2unix them and it's working thanks for your help
Reply
Thanks given by:
#7
That sounds like a mis-configured git client, normally it should checkout all files using the correct line-end format.
Reply
Thanks given by:
#8
(09-11-2017, 05:39 PM)xoft Wrote: That sounds like a mis-configured git client, normally it should checkout all files using the correct line-end format.

First, sorry for the long wait.

Secondly, the server was new and the git with centos 7 default configuration.
Reply
Thanks given by:
#9
Apparently dos2unix will also remove any UTF-8 BOM.  Maybe that's what cmake is choking on.
Reply
Thanks given by:
#10
(09-19-2017, 01:01 AM)peterbell10 Wrote: Apparently dos2unix will also remove any UTF-8 BOM.  Maybe that's what cmake is choking on.

i don't succeed to configure git to use linux end line format

Edit: Your BOM guess was right it's the real problem. Do you know how to remove it when i git pull ?
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)