librelist archives

« back to archive

problem building

problem building

From:
Kassen
Date:
2010-01-03 @ 04:37
Dear Tom.

I build LuaJit from source without any apparent issues, but when
trying to build ckv I still received;

make
gcc -g -ansi -pedantic -Wall -O3   -c -o ckv.o ckv.c
In file included from ckv.c:2:
ckv.h:5:17: error: lua.h: No such file or directory
ckv.h:6:20: error: lualib.h: No such file or directory
ckv.h:7:21: error: lauxlib.h: No such file or directory


From there on there are of course a lot more errors, but that seems to
be the issue. Is there something like "luajit-dev" that I overlooked?
I know nothing about lua yet and there appear to be dozens of versions
of everything and it's not clear which one I need.

Yours,
Kas.

Re: [ckvusers] problem building

From:
Tom Lieber
Date:
2010-01-03 @ 05:41
On Sat, Jan 2, 2010 at 11:37 PM, Kassen <signal.automatique@gmail.com> wrote:
> I build LuaJit from source without any apparent issues, but when
> trying to build ckv I still received;
>
> make
> gcc -g -ansi -pedantic -Wall -O3   -c -o ckv.o ckv.c
> In file included from ckv.c:2:
> ckv.h:5:17: error: lua.h: No such file or directory
> ckv.h:6:20: error: lualib.h: No such file or directory
> ckv.h:7:21: error: lauxlib.h: No such file or directory
>
>
> >From there on there are of course a lot more errors, but that seems to
> be the issue. Is there something like "luajit-dev" that I overlooked?
> I know nothing about lua yet and there appear to be dozens of versions
> of everything and it's not clear which one I need.

Sweet, you're trying it with LuaJIT! In the README where I say "try
LuaJIT for extra speed" I really mean it. If you TRY it, I'm very
interested in how it works out. :D

Since my computer is 64-bit, and cross-compiling everything for 32-bit
was a huge drag that I never completely sorted out, I have no idea
whether LuaJIT will actually work with ckv. The note on their homepage
that "the virtual machine (VM) is API- and ABI-compatible to the
standard Lua interpreter and can be deployed as a drop-in replacement"
is why I'm so hopeful.

Anyway, when you compiled LuaJIT, did you perform a "make install"? If
not, go for that and try building ckv again. If you had, try manually
copying lua.h, lualib.h, and lauxlib.h from LuaJIT's src/ folder to
your /usr/local/include/ or equivalent on your system.

If you have no luck, try plain Lua.

On Sat, Jan 2, 2010 at 11:56 PM, Kassen <signal.automatique@gmail.com> wrote:
> I can't find it explicitly stated that ckv even builds on Linux. I had
> more or less assumed this because it's distributed as a tar file of
> source but on second thought that doesn't seem like very solid
> reasoning. I'd suggest adding what platforms this is supposed to build
> on to the introductory text.

Yeah, I don't think I mention that anywhere... I've only tested on OS
X 10.6, but I use only cross-platform libraries and there's nothing
shady in my code, so I'm certain it should work on Linux as well.

-- 
Tom Lieber
http://AllTom.com/

Re: [ckvusers] problem building

From:
Kassen
Date:
2010-01-03 @ 15:21
Tom;

> Sweet, you're trying it with LuaJIT! In the README where I say "try
> LuaJIT for extra speed" I really mean it. If you TRY it, I'm very
> interested in how it works out. :D

Ok, so this is "bleeding edge" in the sense that actual cutting will
be done. Ok, got that. And I don't know Lua. And I only understand the
bits of C++ that work like ChucK. Great, business as usual, then. I'll
try this normally first and if that doesn't work we'll add fire to the
situation and see whether that improves anything.

> Anyway, when you compiled LuaJIT, did you perform a "make install"? If
> not, go for that and try building ckv again. If you had, try manually
> copying lua.h, lualib.h, and lauxlib.h from LuaJIT's src/ folder to
> your /usr/local/include/ or equivalent on your system.

I did a make install and that looked fine but I'll try these manual
things on top of that.

