LightGBM icon indicating copy to clipboard operation
LightGBM copied to clipboard

Issue while making Build

Open Gautamshahi opened this issue 9 years ago • 11 comments

Environment info

Operating System: Windows7 CPU: C++/Python/R version: 2.7

Error Message:

image While making the build, i am getting the below error CMake Error at CMakeLists.txt:8 (PROJECT): Generator

NMake Makefiles

does not support platform specification, but platform

x64

was specified.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "E:/LightGBM-master/LightGBM-master/build/CMakeFiles/CMakeOutput.log".

Kindly help me to solve this issue.

Gautamshahi avatar Jun 24 '17 01:06 Gautamshahi

  1. can you use the windows cmd instead?
  2. did you have visual studio ?

guolinke avatar Jun 24 '17 01:06 guolinke

Yes I have visual studio, community.

Let me try with Windows cmd.

Is it mandatory to build with cmake or I can try some other build tool also?

On Jun 24, 2017 03:51, "Guolin Ke" [email protected] wrote:

  1. can you use the windows cmd instead?
  2. did you have visual studio ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Microsoft/LightGBM/issues/647#issuecomment-310806069, or mute the thread https://github.com/notifications/unsubscribe-auth/ADyFFjwi_Ju4c4sRRwzDdGoOcX8fQr9bks5sHGu1gaJpZM4OELzU .

Gautamshahi avatar Jun 24 '17 01:06 Gautamshahi

@Gautamshahi you also can open lightgbm.sln in windows folder.

guolinke avatar Jun 24 '17 01:06 guolinke

Build is done.

I am new to LightGBM so Will you please tell how to use LightGBM in visual studio?

On Jun 24, 2017 03:57, "Guolin Ke" [email protected] wrote:

@Gautamshahi https://github.com/gautamshahi you also can open lightgbm.sln in windows folder.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/LightGBM/issues/647#issuecomment-310806363, or mute the thread https://github.com/notifications/unsubscribe-auth/ADyFFmC4sU-v5jJhU1QrzAUeACqvcnHbks5sHG0igaJpZM4OELzU .

Gautamshahi avatar Jun 24 '17 02:06 Gautamshahi

@Gautamshahi just open the solution file under https://github.com/Microsoft/LightGBM/tree/master/windows/

chivee avatar Jun 24 '17 02:06 chivee

Okay thank you.

On Jun 24, 2017 04:12, "Qiwei Ye" [email protected] wrote:

@Gautamshahi https://github.com/gautamshahi just open the solution file under https://github.com/Microsoft/LightGBM/tree/master/windows/

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/LightGBM/issues/647#issuecomment-310807067, or mute the thread https://github.com/notifications/unsubscribe-auth/ADyFFrQE3ACfHX3Hn7UZznDDE-6ZW16Rks5sHHB4gaJpZM4OELzU .

Gautamshahi avatar Jun 24 '17 02:06 Gautamshahi

Why i am getting this two error

image

Gautamshahi avatar Jun 24 '17 02:06 Gautamshahi

@Gautamshahi Are you using the 32-bit windows? we only support 64-bit systems.

guolinke avatar Jun 24 '17 02:06 guolinke

I am using 64-Bit System.

On Sat, Jun 24, 2017 at 8:00 AM, Guolin Ke [email protected] wrote:

@Gautamshahi https://github.com/gautamshahi Are you using the 32-bit windows? we only support 64-bit systems.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/LightGBM/issues/647#issuecomment-310807941, or mute the thread https://github.com/notifications/unsubscribe-auth/ADyFFpLT-0kfUyYZfaNQJPCY0pwS1sWeks5sHHTJgaJpZM4OELzU .

-- Gautam Kishore Shahi, Master Student, DISI- University of Trento, Italy

Gautamshahi avatar Jun 24 '17 02:06 Gautamshahi

@Gautamshahi can you delete the "LightGBM-master\build" folder, then try again ? And can you run it with windows cmd ? the mingw cannot build correctly.

guolinke avatar Jun 24 '17 02:06 guolinke

This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

github-actions[bot] avatar Aug 24 '23 01:08 github-actions[bot]