1

我正在尝试从 SVN 源构建sml3d(还有其他方法吗?)。

首先,使用以下命令检查源代码,如下所示:

$svn co --username anonsvn \
  https://smlnj-gforge.cs.uchicago.edu/svn/sml3d/trunk sml3d

然后,我阅读 sml3d/README 'BUILDING FROM SVN' 部分并尝试...

$autoheader -Iconfig
$autoconf -Iconfig
$./configure

在这一点上,我得到了很多错误......

(剪断)
make[1]: 进入目录`/home/eldesh/work/sml3d/sml3d/gen/fi-gen'
cc gen-sdl-offsets.c -o gen-sdl-offsets
/tmp/ccmu83YP.o:在函数“主”中:
gen-sdl-offsets.c:(.text+0xb1): undefined reference to `prField'
gen-sdl-offsets.c:(.text+0xcd): undefined reference to `prField'
gen-sdl-offsets.c:(.text+0xe9): undefined reference to `prField'
gen-sdl-offsets.c:(.text+0x105): undefined reference to `prField'
gen-sdl-offsets.c:(.text+0x121): undefined reference to `prField'
/tmp/ccmu83YP.o:gen-sdl-offsets.c:(.text+0x13d):更多未定义的“prField”引用如下
/tmp/ccmu83YP.o:在函数“主”中:
gen-sdl-offsets.c:(.text+0x1a9): undefined reference to `prConst'

等等等等等等...

接下来,我猜想正确的构建协议如下:

$autoheader -Iconfig
$autoconf -Iconfig
$./configure --enable-dev
$mkdir -p src/sml3d/opengl/c-abi
$cd gen/gen-from-xml/specs
$make
$../../../bin/glgen  targets.json
$../../../bin/grpgen targets.json

但是我得到了不存在和未定义的错误:

~/sml3d/sml3d$ 制作
(剪断)
make[2]: 进入目录`/home/eldesh/work/sml3d/sml3d/src/sml3d'
/home/eldesh/lcl/bin/mlton -mlb-path-var 'GL_DIR gl32' -stop tc sml3d.mlb
错误:opengl/opengl-32.mlb 45.3。
  文件 gl-object-fn.sml 不存在。
错误:gl32/gl32-types.sml 8.26。
  未定义的函子 GLObjectFn。
(剪断)
错误:gl32/frame-buffer.sml 11.14。
  未定义的结构 FramebufObj。
错误:gl32/frame-buffer.sml 13.25。
  未定义的结构 RenderbufObj。
(剪断)
错误:gl32/frame-buffer.sml 7.27。
  在签名中输入 texture_id,但不在结构中。
错误:gl32/frame-buffer.sml 60.14。
...

如何正确构建 sml3d ?

环境

我使用运行时/系统...

  • smlnj 110.77
  • 米尔顿 20130715
  • linux x86
4

0 回答 0