List Info

Thread: Re: Compiling on MAC (sample), universal binary




Re: Compiling on MAC (sample), universal binary
country flaguser name
Israel
2007-05-29 08:17:08
It seems you don’t use xcode; I had the same problem using
xcode, and I fixed it by setting the "SDK Path"
key to "/Developer/SDKs/MacOSX10.4u.sdk". It
translates into adding "–isysroot
/Developer/SDKs/MacOSX10.4u.sdk" to the g++ link
command. Apparently the "regular" SDKs are not
universal.

HTH
Yoav




________________________________________
From: anthemion-devtools@yahoogroups.com
[mailto:anthemion-devtools@yahoogroups.com] On Behalf Of
Andreas Goebel
Sent: Tuesday, May 29, 2007 2:07 PM
To: anthemion-devtools@yahoogroups.com
Subject: SPAM: Re: [anthemion-devtools] Compiling on MAC
(sample), universal binary

Hi again,

now I have compiled my program (which is considerably larger
than the 
samples) and - after sorting out some errors - I got until
the 
linking-stage:

Summary: One small error that occurs on all platforms is
that i have to 
manually include wxGL. This should be done automatically
when someone 
chooses openGL support.
- I have to include the OpenGL framework, this should also
be done 
automatically when using OpenGL

Now the real errors: No executable is built, because lipo
doesn´t find a 
specific file. As far as I know lipo is the program that
glues together 
the PowerPC and Intel-binaries.
It seems that the powerPC binary isn´t built, because the
object-files 
seem to have the wrong format.

It would be really nice if someone could help me here, I
have a Mac only 
for today, and I really would like to get at least a running
alpha-version.

g++ -o ReleaseGCCMac/DreiDEdit ReleaseGCCMac/app_resources.o

ReleaseGCCMac/dreidedit.o ReleaseGCCMac/hauptfenster.o 
ReleaseGCCMac/punktdazudialog.o
ReleaseGCCMac/modelldazudialog.o 
ReleaseGCCMac/texcoordpicker.o
ReleaseGCCMac/texcoorddialog.o 
ReleaseGCCMac/custompanel.o
ReleaseGCCMac/locuseinstellungendialog.o 
ReleaseGCCMac/farbeundtexturdialog.o
ReleaseGCCMac/aboutwindow.o 
ReleaseGCCMac/geradeinparameterformdialog.o 
ReleaseGCCMac/ebeneinparameterformdialog.o 
ReleaseGCCMac/ebeneinnormalenformdialog.o 
ReleaseGCCMac/ebeneinkoordinatenformdialog.o
ReleaseGCCMac/kugeldialog.o 
ReleaseGCCMac/parametrischekurvedialog.o 
ReleaseGCCMac/hoehenfunktiondialog.o 
ReleaseGCCMac/parametrischeflaechedialog.o 
ReleaseGCCMac/mathematicaimportdialog.o 
ReleaseGCCMac/dialoganimationseinstellungen.o 
ReleaseGCCMac/einstellungendialog.o 
ReleaseGCCMac/termeinstellungendialog.o
ReleaseGCCMac/schieberegler.o 
ReleaseGCCMac/makrobeschreibungdialog.o ReleaseGCCMac/cube.o

ReleaseGCCMac/geodocument.o ReleaseGCCMac/geogroup.o 
ReleaseGCCMac/geoobject.o ReleaseGCCMac/geoschieberegler.o 
ReleaseGCCMac/mytoolbar.o ReleaseGCCMac/parser.o 
ReleaseGCCMac/geopoint.o ReleaseGCCMac/geoplane.o 
ReleaseGCCMac/geovector.o ReleaseGCCMac/geoparallel.o 
ReleaseGCCMac/geomodel.o ReleaseGCCMac/geotriangle.o 
ReleaseGCCMac/geosphere.o ReleaseGCCMac/functions.o 
ReleaseGCCMac/geoline.o ReleaseGCCMac/geocircle.o 
ReleaseGCCMac/geolocus.o ReleaseGCCMac/geotransform.o 
ReleaseGCCMac/spinctld.o ReleaseGCCMac/geoterm.o 
ReleaseGCCMac/geoalgobject.o ReleaseGCCMac/geotermparser.o 
ReleaseGCCMac/myhtmlctrl.o ReleaseGCCMac/einstellungen.o 
ReleaseGCCMac/CreateShadowedScene.o ReleaseGCCMac/geolight.o

