Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"cmake --build" could not build entire project #11

Open
davidshen84 opened this issue Sep 14, 2015 · 2 comments
Open

"cmake --build" could not build entire project #11

davidshen84 opened this issue Sep 14, 2015 · 2 comments

Comments

@davidshen84
Copy link

I build caffe after you instruction:

cmake --build .

At the end of the compilation, I got the following errors:

"C:\caffe-builder\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\caffe-builder\build\Boost.vcxproj" (default target) (2) ->
(CustomBuild target) ->
  libs\config\checks\architecture\arm.cpp(12): fatal error C1189: #error :  "No
t ARM" [C:\caffe-builder\build\Boost.vcxproj]
  libs\config\checks\architecture\mips1.cpp(10): fatal error C1189: #error :  "
Not MIPS1" [C:\caffe-builder\build\Boost.vcxproj]
  libs\config\checks\architecture\power.cpp(13): fatal error C1189: #error :  "
Not PPC" [C:\caffe-builder\build\Boost.vcxproj]
  libs\config\checks\architecture\sparc.cpp(10): fatal error C1189: #error :  "
Not SPARC" [C:\caffe-builder\build\Boost.vcxproj]
  libs\regex\build\has_icu_test.cpp(12): fatal error C1083: Cannot open include
 file: 'unicode/uversion.h': No such file or directory [C:\caffe-builder\build\
Boost.vcxproj]

    816 Warning(s)
    5 Error(s)

According to you instruction, they can be ignored. So, I assume I have finished the compilation successfully. However, I could not find a caffe.exe file, or any other file that could allow me to start working on the examples provided by caffe project.

However, if I execute:

msbuild caffe-builder.sln

I could get everything in .\install\bin.

@willyd
Copy link
Owner

willyd commented Sep 15, 2015

This is strange. cmake --build . should translate to msbuild caffe-builder.sln or something close to that. I don't remember if I use the IDE or built from the command line.

@davidshen84
Copy link
Author

I did a clean re-build, using msbuild only, and I noticed msbuild could
not build everything at once. I think the problem is not caused by cmake --build .. I think the problem is project build dependency issue.

When I ran msbuild the first time, only part of the projects are build.
Then I ran it again, and more files appeared in the ./install/bin
directory. So I think some of the projects could not be build when I ran
msbuild the first time.

The funny thing is that the error messages at the tail in the first run
consists with the caveats you left on the README. So I think the first run
completely succeed.

On Tue, Sep 15, 2015 at 11:32 PM Guillaume Dumont [email protected]
wrote:

This is strange. cmake --build . should translate to msbuild
caffe-builder.sln or something close to that. I don't remember if I use
the IDE or built from the command line.


Reply to this email directly or view it on GitHub
#11 (comment)
.

Regards,
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants