Stuck with getting Cuberite to compile on FreeBSD
#21
I meant a git branch containing a cmake exception that we can then merge with master once we know weather it works. I could then create a patch off the branch for testing.
Reply
Thanks given by:
#22
That sounds reasonable
Reply
Thanks given by:
#23
Sorry, have no time to use google translate Sad

I'm remove old file of SQLite (project use files 2007 year). Remove
Code:
lsqlite3.c
and any references to the file. Get new
Code:
sqlite3.c
sqlite3.h
and place it into lib/sqlite (Where I delete old files).
Add "-L ..." as I wrote earlier.
I'm do not known is it right, but sqlite build success and I get next error Smile
Code:
Scanning dependencies of target OSSupport
[ 45%] Building CXX object src/OSSupport/CMakeFiles/OSSupport.dir/CriticalSection.cpp.o
[ 45%] Building CXX object src/OSSupport/CMakeFiles/OSSupport.dir/Errors.cpp.o
/store1/minecraft/minecraft-test/cuberite/src/OSSupport/Errors.cpp:25:31: error: '_GNU_SOURCE' is not defined, evaluates to 0 [-Werror,-Wundef]
        #if !defined(__APPLE__) && ( _GNU_SOURCE) && !defined(ANDROID_NDK)  // GNU version of strerror_r()
                                     ^
1 error generated.
*** Error code 1

Stop.
make[2]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
*** Error code 1

Stop.
make[1]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
*** Error code 1

Stop.
make: stopped in /store1/minecraft/minecraft-test/cuberite/Release
Reply
Thanks given by:
#24
Which commit are you building? Because that issue was fixed in commit 5049fd0 6 months ago.
Reply
Thanks given by:
#25
Ok. I'm remove all from directory
and do:
Code:
git clone https://github.com/cuberite/cuberite.git
git fetch origin testing
git checkout testing
git merge origin/testing
git submodule update --init
mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j8

And get next error:
Code:
[ 56%] Building CXX object src/UI/CMakeFiles/UI.dir/EnchantingWindow.cpp.o
/store1/minecraft/minecraft-test/cuberite/lib/sqlite/sqlite3.c:23345:42: error: use of undeclared identifier 'fchmod'
  { "fchmod",       (sqlite3_syscall_ptr)fchmod,     0  },
                                         ^
/store1/minecraft/minecraft-test/cuberite/lib/sqlite/sqlite3.c:23392:22: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
    for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){
                     ^~~~~~~~~~
/store1/minecraft/minecraft-test/cuberite/lib/sqlite/sqlite3.c:23401:22: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
    for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){
                     ^~~~~~~~~~
/store1/minecraft/minecraft-test/cuberite/lib/sqlite/sqlite3.c:23428:20: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
  for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){
                   ^~~~~~~~~~
/store1/minecraft/minecraft-test/cuberite/lib/sqlite/sqlite3.c:23445:16: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
    for(i=0; i<ArraySize(aSyscall)-1; i++){
               ^~~~~~~~~~~~~~~~~~~
/store1/minecraft/minecraft-test/cuberite/lib/sqlite/sqlite3.c:8260:38: note: expanded from macro 'ArraySize'
#define ArraySize(X)    ((int)(sizeof(X)/sizeof(X[0])))
                                     ^~~
/store1/minecraft/minecraft-test/cuberite/lib/sqlite/sqlite3.c:23449:14: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
  for(i++; i<ArraySize(aSyscall); i++){
             ^~~~~~~~~~~~~~~~~~~
/store1/minecraft/minecraft-test/cuberite/lib/sqlite/sqlite3.c:8260:38: note: expanded from macro 'ArraySize'
#define ArraySize(X)    ((int)(sizeof(X)/sizeof(X[0])))
                                     ^~~
6 errors generated.
--- lib/sqlite/CMakeFiles/sqlite.dir/sqlite3.c.o ---
*** [lib/sqlite/CMakeFiles/sqlite.dir/sqlite3.c.o] Error code 1

make[2]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
1 error

make[2]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
--- lib/sqlite/CMakeFiles/sqlite.dir/all ---
*** [lib/sqlite/CMakeFiles/sqlite.dir/all] Error code 2

make[1]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
/store1/minecraft/minecraft-test/cuberite/src/Mobs/Guardian.cpp:29:34: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
        AddRandomDropItem(a_Drops, 0, 2 + LootingLevel, E_ITEM_PRISMARINE_SHARD);
        ~~~~~~~~~~~~~~~~~             ~~^~~~~~~~~~~~~~
/store1/minecraft/minecraft-test/cuberite/src/Mobs/Guardian.cpp:30:34: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
        AddRandomDropItem(a_Drops, 0, 1 + LootingLevel, E_ITEM_RAW_FISH);
        ~~~~~~~~~~~~~~~~~             ~~^~~~~~~~~~~~~~
/store1/minecraft/minecraft-test/cuberite/src/Mobs/Guardian.cpp:31:34: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
        AddRandomDropItem(a_Drops, 0, 1 + LootingLevel, E_ITEM_PRISMARINE_CRYSTALS);  // TODO: Prismarine Crystals only drop if the raw fish drop is 0
        ~~~~~~~~~~~~~~~~~             ~~^~~~~~~~~~~~~~
3 warnings generated.
A failure has been detected in another branch of the parallel make

make[2]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
--- src/Mobs/CMakeFiles/Mobs.dir/all ---
*** [src/Mobs/CMakeFiles/Mobs.dir/all] Error code 2

make[1]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
A failure has been detected in another branch of the parallel make

make[2]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
--- src/UI/CMakeFiles/UI.dir/all ---
*** [src/UI/CMakeFiles/UI.dir/all] Error code 2

make[1]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
A failure has been detected in another branch of the parallel make

make[2]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
--- src/Simulator/CMakeFiles/Simulator.dir/all ---
*** [src/Simulator/CMakeFiles/Simulator.dir/all] Error code 2

make[1]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
A failure has been detected in another branch of the parallel make

make[2]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
--- src/BlockEntities/CMakeFiles/BlockEntities.dir/all ---
*** [src/BlockEntities/CMakeFiles/BlockEntities.dir/all] Error code 2

make[1]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
5 errors

make[1]: stopped in /store1/minecraft/minecraft-test/cuberite/Release
*** [all] Error code 2

make: stopped in /store1/minecraft/minecraft-test/cuberite/Release
1 error

make: stopped in /store1/minecraft/minecraft-test/cuberite/Release

> git log:
Code:
commit fedbc9d162872c57b6149845867cc1f3c01b1375
Merge: d5f948b 2fc46f1
Author: Alexander Harkness <me@bearbin.net>
Date:   Sat May 30 17:32:24 2015 +0100

    Merge pull request #2176 from LogicParrot/testing
    
    Testing branch - Fixed syntax error
Reply
Thanks given by:
#26
Please us branch master not testing, this is months old.
Reply
Thanks given by: DrMasik
#27
(11-16-2015, 08:54 PM)Seadragon91 Wrote: Please us branch master not testing, this is months old.

I do says compile.sh Smile

---

I'll try and reply
Reply
Thanks given by:
#28
It's buld success
Code:
5 warnings generated.
[100%] Linking CXX executable ../../Server/Cuberite
[100%] Built target Cuberite

And server works fine. Thank you. I will test the server version on his players Smile
Reply
Thanks given by: Seadragon91
#29
This still doesn't work. Even after xoft submitted a fix. Is always says: "No way to define ev_uint" It's a LibEvent thing
Reply
Thanks given by:
#30
It compiles fine on my virtualboxed FreeBSD 10.2, I just tried. The server even seems to run fine, but I haven't had the chance to test a client connection yet.
Reply
Thanks given by:




Users browsing this thread: 9 Guest(s)