Page 1 of 1

Can't build 1.4.0 from sources on Mac OS X 10.4.4

Posted: 12.01.2006, 03:17
by columbo
Hi,

Since the cocoa version of Celestia doesn't run there, i did try to compile it from sources, but without any luck (see verbose transcript below):

Code: Select all

$ make
make  all-recursive
Making all in src
Making all in celutil
if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT bigfix.o -MD -MP -MF ".deps/bigfix.Tpo" \
  -c -o bigfix.o `test -f 'bigfix.cpp' || echo './'`bigfix.cpp; \
then mv -f ".deps/bigfix.Tpo" ".deps/bigfix.Po"; \
else rm -f ".deps/bigfix.Tpo"; exit 1; \
fi
bigfix.cpp:147: warning: unused parameter 'a'
bigfix.cpp:147: warning: unused parameter 'b'
bigfix.cpp: In constructor 'BigFix::BigFix(const std::string&)':
bigfix.cpp:196: warning: unused variable 'errors'
if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT color.o -MD -MP -MF ".deps/color.Tpo" \
  -c -o color.o `test -f 'color.cpp' || echo './'`color.cpp; \
then mv -f ".deps/color.Tpo" ".deps/color.Po"; \
else rm -f ".deps/color.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT debug.o -MD -MP -MF ".deps/debug.Tpo" \
  -c -o debug.o `test -f 'debug.cpp' || echo './'`debug.cpp; \
then mv -f ".deps/debug.Tpo" ".deps/debug.Po"; \
else rm -f ".deps/debug.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT directory.o -MD -MP -MF ".deps/directory.Tpo" \
  -c -o directory.o `test -f 'directory.cpp' || echo './'`directory.cpp; \
then mv -f ".deps/directory.Tpo" ".deps/directory.Po"; \
else rm -f ".deps/directory.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT filetype.o -MD -MP -MF ".deps/filetype.Tpo" \
  -c -o filetype.o `test -f 'filetype.cpp' || echo './'`filetype.cpp; \
then mv -f ".deps/filetype.Tpo" ".deps/filetype.Po"; \
else rm -f ".deps/filetype.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT formatnum.o -MD -MP -MF ".deps/formatnum.Tpo" \
  -c -o formatnum.o `test -f 'formatnum.cpp' || echo './'`formatnum.cpp; \
then mv -f ".deps/formatnum.Tpo" ".deps/formatnum.Po"; \
else rm -f ".deps/formatnum.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT utf8.o -MD -MP -MF ".deps/utf8.Tpo" \
  -c -o utf8.o `test -f 'utf8.cpp' || echo './'`utf8.cpp; \
then mv -f ".deps/utf8.Tpo" ".deps/utf8.Po"; \
else rm -f ".deps/utf8.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT util.o -MD -MP -MF ".deps/util.Tpo" \
  -c -o util.o `test -f 'util.cpp' || echo './'`util.cpp; \
then mv -f ".deps/util.Tpo" ".deps/util.Po"; \
else rm -f ".deps/util.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT unixdirectory.o -MD -MP -MF ".deps/unixdirectory.Tpo" \
  -c -o unixdirectory.o `test -f 'unixdirectory.cpp' || echo './'`unixdirectory.cpp; \
then mv -f ".deps/unixdirectory.Tpo" ".deps/unixdirectory.Po"; \
else rm -f ".deps/unixdirectory.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT unixtimer.o -MD -MP -MF ".deps/unixtimer.Tpo" \
  -c -o unixtimer.o `test -f 'unixtimer.cpp' || echo './'`unixtimer.cpp; \
then mv -f ".deps/unixtimer.Tpo" ".deps/unixtimer.Po"; \
else rm -f ".deps/unixtimer.Tpo"; exit 1; \
fi
rm -f libcelutil.a
ar cru libcelutil.a bigfix.o color.o debug.o directory.o filetype.o formatnum.o utf8.o util.o unixdirectory.o unixtimer.o
ranlib libcelutil.a
Making all in celmath
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..  -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT frustum.o -MD -MP -MF ".deps/frustum.Tpo" \
  -c -o frustum.o `test -f 'frustum.cpp' || echo './'`frustum.cpp; \
