etorth / mir2x

open source MMORPG game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

编译流程出问题

marklove5102 opened this issue · comments

[ 62%] Building CXX object server/src/CMakeFiles/monoserver.dir/actormonitortable.cpp.o
In file included from /home/make/500GB/mir3.git.all/mir2x/server/src/podmonitortable.hpp:25,
                 from /home/make/500GB/mir3.git.all/build/server/src/podmonitorwindow.hpp:7,
                 from /home/make/500GB/mir3.git.all/mir2x/server/src/actormonitortable.cpp:27:
/home/make/500GB/mir3.git.all/mir2x/server/src/fltableimpl.hpp:21:10: 致命错误:Fl/Fl_Table_Row.H:没有那个文件或目录
   21 | #include <Fl/Fl_Table_Row.H>
      |          ^~~~~~~~~~~~~~~~~~~
编译中断。

查了下

fltk /usr/include/FL/Fl_Table_Row.H
...这cmake生成的文件看不明白。

+ #include <functional>

第二个错误。
In file included from /home/make/500GB/mir3.git.all/mir2x/client/src/client.hpp:25,
from /home/make/500GB/mir3.git.all/mir2x/client/src/itemlistboard.cpp:20:
/home/make/500GB/mir3.git.all/mir2x/client/src/netio.hpp:24:14: 错误:‘function’ in namespace ‘std’ does not name a template type
24 | std::function<void(uint8_t, const uint8_t *, size_t)> m_msgHandler;
| ^~~~~~~~
编译因为 -Wfatal-errors 而中止。
make[2]: *** [client/src/CMakeFiles/client.dir/build.make:636:client/src/CMakeFiles/client.dir/itemlistboard.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:1311:client/src/CMakeFiles/client.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....

how did you setup the fltk include path, and what's the version number of FLTK?
note Fl and FL are different, I rememeber it uses FLTK 1.3.4

linux dir name 大小写敏感
FL not Fl
fix L

[make@archlinux b]$ pacman -Qi fltk
名字 : fltk
版本 : 1.3.8-1
描述 : Graphical user interface toolkit for X
架构 : x86_64
URL : https://www.fltk.org/
软件许可 : custom:FLTK
组 : 无
提供 : libfltk_images.so=1.3-64 libfltk_gl.so=1.3-64 libfltk_forms.so=1.3-64 libfltk.so=1.3-64
依赖于 : gcc-libs glibc hicolor-icon-theme libfontconfig.so=1-64 libglvnd libjpeg-turbo libpng libx11 libxcursor libxext libxfixes libxft
libxinerama libxrender
可选依赖 : 无
依赖它 : 无
被可选依赖 : 无
与它冲突 : 无
取代 : 无
安装后大小 : 6.81 MiB
打包者 : David Runge dvzrv@archlinux.org
编译日期 : 2021年12月29日 星期三 00时14分33秒
安装日期 : 2022年05月31日 星期二 08时49分19秒
安装原因 : 单独指定安装
安装脚本 : 否
验证者 : 数字签名

错误

+ #include <cstddef>
In file included from /home/make/500GB/mir3.git.all/mir2x/server/src/serverbugbatmaggot.cpp:19:
/home/make/500GB/mir3.git.all/mir2x/common/src/sysconst.hpp:74:11: 错误:‘size_t’不是一个类型名
   74 | constexpr size_t SYS_IDSIZE = 64;
      |           ^~~~~~
编译因为 -Wfatal-errors 而中止。
make[2]: *** [server/src/CMakeFiles/monoserver.dir/build.make:643:server/src/CMakeFiles/monoserver.dir/serverbugbatmaggot.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:1284:server/src/CMakeFiles/monoserver.dir/all] 错误 2
make: *** [Makefile:156:all] 错误 2
[make@archlinux b]$ gcc -v
使用内建 specs。
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapper
目标:x86_64-pc-linux-gnu
配置为:/build/gcc/src/gcc/configure --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror --with-build-config=bootstrap-lto --enable-link-serialization=1
线程模型:posix
Supported LTO compression algorithms: zlib zstd
gcc 版本 12.1.0 (GCC) 
[make@archlinux b]$ g++ -v
使用内建 specs。
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapper
目标:x86_64-pc-linux-gnu
配置为:/build/gcc/src/gcc/configure --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror --with-build-config=bootstrap-lto --enable-link-serialization=1
线程模型:posix
Supported LTO compression algorithms: zlib zstd
gcc 版本 12.1.0 (GCC) 
[make@archlinux b]$