faxingberlin Posted July 20, 2015 Share Posted July 20, 2015 I start HDK with hucstom. I read HDK: Getting Started. ( http://www.sidefx.com/docs/hdk14.0/_h_d_k__intro__getting_started.html ) I compile geoisosurface.C in Window 8.1 #include <GU/GU_Detail.h> #include <stddef.h> namespace HDK_Sample { static float densityFunction(const UT_Vector3 &P, void *data) { // Return the signed distance to the unit sphere return 1 - P.length(); } } int main(int argc, char *argv[]) { GU_Detail gdp; UT_BoundingBox bounds; // Evaluate the iso-surface inside this bounding box bounds.setBounds(-1, -1, -1, 1, 1, 1); // Create an iso-surface gdp.polyIsoSurface(HDK_Sample::densityFunction, NULL, bounds, 20, 20, 20); // Save to sphere.bgeo gdp.save("sphere.bgeo", NULL); return 0; } But,,, sphere.bgeo didn't appear.. On the other hand, I compile geoisosurface.C in Ubutu 15.04 . sphere. bgeo appears. I check Windows Environment Variables, System Variables.. I don't know why ... Please help me.. Quote Link to comment Share on other sites More sharing options...
MrScienceOfficer Posted July 20, 2015 Share Posted July 20, 2015 (edited) I would bet Windows just put it somewhere else. Try using an absolute path gdp.save("C:\\Users\\ *computers name* \\Desktop\\sphere.bgeo" , NULL); that should drop it right on your desktop. Edited July 20, 2015 by captain Quote Link to comment Share on other sites More sharing options...
faxingberlin Posted July 20, 2015 Author Share Posted July 20, 2015 (edited) Thank you for your answer, Tom I change the path. gdp.save("C:\\Users\\Hyunjun\\Desktop\\sphere.bgeo", NULL); But, the sphere.bgeo didn't appear... I really don't know.. Can I re-install Houdini, Visual Studio 2012?? Edited July 20, 2015 by faxingberlin Quote Link to comment Share on other sites More sharing options...
MrScienceOfficer Posted July 20, 2015 Share Posted July 20, 2015 Did you run the executable? Quote Link to comment Share on other sites More sharing options...
faxingberlin Posted July 20, 2015 Author Share Posted July 20, 2015 I run geoisosurface.exe. The system error appears. ( There is no libGA.dll) Quote Link to comment Share on other sites More sharing options...
MrScienceOfficer Posted July 20, 2015 Share Posted July 20, 2015 If your running a standalone application, you will have to copy houdini's dll's into the projects directory for your standalone. Or move your exe into houdini's directory. Quote Link to comment Share on other sites More sharing options...
faxingberlin Posted July 21, 2015 Author Share Posted July 21, 2015 I did.. xxxxxx.dll file locate C:\Program Files\Side Effects Software\Houdini 14.0.395\bin I move exe, O file .. I execute again.. It appears at once.. Nothing happened.. Quote Link to comment Share on other sites More sharing options...
MrScienceOfficer Posted July 21, 2015 Share Posted July 21, 2015 Actually that's my bad, you don't have write permission to write in the bin folder, but if you kept the absolute path it would work, it worked for me. To keep the relative path, you would have to move all the dll's out. You shouldn't have to though, according to the Docs it should find the DLLs, but it didn't work for me either. Its sounds like an issue with environment variables on windows 8.1, as I'm using it as well. Quote Link to comment Share on other sites More sharing options...
edward Posted July 21, 2015 Share Posted July 21, 2015 It sounds like it's being linked dynamically rather than statically. Try adding --ldflags to the hcustom command line to see if it's linking against the libs in usolib (static) vs dsolib (dynamic). Quote Link to comment Share on other sites More sharing options...
faxingberlin Posted July 21, 2015 Author Share Posted July 21, 2015 Thank you! Tom, Edward. I try again Quote Link to comment Share on other sites More sharing options...
faxingberlin Posted July 21, 2015 Author Share Posted July 21, 2015 Finally! I solve the problem!! Thank you very very much!! 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.