#13787 closed defect (fixed)
ManOpen fails to install on Mac OS X 10.5.1
Reported by: | mayer.julian@… | Owned by: | waqar@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | blb@… | |
Port: | ManOpen |
Description (last modified by jmpalacios (Juan Manuel Palacios))
$ sudo port install ManOpen ---> Building ManOpen with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_ManOpen/work/ManOpen-2.5.1" && make all " returned error 2 Command output: == Making all for i386 in ManOpen openman.tproj == == Making ManOpen for i386 == Pre-build setup... /bin/rm -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_ManOpen/work/ManOpen-2.5.1/ManOpen.build/derived_src/TrustedPrecomps.txt ......skipping cat2html.tproj ......skipping cat2rtf.tproj Building... ......skipping cat2html.tproj ......skipping cat2rtf.tproj -n Copying English resources... /usr/bin/cc -arch i386 -Os -Wmost -g -fno-common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_ManOpen/work/ManOpen-2.5.1/ManOpen.build/ProjectHeaders -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_ManOpen/work/ManOpen-2.5.1/ManOpen.app/PrivateHeaders -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_ManOpen/work/ManOpen-2.5.1/ManOpen.build/Headers -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_ManOpen/work/ManOpen-2.5.1/ManOpen.build/derived_src/ManOpen -I. -pipe -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_ManOpen/work/ManOpen-2.5.1/ManOpen.build/Headers -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_ManOpen/work/ManOpen-2.5.1/ManOpen.build/PrivateHeaders -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_ManOpen/work/ManOpen-2.5.1 -ObjC -c -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_ManOpen/work/ManOpen-2.5.1/ManOpen.build/objects-optimized/ManOpen/ManDocument.i386.o ManDocument.m ManDocument.m: In function '-[ManDocument windowControllerDidLoadNib:]': ManDocument.m:328: error: 'NSSimpleHorizontalTypesetter' undeclared (first use in this function) ManDocument.m:328: error: (Each undeclared identifier is reported only once ManDocument.m:328: error: for each function it appears in.) ManDocument.m: In function '-[ManTextView drawPageBorderWithSize:]': ManDocument.m:634: warning: 'widthOfString:' is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:216) ManDocument.m:644: warning: 'cString' is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:345) ManDocument.m:645: warning: 'cString' is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:345) ManDocument.m:645: warning: 'cStringLength' is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:347) make[1]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_ManOpen/work/ManOpen-2.5.1/ManOpen.build/objects-optimized/ManOpen/ManDocument.i386.o] Error 1 make: *** [all@ManOpen] Error 2 Error: Status 1 encountered during processing.
Attachments (2)
Change History (9)
comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Milestone: | → Port Bugs |
---|---|
Owner: | changed from macports-tickets@… to waqar@… |
comment:2 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)
Description: | modified (diff) |
---|
Please read WikiFormatting to learn how to properly paste Terminal output into tickets, thanks!
-jmpp
comment:3 Changed 16 years ago by tweiand@…
I have recently gotten ManOpen to compile on Leopard using this patch. Hope this helps.
diff -Naur -x '*.xcode' -x '*.nib' -x '*.pbxproj' ManOpen-2.5.1/ManOpen/ManDocument.m ManOpen/ManOpen/ManDocument.m --- ManOpen-2.5.1/ManOpen/ManDocument.m 2005-11-27 23:32:39.000000000 -0800 +++ ManOpen/ManOpen/ManDocument.m 2009-03-06 14:12:48.000000000 -0800 @@ -325,7 +325,7 @@ #ifdef MACOS_X /* The new ATS typesetter in Jaguar causes some weirdnesses... but is fixed in later versions. */ if (IsPantherOrEarlier()) - [[textView layoutManager] setTypesetter:[NSSimpleHorizontalTypesetter sharedInstance]]; + [[textView layoutManager] setTypesetter:[NSTypesetter sharedSystemTypesetter]]; #endif if (sizeString != nil) @@ -631,7 +631,9 @@ NSFont *font = ManFont(); int currPage = [[NSPrintOperation currentOperation] currentPage]; NSString *str = [NSString stringWithFormat:@"%d", currPage]; - float strWidth = [font widthOfString:str]; +// float strWidth = [font widthOfString:str]; + NSSize strSize = [str sizeWithAttributes:[NSDictionary dictionaryWithObject:font forKey: NSFontAttributeName]]; + float strWidth = strSize.width; NSPoint point = NSMakePoint(size.width/2 - strWidth/2, 20.0); #ifdef MACOS_X @@ -641,8 +643,8 @@ CGContextSetTextMatrix(context, CGAffineTransformIdentity); CGContextSetTextDrawingMode(context, kCGTextFill); //needed? CGContextSetGrayFillColor(context, 0.0, 1.0); - CGContextSelectFont(context, [[font fontName] cString], [font pointSize], kCGEncodingMacRoman); - CGContextShowTextAtPoint(context, point.x, point.y, [str cString], [str cStringLength]); + CGContextSelectFont(context, [[font fontName] UTF8String], [font pointSize], kCGEncodingMacRoman); + CGContextShowTextAtPoint(context, point.x, point.y, [str UTF8String], [str lengthOfBytesUsingEncoding:NSASCIIStringEncoding]); CGContextRestoreGState(context); #else PSgsave();
Changed 16 years ago by blb@…
Attachment: | patch-ManOpen_ManDocument.m.diff added |
---|
files/patch-ManOpen_ManDocument.m.diff
comment:4 Changed 16 years ago by blb@…
Cc: | blb@… added |
---|---|
Keywords: | ManOpen removed |
Port: | ManOpen added |
Attached is files/patch-ManOpen_ManDocument.m.diff (from tweiand's patch, thanks) and a patch to Portfile to use this patch, correct categories, and use ${applications_dir} instead of the hardcoded path for applications.
comment:6 Changed 16 years ago by blb@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Updated in r48503 (maintainer timeout).
Note: See
TracTickets for help on using
tickets.
Assign to maintainer.