Closed ergawy closed 8 years ago
First, the ambient_occlusion
function is only for making the rendering fancier and is not needed for the blue noise function.
Second, it seems like a path issue. Are you checking that LD_LIBRARY_PATH
is what you think you've set it to from within matlab? I know on Mac OS X it is not enough to set the path in your .bashrc
or .profile
.
You can check by issuing in matlab,
system('echo $LD_LIBRARY_PATH')
Thank you for the reply. It is just my first time working with mex files so I wanted to get it to the end. I know that ambient occlusion is auxiliary here.
Here is what system('echo $LD_LIBRARY_PATH')
prints:
/usr/local/MATLAB/R2015a/sys/os/glnxa64:/usr/local/MATLAB/R2015a/bin/glnxa64:/usr/local/MATLAB/R2015a/extern/lib/glnxa64:/usr/local/MATLAB/R2015a/runtime/glnxa64:/usr/local/MATLAB/R2015a/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/MATLAB/R2015a/sys/java/jre/glnxa64/jre/lib/amd64/server:/opt/AMDAPPSDK-3.0/lib/x86_64/:/home/kareem/libigl/libigl/external/embree
So I guess the path to embree is correctly configured. I am on a Linux machine so maybe the problem you mentioned is not present.
Anyway, I don't want to waste your time so I will try to find the reason for this and get back to the thread if I find out the problem.
@KareemErgawy Did you end up finding a solution for this?
This is rather a help request than an issue with gptoolbox.
I want to use your blue noise code here: http://www.alecjacobson.com/weblog/?p=4111. For that I compiled the mex file "ambient_occlusion.cpp". I got that working smoothly and here is the output:
I also appended the path to embree to the
LD_LIBRARY_PATH
and here is the full path:However, when I try to run your blue noise code, I get the following error:
To check the dependencies of ambient_occlusion.mexa64, I ran !ldd and here is what I got:
Please note the first 2 lines of the above !ldd output. This is strange to me and I tried to solve it using the suggestions here: http://stackoverflow.com/questions/23494103/version-cxxabi-1-3-8-not-found-required-by with no success.
Any pointers on how can I solve this?