List Info

Thread: Problem building mod_ngobjweb




Problem building mod_ngobjweb
user name
2006-03-26 16:37:46
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/



Problem building mod_ngobjweb
user name
2006-03-26 23:40:34

On 26.03.2006, at 18:37, Marcus Müller wrote:

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.

The XCode project is seriously outdated. I tried to update it ... I tried several schemes ... nothing really worked. This is really frustrating, but it's also a key problem of Xcode's build engine - it's rather inflexible (compared to make). So, the current status is, you can't build an Apache shared module using Xcode currently ... at least I don't know any target type that would work out of the box.

Cheers,


  Marcus


-- 

Marcus Mueller  .  .  .  crack-admin/coder

Mulle kybernetiK  .  http://www.mulle-kybernetik.com

Current projects: http://www.mulle-kybernetik.com/znek/



[1-2]

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