2017-01-23 36 views
0

私はmlpackライブラリ(C++機械学習ライブラリ)に取り組んでいます。より具体的には、mlpackを構築できませんか?

-- Building for: Visual Studio 14 2015 
-- The C compiler identification is MSVC 19.0.24213.1 
-- The CXX compiler identification is MSVC 19.0.24213.1 
-- Check for working C compiler: F:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe 
-- Check for working C compiler: F:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works 
-- Detecting C compiler ABI info 
-- Detecting C compiler ABI info - done 
-- Check for working CXX compiler: F:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe 
-- Check for working CXX compiler: F:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works 
-- Detecting CXX compiler ABI info 
-- Detecting CXX compiler ABI info - done 
-- Detecting CXX compile features 
-- Detecting CXX compile features - done 
CMake Warning (dev) at CMakeLists.txt:51 (if): 
Policy CMP0054 is not set: Only interpret if() arguments as variables or 
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy 
details. Use the cmake_policy command to set the policy and suppress this 
warning. 

Quoted variables like "MSVC" will no longer be dereferenced when the policy 
is set to NEW. Since the policy is not set the OLD behavior will be used. 
This warning is for project developers. Use -Wno-dev to suppress it. 

CMake Warning (dev) at CMakeLists.txt:64 (if): 
Policy CMP0054 is not set: Only interpret if() arguments as variables or 
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy 
details. Use the cmake_policy command to set the policy and suppress this 
warning. 

Quoted variables like "MSVC" will no longer be dereferenced when the policy 
is set to NEW. Since the policy is not set the OLD behavior will be used. 
This warning is for project developers. Use -Wno-dev to suppress it. 

CMake Error at CMake/FindArmadillo.cmake:326 (message): 
ARMADILLO_INCLUDE_DIR-NOTFOUND/armadillo_bits/config.hpp not found! Cannot 
determine what to link against. 
Call Stack (most recent call first): 
CMakeLists.txt:189 (find_package) 

答えて

1

あなたのアルマジロのインストールを台無しにしておく必要があります:私はmlpackを構築して、最後のステップに到達したとき、building mlpack、しかし、私は、CMDに次のエラーを得た:私はここkeonの手順に従っ、あなたはdardを含むarmadilloを指定しなかった。

thisより詳細な指示によると、ポイント10:

いくつかの定義のライブラリ、DLLとセットアップのパスを指定し、詳細だからhere

で見つけることができます、あなたが試すことができますそして、あなたのmlpackのCMakeLists.txtに次の行を追加します。

set(ARMADILLO_LIBRARY "C:/Users/yyyy/Qt/3rdLibs/armadillo/armadillo-5.600.2/vc2015_build/bin/vc2015_x86_amd64/release") set(ARMADILLO_INCLUDE_DIR "C:/Users/yyyy/Qt/3rdLibs/armadillo/armadillo-5.600.2/include")

+0

こんにちはAサル、私はこれを持っていない "vc2015_build/bin/vc2015_x86_amd64/release"? – Avrahem

+0

しかし、私は "cmakelistに"(ARMADILLO_INCLUDE_DIR "C:¥Users¥Avrahim¥Documents¥Visual Studio 2015¥Projects¥armadillo-7.600.2¥include")を追加しても、同じエラーが発生しました! – Avrahem

+0

こんにちは、それは間違ったパスを指定したことを意味します、[this](https://github.com/mlpack/mlpack/issues/511)を検討してください。以下を実行できます。 1. AR..INCLUDE_DIRに必要なconfig.hppと他のすべてのarmadilloヘッダーが含まれていることを確認します。 2. AR ... _ LIBRARYが動的libへのパスであることを確認します。 e。 * .dllあなたの場合 github(上のリンク)からの人はそれについての会話を持っていて、彼らはそれをちょっとハッキングしました。これに慣れてしまった場合は、他の方法でarmadilloをインストールしてみてください。可能でない場合は、armadilloのメンテナに助けを求めることもできます。がんばろう! – Asalle

関連する問題