ReleaseGCCMac/GeoShadow.o ReleaseGCCMac/geolinear.o 
ReleaseGCCMac/GeoAnimation.o ReleaseGCCMac/testshadow.o 
ReleaseGCCMac/undoevent.o ReleaseGCCMac/undostack.o 
`/Users/macmini7igs/Desktop/Andreas/wxMac-2.8.4/GCCBuildRele
aseMac/wx-config 
--inplace 
--exec-prefix="/Users/macmini7igs/Desktop/Andreas/wxMac
-2.8.4/GCCBuildReleaseMac" 
--libs` -F/users/macmini7igs/Library/Frameworks -framework
osgDB 
-framework osgUtil -framework osg -framework osgText
-framework 
osgShadow -lwx_mac_gl-2.8 -framework OpenGL -framework AGL
-framework 
OpenThreads -framework osgGA 

*** /usr/bin/ld: for architecture ppc

*** /usr/bin/ld: warning ReleaseGCCMac/app_resources.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/dreidedit.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/hauptfenster.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/punktdazudialog.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/modelldazudialog.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/texcoordpicker.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/texcoorddialog.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/custompanel.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/locuseinstellungendialog.o 
cputype (7, architecture i386) does not match cputype (18)
for specified 
-arch flag: ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/farbeundtexturdialog.o cputype 
(7, architecture i386) does not match cputype (18) for
specified -arch 
flag: ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/aboutwindow.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/geradeinparameterformdialog.o 
cputype (7, architecture i386) does not match cputype (18)
for specified 
-arch flag: ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/ebeneinparameterformdialog.o 
cputype (7, architecture i386) does not match cputype (18)
for specified 
-arch flag: ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/ebeneinnormalenformdialog.o 
cputype (7, architecture i386) does not match cputype (18)
for specified 
-arch flag: ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/ebeneinkoordinatenformdialog.o 
cputype (7, architecture i386) does not match cputype (18)
for specified 
-arch flag: ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/kugeldialog.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/parametrischekurvedialog.o 
cputype (7, architecture i386) does not match cputype (18)
for specified 
-arch flag: ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/hoehenfunktiondialog.o cputype 
(7, architecture i386) does not match cputype (18) for
specified -arch 
flag: ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/parametrischeflaechedialog.o 
cputype (7, architecture i386) does not match cputype (18)
for specified 
-arch flag: ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/mathematicaimportdialog.o cputype 
(7, architecture i386) does not match cputype (18) for
specified -arch 
flag: ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/dialoganimationseinstellungen.o 
cputype (7, architecture i386) does not match cputype (18)
for specified 
-arch flag: ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/einstellungendialog.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning
ReleaseGCCMac/termeinstellungendialog.o cputype 
(7, architecture i386) does not match cputype (18) for
specified -arch 
flag: ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/schieberegler.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** ified -arch flag: ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/cube.o cputype (7,
architecture 
i386) does not match cputype (18) for specified -arch flag:
ppc (file 
not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geodocument.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geogroup.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geoobject.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geoschieberegler.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/mytoolbar.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/parser.o cputype (7,
architecture 
i386) does not match cputype (18) for specified -arch flag:
ppc (file 
not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geopoint.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geoplane.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geovector.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geoparallel.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geomodel.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geotriangle.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geosphere.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/functions.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geoline.o cputype (7,

architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geocircle.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geolocus.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geotransform.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/spinctld.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geoterm.o cputype (7,

architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geoalgobject.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geotermparser.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/myhtmlctrl.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/einstellungen.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/CreateShadowedScene.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** Mac/geolight.o cputype (7, architecture i386) does not
match cputype 
(18) for specified -arch flag: ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/GeoShadow.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/geolinear.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/GeoAnimation.o
cputype (7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/testshadow.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/undoevent.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: warning ReleaseGCCMac/undostack.o cputype
(7, 
architecture i386) does not match cputype (18) for specified
-arch flag: 
ppc (file not loaded)

*** /usr/bin/ld: Undefined symbols:

*** _main

*** collect2: ld returned 1 exit status

*** lipo: can't open input file: /var/tmp//ccqL2UYx.out (No
such file or 
directory)

*** make: *** [ReleaseGCCMac/DreiDEdit] Error 1

Done.

8 errors, 56 warnings
_,_._,___ 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    htt
p://groups.yahoo.com/group/anthemion-devtools/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/anthemion-devtools/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:anthemion-devtools-digest@yahoogroups.com 
    mailto:anthemion-devtools-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    anthemion-devtools-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )