I'm attempting to compile the SOP_Star example of the HDK on:
Houdini 20.0.506
OS X Sonoma (14.1)
I've run into a problem related to std::unary_function which is used in hboost (hash.hpp). It appears that this function was deprecated in c++17, and the deprecated support was removed in OSX 14.
Traditionally I've developed on Linux, but I'm trying this on my fancy Mac Mini. I'm not really sure what the best option is here. Should I:
1) Use the _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION compile flag to reactivate the deprecated functionality
2) Patch hash.hpp in hboost
3) Something else that I don't know about
It doesn't look like it's convenient to downgrade back to OSX 13. This is my first experience writing code for Mac, and I'm not sure what the my options are here. Are there any others who have already worked through this that could offer some advice?
Found 6 posts.
Search results Show results as topic list.
Technical Discussion » Has anyone successfully compiled HDK examples on OSX 14?
- bradley.henke
- 6 posts
- Offline
Technical Discussion » How can I programmatically clear the "Packed Geometry Cache"
- bradley.henke
- 6 posts
- Offline
I have been running 19.0.455, and one of my co-workers mentioned that there were some issues with that build. When I jump to 19.0.720, it looks like the command works as advertised!
Thanks again for this advice!
Thanks again for this advice!
Technical Discussion » How can I programmatically clear the "Packed Geometry Cache"
- bradley.henke
- 6 posts
- Offline
Thanks! That's exactly the kind of thing I'm looking for. Unfortunately, it causes me to insta-crash.
Technical Discussion » How can I programmatically clear the "Packed Geometry Cache"
- bradley.henke
- 6 posts
- Offline
I'm trying to flipbook some heavy geometry coming from an alembic file, and it is causing the "Packed Geometry Cache" to fill up and crash during the creation of the flipbook.
It seems like I can manually clear the cache by pushing on the associate button in the "Cache Manager" window, but I have been unable to find a programmatic equivalent.
I've tried the hscript commands without success:
geocache -c
geocache -p
sopcache -C
I've also attempted to set the node's "Unload" flag, but that doesn't seem to be doing trick either.
Any ideas?
It seems like I can manually clear the cache by pushing on the associate button in the "Cache Manager" window, but I have been unable to find a programmatic equivalent.
I've tried the hscript commands without success:
geocache -c
geocache -p
sopcache -C
I've also attempted to set the node's "Unload" flag, but that doesn't seem to be doing trick either.
Any ideas?
Technical Discussion » Expression Short Circuiting
- bradley.henke
- 6 posts
- Offline
Today I noticed that expressions do not short circuit. Is this expected with vex?
I get an error when running the following:
In other similar languages, fail() would never have been called.
I suppose the takeaway for me is to be aware of side effects that a non-short circuited function call might have (like a heavy computation).
Also, I don't suppose there's anyway around this except some ridiculous looking code:
I get an error when running the following:
function int fail() { error('No short circuiting'); return 2; } i@value = 1 || fail();
In other similar languages, fail() would never have been called.
I suppose the takeaway for me is to be aware of side effects that a non-short circuited function call might have (like a heavy computation).
Also, I don't suppose there's anyway around this except some ridiculous looking code:
int bool = 0; if(1) { i@value = 1; bool = 1; } if(!bool) { i@value = fail(); }
Edited by bradley.henke - 2022年12月23日 15:37:28
Technical Discussion » How can I create a cumulative map?
- bradley.henke
- 6 posts
- Offline
Is there a straight forward way to store a cumulative attribute across a frame range?
At the moment I'm using a point wrangle in a SOP Solver to create a cumulative sum, but I was curious if there is a better pattern for this use case.
At the moment I'm using a point wrangle in a SOP Solver to create a cumulative sum, but I was curious if there is a better pattern for this use case.
-
- Quick Links