Skip to content

Commit

Permalink
[docs] document one more workaround for CMake and MinGW build and fix…
Browse files Browse the repository at this point in the history
… typos (#3081)
  • Loading branch information
StrikerRUS authored May 13, 2020
1 parent 42ebb4e commit 1576819
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R-package/tests/testthat/test_lgb.Booster.R
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ test_that("Booster$update() passing a train_set works as expected", {
expect_true(lgb.is.Booster(bst))
expect_equal(bst$current_iter(), nrounds + 1L)

# train with 3 rounds directlry
# train with 3 rounds directly
bst2 <- lightgbm(
data = as.matrix(agaricus.train$data)
, label = agaricus.train$label
Expand Down
6 changes: 3 additions & 3 deletions docs/FAQ.rst
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,17 @@ The appropriate splitting strategy depends on the task and domain of the data, i

LightGBM supports loading data from zero-based LibSVM format file directly.

14. Why cmake cannot find the compiler when compiling LightGBM with MinGW?
14. Why CMake cannot find the compiler when compiling LightGBM with MinGW?
--------------------------------------------------------------------------

.. code-block:: bash
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
This is a known issue of `cmake` when using MinGW. The easiest solution is to run again `cmake` to bypass the one time stopper from `cmake`.
This is a known issue of CMake when using MinGW. The easiest solution is to run again your ``cmake`` command to bypass the one time stopper from CMake. Or you can upgrade your version of CMake to at least version 3.17.0.

See `Microsoft/LightGBM#3060 <https://github.com/microsoft/LightGBM/issues/3060#issuecomment-62633853>`__ for more details.
See `Microsoft/LightGBM#3060 <https://github.com/microsoft/LightGBM/issues/3060#issuecomment-626338538>`__ for more details.

------

Expand Down

0 comments on commit 1576819

Please sign in to comment.