[OGo-MacOSX] Re: Problem building mod_ngobjweb

Marcus Müller macosx@opengroupware.org
Sun, 26 Mar 2006 18:37:46 +0200


--Apple-Mail-9--272374220
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

Hi Phillipe,

thanks for your interest in SOPE! But before I (try to) answer your  
questions, I have a minor request - please direct all these questions  
to the macosx mailing list (http://mail.opengroupware.org/pipermail/ 
macosx/) ... they are interesting for a wider audience and it also  
straightens the process of responding to such inquiries.

On 26.03.2006, at 15:22, Philippe Laval wrote:

> Hello,
>
> I would like to use your project SOPE on a Macintosh running Mac OS  
> X 10.4.5.
> I have good knowledge of Cocoa programming (XCode, ObjC, CoreData)  
> and WebObject (Java).
> I would like to use SOPE because of the use of ObjC and the fact it  
> is an open LGPL project.
> For my small project, the cost of a full WebObject licence is too  
> expensive.
> I would like to use something like your example  
> "CoreDataBlog" (since I currently have a ObjC CoreData application  
> and would like to show it's data on the web).
>
>
> For now, I am able to build all frameworks with XCode (seems that  
> only the wrapper build configuration is working for me).
> But I can not build mod_ngobjweb (see below).
> You indicated in one of your documentation, that we must use  
> mod_ngobjweb in order to use SOPE (for now I am only using a direct  
> connection from a browser at http://localhost:20000/)
>
>
> I have also created two XCode projects for HelloWorld and TestPages  
> examples.
> During this experiments, when running TestPages example, I got this  
> problems using the two forms :
> ZeroLink: unknown symbol '_ASSIGN'
> ZeroLink: unknown symbol '_ASSIGNCOPY'
>
> I had to change common.h to include NGExtensions.h (see below) to  
> solve these problems.

That's right - some of the macros you're using are non standard  
extensions.

> I have several questions :
>
> 1 - I seen that your are defining a lot of define :
> APPLE_RUNTIME=1 NeXT_Foundation_LIBRARY=1  
> COCOA_Foundation_LIBRARY=1 NeXT_RUNTIME=1
> Should I define this stuff in all examples using SOPE frameworks ?

Yes. Due to the complexity (and portability) of SOPE, some of these  
defines are necessary. Please have a look at  http:// 
svn.opengroupware.org/SOPE/trunk/sopex/Templates/ - because the setup  
of a new Xcode project requires quite some work, I have created some  
Xcode 2.{1,2} templates that you might find useful. Any extensions  
and improvements to them are welcome of course.

> 2 - How can I  create an XCode build phase to include the  
> components (xx.wo directories) in the WebServerResources folder ?
> For now, I copy manually the WebServerResources in TestPages.app  
> (at same level than Contents subfolder).
> Did you have planned to move WebServerResources in the Contents  
> subfolder ? It will be more "Macintosh like".

No, we didn't plan this ... having said that I don't know exactly why  
I didn't do it in the first place, but I think it had something to do  
with the complexity of the resource manager code. This has been  
adjusted and taken care of in the past 1 1/2 years, so the initial  
reasons for not doing it this way might have gone. On the other hand,  
the current situation is not really problematic at all.

I'd propose you just take a look at the existing templates first and  
familiarize with the way they work. Probably everything that you  
require for the time being is already in there.

> 3 - I have a problem buiding mod_ngobjweb on a G5 (Mac OS X 10.4.5)  
> with XCode (see below).
> I have downloaded this package : sope-4.5.6-morecore-r1212.tar.gz
> I suppose that I am missing some libraries related to Apache ?
> Could you, please point me to the required code.

I can reproduce this problem. I'm looking into it now.

> Thanks for your great job building SOPE. I really hope to be able  
> to fix my
> problems and beeing one of your big fan. I could write examples and  
> documentations too.
> For now I am lacking the build and installation of mod_ngobjweb  
> with Apache on mac OS X.

Thanks for the flowers! :-)

Cheers,

   Marcus

-- 
Marcus Mueller  .  .  .  crack-admin/coder ;-)
Mulle kybernetiK  .  http://www.mulle-kybernetik.com
Current projects: http://www.mulle-kybernetik.com/znek/



--Apple-Mail-9--272374220
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=ISO-8859-1

