Re: Building Luabind
David Wolfe <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On 4/5/2011 9:53 AM, Ryan Pavlik wrote:
> You could try my fork that adds a CMake-based build system: I've used it
> successfully on windows, but haven't tried it with MinGW.
> https://github.com/rpavlik/luabind
Nice! I've been looking for something like this. For the OP, in case
you're not familiar with CMake, it would work something like this:
C:\Users\Joe>mkdir build && cd build
C:\Users\Joe\build>cmake -DCMAKE_PREFIX_PATH=C:/Users/JohnDoe/opt \
-G"Eclipse CDT4 - MinGW Makefiles" <path_to_luabind_cmakelists.txt>
This will create Eclipse project files that you should be able to import
into Eclipse using File->Import->Existing Projects Into Workspace. This
is *way* better than trying to configure all of this by hand!
The -DCMAKE_PREFIX_PATH bit is hint to CMake about where it should look
for external libs/headers. It will often be able to locate this stuff
on its own under Unix, but not so much on Windows. The layout of the
hypothetical 'opt' folder in the above invocation might look like
this:
opt/
|
- bin/
|
- lib/
|
- include/
Haven't tried this with MinGW, but would be very interested to hear if
it works for you!
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev