In article <dgmgd9$247j$1@ulysses.noc.ntua.gr>,
"bg-greece" <temporary.TakeThisOut@mail.gr> wrote:
>I am trying to install Codewarrior 8 for Mac OS X (10.3.4) and the program
>exits abnormally. I read in the instructions that you can do a manual
>installation by copying certain directories from the CD-ROM to hard disk.
>Although this works, it is impossible to do the 8.1 (or any other 8.x)
>update. Is there a solution?
Best solution is wait for CW 10 but in the mean time. (read the whole
thing)
Ron
Get the XCode Tools CD, reinstall it, choose the optional packages and
there is a 10.2.8 SDK install that, you can do this even after doing
the original installation.
In CodeWarrior 8.3 global Preferences...
change your Source Tree for OS X Volume
from
/
to
/Developers/SDKs/MacOSX10.2.7SDK/
If you want to stop here you can if you have already updated to 8.3 on
10.2
But I recommend that you re-precompile the Mach-O precompiled headers .
Open the BuildMacOSXSupport.mcp
in
Metrowerks CodeWarrior 8.0
/Metrowerks CodeWarrior
/MSL/(MSL_Build_Projects)
/OS X
and build all in that.
But to rebuild the libraries...
Then... this is an unofficial and non-supported fix. Since it involves
changing Apple's header
In Apple's Limits.h
in /Developers/SDKs/MacOSX10.2.7SDK/usr/include/ppc/limits.h
Change
#ifndef _PPC_LIMITS_H_
#define _PPC_LIMITS_H_
#define CHAR_BIT 8 /* number of bits in a char */
#define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */
#define CLK_TCK 100 /* ticks per second */
to
#ifndef _PPC_LIMITS_H_
#define _PPC_LIMITS_H_
#define CLK_TCK 100 /* ticks per second */
#if !_MSL_USING_MW_C_HEADERS
#define CHAR_BIT 8 /* number of bits in a char */
#define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */
At the end of the file add
#endif /* _MSL_USING_MW_C_HEADERS */
before
#endif /* _PPC_LIMITS_H_ */
Rebuild the precompiled headers and rebuild the MSL Mac OS X libraries
Open the Build.MacOSX.mcp
in
Metrowerks CodeWarrior 8.0
/Metrowerks CodeWarrior
/MSL/(MSL_Build_Projects)
/OS X
You should be OK
===== and ===
Still on CW 8.3. When I added in XCode to the
mix my CW 8.3 projects started to give compile errors. I've localized
my problems to 2 areas (YMMV).
1) For BSD socket code I needed to add:
# if defined(__MWERKS__) && !defined(_BSD_SOCKLEN_T_)
# define _BSD_SOCKLEN_T_ int32_t
# endif /* defined(__MWERKS__) && !defined(_BSD_SOCKLEN_T_) */
just before my
#include <sys/socket.h>
The code in <ppc/ansi.h> that was meant to do this does not seem to get
compiled in.
2) unistd.h gave errors on line 129, 130, and 209 until I added
#if defined(__MWERKS__)
# if !defined(__dead2)
# define __dead2
# endif /* !defined(__dead2) */
# if !defined(__pure2)
# define __pure2
# endif /* !defined(__pure2) */
#endif /* defined(__MWERKS__) */
to my main header (".h") file.
I'm now back in business. Hope this helps.
--
CodeWarrior Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and our staff
--
http://www.codewarrior.com/community --
Ron Liechty - ron.liechty.TakeThisOut@freescale.com -
http://www.codewarrior.com