I'm trying to install XJig on Snow Leopard 10.6.5.
https://sourceforge.net/projects/xjig/
I've installed dependencies using Homebrew but am now getting this error when running make
deepthoughtPro:xjig-2.5-2$ make
c++ -m32 -DUSE_MIT_SHM -c -o ppm_image.o ppm_image.C
ppm_image.C:7: error: expected declaration before ‘}’ token
make: *** [ppm_image.o] Error 1
The section in the file it is complaining about is:
extern "C" {
#include <ppm.h>
#include <ppmcmap.h>
}
Thanks!
UPDATE - I have now got past this error but am getting a new one:
make
c++ -m32 -DUSE_MIT_SHM -DJIG_DEFAULT=\"/usr/lib/games/xjig/tina.gif\" -c xjig.C -o xjig.o
c++ -m32 -DUSE_MIT_SHM -c -o objects.o objects.C
c++ -m32 -DUSE_MIT_SHM -c -o stack.o stack.C
c++ -m32 -DUSE_MIT_SHM -c -o imgbuff.o imgbuff.C
c++ -m32 -DUSE_MIT_SHM -c -o puzzle.o puzzle.C
c++ -m32 -DUSE_MIT_SHM -c -o real.o real.C
c++ -m32 -DUSE_MIT_SHM -c -o vec2.o vec2.C
c++ -m32 -DUSE_MIT_SHM -c -o vec2list.o vec2list.C
c++ -m32 -DUSE_MIT_SHM -c -o mat2.o mat2.C
c++ -m32 -DUSE_MIT_SHM -c -o color_mapper.o color_mapper.C
c++ -m32 -DUSE_MIT_SHM -c -o base_image.o base_image.C
c++ -m32 -DUSE_MIT_SHM -c -o gif_image.o gif_image.C
c++ -m32 -DUSE_MIT_SHM -c -o ximage.o ximage.C
c++ -m32 -DUSE_MIT_SHM -c -o jpeg_image.o jpeg_image.C
rm -f xjig
c++ -m32 -o xjig xjig.o objects.o stack.o imgbuff.o puzzle.o
real.o vec2.o vec2list.o mat2.o
color_mapper.o base_image.o gif_image.o ximage.o
jpeg_image.o -g -O2 -fno-strict-aliasing
-L/usr/X11/lib -lX11 -ljpeg -lnetpbm -lm
ld: warning: in /usr/local/lib/libnetpbm.a, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
"_XShmCreateImage", referenced from:
ImageBuffer::AllocData(int, int, int)in imgbuff.o
"_XShmAttach", referenced from:
ImageBuffer::AllocData(int, int, int)in imgbuff.o
"_XShmDetach", referenced from:
ImageBuffer::FreeData() in imgbuff.o
"_XShmPutImage", referenced from:
ImageBuffer::PutImage(_XDisplay*, unsigned long, _XGC*, int, int, int, int, unsigned int, unsigned int)in objects.o
"_XShapeQueryVersion", referenced from:
_main in xjig.o
"_XShapeCombineMask", referenced from:
WindowPiece::DirectionChanged() in objects.o
WindowPiece::DirectionChanged() in objects.o
"_XShmQueryVersion", referenced from:
ImageBuffer::ImageBuffer()in imgbuff.o
ImageBuffer::ImageBuffer()in imgbuff.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [xjig] Error 1