[2.2] Trying to setup cross-development in make based build system...
[2.2] Trying to setup cross-development in make based build system...
- Subject: [2.2] Trying to setup cross-development in make based build system...
- From: Shawn Erickson <email@hidden>
- Date: Mon, 14 Nov 2005 11:39:10 -0800
I am attempting to modify an existing make based build system to
support Mac OS X and want to add in cross-development checks since
many of the developers (and the build system) are using Xcode 2.2 on
Mac OS 10.4.3 but we need to target 10.3 and later. Additionally we
have to use GCC 3.3 because of some internal dependencies.
When trying to build Mac OS X versions of our core libraries things
work fine unless I attempt to add in cross-development settings to
help catch dependency issues. The following is an example of the type
of failure I am seeing (always so far down in cmath).
So my question is what am I doing wrong in defining cross-development
for the 10.3.9 sdk (yes it exists on the system)?
Or at least what to check on...
When using cross-deployment should I see "/usr/include/blah..." in
compiler output or "/Developer/SDKs/MacOSX10.3.9/usr/include/blah..."?
Thanks,
-Shawn
---------
Example compile command (returns inserted to make email easier to read)
(the following should be set in the environment before the command,
still not 100% sure...)
MACOSX_DEPLOYMENT_TARGET 10.3
NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk (<- not sure if this
is needed)
g++-3.3 ..lots of -I...
-isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/
darwin/3.3
-isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include
-Wall
...many -D...
-DDARWIN -fconstant-cfstrings -D__CONSTANT_CFSTRINGS__
-arch ppc -mtune=G5 -O2
-DMAC_OS_X_VERSION_MIN_REQUIRED=1030
ECLog.cpp -c -o ECLog.o
When I run the above I get the following (note it is down under /usr/
include)...
In file included from /usr/include/gcc/darwin/3.3/c++/bits/
locale_facets.tcc:41,
from /usr/include/gcc/darwin/3.3/c++/locale:47,
from /usr/include/gcc/darwin/3.3/c++/bits/
ostream.tcc:37,
from /usr/include/gcc/darwin/3.3/c++/ostream:515,
from /usr/include/gcc/darwin/3.3/c++/iterator:70,
from /usr/include/gcc/darwin/3.3/c++/ext/
stl_hashtable.h:69,
from /usr/include/gcc/darwin/3.3/c++/ext/
hash_map:65,
from blah/ectl.h:108,
from blah/ECLog.h:125,
from blah/ECResult.h:23,
from blah/ECString.h:24,
from ECLog.cpp:40:
/usr/include/gcc/darwin/3.3/c++/cmath: In function `long double
std::acos(long double)':
/usr/include/gcc/darwin/3.3/c++/cmath:109: error: `::acosl'
undeclared (first use here)
Line 108 in ectl.h is "#include <ext/hash_map>".
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden