The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > Developer > Omni Frameworks
FAQ Members List Calendar Today's Posts

 
Building frameworks for the first time... Thread Tools Search this Thread Display Modes
I fear the fleshy palm!

If you look in Xcode's Building pref pane, you can set a separate build location for build products and intermediates. We do all our builds with something like:

Place Build Products in: [x] Customized Location: /Users/Shared/user-name/Products
Place Intermediate Build Files in: [x] With build products

This will set the defaults in question and will allow the frameworks to find each other. Also, the separate build directory keeps Xcode from junking up our source directory and generally is nicer in our opinion.

Longer term, I'm hoping we can release our real build scripts, but it is unclear if that would make things simpler for _you_ or just simpler for _us_ =)
__________________
CTO, The Omni Group
 
I should also mention, that we're working on getting OWF to build (or we may remove it if Ken/Wim deem that better). It's suffered some bit rot in our recent updates and needed a bit of love. I don't think its seeing a lot of use these days, but it should at least build. Yeesh!
__________________
CTO, The Omni Group
 
Looks like there are some problems building OIF because of OWF bitrot, too. I removed OWF from the Scripts/projectList file and then got this:

ProcessPCH /Users/Shared/craig/Products/Debug/SharedPrecompiledHeaders/OIF_Prefix-cqxuumniwlktcxaywcavcawfogmj/OIF_Prefix.h.gch OIF_Prefix.h normal i386 objective-c com.apple.compilers.gcc.4_0
<snip>
/Users/craig/Downloads/OmniGroup/Frameworks/OIF/OIF_Prefix.h:14:20: error: OWF/OWF.h: No such file or directory
** BUILD FAILED **

The following build commands failed:
OIF (Framework):
ProcessPCH /Users/Shared/craig/Products/Debug/SharedPrecompiledHeaders/OIF_Prefix-cqxuumniwlktcxaywcavcawfogmj/OIF_Prefix.h.gch OIF_Prefix.h normal i386 objective-c com.apple.compilers.gcc.4_0
(1 failure)

Build failed in (OmniGroup/Frameworks/OIF)

The unit tests are complaining, too:

ProcessPCH /Users/Shared/craig/Products/Debug/SharedPrecompiledHeaders/OAUnitTests_Prefix-bsjkqsklhqencnhalyiboprubfbz/OAUnitTests_Prefix.h.gch Tests/UnitTests/OAUnitTests_Prefix.h normal i386 objective-c com.apple.compilers.gcc.4_0
<snip>
/Users/craig/Downloads/OmniGroup/Frameworks/OmniAppKit/Tests/UnitTests/OAUnitTests_Prefix.h:15:40: error: SenTestingKit/SenTestingKit.h: No such file or directory

<snip>
** BUILD FAILED **

The following build commands failed:
OAUnitTests:
ProcessPCH /Users/Shared/craig/Products/Debug/SharedPrecompiledHeaders/OAUnitTests_Prefix-bsjkqsklhqencnhalyiboprubfbz/OAUnitTests_Prefix.h.gch Tests/UnitTests/OAUnitTests_Prefix.h normal i386 objective-c com.apple.compilers.gcc.4_0
(1 failure)

Build failed in (OmniGroup/Frameworks/OmniAppKit(OAUnitTests))
 
Ken uploaded a new zip with fixed OWF and OIF. It looks like the OmniAppKit unit tests are still not building for some reason (not finding SenTestingKit with the 10.5 SDK, it looks like).

We'll keep banging on it, but yeah – anything you don't need can be expunged from the build list as a workaround for now (or as a performance fix for building crap you don't want)
__________________
CTO, The Omni Group
 
I have next problem:

The following build commands failed:
OAUnitTests:
CompileC /Users/Shared/miroslavperovic/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/ppc/OATestCase.o /Users/miroslavperovic/Development/OmniGroup/Frameworks/OmniAppKit/Tests/UnitTests/OATestCase.m normal ppc objective-c com.apple.compilers.gcc.4_2
CompileC /Users/Shared/miroslavperovic/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/i386/OATestCase.o /Users/miroslavperovic/Development/OmniGroup/Frameworks/OmniAppKit/Tests/UnitTests/OATestCase.m normal i386 objective-c com.apple.compilers.gcc.4_2
(2 failures)

Build failed in (OmniGroup/Frameworks/OmniAppKit(OAUnitTests))

I'm using XCode 3.1.3.
 
Re:
"The following build commands failed:
OAUnitTests:
CompileC "

The signature of:
- (BOOL)exceptionHandler:(NSExceptionHandler *)sender shouldLogException:(NSException *)exception mask:(NSUInteger)aMask;

in OATestCase.m has the mask parameter as (unsigned int) instead of the correct (NSUIinteger), and the project has 'treat warnings as errors' on.

So, I changed (unsigned int) to (NSUInteger) in the OATestCase.m - - (BOOL)exceptionHandler:… and it now builds without errors.
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Building for 10.5 Joe Alexander Omni Frameworks 3 2011-05-15 09:47 AM
Method replacements you make in Omni frameworks atux Omni Frameworks 1 2010-12-26 07:17 AM
Use Omni Frameworks in Mac App Store imyrvold Omni Frameworks 2 2010-12-26 07:13 AM
Installing frameworks Werdan Omni Frameworks 1 2010-07-21 12:54 PM
Older Frameworks... sunfire Omni Frameworks 2 2009-06-04 07:51 AM


All times are GMT -8. The time now is 12:15 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.