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 Search Today's Posts Mark Forums Read

 
Build error Thread Tools Search this Thread Display Modes
Hi, I'm trying to do "./Scripts/Build Framework install" and get this error:

Code:
Ld /Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/ppc/OAUnitTests normal ppc
    cd /Users/peer/Documents/Xcode/Frameworks/OmniGroup/Frameworks/OmniAppKit
    /usr/bin/gcc-4.0 -o /Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/ppc/OAUnitTests -L/Users/Shared/peer/Products/Release -F/Users/Shared/peer/Products/Release -F/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks -filelist /Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/ppc/OAUnitTests.LinkFileList -framework OmniAppKit -framework OmniFoundation -framework OmniBase -framework Cocoa -framework SenTestingKit -arch ppc -Wl,-x -Wl,-Y,1455 -bundle -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: Undefined symbols:
_testLineCurveIntersections
_testLineLineIntersections
/Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/ppc/OAGeometryTests.o reference to undefined _testLineCurveIntersections
/Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/ppc/OAGeometryTests.o reference to undefined _testLineLineIntersections
collect2: ld returned 1 exit status

CompileC /Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/i386/OAGeometryTests.o /Users/peer/Documents/Xcode/Frameworks/OmniGroup/Frameworks/OmniAppKit/Tests/UnitTests/OAGeometryTests.m normal i386 objective-c com.apple.compilers.gcc.4_0
    cd /Users/peer/Documents/Xcode/Frameworks/OmniGroup/Frameworks/OmniAppKit
    /usr/bin/gcc-4.0 -x objective-c -arch i386 -pipe -Wno-trigraphs -fobjc-exceptions -fpascal-strings -fasm-blocks -g -O2 -Werror -Wreturn-type -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wsign-compare -Wnewline-eof -fmessage-length=0 -fobjc-direct-dispatch -mmacosx-version-min=10.4 -I/Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/OAUnitTests.hmap -Wall -Wno-#warnings -Wno-trigraphs -F/Users/Shared/peer/Products/Release -F/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks -I/Users/Shared/peer/Products/Release/include -I/Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/DerivedSources -DOMNI_BUNDLE_IDENTIFIER=@\"\" -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include /Users/Shared/peer/Products/Release/SharedPrecompiledHeaders/OAUnitTests_Prefix-eqvwmjhbilikfrfgkvbpflidruow/OAUnitTests_Prefix.h -c /Users/peer/Documents/Xcode/Frameworks/OmniGroup/Frameworks/OmniAppKit/Tests/UnitTests/OAGeometryTests.m -o /Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/i386/OAGeometryTests.o

Ld /Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/i386/OAUnitTests normal i386
    cd /Users/peer/Documents/Xcode/Frameworks/OmniGroup/Frameworks/OmniAppKit
    /usr/bin/gcc-4.0 -o /Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/i386/OAUnitTests -L/Users/Shared/peer/Products/Release -F/Users/Shared/peer/Products/Release -F/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks -filelist /Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/i386/OAUnitTests.LinkFileList -framework OmniAppKit -framework OmniFoundation -framework OmniBase -framework Cocoa -framework SenTestingKit -arch i386 -Wl,-x -Wl,-Y,1455 -bundle -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: Undefined symbols:
_testLineCurveIntersections
_testLineLineIntersections
/Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/i386/OAGeometryTests.o reference to undefined _testLineCurveIntersections
/Users/Shared/peer/Products/Builds/OmniAppKit.build/Release/OAUnitTests.build/Objects-normal/i386/OAGeometryTests.o reference to undefined _testLineLineIntersections
collect2: ld returned 1 exit status
** BUILD FAILED **
Build failed in  (OmniGroup/Frameworks/OmniAppKit(OAUnitTests))
I'm using OSX 10.4.8 (intel) and Xcode 2.4.

btw, I'd love to have the framework in /Documents/Xcode/Frameworks/Omni, but it has been built in a shared folder for all users. What do I need to change?

Oh, a little idiot's howto on using the Framework would be fine :-)

Kind regards,
Peer
 
the same thing has been happening to me. any advice?
 
I had a similar problem. It looks like the Release build tries to compile OAGeometryTests.m... which relies on external functions defined in NSBezierPath-OAExtensions.m... which are #if def'ed out when building for Release... which can't be changed or you get an error for an unused var in those functions because OBAssert is never called...

I worked around it by adding similar #if def statements to OAGeometryTests.m as follows:

Code:
@interface OAGeometryTests : OATestCase
@end

#if defined(DEBUG) || defined(COVERAGE) || defined(TEST_INTERNAL_FUNCTIONS)
extern void testLineLineIntersections(void);
extern void testLineCurveIntersections(void);
#endif

@implementation OAGeometryTests

#if defined(DEBUG) || defined(COVERAGE) || defined(TEST_INTERNAL_FUNCTIONS)
- (void)testLineLineIntersections
{
    testLineLineIntersections();
}

- (void)testLineCurveIntersections
{
    testLineCurveIntersections();
}
#endif

@end
Also, as for changing the install location, you should be able to set the OMNI_PRODUCT_DIRECTORY varible with the following command (all one line):

Code:
$ OMNI_PRODUCT_DIRECTORY="˜/Documents/Xcode/Frameworks/Omni" ./Scripts/Build Frameworks install
...without the leading dollar sign of course. Just look at the Build file -- it's a Unix shell script (if you aren't familiar with shell scripts, it's worth learning!).

- scott

p.s. i hate php forums that require creating accounts.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Build Framework Fails From Command Line But Build in XCode Succeeds davidbitton Omni Frameworks 2 2012-05-01 05:13 PM
Build for device jgarnham Omni Frameworks 1 2011-04-23 10:20 AM
Changes in 1.7.4 SP, Build 9/24 Greg Jones OmniFocus 1 for Mac 7 2009-09-25 05:12 PM
Latest build: 214 MB? philonous OmniWeb General 15 2008-03-03 10:47 AM
iCal sync error (build 94644) ksrhee iCal Sync 1 2007-11-15 12:53 PM


All times are GMT -8. The time now is 05:16 AM.


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