BDLDev / bdlauncher

BedRockServer launcher with mods support
Other
123 stars 34 forks source link

怎么编译那,编译之后显示这个 #42

Closed China-GWY closed 4 years ago

China-GWY commented 4 years ago

image 这个怎么处理,希望发官方教程,谢谢

KawaiiNahida commented 4 years ago

麻烦发一下mods/mod.list内容?

China-GWY commented 4 years ago

image

China-GWY commented 4 years ago

在上面,有cdk.so呀

China-GWY commented 4 years ago

就是编译之后加载不了

China-GWY commented 4 years ago

麻烦发一下mods/mod.list内容?

。。

KawaiiNahida commented 4 years ago

往后放放,把cdk放最后

China-GWY commented 4 years ago

往后放放,把cdk放最后

我去试试

KawaiiNahida commented 4 years ago

其他插件是最新的吗

China-GWY commented 4 years ago

China-GWY commented 4 years ago

其他插件是最新的吗

不是那个cdk.so是我用源码自己从新编译的,我想汉化

China-GWY commented 4 years ago

其他插件是最新的吗

换成原来的就好使,自己编译的就不行

KawaiiNahida commented 4 years ago

mod.list加载顺序不是原来的,如果自己编译的话试试全部编译(执行mod/all.sh)

China-GWY commented 4 years ago

mod.list加载顺序不是原来的,如果自己编译的话试试全部编译(执行mod/all.sh)

他说有一个指令不存在

China-GWY commented 4 years ago

mod.list加载顺序不是原来的,如果自己编译的话试试全部编译(执行mod/all.sh)

等会,我发图你看一下

China-GWY commented 4 years ago

gwy@host-192-168-0-237:~/c++_run/bdlauncher/mod$ ls all.sh base bear cdk chestShop cmdhelp custname DEPRECATED gui killbonus land libleveldb.a map money opti protect tpsinfo tptp transfer vars wtf gwy@host-192-168-0-237:~/c++_run/bdlauncher/mod$ all.sh all.sh: command not found gwy@host-192-168-0-237:~/c++_run/bdlauncher/mod$ ./all.sh In file included from /usr/include/c++/8/unordered_map:46, from main.cpp:10: /usr/include/c++/8/bits/hashtable.h: In instantiation of ‘class std::_Hashtable<InventorySource, std::pair<const InventorySource, std::vector >, std::allocator<std::pair<const InventorySource, std::vector > >, std::detail::_Select1st, std::equal_to, std::hash, std::detail::_Mod_range_hashing, std::detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::detail::_Hashtable_traits<true, false, true> >’: /usr/include/c++/8/bits/unordered_map.h:105:18: required from ‘class std::unordered_map<InventorySource, std::vector >’ main.cpp:345:17: required from here /usr/include/c++/8/bits/hashtable.h:195:21: error: static assertion failed: hash function must be invocable with an argument of key type static_assert(__is_invocable<const _H1&, const _Key&>{}, ^~~~~~~~~ main.cpp: In function ‘void async_log(const char, ...)’: main.cpp:73:10: warning: ignoring return value of ‘ssize_t write(int, const void, size_t)’, declared with attribute warn_unused_result [-Wunused-result] write(1,buf,s);


main.cpp:74:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
     write(logfd,buf,s);
     ~~~~~^~~~~~~~~~~~~
main.cpp: In function ‘void onJoin(ServerPlayer*)’:
main.cpp:534:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
     write(fd,inv.data(),inv.size());
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../base/base.h:9,
                 from main.cpp:18:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
         pread(fd,data,size,0);
         ~~~~~^~~~~~~~~~~~~~~~
In file included from main.cpp:23:
data.hpp:5: warning: "access" redefined
 #define access(ptr,type,off) (*((type*)(((uintptr_t)ptr)+off)))

In file included from main.cpp:9:
../../include/MC.h:29: note: this is the location of the previous definition
 #define access(ptr, type, off) (*((type *)(((uintptr_t)ptr) + off)))

In file included from main.cpp:23:
data.hpp: In function ‘void CHECK_AND_FIX_ALL()’:
data.hpp:410:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<std::pair<std::__cxx11::basic_string<char>, DataLand> >::size_type’ {aka ‘long unsigned int’} [-Wformat=]
     printf("[LAND/LCK] %d lands found!\n",lands.size());
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
data.hpp:431:12: warning: too many arguments for format [-Wformat-extra-args]
     printf("[LAND/LCK] Done land data fix!\n",lands.size());
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
data.hpp:407:11: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
     system("rm -r data_v2/land_old;mv data_v2/land data_v2/land_old");
     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function ‘void load()’:
main.cpp:349:13: warning: ignoring return value of ‘int link(const char*, const char*)’, declared with attribute warn_unused_result [-Wunused-result]
         link("data/land/land.db", "data/land/land.db.old");
         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../base/base.h:9,
                 from main.cpp:15:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
         pread(fd,data,size,0);
         ~~~~~^~~~~~~~~~~~~~~~
In file included from ../base/base.h:9,
                 from main.cpp:9:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
         pread(fd,data,size,0);
         ~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function ‘void load()’:
main.cpp:49:13: warning: ignoring return value of ‘int link(const char*, const char*)’, declared with attribute warn_unused_result [-Wunused-result]
         link("data/money/money.db","data/money/money.db.old");
         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function ‘void load_warps_new()’:
main.cpp:149:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::__cxx11::list<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wformat=]
     printf("%d warps found\n",warp_list.size());
            ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
In file included from ../base/base.h:9,
                 from main.cpp:14:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
         pread(fd,data,size,0);
         ~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function ‘void load()’:
main.cpp:184:13: warning: ignoring return value of ‘int link(const char*, const char*)’, declared with attribute warn_unused_result [-Wunused-result]
         link("data/tp/tp.db","data/tp/tp.db_old");
         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function ‘void async_log(const char*, ...)’:
main.cpp:31:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
     write(1,buf,s);
     ~~~~~^~~~~~~~~
main.cpp:32:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
     write(logfd,buf,s);
     ~~~~~^~~~~~~~~~~~~
In file included from ../base/base.h:9,
                 from main.cpp:3:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
         pread(fd,data,size,0);
         ~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function ‘void oncmd_runas(argVec&, const CommandOrigin&, CommandOutput&)’:
main.cpp:208:30: warning: narrowing conversion of ‘ptr’ from ‘int’ to ‘std::basic_string_view<char>::size_type’ {aka ‘long unsigned int’} inside { } [-Wnarrowing]
         runcmdAs({buf,ptr},sp).isSuccess()?outp.success():outp.error("error");
                              ^
In file included from ../base/base.h:9,
                 from main.cpp:3:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
         pread(fd,data,size,0);
         ~~~~~^~~~~~~~~~~~~~~~
In file included from ../base/base.h:9,
                 from main.cpp:5:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
         pread(fd,data,size,0);
         ~~~~~^~~~~~~~~~~~~~~~
China-GWY commented 4 years ago

mod.list加载顺序不是原来的,如果自己编译的话试试全部编译(执行mod/all.sh)

就提示这一大堆,哎

ghost commented 4 years ago

g++ 9 required

China-GWY commented 4 years ago

需要g ++ 9

非常感谢我去试试

China-GWY commented 4 years ago

需要g ++ 9

不对呀,好像没有g++9