mLib icon indicating copy to clipboard operation
mLib copied to clipboard

mLib compile error in VS2017 + CUDA 10.1

Open chethanab16 opened this issue 4 years ago • 8 comments

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

chethanab16 avatar Sep 15 '20 02:09 chethanab16

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

dazinovic avatar Sep 15 '20 13:09 dazinovic

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 avatar Sep 16 '20 03:09 chethanab16

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

chethanab16 avatar Sep 16 '20 10:09 chethanab16

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

dazinovic avatar Sep 16 '20 10:09 dazinovic

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

chethanab16 avatar Sep 16 '20 14:09 chethanab16

@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 avatar Sep 17 '20 07:09 chethanab16

@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

chethanab16 avatar Sep 17 '20 07:09 chethanab16

@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.

xwentian2013 avatar Jan 21 '21 09:01 xwentian2013