abvariant Posted January 2, 2014 Share Posted January 2, 2014 I had what is hopefully a quick question about dsos being used by vfl files.I have a compiled dso, and in my vfl I am calling one of the functions that my dso declares. When using vcc to compile my vfl, it states that my function is undefined.From within a houdini shell I can run:$HFS/bin/vcc -X cvexAnd I can see my the functions declared in my dso.Exactly what do I need to do to get my external vfl files compiled, using my dso?Thanks. Quote Link to comment Share on other sites More sharing options...
Green-Man Posted January 3, 2014 Share Posted January 3, 2014 It seems like everything is correct in your vex/VEXdso as you can find your function defined through the vcc -X What error exactly you have when compiling your code? Is it "Call to undefined function" or "No matching function"? Is it possible that you call you vcc for compiling the code when environment setup is different from that you have when you call vcc -X? Quote Link to comment Share on other sites More sharing options...
abvariant Posted January 3, 2014 Author Share Posted January 3, 2014 Hi there! With regard to environment setups, I've just done the following: Running vcc -X in a houdini shell allows me to see the functions I've defined in my plugin. It also turns out I can compile my vfls successfully from my houdini shell. So that works. I was expecting to be able to run vcc from a normal shell (not houdini), but I can't (it does say function is undefined). I guess there's some kind of env var missing? I should be able to compile my vfls in a normal shell, right? Quote Link to comment Share on other sites More sharing options...
Green-Man Posted January 3, 2014 Share Posted January 3, 2014 Could you show the content of your VEXdso file? And where it is located? Do you use default houdini path like $HOME/houdiniXX.X or anything custom? How is the path to the .so library defined? Using any variables? Quote Link to comment Share on other sites More sharing options...
abvariant Posted January 9, 2014 Author Share Posted January 9, 2014 Hi there, sorry for radio silence! My VEXdso is indeed in $HOME/houdiniXX.X/vex/ In the VEXdso itself, it's just got the name of the plugin. With regard to paths, just to confirm, I can compile my vfls through the houdini shell without a problem. So I'm assuming all my houdini paths are fine. I just can't compile in a normal shell. Not using any funny variables in my houdini paths either. 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.