Katsutoshi Itoh
cut-s****@maste*****
2004年 5月 22日 (土) 22:43:20 JST
伊東です。 少し前から OpenGL に興味を持ち、 Gauche-gl を使えるようにしたいと ダウンロードして来たんですが、コンパイルがどうもうまくいきません。 というかその前の configure でどうも GL 関係のヘッダファイルやライブラリが 見付けられていない感じです。 環境はこれです。 cut-sea @ jini> uname -mar NetBSD jini 1.6.2 NetBSD 1.6.2 (JINI) #0: Sat Mar 13 21:53:10 JST 2004 root @ jini:/usr/src/sys/arch/i386/compile/JINI i386 cut-sea @ jini> gosh -V Gauche scheme interpreter, version 0.7.4.2 [euc-jp] cut-sea @ jini> gauche-config --reconfigure ./configure '--with-slib=/usr/pkg/share/slib' '--with-local=/usr/local' '--with-prefix=/usr/local' '--enable-ipv6' ちなみに単純な opengl の C のサンプルプログラムを入手してコンパイル実行はできてます。 cut-sea @ jini> make cc gltest.c -static -Wall -W -I/usr/pkg/include -I/usr/X11R6/include \ -L/usr/pkg/lib -L/usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lXi -lXext -lX11 -lm -o gltest こんなんで実行したらちゃんとサンプル(っても小さなウィンドウが開いて色が付くだけ)が走ります。 #ただ、これ -static をなくすとダイナミックリンクになるんですけど、 #その場合にはランタイムエラーが発生します。共有ライブラリが見付からないと。 てなわけで /usr/pkg/ 以下と /usr/X11R6/ 以下に入ってりゃいいかなと思ったんですけど。 cut-sea @ jini> ./configure --includedir=/usr/pkg/include:/usr/X11R6/include \ --libdir=/usr/pkg/lib:/usr/X11R6/lib (snip) checking for GL/glext.h... no checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking GL/glx.h usability... no checking GL/glx.h presence... no checking for GL/glx.h... no checking GLUT/glut.h usability... no checking GLUT/glut.h presence... no checking for GLUT/glut.h... no (snip) GL/* が no になっちゃってる。 それで make すると cut-sea @ jini> make cd src; make all (snip) gauche-glut.c:24: GL/glut.h: No such file or directory *** Error code 1 Stop. make: stopped in /usr/home/cut-sea/compile/Gauche-gl-0.3.1/src *** Error code 1 Stop. make: stopped in /home/cut-sea/compile/Gauche-gl-0.3.1 どうしてですかね。 コンパイル時の -I や -L に /usr/pkg 関係が入ってないのが直接の原因と思いますが なにとぞ助言を頂きたく。。。