DeepMimic installation under win10

Install dependent libraries

The github home page [1] has listed all the dependencies and the installation of linux. Some problems have been encountered under windows, so you may wish to record them.

1.Own

  • The key point : run VS with administrator privileges, so that when you compile install, it will be installed under the c drive

The so-called installation is to copy the header file to the directory. This library is only in the form of .hpp, similar to rapidjson

2.freeglut

Same Eigen

  • Test whether the installation is OK, refer to [2]

  • Compile error:

	1>main.obj : error LNK2001: 无法解析的外部符号 __imp___glutCreateWindowWithExit
	1>main.obj : error LNK2001: 无法解析的外部符号 __imp___glutInitWithExit
	1>main.obj : error LNK2001: 无法解析的外部符号 __imp_glutInitDisplayMode
	1>main.obj : error LNK2001: 无法解析的外部符号 __imp_glutDisplayFunc
	1>main.obj : error LNK2001: 无法解析的外部符号 __imp_glutMainLoop
	1>main.obj : error LNK2001: 无法解析的外部符号 __imp_glutInitWindowPosition
	1>main.obj : error LNK2001: 无法解析的外部符号 __imp_glutInitWindowSize
  • solve:

(1) Adding a macro before * # include <gl / freeglut.h> * still reports an error. Reference [3]

	#define GLUT_DISABLE_ATEXIT_HACK

(3) It is ok to change x64 to x86, because the freeglut generated by cmake by default has only win32 options ~, so you need to generate a 64-bit version.

  • How to generate a 64-bit project

When cmake-gui is generated, select the one with 64 bits, as shown in the following figure

cmakeX64

3.MPI

I saw a post [4] saying that both windows should be installed. I thought they were the same, so I installed one. After I installed msmpisdk.msi, I installed msmpisetup.exe and prompted an error. Later, it seems that there is no problem ~
MPI

to sum up

  • 1. Pay attention to the version of each project that needs to be compiled, whether it is win32 or x64

reference

[1] DeepMimic github homepage
[2] Windows builds OpenGL freeglut environment from scratch
[3] Solve Opengl compilation error
[4] DeepMimic environment configuration

Published 41 original articles · praised 7 · 20,000+ views

Guess you like

Origin blog.csdn.net/pkxpp/article/details/102651377