Error in compiling mcx source code in windows

56 views
Skip to first unread message

許逸翔

unread,
Aug 13, 2021, 9:00:46 AM8/13/21
to mcx-users
Dear Dr. Fang,

I am Eric Syu, an M.S. student doing research about diffuse reflectance spectroscopy.

In recent days, I have been trying to compile MCX from source code in windows but kept stuck in problems.

I followed the instructions in mcx installation doc and set up paths. My added paths are  in below. 1.png.
There is a difference I did from installation suggestion because I couldn't find "make" in C:\MinGW\bin. So I tried to follow the second answer of this thread in stackoverflow and finally add the path to make by "C:\MinGW\msys\1.0\bin".

After finishing the preparation above, I type the "msys" in below
2.png
and cd to mcx/src and type make. But the error happens now as the following image.
3.png

It seems like the version of Microsoft Visual Studio is not supported. 

Could you please help me to fix this problem ? I truly appreciate your help.
(To be specific, my system configurations are Windows 10, GeForce RTX 1060 6GB, nvidia driver 471.41 and cuda 11.4)

Best,
Eric 

Fang, Qianqian

unread,
Aug 13, 2021, 11:36:10 AM8/13/21
to mcx-...@googlegroups.com, 許逸翔
On 8/13/21 12:59 AM, 許逸翔 wrote:
Dear Dr. Fang,

I am Eric Syu, an M.S. student doing research about diffuse reflectance spectroscopy.

In recent days, I have been trying to compile MCX from source code in windows but kept stuck in problems.

I followed the instructions in mcx installation doc and set up paths. My added paths are  in below. .
There is a difference I did from installation suggestion because I couldn't find "make" in C:\MinGW\bin. So I tried to follow the second answer of this thread in stackoverflow and finally add the path to make by "C:\MinGW\msys\1.0\bin".

After finishing the preparation above, I type the "msys" in below

and cd to mcx/src and type make. But the error happens now as the following image.


It seems like the version of Microsoft Visual Studio is not supported.


looks like cuda 11 dropped the support to earlier Visual Studio versions. from your paths, it looks like you have a VS 2015 (v14.0), but the error message says cuda 11.4 supports 2017-2019.

https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#2015


you can either downgrade your cuda 11.4 to cuda 9 or 10 (maybe?), or upgrade VS to 2017-2019.


Qianqian



Could you please help me to fix this problem ? I truly appreciate your help.
(To be specific, my system configurations are Windows 10, GeForce RTX 1060 6GB, nvidia driver 471.41 and cuda 11.4)

Best,
Eric 
--
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mcx-users/13b948ea-c7bb-46d3-907e-338c0efdae63n%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages