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

How to run this code in the windows #41

Open
yingyinyin opened this issue Jul 20, 2019 · 6 comments
Open

How to run this code in the windows #41

yingyinyin opened this issue Jul 20, 2019 · 6 comments

Comments

@yingyinyin
Copy link

How to run this code in the windows

@atakagi-fixstars
Copy link
Contributor

Hi, @yingyinyin

In Windows, you need to use Visual Studio, and build project using Cmake Build Tool Mode.
This is an example command.

cd libSGM
mkdir build
cd build
cmake -DENABLE_SAMPLES=ON .. -G "Visual Studio 14 Win64"
cmake --build . --config Release

The term Visual Studio 14 Win64 is for Visual Studio 2015.
Choose appropriate one according to your environment.

See also,
https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html#visual-studio-generators

Regards,

@yingyinyin
Copy link
Author

yingyinyin commented Aug 3, 2019

Thank you^-^@atakagi-fixstars ,and now I have new problem.The visual stdio say it have errors
"MSB6006 "cmd.exe" exited with code 1. sgm"I want to ask you about it.

@sotsuka-fixstars
Copy link
Contributor

Hi, @yingyinyin
Thank you for trying to use libSGM.

The visual stdio say it have errors
"MSB6006 "cmd.exe" exited with code 1. sgm"

It is too few information to investigate an error.
I think that Visual Studio said that after previous errors which are missed.
Could you show error log, CMake configuration, and environment?

Sincerely,

@yingyinyin
Copy link
Author

yingyinyin commented Aug 13, 2019

@atakagi-fixstars Thank you for helping me,I want to kown why what I download not contain the “gooletest”.The project have a file which called "gooletest" ,but it is empty.So do I need to download the "gooletest" into the project?

@ghost
Copy link

ghost commented Aug 13, 2019

@yingyinyin googletest is a submodule of this repository.
So try this:

$ git clone --recursive https://github.com/fixstars/libSGM.git

or

$ git clone https://github.com/fixstars/libSGM.git
$ cd libSGM
$ git submodule init
$ git submodule update

@yingyinyin
Copy link
Author

Thank you so much.

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