It was felt that there wasn't any need to have a 32 bits version of Nuke. 64 bits performs much better and it's a pain to have to support two architectures for plugins..
To see if your plugin is actually being loaded at startup, try: setenv DYLD_PRINT_LIBRARIES 1 or export DYLD_PRINT_LIBRARIES=1 depending or what shell you're using, then run Nuke from the command line and see if your dylib appears in the list of libraries being loaded. If it's not being loaded, then it may be an architecture problem or just that it's in a place not being searched by Nuke. If it is being loaded, it won't appear in any menus unless you add it there yourself by editing menu.py. To see if it is being loaded, type 'X' into Nuke and type the name of your plugin into the dialog which should create an instance. Jerry On 31 Mar 2011, at 15:52, ZiZi Zhao wrote: > Hi, > > I don;t have the resource to rebuild the DDImage.dylib and libGLEW.dylib with > a 32bits machine. so I was hacking around little bit. It seems the MAC > version of Nuke6.2v1 was built for 64b only. > > Now, I have configured my imac to have both archs in my system: > ~% uname -m > x86_64 > ~% arch > i386 > > I run "% arch -arch arch_name prog" to test how Nuke6.2v1 was built. > > [test 1] > > % arch -arch i386 > /Applications/Nuke6.2v1/Nuke6.2v1.app/Contents/MacOS/Nuke6.2v1 > arch: posix_spawnp: > /Applications/Nuke6.2v1/Nuke6.2v1.app/Contents/MacOS/Nuke6.2v1: Bad CPU type > in executable > > [test 2] > > % arch -arch x86_64 > /Applications/Nuke6.2v1/Nuke6.2v1.app/Contents/MacOS/Nuke6.2v1 > Nuke 6.2v1, 64 bit, built Dec 17 2010. > Copyright (c) 2010 The Foundry Visionmongers Ltd. All Rights Reserved. > couldn't open library > /Library/OFX/Plugins/Sapphire.ofx.bundle/Contents/MacOS/Sapphire.ofx because > dlopen(/Library/OFX/Plugins/Sapphire.ofx.bundle/Contents/MacOS/Sapphire.ofx, > 1): no suitable image found. Did find: > /Library/OFX/Plugins/Sapphire.ofx.bundle/Contents/MacOS/Sapphire.ofx: no > matching architecture in universal wrapper > ...... (tons of error messages) > > /Library/QuickTime/DesktopVideoOut.component/Contents/MacOS/DesktopVideoOut: > mach-o, but wrong architecture > Disk cache /tmp/??: 0MB (0% of 51200MB) used in 0 files. > Disk cache /tmp/??: created 256 directories > > ==> Nuke6.2v1 can open up & run for x86_64 only. > > I am wondering > > 1. why it is not built in "32/64-universal", also for i386 on a 64-bit > machine? > 2. Whether (or Not) other developers had problems to build & run MAC plugins? > > OK. now I have 64b Nuke, 64b library, plus 64-bit Kernel and Extensions > (Yes), let me see if I have better luck. :) > > Thanks ! > > zizi > > > > --- On Wed, 3/30/11, Xiaolong Qian <xiaol...@machinemolle.com> wrote: > > From: Xiaolong Qian <xiaol...@machinemolle.com> > Subject: Re: [Nuke-dev] plugin for osx, arch i386/x86_64? > To: "Nuke plug-in development discussion" <nuke-dev@support.thefoundry.co.uk> > Date: Wednesday, March 30, 2011, 8:48 AM > > hi, > > After reading the shipped NDK, I find this : > > The resulting shared object file (.so, .dll, or .dylib) should then be moved > to your ~/.nuke directory (or otherwise into the nuke plugin_path). > > And I don't think a 64 dylib can be linked and used by a 32bits program. If i > were you, I would rebuild DDImage.dylib and libGLEW.dylib with your own > 32bits machine. > > Regards > > XL > > 2011/3/30 ZiZi Zhao <ziziz2...@yahoo.com> > Hello Folks, > > I am trying to build the plug-ins in the examples. my system is iMAC i7 w/ > osx 10.6.7. > % arch > i386 > > But I failed to use the given Makefile to make *.dylib, e.g., Blocky.dylib. > The error message is : > > g++-4.0 -g -c -DUSE_GLEW > -I/Applications/Nuke6.2v1/Nuke6.2v1.app/Contents/MacOS/include -isysroot > /Developer/SDKs/MacOSX10.5.sdk -arch i386 -o Blocky.os Blocky.cpp > g++-4.0 -L/Applications/Nuke6.2v1/Nuke6.2v1.app/Contents/MacOS > -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch i386 -bundle -lDDImage > -lGLEW -framework QuartzCore -framework IOKit -framework CoreFoundation > -framework Carbon -framework ApplicationServices -framework OpenGL -framework > AGL -framework Quicktime -o Blocky.dylib Blocky.os > > ld: warning: in > /Applications/Nuke6.2v1/Nuke6.2v1.app/Contents/MacOS/libDDImage.dylib, file > was built for unsupported file format which is not the architecture being > linked (i386) > ld: warning: in > /Applications/Nuke6.2v1/Nuke6.2v1.app/Contents/MacOS/libGLEW.dylib, file was > built for unsupported file format which is not the architecture being linked > (i386) > > plus tons of "Undefined symbols" errors such as : > "DD::Image::Op::input_label(int, char*) const", referenced from: > > So, I changed the "-arch i386" into "-arch x86_64". It worked, sort of, I got > the Blocky.dylib. However, when I started nuke6.2v1, after I loaded the > Blocky.dylib to ~/.nuke, I cannot find the Blocky in the Filter. > > My questions are: > > 1. if my system arch is i386, is the plugin built for x86_64 supposed to work > for it? > > 2. if the answer for 1. is yes, where should I load the plugin in my system? > > 3. Where could I find the plugin in NUKE? > > Thanks in advance! > > ZiZi > > > _______________________________________________ > Nuke-dev mailing list > Nuke-dev@support.thefoundry.co.uk > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev > > > -----Inline Attachment Follows----- > > _______________________________________________ > Nuke-dev mailing list > Nuke-dev@support.thefoundry.co.uk > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev > _______________________________________________ > Nuke-dev mailing list > Nuke-dev@support.thefoundry.co.uk > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev Jerry Huxtable, Senior Software Engineer The Foundry, 6th Floor, The Communications Building, 48 Leicester Square, London, WC2H 7LT, UK Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 Web: www.thefoundry.co.uk Email: je...@thefoundry.co.uk The Foundry Visionmongers Ltd. Registered in England and Wales No: 4642027
_______________________________________________ Nuke-dev mailing list Nuke-dev@support.thefoundry.co.uk http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev