Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build on WIndows (vs2015 win64) #44

Open
FantasyVR opened this issue Feb 18, 2019 · 2 comments
Open

Failed to build on WIndows (vs2015 win64) #44

FantasyVR opened this issue Feb 18, 2019 · 2 comments

Comments

@FantasyVR
Copy link

The Runtime Library of geogram and fmt (/MT) are different with Tetwild (/MD). Thus, I change the Runtime Library of geogram and fmt from MT to MD. Then I can build successfully. I want to know if there are problems about CMakeLists.txt. I don't want to correct the configuration by hand.

The link errors are as below:

1>geogram.lib(common.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in main.obj
1>fmt.lib(format.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in main.obj
@jpcordovae
Copy link

I had the same problem and I solved changing all the 'Runtime Library' properties in Properties->C++->Code Generation for all projects at the same value, in my case is 'Multi-threaded Debug DLL (/MDd)'. Then clean and recompile.
image

@Yixin-Hu
Copy link
Owner

Yixin-Hu commented Mar 2, 2019

Hi,

Yes, there is a problem with runtime library setting. We are replacing /MD with /MT in geogram in cmakefile, which results in a problem after updating the libigl version. The temporary solution is to replace all /MD to /MT (/MTd in debug) manually in VS setting.

We are working on this problem. Thank you for reporting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants