Comments (7)
from gptoolbox.
Sounds good.
I tried to compile ambient_occlusion.cpp but I'm having a problem with that
clearvars
clc
path_to_eigen='C:\Users\faa23\Desktop\3D_DiskTop\MatlabCodes\iges (original)\eigen-eigen-';
% Check if the eigen path is correct
assert(exist([path_to_eigen '\Eigen\Core'],'file')==2)
path_to_libigl='C:\Users\faa23\Desktop\3D_DiskTop\MatlabCodes\iges (original)\libigl';
%Check if the libig path is correct
assert(exist([path_to_libigl '\include\igl\embree\EmbreeIntersector.h'],'file')==2)
%%
MEXOPTS={'-v','-largeArrayDims','-DMEX'};
EIGEN_INC= ['-I' path_to_eigen];
LIBIGL_INC=['-I' path_to_libigl '\include'];
LIBIGL_FLAGS='-DIGL_SKIP';
LIBIGL_LIB={'-DIGL_SKIP'};
LIBIGL_LIBMATLAB='-DIGL_SKIP';
LIBIGL_LIBCGAL='-DIGL_SKIP';
LIBIGL_LIBCORK='-DIGL_NO_CORK';
LIBIGL_BASE={LIBIGL_INC, LIBIGL_FLAGS,LIBIGL_LIB{:}, LIBIGL_LIBMATLAB};
mex( ...
MEXOPTS{:}, ...
LIBIGL_BASE{:},EIGEN_INC, ...
'ambient_occlusion.cpp');
I always get this error:
Error using mex
ambient_occlusion.cpp
c:\users\faa23\desktop\3d_disktop\matlabcodes\iges (original)\libigl\include\igl\EPS.h(16): warning C4305: 'initializing': truncation from 'double' to 'float'
c:\users\faa23\desktop\3d_disktop\matlabcodes\iges (original)\libigl\include\igl\EPS.h(17): warning C4305: 'initializing': truncation from 'double' to 'float'
c:\users\faa23\desktop\3d_disktop\matlabcodes\iges (original)\libigl\include\igl\embree\EmbreeIntersector.h(24): fatal error C1083: Cannot open include file: 'embree2/rtcore.h': No such file or directory
Error in STLoffset (line 25)
mex( ...
The thing is I couldnot find embree2 in libigl at all !!!
Do you have any suggestion ?
Thanks a lot
from gptoolbox.
I only have libigl/external/embree in the file i downloaded.
embree is empty folder
I think you are right, I didn't clone all the submodules !!
Where can i find the instructions, please?
from gptoolbox.
from gptoolbox.
try
git submodule update --init
in your libigl folder
from gptoolbox.
yes, this is what i mean
libigl/external/embree
is empty, Nothing in it.
and sorry for that, But i'm not an expert with Matlab, so I don't know what do you mean by :
try
git submodule update --init
in your libigl folder
I mean how can I do that in the command window or in a script?
from gptoolbox.
I think i should close this issue since there is another open issue for compiling ambient_occlusion.cpp with windows 7.
Thanks Alec.
from gptoolbox.
Related Issues (20)
- how to mex on mesh_boolean HOT 3
- Install this toolbox on win10 HOT 2
- Compiling mex on M1 Mac HOT 13
- Could NOT find Matlab HOT 8
- kharmonic on high-poly meshes HOT 1
- Qslim.exe file
- Unexpected Standard exception What() is:vector when calling mex principal_curvature HOT 2
- dependend .dlls wont be copied to `./mex` after successfull compilation.
- Looking for sgemm_ - not found HOT 5
- No find: meshgrid, Parameterization QuadCover, HOT 6
- error when building CXX object CMakeFiles/upper_envelope.dir/upper_envelope.cpp.o HOT 1
- ld.exe: cannot find /export:mexFunction: No such file or directory
- Invalid MEX-file 'C:\......\selfintersect.mexw64': The specified module could not be found. HOT 3
- Cannot find /export:mexFunction: No such file or directory HOT 7
- run GPtoolbox HOT 1
- Compile Mex for Octave
- Compile failed. Cannot find split_nonmanifold.cpp
- The function DUAL_LAPLACIAN can not be used
- Interpolationin Tetra mesh. HOT 1
- Improve Documentation by Providing Function List
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gptoolbox.