then mv -f ".deps/frustum.Tpo" ".deps/frustum.Po"; \
else rm -f ".deps/frustum.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..  -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT perlin.o -MD -MP -MF ".deps/perlin.Tpo" \
  -c -o perlin.o `test -f 'perlin.cpp' || echo './'`perlin.cpp; \
then mv -f ".deps/perlin.Tpo" ".deps/perlin.Po"; \
else rm -f ".deps/perlin.Tpo"; exit 1; \
fi
rm -f libcelmath.a
ar cru libcelmath.a frustum.o perlin.o
ranlib libcelmath.a
Making all in cel3ds
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..  -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT 3dsmodel.o -MD -MP -MF ".deps/3dsmodel.Tpo" \
  -c -o 3dsmodel.o `test -f '3dsmodel.cpp' || echo './'`3dsmodel.cpp; \
then mv -f ".deps/3dsmodel.Tpo" ".deps/3dsmodel.Po"; \
else rm -f ".deps/3dsmodel.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..  -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT 3dsread.o -MD -MP -MF ".deps/3dsread.Tpo" \
  -c -o 3dsread.o `test -f '3dsread.cpp' || echo './'`3dsread.cpp; \
then mv -f ".deps/3dsread.Tpo" ".deps/3dsread.Po"; \
else rm -f ".deps/3dsread.Tpo"; exit 1; \
fi
3dsread.cpp:118: warning: unused parameter 'chunkSize'
3dsread.cpp:251: warning: unused parameter 'nBytes'
3dsread.cpp:263: warning: unused parameter 'nBytes'
3dsread.cpp:275: warning: unused parameter 'nBytes'
3dsread.cpp:307: warning: unused parameter 'in'
3dsread.cpp:307: warning: unused parameter 'chunkType'
3dsread.cpp:307: warning: unused parameter 'contentSize'
3dsread.cpp:307: warning: unused parameter 'obj'
3dsread.cpp:343: warning: unused parameter 'contentSize'
3dsread.cpp:489: warning: unused parameter 'contentSize'
3dsread.cpp:513: warning: unused parameter 'contentSize'
rm -f libcel3ds.a
ar cru libcel3ds.a 3dsmodel.o 3dsread.o
ranlib libcel3ds.a
Making all in celtxf
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..  -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT texturefont.o -MD -MP -MF ".deps/texturefont.Tpo" \
  -c -o texturefont.o `test -f 'texturefont.cpp' || echo './'`texturefont.cpp; \
then mv -f ".deps/texturefont.Tpo" ".deps/texturefont.Po"; \
else rm -f ".deps/texturefont.Tpo"; exit 1; \
fi
rm -f libceltxf.a
ar cru libceltxf.a texturefont.o
ranlib libceltxf.a
Making all in celengine
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..  -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT asterism.o -MD -MP -MF ".deps/asterism.Tpo" \
  -c -o asterism.o `test -f 'asterism.cpp' || echo './'`asterism.cpp; \
then mv -f ".deps/asterism.Tpo" ".deps/asterism.Po"; \
else rm -f ".deps/asterism.Tpo"; exit 1; \
fi
../celengine/orbit.h:19: warning: 'class Orbit' has virtual functions but non-virtual destructor
../celengine/orbit.h:35: warning: 'class EllipticalOrbit' has virtual functions but non-virtual destructor
../celengine/orbit.h:62: warning: 'class OrbitSampleProc' has virtual functions but non-virtual destructor
../celengine/orbit.h:77: warning: 'class CachingOrbit' has virtual functions but non-virtual destructor
asterism.cpp: In constructor 'Asterism::Asterism(std::string)':
asterism.cpp:28: error: 'gettext' was not declared in this scope
make[3]: *** [asterism.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_Users_matt_OD.org_proj_darwinports_dports_science_celestia/work/celestia-1.4.0" && make all" returned error 2
Command output: 3dsread.cpp:489: warning: unused parameter 'contentSize'
3dsread.cpp:513: warning: unused parameter 'contentSize'
rm -f libcel3ds.a
ar cru libcel3ds.a 3dsmodel.o 3dsread.o
ranlib libcel3ds.a
Making all in celtxf
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..  -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT texturefont.o -MD -MP -MF ".deps/texturefont.Tpo" \
  -c -o texturefont.o `test -f 'texturefont.cpp' || echo './'`texturefont.cpp; \
then mv -f ".deps/texturefont.Tpo" ".deps/texturefont.Po"; \
else rm -f ".deps/texturefont.Tpo"; exit 1; \
fi
rm -f libceltxf.a
ar cru libceltxf.a texturefont.o
ranlib libceltxf.a
Making all in celengine
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..  -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtkglext-1.0 -I/opt/local/lib/gtkglext-1.0/include -I/usr/X11R6/include    -MT asterism.o -MD -MP -MF ".deps/asterism.Tpo" \
  -c -o asterism.o `test -f 'asterism.cpp' || echo './'`asterism.cpp; \
then mv -f ".deps/asterism.Tpo" ".deps/asterism.Po"; \
else rm -f ".deps/asterism.Tpo"; exit 1; \
fi
../celengine/orbit.h:19: warning: 'class Orbit' has virtual functions but non-virtual destructor
../celengine/orbit.h:35: warning: 'class EllipticalOrbit' has virtual functions but non-virtual destructor
../celengine/orbit.h:62: warning: 'class OrbitSampleProc' has virtual functions but non-virtual destructor
../celengine/orbit.h:77: warning: 'class CachingOrbit' has virtual functions but non-virtual destructor
asterism.cpp: In constructor 'Asterism::Asterism(std::string)':
asterism.cpp:28: error: 'gettext' was not declared in this scope
make[3]: *** [asterism.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


All the required librairies are installed (glu, libpng, libjpeg) as described on INSTALL.
I've used the "--with-gtk" configure argument (gtk+ 2.8.9 installed)
All these librairies were installed with DarwinPorts 1.2

FWIW, i'm using gcc-4.0.1 that comes with Xcode 2.2

Can someone help me getting 1.4.0 running or should i just be quiet and patient and stick with 1.3.2 which works quite good?

thanks

Posted: 12.01.2006, 05:35
by dirkpitt
I'm not sure why you're trying to compile an X11 version on OS X. The Xcode projects (.xcode, .xcodeproj) are the only build options currently supported and maintained on OS X. Anyway, the error you're getting is because you haven't downloaded and compiled the GNU gettext library, which I think is required by gtk/kde builds.

Posted: 12.01.2006, 07:29
by Cham
Dirkpitt,

have you tested Celestia 1.4.x on Tiger 10.4.4 ?

Posted: 12.01.2006, 09:18
by dirkpitt
Cham wrote:have you tested Celestia 1.4.x on Tiger 10.4.4 ?


Yes. Is 10.4.4 giving you problems?

Posted: 12.01.2006, 18:27
by Cham
Dirkpitt,

no, I haven't installed 10.4.4 yet. I'm waiting to see any bad reports.

Can you tell if there's any improvements with Celestia ?

Posted: 13.01.2006, 00:56
by dirkpitt
Cham wrote:no, I haven't installed 10.4.4 yet. I'm waiting to see any bad reports.

Can you tell if there's any improvements with Celestia ?


None, at least on my machine. As far as I can tell, 10.4.4 is simply a "RAW digital camera support and World of Warcraft" update. The video drivers *have* been updated, so it may or may not offer better support for ATI x8xx video cards.

Posted: 13.01.2006, 00:57
by columbo
dirkpitt wrote:I'm not sure why you're trying to compile an X11 version on OS X.
It's pretty obvious, the current version doesn't works there (on 13 Mac OS X machines we have access to) as i said above...

dirkpitt wrote:The Xcode projects (.xcode, .xcodeproj) are the only build options currently supported and maintained on OS X.
I agree, but there's no .xcode/.xcodeproj/.pbproj/whatever in celestia's tarball.
Are they private? If no, why they aren't bundled with the sources?

dirkpitt wrote:Anyway, the error you're getting is because you haven't downloaded and compiled the GNU gettext library, which I think is required by gtk/kde builds.

I do have gettext installed, and even if my programming skills is near to 0, it seems that the compilation errors above aren't related to libintl/gettext.

However thanks for replying, i'm feeling less alone :P

Posted: 13.01.2006, 01:16
by dirkpitt
Ah, I just checked and the tarball is missing a "macosx" directory, hence no Xcode project. Thanks for catching this oversight. For now, your second option is to check out from CVS - instructions are at http://sourceforge.net/cvs/?group_id=21302.

I'm not sure if this will help, but I suspect your original problem, the locale error, may be related to the function CelestiaCore::renderOverlay() in celestiacore.cpp.

Posted: 15.01.2006, 19:56
by columbo
dirkpitt wrote:Ah, I just checked and the tarball is missing a "macosx" directory, hence no Xcode project. Thanks for catching this oversight. For now, your second option is to check out from CVS - instructions are at http://sourceforge.net/cvs/?group_id=21302.
Building it from sources leads to the same error, unfortunately.

dirkpitt wrote:I'm not sure if this will help, but I suspect your original problem, the locale error, may be related to the function CelestiaCore::renderOverlay() in celestiacore.cpp.

Is this bug will be fixed in the next release of Celestia?

Posted: 15.01.2006, 21:38
by dirkpitt
Are you able to get a file name and line number from where it crashes, if you choose the Debug command and run Celestia from Xcode's debugger? (make sure you choose "Development" as the build style first so that debug symbols are included when compiling)

If this is a bug, I'll try to push for a fix for 1.4.1.

Posted: 16.01.2006, 15:15
by columbo
dirkpitt wrote:Are you able to get a file name and line number from where it crashes, if you choose the Debug command and run Celestia from Xcode's debugger? (make sure you choose "Development" as the build style first so that debug symbols are included when compiling)

After doing so there's a lot of errors from not only celestiacore.cpp but also from main.m, CelestiaAppCore.mm, CelestiaController.m and CelestiaOpenGLView.m

The gdb log (mostly the same content as when running a stock celestia from the dmg):

Code: Select all

[Session started at 2006-01-16 15:57:44 +0100.]
GNU gdb 6.1-20040303 (Apple version gdb-434) (Wed Nov  2 17:28:16 GMT 2005)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin".
Loading program into debugger?€¦

tty /dev/ttyp2
Program loaded.
sharedlibrary apply-load-rules all
run
[Switching to process 9641 local thread 0xf03]
Running?€¦
Error opening config file.2006-01-16 15:58:08.193 Celestia[9641] Init took 16.042924 seconds
Initializing ARB vertex programs . . .
Loading ARB vertex program: shaders/diffuse_arb.vp
Loading ARB vertex program: shaders/specular_arb.vp
Loading ARB vertex program: shaders/haze_arb.vp
Loading ARB vertex program: shaders/bumpdiffuse_arb.vp
Loading ARB vertex program: shaders/bumphaze_arb.vp
Loading ARB vertex program: shaders/shadowtex_arb.vp
Loading ARB vertex program: shaders/diffuse_texoff_arb.vp
Loading ARB vertex program: shaders/rings_arb.vp
Loading ARB vertex program: shaders/ringshadow_arb.vp
Loading ARB vertex program: shaders/night_arb.vp
Loading ARB vertex program: shaders/glossmap_arb.vp
Loading ARB vertex program: shaders/diffuse2_arb.vp
Loading ARB vertex program: shaders/haze2_arb.vp
Loading ARB vertex program: shaders/diffuse_texoff2_arb.vp
Loading ARB vertex program: shaders/specular2_arb.vp
Loading ARB vertex program: shaders/night2_arb.vp
Loading ARB vertex program: shaders/multishadow_arb.vp
Loading ARB vertex program: shaders/texphong_arb.vp
Loading ARB vertex program: shaders/texphong_alpha_arb.vp
Loading ARB vertex program: shaders/ell_galaxy_arb.vp
All ARB vertex programs loaded successfully.
render path: 3
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Program received signal:  "SIGABRT".
(gdb)


The first error from celestiacore.cpp is (line 2898, CelestiaCore::renderOverlay function):

Code: Select all

currentLocale = locale(cLocale, "", std::locale::numeric);


The second error from celestiacore.cpp is (line 2222, CelestiaCore::draw function):

Code: Select all

renderOverlay();


The error from CelestiaAppCore.mm is (line 437):

Code: Select all

appCore->draw();


The error from CelestiaController.m is (line 469):

Code: Select all

[appCore draw];


The error from CelestiaOpenGLView.m is (line 237):

Code: Select all

[controller display];


And the error from main.m is (line 11):

Code: Select all

return NSApplicationMain(argc,argv);


hth

Posted: 17.01.2006, 01:23
by dirkpitt
columbo wrote:The first error from celestiacore.cpp is (line 2898, CelestiaCore::renderOverlay function):

Code: Select all

currentLocale = locale(cLocale, "", std::locale::numeric);



Thanks a lot for this info. The value of cLocale is probably not something locale() is expecting (C or POSIX I think). What happens if you replace "cLocale" with "std::locale::classic()" ?

Posted: 17.01.2006, 15:01
by columbo
dirkpitt wrote:What happens if you replace "cLocale" with "std::locale::classic()" ?

Nothing. Same errors happens. :evil:

Posted: 17.01.2006, 16:07
by dirkpitt
columbo wrote:
dirkpitt wrote:What happens if you replace "cLocale" with "std::locale::classic()" ?
Nothing. Same errors happens. :evil:


That is actually enough info I think to figure out what's going on. I've managed to duplicate the problem on my computer too (it's triggered by setting either or both of the environment variables LANG and LC_ALL or LC_NUMERIC to a value other than "C" - for example fr_FR).

I think a fix may make it for 1.4.1, if I can help it. Thanks a lot for testing! :D

Posted: 18.01.2006, 02:50
by columbo
dirkpitt wrote:
columbo wrote:That is actually enough info I think to figure out what's going on. I've managed to duplicate the problem on my computer too (it's triggered by setting either or both of the environment variables LANG and LC_ALL or LC_NUMERIC to a value other than "C" - for example fr_FR).

I think a fix may make it for 1.4.1, if I can help it. Thanks a lot for testing! :D

Great news.
I've been using a custom value for LANG on ~/.MacOSX/environment.plist (because i wanted to have X11.app's binaries in french while clicking on X11.app icon instead of using open-x11(1)).

Now removing this from environment.plist fixes this, celestia is now running fine. Thanks a lot for the help! 8)

BTW, i still have LC_ALL=fr_FR.ISO8859-15 on my rc shell file (~/.zprofile) and it doesn't confuse celestia.

Posted: 22.01.2006, 05:40
by dirkpitt
columbo wrote:Great news.
I've been using a custom value for LANG on ~/.MacOSX/environment.plist (because i wanted to have X11.app's binaries in french while clicking on X11.app icon instead of using open-x11(1)).


You can set the LANG back - I've fixed the problem in CVS and current builds should run fine with LANG or LC variables set.

Posted: 22.01.2006, 14:09
by columbo
Thanks a zillion dirk! 8)