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

Building issues #17

Open
rasgo-cc opened this issue Mar 21, 2016 · 4 comments
Open

Building issues #17

rasgo-cc opened this issue Mar 21, 2016 · 4 comments

Comments

@rasgo-cc
Copy link

Can you elaborate a bit more on the building process?
I'm trying to build it on Windows 10, with CMake 3.4.3. After creating the "_build" directory inside the project's main folded and "cd" into it I run:
cmake ..
No errors, but after typing:
make
There's no makefile. I get this:
make: *** No targets specified and no makefile found. Stop.

If, instead ofcmake .. I type cmake ../src, I get the following error:

CMake Error at CMakeLists.txt:5 (include):
  include could not find load file:

    GenerateCppResourceFile


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.4)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "C:/Users/mribeiro/Copy/vm_shared_cloud/cpp/Update-Installer/_bui/CMakeFiles/CMakeOutput.log".
See also "C:/Users/mribeiro/Copy/vm_shared_cloud/cpp/Update-Installer/_bui/CMakeFiles/CMakeError.log".
@jmbrunskill
Copy link

Hi cidadao,

Have you tried running just cmake ./ when in the project's directory?

I got it to generate the make files on my mac doing that (haven't tried windows build yet).
Had the same error if trying to run cmake on the src directory.

James

@rasgo-cc
Copy link
Author

Just tried it, but unfortunately Makefile is not generated...
I have any experience with CMake, maybe something is missing in CMakeLists.txt?

@jmbrunskill
Copy link

Sorry I don't have any experience with CMake either :(

I can see that GenerateCppResourceFile is defined in cmake\modules directory though. So it should be being picked up correctly and it was for me once I got the right directory specified.

One more thing to try if you haven't already, is to try using the full path to your Update-installer directory.

eg: cmake c:\Update-Installer\

That might make the references work correctly?

I'm probably going to try to build a windows version of this next week, so if you learn anything useful on the windows side let me know.

@suy
Copy link

suy commented Mar 24, 2016

I haven't tried building this project on Windows, but I can tell you that CMake doesn't necessarily generate Makefiles (unless told otherwise) in all platforms. What results do you get in the build directory? Visual studio solution file? (.sln) The path is .. if you created a build directory inside, not ../src. There is a CMakeLists at the top.

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

3 participants