Error installing OROCOS LUA

Dear all,

I'm new in OROCOS project. I'm trying to install it. Once I launch

rosmake orocos_toolchain rtt_ros_integration rtt_ros_comm rtt_common_msgs rtt_geometry

I get these errors in the LUA installation, that is interesting for me:

[ 40%] Building C object lua/CMakeFiles/lua-repl-tlsf.dir/lua-repl.c.o

  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:36:31: error: ‘LUA_PROGNAME’ undeclared here (not in a function)
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c: In function ‘traceback’:
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:89:19: error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:89:19: note: each undeclared identifier is reported only once for each function it appears in
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:36:31: error: ‘LUA_PROGNAME’ undeclared here (not in a function)/home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c: In function ‘get_prompt’:
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:165:19: error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:167:35: error: ‘LUA_PROMPT’ undeclared (first use in this function)
  
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:167:48: error: ‘LUA_PROMPT2’ undeclared (first use in this function)/home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c: In function ‘traceback’:
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c: In function ‘pushline’:
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:188:15: error: ‘LUA_MAXINPUT’ undeclared (first use in this function)
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c: In function ‘handle_luainit’:
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:89:19: error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:89:19: note: each undeclared identifier is reported only once for each function it appears in
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c: In function ‘get_prompt’:
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:165:19: error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:167:35: error: ‘LUA_PROMPT’ undeclared (first use in this function)
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:167:48: error: ‘LUA_PROMPT2’ undeclared (first use in this function)
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c: In function ‘pushline’:
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:188:15: error: ‘LUA_MAXINPUT’ undeclared (first use in this function)
  
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:334:29: error: ‘LUA_INIT’ undeclared (first use in this function)
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:339:34: error: expected ‘)’ before ‘LUA_INIT’
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c: In function ‘handle_luainit’:
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:334:29: error: ‘LUA_INIT’ undeclared (first use in this function)
  /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:339:34: error: expected ‘)’ before ‘LUA_INIT’
  make[3]: *** [lua/CMakeFiles/lua-repl-tlsf.dir/lua-repl.c.o] Errore 1
  make[3]: uscita dalla directory "/home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/build"
my specification are:

Linux 3.5.0-39-generic #60~precise1-Ubuntu SMP Wed Aug 14 15:38:41 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

ros fuerte

Can you help me in this? Thanks a lot!

Roberta

Ruben Smits's picture

Error installing OROCOS LUA

Hi Roberta

On Wed, Sep 18, 2013 at 11:06 AM, <robertaperrone [dot] mi [..] ...> wrote:

> It should be liblua5.1-dev.
>

Are you 100% sure, i've seen the exact same errors when trying to build OCL
agains lua5.2

Ruben

>
> Thanks
>
> Roberta
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

Error installing OROCOS LUA

Hi Roberta,

On Di, Sep 17, 2013 at 06:01:38 +0200, robertaperrone [dot] mi [..] ... wrote:
> Dear all,
>
> I'm new in OROCOS project. I'm trying to install it. Once I launch
>
> rosmake orocos_toolchain rtt_ros_integration rtt_ros_comm rtt_common_msgs
> rtt_geometry
>
> I get these errors in the LUA installation, that is interesting for me:
>
> [ 40%] Building C object lua/CMakeFiles/lua-repl-tlsf.dir/lua-repl.c.o
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:36:31:
> error: ‘LUA_PROGNAME’ undeclared here (not in a function)
...

> my specification are:
>
> Linux 3.5.0-39-generic #60~precise1-Ubuntu SMP Wed Aug 14 15:38:41 UTC 2013
> x86_64 x86_64 x86_64 GNU/Linux
>
> ros fuerte
>
> Can you help me in this? Thanks a lot!

Which version of Lua (liblua5.x-dev) have you installed? Version 5.2
is not supported yet.

Markus

Error installing OROCOS LUA

Dear Roberta,

2013/9/17 <robertaperrone [dot] mi [..] ...>:
> Dear all,
>
> I'm new in OROCOS project. I'm trying to install it. Once I launch
>
> rosmake orocos_toolchain rtt_ros_integration rtt_ros_comm rtt_common_msgs
> rtt_geometry
>
> I get these errors in the LUA installation, that is interesting for me:
>
> [ 40%] Building C object lua/CMakeFiles/lua-repl-tlsf.dir/lua-repl.c.o
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:36:31:
> error: ‘LUA_PROGNAME’ undeclared here (not in a function)
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:
> In function ‘traceback’:
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:89:19:
> error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:89:19:
> note: each undeclared identifier is reported only once for each function it
> appears in
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:36:31:
> error: ‘LUA_PROGNAME’ undeclared here (not in a
> function)/home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:
> In function ‘get_prompt’:
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:165:19:
> error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:167:35:
> error: ‘LUA_PROMPT’ undeclared (first use in this function)
>
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:167:48:
> error: ‘LUA_PROMPT2’ undeclared (first use in this
> function)/home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:
> In function ‘traceback’:
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:
> In function ‘pushline’:
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:188:15:
> error: ‘LUA_MAXINPUT’ undeclared (first use in this function)
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:
> In function ‘handle_luainit’:
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:89:19:
> error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:89:19:
> note: each undeclared identifier is reported only once for each function it
> appears in
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:
> In function ‘get_prompt’:
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:165:19:
> error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:167:35:
> error: ‘LUA_PROMPT’ undeclared (first use in this function)
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:167:48:
> error: ‘LUA_PROMPT2’ undeclared (first use in this function)
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:
> In function ‘pushline’:
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:188:15:
> error: ‘LUA_MAXINPUT’ undeclared (first use in this function)
>
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:334:29:
> error: ‘LUA_INIT’ undeclared (first use in this function)
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:339:34:
> error: expected ‘)’ before ‘LUA_INIT’
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:
> In function ‘handle_luainit’:
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:334:29:
> error: ‘LUA_INIT’ undeclared (first use in this function)
>
> /home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/lua/lua-repl.c:339:34:
> error: expected ‘)’ before ‘LUA_INIT’
> make[3]: *** [lua/CMakeFiles/lua-repl-tlsf.dir/lua-repl.c.o] Errore 1
> make[3]: uscita dalla directory
> "/home/roberta/Development/ros_workspace/orocos/orocos_toolchain/ocl/build"
>
> my specification are:
>
> Linux 3.5.0-39-generic #60~precise1-Ubuntu SMP Wed Aug 14 15:38:41 UTC 2013
> x86_64 x86_64 x86_64 GNU/Linux
>
> ros fuerte
>
> Can you help me in this? Thanks a lot!

It is not the solution of your problem, but it could be a nice
shortcut (expecially if you are at the first steps with Orocos).
If you are using ROS fuerte environment, the easiest (and probably
fastest) way to install in on your machine is downloading precompiled
debian packages.
That is, use apt-get (or aptitude or what you prefer) to install the following:
- ros-fuerte-orocos-toolchain
- ros-fuerte-rtt-common-msgs
- ros-fuerte-rtt-geometry
- ros-fuerte-rtt-ros-comm
- ros-fuerte-rtt-ros-integration

Hope this helps,

- Enea

> Roberta
>
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Error installing OROCOS LUA

It should be liblua5.1-dev.

Thanks

Roberta