Oberon00 / luabind

Luabind is a library that helps you create bindings between C++ and Lua.
http://oberon00.github.io/luabind/
Other
46 stars 13 forks source link

Luabind does not compile anymore since merge #18

Closed tripleslash closed 9 years ago

tripleslash commented 11 years ago

It is missing luabind/build_information.hpp. Is it because I don't know how to use CMake and just copy it all over into a new project?

I tried CMake but it kept telling me that it cannot find lua 5.2 but its right inside the folder... How do I specify the path to lua and how my library files are named? Because they are not named lua.lib/lua52.lib Is it possible that you add a .sln/project file for MSVC?

I was reading through the INSTALL file but it seems like its outdated. It just tells me to use CMake, not how to use it.

Oberon00 commented 11 years ago

Since the merge it is neccessary to run git submodule init and git submodule update to complete a clone, maybe that's the problem.

The code for finding Lua 5.2 has not changed with the merge.

tripleslash commented 11 years ago

Well it fails on this line find_package(CXXFeatures)

It seems like it cannot find CXXFeatures.

CMake Warning at CMakeLists.txt:46 (find_package):
  By not providing "FindCXXFeatures.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "CXXFeatures", but CMake did not find one.

  Could not find a package configuration file provided by "CXXFeatures" with
  any of the following names:

    CXXFeaturesConfig.cmake
    cxxfeatures-config.cmake

  Add the installation prefix of "CXXFeatures" to CMAKE_PREFIX_PATH or set
  "CXXFeatures_DIR" to a directory containing one of the above files.  If
  "CXXFeatures" provides a separate development package or SDK, be sure it
  has been installed.

CMake Error at CMakeLists.txt:156 (if):
  if given arguments:

    "STREQUAL" "Clang"

  Unknown arguments specified

Where do I get this file? It would be nice if you could make this simpler. Installing this library is a pain now.

Oberon00 commented 11 years ago

To download the CXXFeatures package, you have to run git submodule init and git submodule update.

rpavlik commented 11 years ago

I've posted #19 which handles this "user error" case more elegantly. I need to make a note for myself to always do this when using a submodule.

chaosct commented 10 years ago

I am embedding luabind directly into my application (that is, not installing it as a system or a shared library). This worked with other forks (like @rpavlik 's), but since I am just including the source files I don't use cmake to build I get the error of missing file luabind/build_information.hpp with this one.

Is it possible to generate this file without having to use cmake satisfying its every requirement?

Could a default header file be placed in the repo in order to deal with this kind of situation?

Oberon00 commented 10 years ago

It's been a long time since I last looked into luabind, but AFAIK, all that CMake does is taking build_information.cmake_in and replacing every #cmakedefine with an ordinary #define if the option is set or removing it otherwise. You can easily do that yourself, if that is all you need CMake for. Most options are documented here, for the other ones, see the option() calls in the CMake file from here on.

chaosct commented 10 years ago

thanks @Oberon00 !

Oberon00 commented 9 years ago

The original issue should be resolved with the merge of #19.