|
From:
<and...@id...> - 2001-04-11 15:30:13
|
Hi,
The vis5D is runnig!! with small changes in the Makefile:
linux-mesa:
"CFLAGS =3D -c -DLITTLE -DUNDERSCORE -DOPENGL -DSINGLE_TASK=20
-DNCAR_DATA -I../Mesa/include" \
# "CFLAGS =3D -c -O2 -w -DLITTLE -DUNDERSCORE -DOPENGL -DSINGLE_TASK=
=20
-DNCAR_DATA -I../Mesa/include" \
but the "save scene" option is disable
when I compiled with the -DNCAR_SCENE flag set... I obtained:
graphics.ogl.c: In function `save_3d_window':
graphics.ogl.c:1397: structure has no member named `StereoOn'
graphics.ogl.c: In function `save_3d_right_window':
graphics.ogl.c:1404: structure has no member named `StereoOn'
and compiling with -DNCAR_SCENE and -DNCAR_STEREO flags set, I obtained:
main.o: In function `input_float':
main.o(.text+0x13e5): the `gets' function is dangerous and should=20
not be used.
api.o: In function `vis5d_save_scene':
api.o(.text+0x1d974): undefined reference to `save_3d_scene'
graphics.ogl.o: In function `make_big_window':
graphics.ogl.o(.text+0x326): undefined reference to=20
`GfxStereoEnabled'
graphics.ogl.o: In function `make_3d_window':
graphics.ogl.o(.text+0x84b): undefined reference to=20
`GfxStereoEnabled'
graphics.ogl.o: In function `save_3d_window_from_oglbuf':
graphics.ogl.o(.text+0x2b94): undefined reference to `SGI_Dump'
then I changed the display_context struct definition in the=20
src/globals.h file, in this fashion:
int StereoOn; /* Actually display stereo */
#ifdef NCAR_STEREO
int StereoEnabled; /* Stereo mode enabled */
/*int StereoOn; /* Actually display stereo */
int OldGfxProjection; /* 0 =3D parallel, 1 =3D perspective=
*/
#endif /* NCAR_STEREO */
...and I compiled with -DNCAR_SCENE flag set. the errors were :
main.o: In function `input_float':
main.o(.text+0x13e5): the `gets' function is dangerous and should=20
not be used.
api.o: In function `vis5d_save_scene':
api.o(.text+0x1d974): undefined reference to `save_3d_scene'
graphics.ogl.o: In function `save_3d_window_from_oglbuf':
graphics.ogl.o(.text+0x26a4): undefined reference to `SGI_Dump'
Is there possible to solve the SGI_Dump non-portable issues?
Thanks,
-- andres calderon
Jeff W. Boote wrote:
> What compile flags did you use? What is the stack trace from the crash?=
Without information, it is impossible to help
> you.
>=20
> Like I said in the release, we have only tested it on SGI's. I don't re=
member adding any bit arithmetic, or any thing
> else that would cause problems for linux, but it is possible there are =
some non-portable things in the sgidump code.
>=20
> jeff
>=20
> Andr=E9s Felipe CALDER=D3N wrote:
>=20
>> Hi,
>>=20
>> I would like to know if there is a way to run vis5d with NCAR extensio=
n
>> (vrml output) in Linux.
>>=20
>> I am compiling vis5d (from the ncar) on a RH7 Linux box, but in run ti=
me
>> the vis5d crashed!!
>>=20
>> Can anyone help me the NCAR extension?
>>=20
>> Thanks!
>>=20
>> -- andres calderon
>=20
|