niessner / mLib

Research Library used in the Visual Computing Lab
http://niessnerlab.org
MIT License
89 stars 45 forks source link

mLib compile error in VS2017 + CUDA 10.1 #13

Open chethanab16 opened 4 years ago

chethanab16 commented 4 years ago

Hi I try to compile the bundle fusion with visual studio 2017(platform tool set v141) but got the following error , could some one give me suggestion how to solve this problem.

bundle_fusion_2017_error_1

Thankyou

dazinovic commented 4 years ago

Do you have the latest version of mlib? In one of you other images, this line was different:

https://github.com/niessner/mLib/blob/master/include/application-d3d11/D3D11Canvas2D.h#L302

chethanab16 commented 4 years ago

Hi thankyou for your reply , yes I tried initially with old mlib got the following error .

bundle_fusion_2017_error_1

I tried with latest Mlib also , but I got other errors as below ,Could you please give me suggestion how to fix these errors

latest-mlib

bundle_fusion_2017_new_error

chethanab16 commented 4 years ago

Hi I tried with visual studio platform tool set V141 and Vs 2017 using the new Mlib external

dazinovic commented 4 years ago

Which version of Eigen do you use? If it's the one from mlibexternal, can you download the newest one and try with that?

chethanab16 commented 4 years ago

@dazinovic thankyou for your reply I use eigen 33b1 thankyou

chethanab16 commented 4 years ago

@dazinovic I tried with New Mlib and from this link https://github.com/niessner/mLib an also I tried with latest eigen But still has the following problem ,some suggestion would be would be helpful ,thankyou

Errors when I used old Eigen- with new Mlib

eigen_error_bundle

Errors when I used latest Eigen- with new Mlib

new_eigen_error new_eigen_error_1

chethanab16 commented 4 years ago

@dazinovic I tried with VS 2015 and VS 2017

  1. when I tried with new Mlib https://github.com/niessner/mLib with existing Eigen got the Following problem. new_Bundle_error_2015

After Fixing the the array_wrapper.hpp issues following Error accord regarding Eigen eigen_error_bundle Then I changed to Current Eigen but got the following error same with VS 2017 and VS 2015

new_eigen_error new_eigen_error_1.

some suggestion would be helpful

xwentian2013 commented 3 years ago

@dazinovic I tried with New Mlib and from this link https://github.com/niessner/mLib an also I tried with latest eigen But still has the following problem ,some suggestion would be would be helpful ,thankyou

Errors when I used old Eigen- with new Mlib

eigen_error_bundle

Errors when I used latest Eigen- with new Mlib

new_eigen_error new_eigen_error_1

I happened to find out a way to solve this problem. It turned out to be a bug in ~\mLibExternal\include\Eigen. Please replace the following line in \Eigen\src\Core\util\Macros.h

if defined(_MSC_VER) && (!defined(__INTEL_COMPILER))

with

if defined(_MSC_VER) && (_MSC_VER < 1900) && (!defined(__INTEL_COMPILER))

The assignment operators are then generated in your compilation.