The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   Omni Frameworks (http://forums.omnigroup.com/forumdisplay.php?f=16)
-   -   error building (http://forums.omnigroup.com/showthread.php?t=831)

kidtexas 2006-06-19 03:07 PM

error building
 
Hi, was wondering if someone could help me out here. I'm trying to build the Omniframeworks. I've set my Xcode build settings to put both products and intermediates in /Users/tgray/Build. I then cd to the source directory and run:
./Source/build install

It goes for a while (looks like it builds all the frameworks) but then it fails during the test:

[QUOTE]
cc1obj: warnings being treated as errors
/Users/tgray/Documents/code/OmniGroup/Frameworks/OmniFoundation/Tests/OFXMLDocumentTests.m: In function '-[OFXMLDocumentTests testWriteEmptyDocument]':
/Users/tgray/Documents/code/OmniGroup/Frameworks/OmniFoundation/Tests/OFXMLDocumentTests.m:74: warning: implicit declaration of function 'should'
/Users/tgray/Documents/code/OmniGroup/Frameworks/OmniFoundation/Tests/OFXMLDocumentTests.m:74: warning: implicit declaration of function 'shouldBeEqual'
** BUILD FAILED **
Build failed in (OmniGroup/Frameworks/OmniFoundation(OFUnitTests))
[/QUOTE]

Any ideas? I'm on 10.4.6 on a powerbook g4.

Tom Bunch 2006-07-10 12:56 PM

Hey, I'm sort of embarrassed that your question has been sitting here ignored for almost a month. Sorry about that!

Apple recently deprecated many of the SenTestingKit APIs that our tests use. Our release build configuration is pretty pedantic about warnings, thus the failure you're seeing. The build should succeed with the Debug configuration active.

What you can do is enable the deprecated APIs by inspecting the OFUnitTests target, selecting the Build tab of the inspector, select configuration "Release" (or whatever configuration you're actually building) and Collection "Preprocessing". Add "STEnableDeprecatedAssertionMacros" to the Preprocessor Macros (currently probably empty). Try again.

Good luck!

-Tom

Hemkomsow 2006-08-02 02:09 AM

Great information

Uncommon 2006-09-05 03:29 PM

This has to be done for the OmniNetworking framework as well.

You guys should really post an update :)


All times are GMT -8. The time now is 11:48 PM.

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