Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

ConvertToVDB - fixed-path bug (?)
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=23&t=610
Page 1 of 1

Author:  s.vonmammen [ Thu Aug 28, 2014 7:32 pm ]
Post subject:  ConvertToVDB - fixed-path bug (?)

Hi there! I tried to use the ConvertToVDB tool (on Mac OS) in order to turn the given sample set of PNGs into a VDB file but didn't succeed. Here's the console dialogue. I'd appreciate your feedback!

--

basti$ ./ConvertToVDB -i /Users/basti/Desktop/volumesoffun-cubiquity-for-unity3d-021bc5bdecf7/Assets/Cubiquity/Examples/VolumeData/VoxeliensLevel3 -o output.vdb
dyld: Library not loaded: /Users/david/cubiquity/build/Wrappers/C/libCubiquityC.dylib
Referenced from: /Users/basti/Desktop/volumesoffun-cubiquity-for-unity3d-021bc5bdecf7/Assets/StreamingAssets/Cubiquity/SDK/./ConvertToVDB
Reason: image not found
Trace/BPT trap: 5

Author:  David Williams [ Fri Aug 29, 2014 6:31 am ]
Post subject:  Re: ConvertToVDB - fixed-path bug (?)

Sorry about this, it looks like the path to the library is hard-coded into the OS X executable. Coming from a Windows background this library/executable relationship is a little unexpected to me. I have seen it in the past and thought I had resolved it with the 'macdylibbundler' tool tool as follows:
Code:
dylibbundler -d . -p . -x ConvertToVDB

But apparently I either forgot to run this tool, used the wrong parameters, or misunderstood what it was doing. At any rate further investigation is needed.

Unfortunately I'm not going to have access to my OS X machine for the next two weeks so I can't check this immediately. In the mean time there are a few things you could try:

  • You could try creating the expected path on your machine. You probably don't even need a user called 'david', just manually create a 'david/cubiquity/build/Wrappers/C/' folder in '/Users/' and place the library in it (I hope OS X doesn't mind this).
  • You could try the Windows version of the converter. The output voxel database should be compatible.
  • You could try executing the 'dylibbundler' bundler command above and maybe that way you can fix the excutable locally. You'd have to build the tool from source though so maybe that's too much effort.

I've logged the issue here and will try to investigate further in a couple of weeks.

Author:  David Williams [ Tue Sep 09, 2014 9:36 pm ]
Post subject:  Re: ConvertToVDB - fixed-path bug (?)

I have reproduced this problem using an old version of Cubiquity for Unity3d (version 1.0.0) but the problems appears to be resolved in the latest version (1.1.3). However, I now realize that it is very easy for people to accidentally download an old version from the Git repository, as the master branch is set to ver1.0.0 while all development is being performed on the develop branch.

In other words, the issue is resolved but I need to tidy the Git repo to stop this mistake happening again. In the mean time you might want to download the .unitypackage file from our latest blog post.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/