ChanServ changed the topic of #mlpack to: "mlpack: a fast, flexible machine learning library :: We don't always respond instantly, but we will respond; please be patient :: Logs at http://www.mlpack.org/irc/
cjlcarvalho has quit [Ping timeout: 258 seconds]
cjlcarvalho has joined #mlpack
pymit has joined #mlpack
pymit has quit [Remote host closed the connection]
< Xuwei>
Hi, After building mlpack I tried to build solution on VS but it failed. First it says could not found Windows SDK, so I tried to switch between Windows SDK 10 and 8 but then it keeps failing showing this
< Xuwei>
1>------ Build started: Project: mlpack, Configuration: Debug Win32 ------ 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(944,5): warning MSB8027: Two or more files with the name of adaboost_test.cpp will produce outputs to the same location. This can lead to an incorrect build result. The files involved are src\mlpack\tests\adaboost_test.cpp, src\mlpack\tests\main_t
< Xuwei>
1>svrg_test.cpp 1>c:\mlpack\mlpack-3.0.4\src\mlpack\tests\svrg_test.cpp(12): fatal error C1083: Cannot open include file: 'mlpack/core.hpp': No such file or directory 1>termination_policy_test.cpp 1>c:\mlpack\mlpack-3.0.4\src\mlpack\tests\termination_policy_test.cpp(12): fatal error C1083: Cannot open include file: 'mlpack/core.hpp': No such file or directory 1>timer_test.cpp 1>c:\mlpack\mlpack-3.0.4\src\mlpack\tests\timer_test.cpp(21)
< Xuwei>
1>c:\mlpack\mlpack-3.0.4\src\mlpack\tests\union_find_test.cpp(12): fatal error C1083: Cannot open include file: 'mlpack/methods/emst/union_find.hpp': No such file or directory 1>vantage_point_tree_test.cpp 1>c:\mlpack\mlpack-3.0.4\src\mlpack\tests\vantage_point_tree_test.cpp(11): fatal error C1083: Cannot open include file: 'mlpack/core.hpp': No such file or directory 1>Generating Code... 1>Done building project "mlpack.vcxproj" -- FAI
< Xuwei>
Can anyone help me out here?
< Xuwei>
It looks like it can not find the core.hpp but I found it in this path C:\mlpack\mlpack-3.0.4\src\mlpack
< Xuwei>
Same issue for prereqs.hpp
< Xuwei>
Also, for the duplicated files issue I'm sure if it's because I tried to build it many times. I did click clean solution every time I try to build it again though.
Xuwei has quit [Ping timeout: 256 seconds]
cjlcarvalho has joined #mlpack
< rcurtin>
Xuwei: what are the include directories of the project? it seems based on your output that the include directories are not set right
< rcurtin>
CMake should be configuring those correctly... maybe it makes sense to remove the build directory and try configuring/building again?
travis-ci has joined #mlpack
< travis-ci>
mlpack/mlpack#5759 (master - 07252cc : Shikhar Jaiswal): The build has errored.
cjlcarvalho has quit [Quit: Konversation terminated!]
caiojcarvalho has joined #mlpack
caiojcarvalho has quit [Ping timeout: 272 seconds]
Xuwei has joined #mlpack
< Xuwei>
rcurtin: I tried to build it again. It shows the same error message. Could it be caused by this error message when building mlpack?
< Xuwei>
CMake Warning: Manually-specified variables were not used by the project: ARMADILLO_LIBRARY
< rcurtin>
Xuwei: that should not be the issue, because ARMADILLO_LIBRARY would be used for linking if needed (in your case it looks like CMake does not need to link against it)
< rcurtin>
can you check the include directories of the project?
< rcurtin>
one of the include directories should be the include/ directory contained under the build directory that you are building from
< rcurtin>
and that include/ directory should have all the mlpack headers in it
< Xuwei>
I tried to search include under the build directory but I got nothing
< Xuwei>
Not sure what I've done wrong
< rcurtin>
is it possible to put the entire build log on pastebin?
< rcurtin>
the first step CMake should take is to copy all of the mlpack headers to the include/ directory in the build directory
< rcurtin>
it seems like maybe that hasn't happened in your case
ImQ009 has joined #mlpack
< Xuwei>
I can only send limited word at a time
< Xuwei>
There is another warning though
< Xuwei>
CMake Warning at C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindBoost.cmake:847 (message): New Boost version may have incorrect or missing dependencies and imported targets
< Xuwei>
-- ARMA_USE_WRAPPER is not defined, so all dependencies of Armadillo must be manually linked.
< rcurtin>
I don't think either of those are problems
< rcurtin>
the issue is going to be the include directories not pointing to the right place
< Xuwei>
I got this when I tried to build solution on VS
< Xuwei>
13>Done building project "mlpack_test.vcxproj" -- FAILED. 53>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------ 54>------ Skipped Build: Project: INSTALL, Configuration: Debug x64 ------ 54>Project not selected to build for this solution configuration ========== Build: 47 succeeded, 1 failed, 0 up-to-date, 6 skipped ==========
< Xuwei>
Is this considered successful?
< rcurtin>
well, it looks like it built everything except mlpack_test, so whether or not you consider that successful is up to whether or not you'd like to run the tests
< Xuwei>
Well is that going to be a problem?
< Xuwei>
I got a lot of warning saying something like this
< Xuwei>
13>c:\mlpack\mlpack-3.0.4\src\mlpack\methods\kmeans\kmeans_impl.hpp(308): warning C4244: 'argument': conversion from 'eT' to 'const eT', possible loss of data 13> with
< rcurtin>
I wouldn't be worried about conversion warnings or any other warnings during build
< rcurtin>
it seems unlikely that there will be a problem if you haven't built the test successfully
< rcurtin>
assuming that the error there was again the include directories and not some other compiler failure
< Xuwei>
Alright
< Xuwei>
But this thing is this time I did not used the command copied from the tutorial
< Xuwei>
I got the error with include directories using that
< rcurtin>
so, I can't tell you if that is going to be a problem or what
< rcurtin>
I don't have very many details on your system since you can't put the errors on pastebin for me
< rcurtin>
and I also don't use Windows, so I can't speak to what about the configuration is wrong
< Xuwei>
I replace part of the command from zoq one the #563
< rcurtin>
I'd suggest that you try to do what you are trying to do, and see if it works or not
< rcurtin>
and if it doesn't work, you may have to do some debugging to figure out what is wrong and fix it
MLPackApprentice has quit [Ping timeout: 256 seconds]
< Xuwei>
ok, thanks for the help! I am sure but I guess the command about building mlpack on the tutorial might miss \include in this line "DBOOST_INCLUDEDIR:PATH="C:/boost/boost_1_66_0/"
< Xuwei>
*I am not sure
< rcurtin>
I don't think that I understand what you mean
< rcurtin>
can you clarify? I'm always happy to update the tutorial if we need to