[OGo-Developer] noob question on building sope-appserver

Chad Leigh developer@opengroupware.org
Tue, 21 Nov 2006 13:50:12 -0700


--Apple-Mail-70--996065152
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=WINDOWS-1252;
	delsp=yes;
	format=flowed

(in reply to the whole thing but not to any specific parts)

ok, thanks.  I will play around with this.

I was building the master SOPE project, not sope-appserver itself so =20
had not seen that readme, though I did see the others.

Is there not a way that a framework built as part of the project can =20
be used without this sort of "monkeying around"?  That the -F can be =20
set to some relative path that points back to the build area for the =20
project?

Thanks
Chad

XCode non-guru

On Nov 21, 2006, at 1:05 PM, Marcus M=FCller wrote:

>
> On 21.11.2006, at 05:05, Chad Leigh wrote:
>
>> Building target =93libxmlSAXDriver=94 of project =93libxmlSAXDriver=94 =
=20
>> with 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-=20
>> svn-20061120/trunk/sope-xml/libxmlSAXDriver/build/Development -F/=20
>> Library/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 =20
> paths following the -F flags). There are two solutions to this =20
> 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. =20
> Once 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 =20
> destination) 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-70--996065152
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; "><DIV>(in reply to the whole =
thing but not to any specific parts)</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV>ok, thanks.=A0 I will play =
around with this.<DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>I =
was building the master SOPE project, not sope-appserver itself so had =
not seen that readme, though I did see the others.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Is there not a way that a =
framework built as part of the project can be used without this sort of =
"monkeying around"?=A0 That the -F can be set to some relative path that =
points back to the build area for the project?</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Thanks</DIV><DIV>Chad</DIV><D=
IV><BR class=3D"khtml-block-placeholder"></DIV><DIV>XCode =
non-guru</DIV><DIV><BR class=3D"khtml-block-placeholder"><DIV><DIV><DIV>On=
 Nov 21, 2006, at 1:05 PM, Marcus M=FCller wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE =
type=3D"cite"><BR><DIV><DIV>On 21.11.2006, at 05:05, Chad Leigh =
wrote:</DIV><BR class=3D"Apple-interchange-newline"><BLOCKQUOTE =
type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 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></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 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></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 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></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 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></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><FONT face=3D"Monaco" size=3D"2" =
style=3D"font: 10.0px Monaco">collect2: ld returned 1 exit =
status</FONT></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 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></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT =
face=3D"Monaco" size=3D"2" style=3D"font: 10.0px Monaco">Build failed (1 =
error)</FONT></DIV> </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 -&gt; =
/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 -&gt; =
/Library/SaxDrivers</DIV><DIV>*.sxp -&gt; =
/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; "><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><FONT face=3D"Helvetica" size=3D"3" style=3D"font: =
12.0px Helvetica">Cheers,</FONT></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 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></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 12px/normal Helvetica; =
min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica">--<SPAN =
class=3D"Apple-converted-space">=A0</SPAN></FONT></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 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></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 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></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 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></DIV><BR =
class=3D"Apple-interchange-newline"></SPAN></SPAN> =
</DIV><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>=

--Apple-Mail-70--996065152--