<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; ">Hi Phillipe,<DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>thanks for your interest in =
SOPE! But before I (try to) answer your questions, I have a minor =
request - please direct all these questions to the macosx mailing list =
(<A =
href=3D"http://mail.opengroupware.org/pipermail/macosx/">http://mail.openg=
roupware.org/pipermail/macosx/</A>) ... they are interesting for a wider =
audience and it also straightens the process of responding to such =
inquiries.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"><DIV><DIV><DIV>On 26.03.2006, at =
15:22, Philippe Laval 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; ">Hello,</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: =
14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">I would like to use your project =
SOPE on a Macintosh running Mac OS X 10.4.5.</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">I have good knowledge of Cocoa programming (XCode, =
ObjC, CoreData) and WebObject (Java).</DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I would =
like to use SOPE because of the use of ObjC and the fact it is an open =
LGPL project.</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">For my small project, the cost =
of a full WebObject licence is too expensive.</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">I would like to use something like your example =
"CoreDataBlog" (since I currently have a ObjC CoreData application and =
would like to show it's data on the web).</DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: =
14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">For now, I am able to build all =
frameworks with XCode (seems that only the wrapper build configuration =
is working for me).</DIV><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; ">But I can not build =
mod_ngobjweb (see below).</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">You indicated =
in one of your documentation, that we must use mod_ngobjweb in order to =
use SOPE (for now I am only using a direct connection from a browser at =
<A href=3D"http://localhost:20000">http://localhost:20000</A>/)</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I have also =
created two XCode projects for HelloWorld and TestPages =
examples.</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">During this experiments, when =
running TestPages example, I got this problems using the two forms =
:</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: =
0px; margin-left: 0px; ">ZeroLink: unknown symbol '_ASSIGN'</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">ZeroLink: unknown symbol '_ASSIGNCOPY'</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I had to =
change common.h to include NGExtensions.h (see below) to solve these =
problems.</DIV></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV>That's right - some of the =
macros you're using are non standard =
extensions.</DIV><DIV><BR><BLOCKQUOTE type=3D"cite"><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I have =
several questions :</DIV><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; =
"><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">1 - I seen that your are =
defining a lot of define :</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
">APPLE_RUNTIME=3D1 NeXT_Foundation_LIBRARY=3D1 =
COCOA_Foundation_LIBRARY=3D1 NeXT_RUNTIME=3D1</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Should I define this stuff in all examples using =
SOPE frameworks ?</DIV></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV>Yes. Due to the complexity (and =
portability) of SOPE, some of these defines are necessary. Please have a =
look at=A0=A0<A =
href=3D"http://svn.opengroupware.org/SOPE/trunk/sopex/Templates/">http://s=
vn.opengroupware.org/SOPE/trunk/sopex/Templates/</A> - because the setup =
of a new Xcode project requires quite some work, I have created some =
Xcode 2.{1,2} templates that you might find useful. Any extensions and =
improvements to them are welcome of course.</DIV><DIV><BR><BLOCKQUOTE =
type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">2 - How can I<SPAN =
class=3D"Apple-converted-space">=A0 </SPAN>create an XCode build phase =
to include the components (xx.wo directories) in the WebServerResources =
folder ?</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">For now, I copy manually the =
WebServerResources in TestPages.app (at same level than Contents =
subfolder).</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">Did you have planned to move =
WebServerResources in the Contents subfolder ? It will be more =
"Macintosh like".</DIV></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV>No, we didn't plan this ... =
having said that I don't know exactly why I didn't do it in the first =
place, but I think it had something to do with the complexity of the =
resource manager code. This has been adjusted and taken care of in the =
past 1 1/2 years, so the initial reasons for not doing it this way might =
have gone. On the other hand, the current situation is not really =
problematic at all.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I'd propose you just take a =
look at the existing templates first and familiarize with the way they =
work. Probably everything that you require for the time being is already =
in there.</DIV><DIV><BR><BLOCKQUOTE type=3D"cite"><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">3 - I have a problem buiding mod_ngobjweb on a G5 =
(Mac OS X 10.4.5) with XCode (see below).</DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I have =
downloaded this package : sope-4.5.6-morecore-r1212.tar.gz</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">I suppose that I am missing some libraries related =
to Apache ?</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">Could you, please point me to =
the required code.</DIV></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I can reproduce this =
problem. I'm looking into it now.</DIV><BR><BLOCKQUOTE type=3D"cite"><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Thanks for your great job building SOPE. I really =
hope to be able to fix my</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">problems and =
beeing one of your big fan. I could write examples and documentations =
too.</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">For now I am lacking the build =
and installation of mod_ngobjweb with Apache on mac OS =
X.</DIV></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Thanks for the flowers! =
:-)</DIV></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></DIV></DIV></BODY></HTML>=

--Apple-Mail-9--272374220--