Re: [Plib-users] Compiling on mac OS X, ssgLoadFLT.cxx error
Brought to you by:
sjbaker
From: Dan H. <dh...@di...> - 2009-08-19 06:04:17
|
I got the same errors, using 1.8.5 "stable" out of the box. I found this same issue identified and discussed on the list all the way back on 7/16/2008. It would appear there is not an active effort to maintain Mac support. I notice the plib download page mentions there is a new README.mac. That file contains an apology that the Codewarrior project files aren't included in the package. As CodeWarrior was end-of-lifed five years ago, I think this confirms there are not any Mac developers currently involved in the project. Perhaps you'll change that!? Anyhow, the hack to make the thing compile is to change line 145 of src/ssg/ssgLoadFLT.cxx from #ifdef UL_WIN32 to #if defined(UL_WIN32) || defined(__APPLE__) That enables a typedef of unsigned int to uint. This is profoundly silly, as pointed out in the July 2008 thread. The correct type should be "unsigned int", or if a size-specific type is required, a properly size-specific type of uint32_t, and the UL_WIN32-conditional block should typedef unsigned int to that. (Note that after making with the above change you'll get in the end a number of warnings from ranlib about files with no symbols. Disregard.) Hope that helps, Dan Herman |