Using BNCSUtil on OS X 10.5.6
GoogleCodeExporter opened this issue · 2 comments
GoogleCodeExporter commented
I've tried compilin this under OS X 10.5.6 which would be fairly close to
linux. I can try it on my
Ubuntu
machine as well. The main problem here on my OS X machine is that its 64-bit
and the default
compiler
options are for 32 bit.
A problem here is that libgmp (GNU MP) must be compiled as 64 bit on OS X and
as such I must
compile
BNCSUtil as 64 bit, which i also did successfully after using the CFLAGS and
CXXFLAGS "-m64"
I cannot get a test program to compile though, as i get the following message
from the linker:
Undefined symbols:
"_bncsutil_debug_message", referenced from:
_main in ccljODIr.o
ld: symbol(s) not found
This is only after changing mutil.h to reflect the following change:
#if (!defined(BIGENDIAN)) && (!defined(LITTLEENDIAN))
#if MUTIL_CPU_PPC
#define BIGENDIAN 1
#define LITTLEENDIAN 0
#elif MUTIL_CPU_X86
#define LITTLEENDIAN 1
#define BIGENDIAN 0
#else
#define MUTIL_CPU_X86 1
#define LITTLEENDIAN 1
//#error Unable to determine byte order, define BIGENDIAN or LITTLEENDIAN.
#endif
because the preprocessor cannot determine endianness or cpu type on my OS X
system.
My compiled OS X binaries are attached for bncsutil.xt to provide additional
information.
Original issue reported on code.google.com by kunick...@gmail.com
on 3 Mar 2009 at 3:55
Attachments:
GoogleCodeExporter commented
Compiled nls.cpp OK after removing references to bncsutil_debug_message and
bncsutil_debug_dump
Original comment by kunick...@gmail.com
on 3 Mar 2009 at 4:02
carlbennett commented
Closing issue as Mac OS X 10.5 is too old to be supported at this time.