>
> If you have no luck, try plain Lua.

I first tried plain Lua from apt-get but had a hard time picking what
"-dev" version, if any, I needed.

Oh, and the makefile references core-audio, I'll need to somehow get
that bit out and replace it with Alsa. I might be able to steal how to
do that from the ChucK makefile, which should also tell rtaudio what
to do in a cross-platform way.


Thanks,
Kas.

Re: [ckvusers] problem building

From:
Tom Lieber
Date:
2010-01-03 @ 16:38
On Sun, Jan 3, 2010 at 10:21 AM, Kassen <signal.automatique@gmail.com> wrote:
> Ok, so this is "bleeding edge" in the sense that actual cutting will
> be done. Ok, got that. And I don't know Lua. And I only understand the
> bits of C++ that work like ChucK. Great, business as usual, then. I'll
> try this normally first and if that doesn't work we'll add fire to the
> situation and see whether that improves anything.

Super effective!

>> If you have no luck, try plain Lua.
>
> I first tried plain Lua from apt-get but had a hard time picking what
> "-dev" version, if any, I needed.

I use 5.1.4, what's on the web site. Try whatever 5.1 release you've got.

> Oh, and the makefile references core-audio, I'll need to somehow get
> that bit out and replace it with Alsa. I might be able to steal how to
> do that from the ChucK makefile, which should also tell rtaudio what
> to do in a cross-platform way.

Oops, okay, the CoreAudio is just to build RtAudio. I got the
RtAudio-specific flags from this page:

  http://www.music.mcgill.ca/~gary/rtaudio/compiling.html

Looks like on Linux you replace that with -lasound

-- 
Tom Lieber
http://AllTom.com/

Re: [ckvusers] problem building

From:
Tom Lieber
Date:
2010-01-23 @ 22:44
I installed Ubuntu on my laptop and man, building ckv using the lua &
ffmpeg packages is a nightmare. I might try building them from source
later. Even the C stdlib is organized differently. What a pain in the
neck. No wonder people think they need autoconf.

-- 
Tom Lieber
http://AllTom.com/
http://ckvlang.org/

Re: [ckvusers] problem building

From:
Tom Lieber
Date:
2010-02-16 @ 05:31
Guess who got ckv to build on Linux. :-}

  http://ckvlang.org/blog/2010-02-15-linux.html

-- 
Tom Lieber
http://AllTom.com/
http://ckvlang.org/

Re: [ckvusers] problem building

From:
Kassen
Date:
2010-02-16 @ 16:01
You're the best.

I'll look into this soon, right now there is too much on my mind.

Kas.

On 16 February 2010 06:31, Tom Lieber <tom@alltom.com> wrote:

> Guess who got ckv to build on Linux. :-}
>
>  http://ckvlang.org/blog/2010-02-15-linux.html
>
> --
> Tom Lieber
> http://AllTom.com/
> http://ckvlang.org/
>

Re: problem building

From:
Kassen
Date:
2010-01-03 @ 04:56
To reply to my own mail;

I can't find it explicitly stated that ckv even builds on Linux. I had
more or less assumed this because it's distributed as a tar file of
source but on second thought that doesn't seem like very solid
reasoning. I'd suggest adding what platforms this is supposed to build
on to the introductory text.

Kas.

2010/1/3 Kassen <signal.automatique@gmail.com>:
> Dear Tom.
>
> I build LuaJit from source without any apparent issues, but when
> trying to build ckv I still received;
>
> make
> gcc -g -ansi -pedantic -Wall -O3   -c -o ckv.o ckv.c
> In file included from ckv.c:2:
> ckv.h:5:17: error: lua.h: No such file or directory
> ckv.h:6:20: error: lualib.h: No such file or directory
> ckv.h:7:21: error: lauxlib.h: No such file or directory
>
>
> From there on there are of course a lot more errors, but that seems to
> be the issue. Is there something like "luajit-dev" that I overlooked?
> I know nothing about lua yet and there appear to be dozens of versions
> of everything and it's not clear which one I need.
>
> Yours,
> Kas.
>