GithubHelp home page GithubHelp logo

Comments (7)

alecjacobson avatar alecjacobson commented on July 24, 2024

from gptoolbox.

FeazAlkadi avatar FeazAlkadi commented on July 24, 2024

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.

FeazAlkadi avatar FeazAlkadi commented on July 24, 2024

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.

alecjacobson avatar alecjacobson commented on July 24, 2024

from gptoolbox.

alecjacobson avatar alecjacobson commented on July 24, 2024

try

git submodule update --init

in your libigl folder

from gptoolbox.

FeazAlkadi avatar FeazAlkadi commented on July 24, 2024

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.

FeazAlkadi avatar FeazAlkadi commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.