質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
CMake

CMakeはクロスプラットフォームで作動するオープンソースのビルドシステムです。コマンドライン又は組み込まれた開発環境で使うことができる元のmakefileとプロジェクトファイルを生成します。

OpenCV

OpenCV(オープンソースコンピュータービジョン)は、1999年にインテルが開発・公開したオープンソースのコンピュータビジョン向けのクロスプラットフォームライブラリです。

C++

C++はC言語をもとにしてつくられた最もよく使われるマルチパラダイムプログラミング言語の1つです。オブジェクト指向、ジェネリック、命令型など広く対応しており、多目的に使用されています。

Q&A

0回答

475閲覧

OpenCV ceres-solver-1.12.0をCMAKEでビルドしたいです。

mypace

総合スコア45

CMake

CMakeはクロスプラットフォームで作動するオープンソースのビルドシステムです。コマンドライン又は組み込まれた開発環境で使うことができる元のmakefileとプロジェクトファイルを生成します。

OpenCV

OpenCV(オープンソースコンピュータービジョン)は、1999年にインテルが開発・公開したオープンソースのコンピュータビジョン向けのクロスプラットフォームライブラリです。

C++

C++はC言語をもとにしてつくられた最もよく使われるマルチパラダイムプログラミング言語の1つです。オブジェクト指向、ジェネリック、命令型など広く対応しており、多目的に使用されています。

0グッド

0クリップ

投稿2019/02/21 01:18

編集2022/01/12 10:55

CMAKE version 3.14.0-rc1
を使用し、OpenCVのSfMを使用できるように環境を構築しています。
OpenCVはver4.0を使用したいと考えていますが、その他のEigen, fglags等は
以下URLと同じバージョンのソースコードを使用しています。
https://blog.negativemind.com/2017/08/11/opencv3-3-0-with-sfm-module/

CMAKEを使用している中で、ceres-solver-1.12.0でCMAKE Configureを行うと
以下画像のようにエラーが出力されます。

Eigen3の何をCMAKEのどこに入力すればいいのでしょうか?
アドバイスをいただきたく思います。

イメージ説明

Output.logを確認しました。途中でRun Build Command の行で文字化けが発生していることが原因でしょうか?

text

1The system is: Windows - 10.0.17134 - AMD64 2Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. 3Compiler: 4Build flags: 5Id flags: 6 7The output was: 80 9.NET Framework 向け Microsoft (R) Build Engine バージョン 15.9.21+g9802d43bc3 10Copyright (C) Microsoft Corporation.All rights reserved. 11 12Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe" 13 14Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj" 15 16The CXX compiler identification is MSVC, found in "C:/ceres-solver-1.12.0/build/CMakeFiles/3.14.0-rc1/CompilerIdCXX/CompilerIdCXX.exe" 17 18Determining if the C compiler works passed with the following output: 19Change Dir: C:/ceres-solver-1.12.0/build/CMakeFiles/CMakeTmp 20 21Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_f876a.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m 22.NET Framework 蜷代¢ Microsoft (R) Build Engine 繝舌・繧ク繝ァ繝ウ 15.9.21+g9802d43bc3 23 24Copyright (C) Microsoft Corporation.All rights reserved. 25 26 Microsoft(R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x86 27 28 Copyright (C) Microsoft Corporation. All rights reserved. 29 30 31 32 cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_f876a.dir\Debug\" /Fd"cmTC_f876a.dir\Debug\vc141.pdb" /Gd /TC /analyze- /errorReport:queue "C:\ceres-solver-1.12.0\build\CMakeFiles\CMakeTmp\testCCompiler.c" 33 34 testCCompiler.c 35 36 37 cmTC_f876a.vcxproj -> C:\ceres-solver-1.12.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_f876a.exe 38 39 40 41Detecting C compiler ABI info compiled with the following output: 42Change Dir: C:/ceres-solver-1.12.0/build/CMakeFiles/CMakeTmp 43 44Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_c0bf9.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m 45.NET Framework 蜷代¢ Microsoft (R) Build Engine 繝舌・繧ク繝ァ繝ウ 15.9.21+g9802d43bc3 46 47Copyright (C) Microsoft Corporation.All rights reserved. 48 49 50 51 Microsoft(R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x86 52 53 Copyright (C) Microsoft Corporation. All rights reserved. 54 55 56 57 cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_c0bf9.dir\Debug\" /Fd"cmTC_c0bf9.dir\Debug\vc141.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Program Files\CMake\share\cmake-3.14\Modules\CMakeCCompilerABI.c" 58 59 CMakeCCompilerABI.c 60 61 62 63 cmTC_c0bf9.vcxproj -> C:\ceres-solver-1.12.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_c0bf9.exe 64 65 66Detecting C [] compiler features compiled with the following output: 67Change Dir: C:/ceres-solver-1.12.0/build/CMakeFiles/CMakeTmp 68 69Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_2851f.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m 70.NET Framework 蜷代¢ Microsoft (R) Build Engine 繝舌・繧ク繝ァ繝ウ 15.9.21+g9802d43bc3 71 72 Microsoft(R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x86 73 74 Copyright (C) Microsoft Corporation. All rights reserved. 75 76 77 78 cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_2851f.dir\Debug\" /Fd"cmTC_2851f.dir\Debug\vc141.pdb" /Gd /TC /analyze- /errorReport:queue "C:\ceres-solver-1.12.0\build\CMakeFiles\feature_tests.c" 79 80 feature_tests.c 81 82 cmTC_2851f.vcxproj -> C:\ceres-solver-1.12.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_2851f.exe 83 84 85 Feature record: C_FEATURE:1c_function_prototypes 86 Feature record: C_FEATURE:1c_variadic_macros 87Determining if the CXX compiler works passed with the following output: 88Change Dir: C:/ceres-solver-1.12.0/build/CMakeFiles/CMakeTmp 89 90Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_f27fc.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m 91.NET Framework 蜷代¢ Microsoft (R) Build Engine 繝舌・繧ク繝ァ繝ウ 15.9.21+g9802d43bc3 92 93Copyright (C) Microsoft Corporation.All rights reserved. 94 95 96 97 Microsoft(R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x86 98 99 Copyright (C) Microsoft Corporation. All rights reserved. 100 101 102 103 cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_f27fc.dir\Debug\" /Fd"cmTC_f27fc.dir\Debug\vc141.pdb" /Gd /TP /analyze- /errorReport:queue "C:\ceres-solver-1.12.0\build\CMakeFiles\CMakeTmp\testCXXCompiler.cxx" 104 105 testCXXCompiler.cxx 106 107 108 cmTC_f27fc.vcxproj -> C:\ceres-solver-1.12.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_f27fc.exe 109 110 111 112Detecting CXX compiler ABI info compiled with the following output: 113Change Dir: C:/ceres-solver-1.12.0/build/CMakeFiles/CMakeTmp 114 115Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_66f33.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m 116.NET Framework 蜷代¢ Microsoft (R) Build Engine 繝舌・繧ク繝ァ繝ウ 15.9.21+g9802d43bc3 117 118Copyright (C) Microsoft Corporation.All rights reserved. 119 120 121 122 Microsoft(R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x86 123 124 Copyright (C) Microsoft Corporation. All rights reserved. 125 126 127 128 cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_66f33.dir\Debug\" /Fd"cmTC_66f33.dir\Debug\vc141.pdb" /Gd /TP /analyze- /errorReport:queue "C:\Program Files\CMake\share\cmake-3.14\Modules\CMakeCXXCompilerABI.cpp" 129 130 CMakeCXXCompilerABI.cpp 131 132 133 134 cmTC_66f33.vcxproj -> C:\ceres-solver-1.12.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_66f33.exe 135 136 137Detecting CXX [] compiler features compiled with the following output: 138Change Dir: C:/ceres-solver-1.12.0/build/CMakeFiles/CMakeTmp 139 140Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_9edf0.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m 141.NET Framework 蜷代¢ Microsoft (R) Build Engine 繝舌・繧ク繝ァ繝ウ 15.9.21+g9802d43bc3 142 143Copyright (C) Microsoft Corporation.All rights reserved. 144 145 146 147 Microsoft(R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x86 148 149 Copyright (C) Microsoft Corporation. All rights reserved. 150 151 152 153 cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_9edf0.dir\Debug\" /Fd"cmTC_9edf0.dir\Debug\vc141.pdb" /Gd /TP /analyze- /errorReport:queue "C:\ceres-solver-1.12.0\build\CMakeFiles\feature_tests.cxx" 154 155 feature_tests.cxx 156 157 158 159 cmTC_9edf0.vcxproj -> C:\ceres-solver-1.12.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_9edf0.exe 160 161 162 Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers 163 Feature record: CXX_FEATURE:1cxx_alias_templates 164 Feature record: CXX_FEATURE:1cxx_alignas 165 Feature record: CXX_FEATURE:1cxx_alignof 166 Feature record: CXX_FEATURE:1cxx_attributes 167 Feature record: CXX_FEATURE:1cxx_attribute_deprecated 168 Feature record: CXX_FEATURE:1cxx_auto_type 169 Feature record: CXX_FEATURE:1cxx_binary_literals 170 Feature record: CXX_FEATURE:1cxx_constexpr 171 Feature record: CXX_FEATURE:1cxx_contextual_conversions 172 Feature record: CXX_FEATURE:1cxx_decltype 173 Feature record: CXX_FEATURE:1cxx_decltype_auto 174 Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types 175 Feature record: CXX_FEATURE:1cxx_default_function_template_args 176 Feature record: CXX_FEATURE:1cxx_defaulted_functions 177 Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers 178 Feature record: CXX_FEATURE:1cxx_delegating_constructors 179 Feature record: CXX_FEATURE:1cxx_deleted_functions 180 Feature record: CXX_FEATURE:1cxx_digit_separators 181 Feature record: CXX_FEATURE:1cxx_enum_forward_declarations 182 Feature record: CXX_FEATURE:1cxx_explicit_conversions 183 Feature record: CXX_FEATURE:1cxx_extended_friend_declarations 184 Feature record: CXX_FEATURE:1cxx_extern_templates 185 Feature record: CXX_FEATURE:1cxx_final 186 Feature record: CXX_FEATURE:1cxx_func_identifier 187 Feature record: CXX_FEATURE:1cxx_generalized_initializers 188 Feature record: CXX_FEATURE:1cxx_generic_lambdas 189 Feature record: CXX_FEATURE:1cxx_inheriting_constructors 190 Feature record: CXX_FEATURE:1cxx_inline_namespaces 191 Feature record: CXX_FEATURE:1cxx_lambdas 192 Feature record: CXX_FEATURE:1cxx_lambda_init_captures 193 Feature record: CXX_FEATURE:1cxx_local_type_template_args 194 Feature record: CXX_FEATURE:1cxx_long_long_type 195 Feature record: CXX_FEATURE:1cxx_noexcept 196 Feature record: CXX_FEATURE:1cxx_nonstatic_member_init 197 Feature record: CXX_FEATURE:1cxx_nullptr 198 Feature record: CXX_FEATURE:1cxx_override

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

stdio

2019/02/21 02:36

多分パスの設定間違えているだけと思いますが... 画像の一番に記載されているCMakeOutput.logをお読みください。 分からなければ、そのlogの中身をここに張り付けて下さい。
stdio

2019/02/21 04:44

UTF-8をShift_JISで開いた時に見られる文字化けですね。その問題に関しましては開いたエディタが原因かも知れません。 ほかのエディタでもそうなるのでしたら、文字コードが原因ですね。違うならまたログを上げないしていただけますか?
Stan_Dma

2019/02/21 05:04

You should read the official document to install it: http://ceres-solver.org/installation.html . Eigen3 is one of its dependency packages. You need to get all sources of the dependency packages as written in above, and also follow the instruction in the section for Windows.
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問