shogun-toolbox / shogun

Shōgun
http://shogun-toolbox.org
BSD 3-Clause "New" or "Revised" License
3.03k stars 1.04k forks source link

cmake configuration problem #5161

Closed arya2910 closed 3 years ago

arya2910 commented 3 years ago
Performing Test HAVE_IF_INIT
Performing Test HAVE_IF_INIT - Success
Performing Test HAVE_STD_STRING_VIEW
Performing Test HAVE_STD_STRING_VIEW - Success
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) (Required is at least version "1.8.6")
CMake Warning at CMakeLists.txt:411 (MESSAGE):
  Doxygen based documentation generation is enabled, but couldn't find
  doxygen.

  In order to turn off this warning either disable doxygen documentation
  generation with -DENABLE_DOXYGEN=OFF cmake option or install doxygen.

Found PythonInterp: C:/Users/arya gupta/AppData/Local/Programs/Python/Python39/python.exe (found version "3.9.1") 
CMake Error at src/shogun/CMakeLists.txt:69 (MESSAGE):
  Shogun can only be built with GPL codes if the source files are in
  C:/Users/arya gupta/%REPO_DIR%/src/gpl.  Please download the GPL codes or
  checkout the Git Submodule with 'git submodule update --init'.  To exclude
  GPL codes of Shogun in build set the switch LICENSE_GPL_SHOGUN=OFF.

Configuring incomplete, errors occurred!
See also "C:/Users/arya gupta/make/CMakeFiles/CMakeOutput.log".

how to solve this error

LiuYuHui commented 3 years ago

Hi @arya2910 I think the error message already provides you enough information which can help you solve this error, you can set -DENABLE_DOXYGEN=OFF and -DLICENSE_GPL_SHOGUN=OFF to disable the default setting.

arya2910 commented 3 years ago

i have done this and solved it. but i am having many more issue. can you please tell me what are the examples i should run to test whether it is working or not. and how to run that examples and where. because everytime i run the example it gives me same error that you header file path has not included.

arya2910 commented 3 years ago
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\arya gupta\%REPO_DIR%\examples\undocumented\libshogun\balanced_conditional_probability_tree.cpp).C/C++(1696)
cannot open source file "shogun/lib/common.h"C/C++(1696)

what should i do to this error

LiuYuHui commented 3 years ago

Could you provide the whole cmake output?

arya2910 commented 3 years ago

Screenshot 2021-02-12 160534

Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
The C compiler identification is MSVC 19.28.29336.0
The CXX compiler identification is MSVC 19.28.29336.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
Performing Test _cpp_latest_flag_supported
Performing Test _cpp_latest_flag_supported - Success
Performing Test HAVE_FOLDING_EXPRESSIONS
Performing Test HAVE_FOLDING_EXPRESSIONS - Success
Performing Test HAVE_IF_CONSTEXPR
Performing Test HAVE_IF_CONSTEXPR - Success
Performing Test HAVE_IF_INIT
Performing Test HAVE_IF_INIT - Success
Performing Test HAVE_STD_STRING_VIEW
Performing Test HAVE_STD_STRING_VIEW - Success
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) (Required is at least version "1.8.6")
CMake Warning at CMakeLists.txt:411 (MESSAGE):
  Doxygen based documentation generation is enabled, but couldn't find
  doxygen.

  In order to turn off this warning either disable doxygen documentation
  generation with -DENABLE_DOXYGEN=OFF cmake option or install doxygen.

Found PythonInterp: C:/Users/arya gupta/AppData/Local/Programs/Python/Python39/python.exe (found version "3.9.1") 
CMake Error at src/shogun/CMakeLists.txt:69 (MESSAGE):
  Shogun can only be built with GPL codes if the source files are in
  C:/Users/arya gupta/%REPO_DIR%/src/gpl.  Please download the GPL codes or
  checkout the Git Submodule with 'git submodule update --init'.  To exclude
  GPL codes of Shogun in build set the switch LICENSE_GPL_SHOGUN=OFF.

Configuring incomplete, errors occurred!
See also "C:/Users/arya gupta/make/CMakeFiles/CMakeOutput.log".
arya2910 commented 3 years ago

this is my output

LiuYuHui commented 3 years ago

oh, you develop shogun in windows? It seems like that there are some issues when you compile shogun on windows, so I recommend you run shogun on Linux(such as Ubuntu).

arya2910 commented 3 years ago

is there any other method to develop shogun on windows. should i change my OS from windows to linux??

LiuYuHui commented 3 years ago

you can use WSL2 which is a subsystem on windows.

arya2910 commented 3 years ago

if there is issue on c developing shogun with windows then don't you think we should change the install.md windows build??