[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] Compile errors and problems with board3d on Mac OS X
From: |
Olivier Baur |
Subject: |
[Bug-gnubg] Compile errors and problems with board3d on Mac OS X |
Date: |
Sun, 17 Aug 2003 18:48:11 +0200 |
Here are some errors/problems I've met building/using gnubg
--with-board3d (in CVS main branch)
(1) malloc.h problem:
mylist.c:24: header file 'malloc.h' not found
I've put #if HAVE_MALLOC_H / #endif around (my malloc() is in stdlib.h)
[change not commited yet]
(2) Texture problems:
At gnubg startup, I get the following error message:
Error: Texture file (textures.txt) not found
In the source code (misc3d.c:279), it seems that gnubg looks for this
file in the $HOME directory -- is this the desired behavior?
So I copied the textures.txt to my home directory, and got rid of the
error message.
Later on, when gnubg tried to load some textures, I got messages like:
Failed to open texture: textures//board3.bmp
(note the double-slash)
I've changed the TEXTURE_PATH to "textures/" (instead of "textures//")
in board3d/inc3d.h, and now I get the following messages:
Failed to load texture: textures/base3.png
Failed to load texture: textures/board3.bmp
When I trace the probem back, I get down to functions LoadPNGTexture
and LoadDIBTexture (in texture3d.c); I'm having a look at the problem
now.
BTW, which libpng should I be using/compiling with?
My ./configure prints the following:
checking for png_create_info_struct in -lpng... no
and HAVE_LIBPNG is #undefined in my config.h
(3) Animation
Animation seems to make gnubg freeze (whether it's chequer movement or
dice rolling). I'll have a look at it too.
(4) Image quirks
Color has come back -- I just needed to set them up in the Appearance
settings :-)
But I still have these "lines" that strech from the chequers and the
cube towards the lower-right corner of the board (as can be seen in the
picture I joined in my previous post).
And when I'm dragging a chequer around, it's a whole black strip that
stretches from the chequer towards the lower-right corner of the board,
masking what lies under its level, and at some point plunging through
the board and reappearing further on.
And when I turn the "Round board egdes" option on, some little white
dotes appear at some places on the board frame.
I've included a picture of me dragging a checker about my 5-point
(small size here on the list, I can provide more detailled screenshots
if needed):
Also, in the Appearance settings window, the preview of the 3d board is
just colorful psychedelic pixel crap :-)
(5) 3D color previews
3D color previews (both in the Appearance tabs and in the "3D Color
selection" dialogs) are totally black.
-- Olivier
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnubg] Compile errors and problems with board3d on Mac OS X,
Olivier Baur <=