Re: [Tuxpaint-devel] more MacOS issues: checking for SDL1 calls
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2017-11-21 18:15:47
|
Hi again! Another volunteer member of the Tux Paint project (Mark K. Kim, a long time contributor, but first time attempting a Mac OS X build) has produced another update that we're hoping people can test, and report back on: https://sourceforge.net/p/tuxpaint/bugs/_discuss/thread/8aeda9b9/18a6/ebe7/b732/7b9b/attachment/tuxpaint-0.9.22-20171120-macos_sierra.zip He writes: "Two sleepless nights but I think I figured out how to build SDL application bundles on a Mac. Can folks give it a shot? It's built on Sierra but I'd be curious if it works on earlier MacOS or High Sierra" I'd appreciate it if you could try it out, and let us know the results. Thanks in advance (and if you're here in the US, Happy Thanksgiving), -bill! On Mon, Nov 13, 2017 at 07:26:56AM -0600, B.J. wrote: > I had that same list of errors last May when I added the objects from the ./macosx directory, though I wasn???t sure if it was still linked to SDL1 (I was trying to make a new SDL2 tree for Mac since there was some specific hold-up needed by SDL1 that apparently won???t be supported anymore from Sierra onward). I think it turned out to be a dead-end and after 2 more do-over trees I got an SDL2 version of 0.9.23 compiled. It crashed whenever I ran it :( I kindof gave up but if anyone else is available to help I???ll try to start it up again. I could really use it for a class I teach this January :) If anyone???s interested I???ll try to trim down my notes and send a digest of my attempts. standing by... > > > On Nov 12, 2017, at 14:29, Bill Kendrick <nb...@so...> wrote: > > > > > > Hi all Mac folks! Can you please test this patched version of Tux Paint, and > > let me know whether it works for you? > > > > https://sourceforge.net/p/tuxpaint/bugs/206/#18a6/ebe7 > > > > Thank you! > > > > -bill! > > > > > > On Thu, May 04, 2017 at 10:04:28AM -0500, B.J. wrote: > >> Do the problems below look like calls to SDL1? It would make sense I guess, since I made the object files from source that was added to the main tree (in the ???macosx" directory) to Cocoa-ize the SDL1 port, I think, and probably hasn???t been touched since. I made the object files to resolve the few unaddressed functions from the SDL2 compile and here???s what I got back from the compiler???curious about anyone???s thoughts :) Thanks for peeking: > >> > >> ??? > >> > >> $ cc -O0 -g -W -Wall -fno-common -ffloat-store -fvisibility=hidden -Wcast-align -Wredundant-decls -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wstrict-aliasing=2 -D_THREAD_SAFE -I/usr/local/include/SDL2 -I/usr/X11/include -I/usr/local/include/fribidi -DVER_DATE=\"2017-05-02\" -DVER_VERSION=\"0.9.23\" -DDATA_PREFIX=\"/usr/local/share/tuxpaint/\" -DDOC_PREFIX=\"/usr/local/share/doc/tuxpaint/\" -DLOCALEDIR=\"/usr/local/share/locale/\" -DIMDIR=\"/usr/local/share/tuxpaint/im/\" -DCONFDIR=\"/usr/local/etc/tuxpaint/\" -DMAGIC_PREFIX=\"/usr/local/lib/tuxpaint/plugins/\" -DNOSVG -DNO_SDLPANGO -o tuxpaint obj/tuxpaint.o obj/i18n.o obj/im.o obj/cursor.o obj/pixels.o obj/rgblinear.o obj/playsound.o obj/fonts.o obj/parse.o obj/progressbar.o obj/dirwalk.o obj/get_fname.o obj/onscreen_keyboard.o obj/postscript_print.o macosx/SDLMain.o macosx/macosx_print.o macosx/TransparentTextView.o macosx/speech.o macosx/patch.o macosx/message.o macosx/fcinstaller.o -L/usr/local/lib -lSDL2 -lSDL2_image -lSDL2_ttf -lz -lpng -lSDL2_mixer -lpaper -L/usr/local/lib -lfribidi -lintl > >> > >> Undefined symbols for architecture x86_64: > >> "_AuthorizationCopyRights", referenced from: > >> -[SDLMain installFontconfigFilesWithAuthorization] in SDLMain.o > >> "_AuthorizationCreate", referenced from: > >> -[SDLMain installFontconfigFilesWithAuthorization] in SDLMain.o > >> "_AuthorizationExecuteWithPrivileges", referenced from: > >> -[SDLMain installFontconfigFilesWithAuthorization] in SDLMain.o > >> "_AuthorizationFree", referenced from: > >> -[SDLMain installFontconfigFilesWithAuthorization] in SDLMain.o > >> "_CFBundleCopyBundleURL", referenced from: > >> -[SDLMain setupWorkingDirectory:] in SDLMain.o > >> "_CFBundleGetInfoDictionary", referenced from: > >> _getApplicationName in SDLMain.o > >> "_CFBundleGetMainBundle", referenced from: > >> -[SDLMain setupWorkingDirectory:] in SDLMain.o > >> _getApplicationName in SDLMain.o > >> "_CFRelease", referenced from: > >> -[SDLMain setupWorkingDirectory:] in SDLMain.o > >> "_CFURLCreateCopyDeletingLastPathComponent", referenced from: > >> -[SDLMain setupWorkingDirectory:] in SDLMain.o > >> "_CFURLGetFileSystemRepresentation", referenced from: > >> -[SDLMain setupWorkingDirectory:] in SDLMain.o > >> "_FcInit", referenced from: > >> -[SDLMain setupFontconfig] in SDLMain.o > >> "_NSAllocateMemoryPages", referenced from: > >> -[NSString(ReplaceSubString) stringByReplacingRange:with:] in SDLMain.o > >> "_NSApp", referenced from: > >> -[SDLMain applicationDidFinishLaunching:] in SDLMain.o > >> -[ModalDelegate wait] in macosx_print.o > >> _DisplayPageSetup in macosx_print.o > >> _SurfacePrint in macosx_print.o > >> "_NSApplicationMain", referenced from: > >> _main in SDLMain.o > >> "_NSDeallocateMemoryPages", referenced from: > >> -[NSString(ReplaceSubString) stringByReplacingRange:with:] in SDLMain.o > >> "_NSDefaultRunLoopMode", referenced from: > >> -[ModalDelegate wait] in macosx_print.o > >> "_NSDeviceRGBColorSpace", referenced from: > >> _CreateImage in macosx_print.o > >> "_NSFontAttributeName", referenced from: > >> -[SDLMain onAbout:] in SDLMain.o > >> "_NSForegroundColorAttributeName", referenced from: > >> -[TransparentTextView activateURLs] in TransparentTextView.o > >> "_NSLinkAttributeName", referenced from: > >> -[TransparentTextView activateURLs] in TransparentTextView.o > >> "_NSLog", referenced from: > >> _CreateImage in macosx_print.o > >> "_NSParagraphStyleAttributeName", referenced from: > >> -[SDLMain onAbout:] in SDLMain.o > >> "_OBJC_CLASS_$_NSApplication", referenced from: > >> _OBJC_CLASS_$_SDLApplication in SDLMain.o > >> "_OBJC_CLASS_$_NSArchiver", referenced from: > >> objc-class-ref in macosx_print.o > >> "_OBJC_CLASS_$_NSAttributedString", referenced from: > >> objc-class-ref in SDLMain.o > >> "_OBJC_CLASS_$_NSAutoreleasePool", referenced from: > >> objc-class-ref in fcinstaller.o > >> "_OBJC_CLASS_$_NSBitmapImageRep", referenced from: > >> objc-class-ref in macosx_print.o > >> "_OBJC_CLASS_$_NSBundle", referenced from: > >> objc-class-ref in SDLMain.o > >> objc-class-ref in fcinstaller.o > >> "_OBJC_CLASS_$_NSColor", referenced from: > >> objc-class-ref in TransparentTextView.o > >> "_OBJC_CLASS_$_NSDate", referenced from: > >> objc-class-ref in macosx_print.o > >> "_OBJC_CLASS_$_NSDictionary", referenced from: > >> objc-class-ref in TransparentTextView.o > >> "_OBJC_CLASS_$_NSFileManager", referenced from: > >> objc-class-ref in SDLMain.o > >> objc-class-ref in fcinstaller.o > >> l_OBJC_$_CATEGORY_NSFileManager_$_CreateDirectoryRecursively in fcinstaller.o > >> "_OBJC_CLASS_$_NSFont", referenced from: > >> objc-class-ref in SDLMain.o > >> "_OBJC_CLASS_$_NSImage", referenced from: > >> objc-class-ref in macosx_print.o > >> "_OBJC_CLASS_$_NSMutableAttributedString", referenced from: > >> objc-class-ref in SDLMain.o > >> "_OBJC_CLASS_$_NSMutableDictionary", referenced from: > >> objc-class-ref in SDLMain.o > >> "_OBJC_CLASS_$_NSMutableString", referenced from: > >> objc-class-ref in SDLMain.o > >> objc-class-ref in TransparentTextView.o > >> "_OBJC_CLASS_$_NSObject", referenced from: > >> _OBJC_CLASS_$_CocoaToSDLBridge in SDLMain.o > >> _OBJC_CLASS_$_SDLMain in SDLMain.o > >> _OBJC_CLASS_$_ModalDelegate in macosx_print.o > >> "_OBJC_CLASS_$_NSPageLayout", referenced from: > >> objc-class-ref in macosx_print.o > >> "_OBJC_CLASS_$_NSParagraphStyle", referenced from: > >> objc-class-ref in SDLMain.o > >> "_OBJC_CLASS_$_NSPrintInfo", referenced from: > >> objc-class-ref in macosx_print.o > >> "_OBJC_CLASS_$_NSPrintOperation", referenced from: > >> objc-class-ref in macosx_print.o > >> "_OBJC_CLASS_$_NSPrinter", referenced from: > >> objc-class-ref in macosx_print.o > >> "_OBJC_CLASS_$_NSProcessInfo", referenced from: > >> objc-class-ref in SDLMain.o > >> "_OBJC_CLASS_$_NSSpeechSynthesizer", referenced from: > >> objc-class-ref in speech.o > >> "_OBJC_CLASS_$_NSString", referenced from: > >> objc-class-ref in SDLMain.o > >> l_OBJC_$_CATEGORY_NSString_$_ReplaceSubString in SDLMain.o > >> objc-class-ref in speech.o > >> objc-class-ref in fcinstaller.o > >> "_OBJC_CLASS_$_NSTextView", referenced from: > >> _OBJC_CLASS_$_TransparentTextView in TransparentTextView.o > >> "_OBJC_CLASS_$_NSURL", referenced from: > >> objc-class-ref in TransparentTextView.o > >> "_OBJC_CLASS_$_NSUnarchiver", referenced from: > >> objc-class-ref in macosx_print.o > >> "_OBJC_CLASS_$_NSUserDefaults", referenced from: > >> objc-class-ref in SDLMain.o > >> objc-class-ref in macosx_print.o > >> "_OBJC_CLASS_$_NSView", referenced from: > >> _OBJC_CLASS_$_ImageView in macosx_print.o > >> "_OBJC_CLASS_$_NSWorkspace", referenced from: > >> objc-class-ref in SDLMain.o > >> "_OBJC_METACLASS_$_NSApplication", referenced from: > >> _OBJC_METACLASS_$_SDLApplication in SDLMain.o > >> "_OBJC_METACLASS_$_NSObject", referenced from: > >> _OBJC_METACLASS_$_SDLApplication in SDLMain.o > >> _OBJC_METACLASS_$_CocoaToSDLBridge in SDLMain.o > >> _OBJC_METACLASS_$_SDLMain in SDLMain.o > >> _OBJC_METACLASS_$_ImageView in macosx_print.o > >> _OBJC_METACLASS_$_ModalDelegate in macosx_print.o > >> _OBJC_METACLASS_$_TransparentTextView in TransparentTextView.o > >> "_OBJC_METACLASS_$_NSTextView", referenced from: > >> _OBJC_METACLASS_$_TransparentTextView in TransparentTextView.o > >> "_OBJC_METACLASS_$_NSView", referenced from: > >> _OBJC_METACLASS_$_ImageView in macosx_print.o > >> "_SDL_GL_GetDrawableSize", referenced from: > >> _setup in tuxpaint.o > >> "_SDL_main", referenced from: > >> -[SDLMain applicationDidFinishLaunching:] in SDLMain.o > >> "___CFConstantStringClassReference", referenced from: > >> CFString in SDLMain.o > >> CFString in SDLMain.o > >> CFString in SDLMain.o > >> CFString in SDLMain.o > >> CFString in SDLMain.o > >> CFString in SDLMain.o > >> CFString in SDLMain.o > >> ... > >> "__objc_empty_cache", referenced from: > >> _OBJC_CLASS_$_SDLApplication in SDLMain.o > >> _OBJC_METACLASS_$_SDLApplication in SDLMain.o > >> _OBJC_METACLASS_$_CocoaToSDLBridge in SDLMain.o > >> _OBJC_CLASS_$_CocoaToSDLBridge in SDLMain.o > >> _OBJC_METACLASS_$_SDLMain in SDLMain.o > >> _OBJC_CLASS_$_SDLMain in SDLMain.o > >> _OBJC_METACLASS_$_ImageView in macosx_print.o > >> ... > >> "_libiconv", referenced from: > >> _iconv in patch.o > >> "_libiconv_open", referenced from: > >> _iconv_open in patch.o > >> "_objc_msgSend", referenced from: > >> -[SDLApplication sendEvent:] in SDLMain.o > >> -[SDLApplication tuxpaintHelp:] in SDLMain.o > >> -[CocoaToSDLBridge dataPath:] in SDLMain.o > >> -[CocoaToSDLBridge preferencesPath] in SDLMain.o > >> -[CocoaToSDLBridge fontsPath] in SDLMain.o > >> -[SDLMain onAbout:] in SDLMain.o > >> -[SDLMain onNew:] in SDLMain.o > >> ... > >> "_objc_msgSendSuper2", referenced from: > >> -[SDLApplication sendEvent:] in SDLMain.o > >> -[ModalDelegate init] in macosx_print.o > >> "_objc_msgSend_stret", referenced from: > >> _SurfacePrint in macosx_print.o > >> ld: symbol(s) not found for architecture x86_64 > >> clang: error: linker command failed with exit code 1 (use -v to see invocation) > >> ------------------------------------------------------------------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Tuxpaint-devel mailing list > >> Tux...@li... > >> https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel > > > > > > -- > > -bill! > > Sent from my computer > > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Tuxpaint-devel mailing list > > Tux...@li... > > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Tuxpaint-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel -- -bill! Sent from my computer |