[OGo-Developer] noob question on building sope-appserver
Marcus Müller
developer@opengroupware.org
Tue, 21 Nov 2006 21:05:21 +0100
--Apple-Mail-14--998755606
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=WINDOWS-1252;
delsp=yes;
format=flowed
On 21.11.2006, at 05:05, Chad Leigh wrote:
> Building target =93libxmlSAXDriver=94 of project =93libxmlSAXDriver=94 =
with =20
> configuration =93Development=94 =97 (1 error)
> Checking Dependencies cd =
/Volumes/erik/Users/chad/sope/sope-=20
> svn-20061120/trunk/sope-xml/libxmlSAXDriver
> /usr/bin/gcc-4.0 -o /Volumes/erik/Users/chad/sope/sope-=20
> svn-20061120/trunk/sope-xml/libxmlSAXDriver/build/Development/=20
> libxmlSAXDriver.sax/Contents/MacOS/libxmlSAXDriver -L/Volumes/erik/=20
> Users/chad/sope/sope-svn-20061120/trunk/sope-xml/libxmlSAXDriver/=20
> build/Development -F/Volumes/erik/Users/chad/sope/sope-svn-20061120/=20=
> trunk/sope-xml/libxmlSAXDriver/build/Development -F/Library/=20
> Frameworks -filelist /Volumes/erik/Users/chad/sope/sope-=20
> svn-20061120/trunk/sope-xml/libxmlSAXDriver/build/=20
> libxmlSAXDriver.build/Development/libxmlSAXDriver.build/Objects-=20
> normal/ppc/libxmlSAXDriver.LinkFileList -framework SaxObjC -=20
> framework Foundation -arch ppc -Wl,-Y,1455 -bundle -lxml2
> /usr/bin/ld: can't locate framework for: -framework SaxObjC
> collect2: ld returned 1 exit status
> /usr/bin/ld: can't locate framework for: -framework =
SaxObjC
> collect2: ld returned 1 exit status
> Build failed (1 error)
Yes, that's somehow expected - the SaxObjC.framework, required for =20
linking, isn't in your framework search path (indicated by the paths =20
following the -F flags). There are two solutions to this problem:
a) have a central build directory for ALL your projects
b) create symlinks from /Library/Frameworks to the exact build =20
product, for all the SOPE frameworks, i.e.:
--- snip ---
znek@nerd:(/Library/Frameworks)$ ls -ld SaxObjC.framework
lrwxr-xr-x 1 znek admin 46 Jun 12 2005 SaxObjC.framework -> /=20
Local/BuildArea/Development/SaxObjC.framework
--- snap ---
There is some documentation on the Mac OS X build process (a bit =20
dated, but quite correct) - here's a relevant snippet from README-=20
OSX.txt which can be found in sope-appserver:
--- snip ---
Building using Xcode:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
The Xcode build comes in two variants, one for development and the =20
other for
deployment.
Development
-----------
Development usually means you're happily hacking away at your pet
projects and sometimes want to update the SOPE frameworks. For this =20
purpose
use the "all" target and the accompanied "Development" build style. =20
Later,
you can narrow the target down to something more specific. For =20
development we
assume the destination for frameworks to be /Library/Frameworks. Once =20=
you are
done building all the frameworks the loader commands of the =20
frameworks will
have that destination path built in. In order to use the frameworks =20
you either
have to install them (by copying them manually to their destination) =20
or to
prepare symlinks from /Library/Frameworks to the place where the =20
built products
are. I usually build everything in a central place (i.e. /Local/=20
BuildArea) and
have symlinks from /Library/Frameworks to /Local/BuildArea for each =20
of the
products.
Also the following products are expected to be in the following =20
locations:
*.sax -> /Library/SaxDrivers
*.sxp -> /Library/SoProducts
Either copy them to the appropriate places or symlink them (my =20
suggestion).
--- snap ---
Cheers,
Marcus
--=20
Marcus Mueller . . . crack-admin/coder ;-)
Mulle kybernetiK . http://www.mulle-kybernetik.com
Current projects: http://www.mulle-kybernetik.com/znek/
--Apple-Mail-14--998755606
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=WINDOWS-1252
<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; "><BR><DIV><DIV>On 21.11.2006, at =
05:05, Chad Leigh wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><P =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT face=3D"Monaco" size=3D"2"=
style=3D"font: 10.0px Monaco">Building target =93libxmlSAXDriver=94 of =
project =93libxmlSAXDriver=94 with configuration =93Development=94 =97 =
(1 error)</FONT></P> <P style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT =
face=3D"Monaco" size=3D"2" style=3D"font: 10.0px Monaco"><SPAN =
class=3D"Apple-tab-span" style=3D"white-space:pre"> </SPAN>Checking =
Dependencies<SPAN class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</SPAN><SPAN class=3D"Apple-converted-space">=A0 =A0 </SPAN>cd =
/Volumes/erik/Users/chad/sope/sope-svn-20061120/trunk/sope-xml/libxmlSAXDr=
iver</FONT></P> <P style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT =
face=3D"Monaco" size=3D"2" style=3D"font: 10.0px Monaco"><SPAN =
class=3D"Apple-converted-space">=A0 =A0 </SPAN>/usr/bin/gcc-4.0 -o =
/Volumes/erik/Users/chad/sope/sope-svn-20061120/trunk/sope-xml/libxmlSAXDr=
iver/build/Development/libxmlSAXDriver.sax/Contents/MacOS/libxmlSAXDriver =
-L/Volumes/erik/Users/chad/sope/sope-svn-20061120/trunk/sope-xml/libxmlSAX=
Driver/build/Development =
-F/Volumes/erik/Users/chad/sope/sope-svn-20061120/trunk/sope-xml/libxmlSAX=
Driver/build/Development -F/Library/Frameworks -filelist =
/Volumes/erik/Users/chad/sope/sope-svn-20061120/trunk/sope-xml/libxmlSAXDr=
iver/build/libxmlSAXDriver.build/Development/libxmlSAXDriver.build/Objects=
-normal/ppc/libxmlSAXDriver.LinkFileList -framework SaxObjC -framework =
Foundation -arch ppc -Wl,-Y,1455 -bundle -lxml2</FONT></P> <P =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT face=3D"Monaco" size=3D"2"=
style=3D"font: 10.0px Monaco">/usr/bin/ld: can't locate framework for: =
-framework SaxObjC</FONT></P> <P style=3D"margin: 0.0px 0.0px 0.0px =
0.0px"><FONT face=3D"Monaco" size=3D"2" style=3D"font: 10.0px =
Monaco">collect2: ld returned 1 exit status</FONT></P> <P style=3D"margin:=
0.0px 0.0px 0.0px 0.0px"><FONT face=3D"Monaco" size=3D"2" style=3D"font: =
10.0px Monaco"><SPAN class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</SPAN><SPAN class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</SPAN>/usr/bin/ld: can't locate framework for: -framework =
SaxObjC</FONT></P> <P style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT =
face=3D"Monaco" size=3D"2" style=3D"font: 10.0px Monaco"><SPAN =
class=3D"Apple-tab-span" style=3D"white-space:pre"> </SPAN><SPAN =
class=3D"Apple-tab-span" style=3D"white-space:pre"> </SPAN>collect2: =
ld returned 1 exit status</FONT></P> <P style=3D"margin: 0.0px 0.0px =
0.0px 0.0px"><FONT face=3D"Monaco" size=3D"2" style=3D"font: 10.0px =
Monaco">Build failed (1 error)</FONT></P> </BLOCKQUOTE></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Yes, that's somehow =
expected - the SaxObjC.framework, required for linking, isn't in your =
framework search path (indicated by the paths following the -F flags). =
There are two solutions to this problem:</DIV><DIV>a) have a central =
build directory for ALL your projects</DIV><DIV>b) create symlinks from =
/Library/Frameworks to the exact build product, for all the SOPE =
frameworks, i.e.:</DIV><DIV>=A0=A0 =A0--- snip ---</DIV><DIV>=A0=A0 =
=A0znek@nerd:(/Library/Frameworks)$ ls -ld SaxObjC.framework =
</DIV><DIV>lrwxr-xr-x=A0=A0 1 znek=A0 admin=A0 46 Jun 12=A0 2005 =
SaxObjC.framework -> =
/Local/BuildArea/Development/SaxObjC.framework</DIV><DIV>=A0=A0 =A0--- =
snap ---</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>There =
is some documentation on the Mac OS X build process (a bit dated, but =
quite correct) -=A0here's a relevant snippet from README-OSX.txt which =
can be found in sope-appserver:</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>--- snip =
---</DIV><DIV>Building using =
Xcode:</DIV><DIV>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>The =
Xcode build comes in two variants, one for development and the other =
for</DIV><DIV>deployment.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Development</DIV><DIV>-------=
----</DIV><DIV>Development usually means you're happily hacking away at =
your pet</DIV><DIV>projects and sometimes want to update the SOPE =
frameworks. For this purpose</DIV><DIV>use the "all" target and the =
accompanied "Development" build style. Later,</DIV><DIV>you can narrow =
the target down to something more specific. For development =
we</DIV><DIV>assume the destination for frameworks to be =
/Library/Frameworks. Once you are</DIV><DIV>done building all the =
frameworks the loader commands of the frameworks will</DIV><DIV>have =
that destination path built in. In order to use the frameworks you =
either</DIV><DIV>have to install them (by copying them manually to their =
destination) or to</DIV><DIV>prepare symlinks from /Library/Frameworks =
to the place where the built products</DIV><DIV>are. I usually build =
everything in a central place (i.e. /Local/BuildArea) and</DIV><DIV>have =
symlinks from /Library/Frameworks to /Local/BuildArea for each of =
the</DIV><DIV>products.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Also the following products =
are expected to be in the following locations:</DIV><DIV>*.sax -> =
/Library/SaxDrivers</DIV><DIV>*.sxp -> =
/Library/SoProducts</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Either copy them to the =
appropriate places or symlink them (my suggestion).</DIV><DIV>--- snap =
---</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><BR><DIV> =
<SPAN class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><P style=3D"margin: =
0.0px 0.0px 0.0px 0.0px"><FONT face=3D"Helvetica" size=3D"3" =
style=3D"font: 12.0px Helvetica">Cheers,</FONT></P><P style=3D"margin: =
0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: =
14.0px"><BR></P><P style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica"><SPAN =
class=3D"Apple-converted-space">=A0<SPAN =
class=3D"Apple-converted-space">=A0</SPAN></SPAN>Marcus</FONT></P><P =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; =
min-height: 14.0px"><BR></P><P style=3D"margin: 0.0px 0.0px 0.0px =
0.0px"><FONT face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px =
Helvetica">--<SPAN class=3D"Apple-converted-space">=A0</SPAN></FONT></P><P=
style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica">Marcus Mueller<SPAN =
class=3D"Apple-converted-space">=A0<SPAN =
class=3D"Apple-converted-space">=A0</SPAN></SPAN>.<SPAN =
class=3D"Apple-converted-space">=A0<SPAN =
class=3D"Apple-converted-space">=A0</SPAN></SPAN>.<SPAN =
class=3D"Apple-converted-space">=A0<SPAN =
class=3D"Apple-converted-space">=A0</SPAN></SPAN>.<SPAN =
class=3D"Apple-converted-space">=A0<SPAN =
class=3D"Apple-converted-space">=A0</SPAN></SPAN>crack-admin/coder =
;-)</FONT></P><P style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica">Mulle =
kybernetiK<SPAN class=3D"Apple-converted-space">=A0<SPAN =
class=3D"Apple-converted-space">=A0</SPAN></SPAN>.<SPAN =
class=3D"Apple-converted-space">=A0<SPAN =
class=3D"Apple-converted-space">=A0</SPAN></SPAN><A =
href=3D"http://www.mulle-kybernetik.com">http://www.mulle-kybernetik.com</=
A></FONT></P><P style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica">Current =
projects:=A0<A =
href=3D"http://www.mulle-kybernetik.com/znek/">http://www.mulle-kybernetik=
.com/znek/</A></FONT></P><BR =
class=3D"Apple-interchange-newline"></SPAN></SPAN> =
</DIV><BR></BODY></HTML>=
--Apple-Mail-14--998755606--