Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Include sqlite.h CMAKE Error #198

Open
itay-grudev opened this issue Jan 15, 2015 · 3 comments
Open

Include sqlite.h CMAKE Error #198

itay-grudev opened this issue Jan 15, 2015 · 3 comments

Comments

@itay-grudev
Copy link

Hi,
I was building and installing MaidSafe on Mac OS X and I encountered the following error while executing sudo make install:

CMake Error at src/third_party_libs/sqlite/cmake_install.cmake:41 (file):
  file INSTALL cannot find
  "/Users/me/Projects/MaidSafe/src/third_party_libs/sqlite/include/sqlite.h".
Call Stack (most recent call first):
  src/third_party_libs/cmake_install.cmake:46 (include)
  cmake_install.cmake:32 (include)

The fix is very simple - replace the following line in: build_maidsafe/src/third_party_libs/sqlite/cmake_install.cmake

file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/maidsafe/third_party_libs/sqlite" TYPE FILE FILES "/Users/me/Projects/MaidSafe/src/third_party_libs/sqlite/include/sqlite.h")

with

file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/maidsafe/third_party_libs/sqlite" TYPE FILE FILES "/Users/me/Projects/MaidSafe/src/third_party_libs/sqlite/include/sqlite3.h")

I tried to fix it and make a pull request but I was unable to find the source file I was supposed to change.

@benjaminbollen
Copy link

Hi, thanks for pointing out the bug in our cmake. There are currently no installers for mac OSX and we will not be using the cmake install machinerie. So I might rather disable the install target altogether. I'll raise a bug.

If you want to build the code base on OSX you can follow these instructions:
https://github.com/maidsafe/MaidSafe/wiki/Build-Instructions-for-OS-X

to build release installers we currently use the compiler flags -DCMAKE_BUILD_TYPE=Release -DINCLUDE_TESTS=Off (best on Linux)

@benjaminbollen
Copy link

@itay-grudev
Copy link
Author

Why not? The installer works just fine on Mac OS X. The only problem is a tiny bug which takes a minute to fix.

P.S. I was following the tutorial up to that point.

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

No branches or pull requests

2 participants