1
Programming / Re: Problems compiling lastest on Mac OS X 10.8.5
« on: December 22, 2013, 08:36:41 pm »
grrussel, Thanks again. I found my problem. I'm able to compile and run openxcom latest.
To anyone looking at this later, make sure you turn on debugging and compile with -g so gdb is more meaningful. It'll help to find problems:
My problem was my locale wasn't set. getLocale() in CrossPlatform.cpp was trying to parse an empty string and it was throwing an exception. I set my locale in my terminal, and also set the language in the options.cfg and things are fine now.
To anyone looking at this later, make sure you turn on debugging and compile with -g so gdb is more meaningful. It'll help to find problems:
Code: [Select]
export CXXFLAGS="-Wall -Wextra -O2 -g -D_DEBUG"
My problem was my locale wasn't set. getLocale() in CrossPlatform.cpp was trying to parse an empty string and it was throwing an exception. I set my locale in my terminal, and also set the language in the options.cfg and things are fine now.