dgani Posted November 9, 2017 Share Posted November 9, 2017 Hi All, I'm getting started with HDK, and while trying to build geoisosurface.C I encounter the error: clang: error: unknown argument: '-fobjc-gc' I'm compiling with hcustom -s geoisosurface.C on Mac OS Sierra 10.12.6. I am in the Houdini console, and I've successfully launched Houdini from it. I also have the most updated version of XCode, v9.1. Right before encountering the error, the console prints out: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ geoisosurface.o -o ./geoisosurface -Wl,-rpath,/Applications/Houdini/Houdini16.0.671/Frameworks/Houdini.framework/Versions/Current/Resources/../Libraries -L/Applications/Houdini/Houdini16.0.671/Frameworks/Houdini.framework/Versions/Current/Resources/../Libraries /Applications/Houdini/Houdini16.0.671/Frameworks/Houdini.framework/Versions/Current/Resources/../Houdini -Wl,-rpath,/Applications/Houdini/Houdini16.0.671/Frameworks/Houdini.framework/Versions/Current/Resources/../../../.. -arch x86_64 -fobjc-gc -framework OpenGL -framework Cocoa I've done some digging already. Read, write, and execute have been enabled with chmod. Here are the other threads I looked at: https://sidefx.com/forum/topic/18773/?page=1#post-88181 https://www.sidefx.com/forum/topic/31784/?page=1#post-147988 Any help is much appreciated! Quote Link to comment Share on other sites More sharing options...
MrScienceOfficer Posted November 9, 2017 Share Posted November 9, 2017 I think you just need to add a space in'-fobjc-gc' to be '-fobjc -gc'. Quote Link to comment Share on other sites More sharing options...
dgani Posted November 9, 2017 Author Share Posted November 9, 2017 Thanks! Any idea how I can do that? I'm just using the hcompile that is included with Houdini. Is there somewhere I can find the hcompile makefile or something? Quote Link to comment Share on other sites More sharing options...
MrScienceOfficer Posted November 9, 2017 Share Posted November 9, 2017 Hmm I'm wrong... I don't have a Mac available at the moment so I can't test it. If hcustom supplies -fobj-gc' then its most likely correct Are you using the same version of clang that Houdini was compiled with? I'm not sure how XCode versions relates to clang. Quote Link to comment Share on other sites More sharing options...
dgani Posted November 10, 2017 Author Share Posted November 10, 2017 I've tried looking for what version of Clang Houdini was compiled with, but I can't find anything. The only HDK documentation for determining version is for Linux. I've looked at the details of the application, but I can't find anything about the Clang compiling version. Quote Link to comment Share on other sites More sharing options...
MrScienceOfficer Posted November 10, 2017 Share Posted November 10, 2017 You can find the compiler version on the daily builds download page, it's included in the name of the file used to install Houdini. 1 Quote Link to comment Share on other sites More sharing options...
dgani Posted November 10, 2017 Author Share Posted November 10, 2017 Thank you! I think the issue is that I'm using XCode 9 instead of XCode 8. Testing it now... Quote Link to comment Share on other sites More sharing options...
dgani Posted November 14, 2017 Author Share Posted November 14, 2017 (edited) That worked! I am successfully able to compile and load plugins after downgrading my Xcode version to 7.3. Thanks again! Edited November 14, 2017 by dgani Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.