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

Install using LuaRocks failed within cmake #6

Open
iar74 opened this issue Dec 9, 2017 · 1 comment
Open

Install using LuaRocks failed within cmake #6

iar74 opened this issue Dec 9, 2017 · 1 comment

Comments

@iar74
Copy link

iar74 commented Dec 9, 2017

Hi,

I am trying to install LRDB via lua rocks (v2.4.3).
It finds the rockspec, clones from github (7144514) but failes within cmake:

CMake Error at luarocks_cmake.txt:36 (install):
install Library TARGETS given no DESTINATION!
Call Stack (most recent call first):
CMakeLists.txt:2 (include)

The respective line is:

install(TARGETS lrdb_server LIBRARY DESTINATION ${INSTALL_LIBDIR})

Seems to me that INSTALL_LIBDIR is not expanded to any value.

Now, I am not the expert when it comes to LuaRocks, is this a variable to be provided by lua-rocks? Or so I set this when installing lua rocks?

Any hint would be appreciated!

@iar74
Copy link
Author

iar74 commented Dec 9, 2017

Dug a little deeper. Seems to be a cmake problem.
I am using cmake 3.9.4 on windows.

Changing luarocks_cmake.txt:l.36f from:

install(TARGETS lrdb_server LIBRARY DESTINATION ${INSTALL_LIBDIR})

to

install(TARGETS lrdb_server
ARCHIVE DESTINATION ${INSTALL_LIBDIR}
LIBRARY DESTINATION ${INSTALL_LIBDIR})

builds it without error. Seems it is mocking about the link lib that is not placed anywhere without the archive.

However, I still need to figure out how to actually install it, as I built it off a local copy of lrdb.

Easy to reproduce: having luarocks installed, go to the root directory of lrdb, type "luarocks make".

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

1 participant