Trouble installing a rock (luars232)

252 views
Skip to first unread message

tat...@yahoo.com

unread,
Jun 3, 2013, 6:14:53 PM6/3/13
to kepler-...@googlegroups.com
Hello,
I'm not a very experienced programmer in general (I am an EE), but I've taken both a C and a C++ class, and I've spent a lot of time working with Lua over the past few years.

Anyway, I was hoping to get Lua communicating a PCB using RS232 instead of having to rely on NI Labview, and I saw mention of the luars232 module.

I am trying to get luars232 installed (on Windows 7 64 bit).  First it was giving me the "cl is not a recognized command" until I figured out that I had to install Visual Studio to make Luarocks work, and I had to run the luarocks commands using the Visual Studio command prompt.  I did both, and now the cl command is working, but the module fails to install due to this error:

include\librs232/rs232_posix.h(30) : fatal error C1083: Cannot open include file
: 'termios.h': No such file or directory

Anyone know if I am still doing something wrong, or if not, where I can get the correct termios.h file?  I assume it needs to go where ever Visual Studio puts its header files?

Anyway, here is the full text from the command prompt in case it might help:

Setting environment for using Microsoft Visual Studio 2010 x86 tools.

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>cd C:\LuaRocks\2.0

C:\LuaRocks\2.0>luarocks install luars232
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = c:/progra~1/wget/etc/wgetrc
ing to 'build' mode
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = c:/progra~1/wget/etc/wgetrc

7-Zip 9.10 beta  Copyright (c) 1999-2009 Igor Pavlov  2009-12-22

Processing archive: C:\Users\John\AppData\Local\Temp\luarocks_luarocks-rock-luar
s232-1.0.3-1-1459\luars232-1.0.3-1.src.rock

Extracting  luars232-1.0.3-1.rockspec
Extracting  librs232
Extracting  librs232\include
Extracting  librs232\include\librs232
Extracting  librs232\include\librs232\Makefile.am
Extracting  librs232\include\librs232\qrs232.h
Extracting  librs232\include\librs232\rs232_posix.h
Extracting  librs232\include\librs232\rs232_windows.h
Extracting  librs232\include\librs232\rs232.h
Extracting  librs232\include\Makefile.am
Extracting  librs232\configure.in
Extracting  librs232\Makefile.am
Extracting  librs232\autogen.sh
Extracting  librs232\ChangeLog
Extracting  librs232\doc
Extracting  librs232\doc\example.lua
Extracting  librs232\windows
Extracting  librs232\windows\vs2k5
Extracting  librs232\windows\vs2k5\librs232
Extracting  librs232\windows\vs2k5\librs232\librs232.vcproj
Extracting  librs232\windows\vs2k5\test
Extracting  librs232\windows\vs2k5\test\test.vcproj
Extracting  librs232\windows\vs2k5\librs232lua
Extracting  librs232\windows\vs2k5\librs232lua\librs232lua.vcproj
Extracting  librs232\wince
Extracting  librs232\wince\librs232lua.vcproj
Extracting  librs232\bindings
Extracting  librs232\bindings\Makefile.am
Extracting  librs232\bindings\lua
Extracting  librs232\bindings\lua\Makefile.am
Extracting  librs232\bindings\lua\luars232.c
Extracting  librs232\bindings\lua\test.lua
Extracting  librs232\AUTHORS
Extracting  librs232\COPYING
Extracting  librs232\TODO
Extracting  librs232\src
Extracting  librs232\src\rs232_windows.c
Extracting  librs232\src\rs232.c
Extracting  librs232\src\Makefile.am
Extracting  librs232\src\rs232_posix.c
Extracting  librs232\src\librs232.pc.in
Extracting  librs232\src\resource_lua.rc
Extracting  librs232\src\rs232_test.c
Extracting  librs232\src\resource.rc
Extracting  librs232\src\qrs232.cpp

Everything is Ok

Folders: 13
Files: 32
Size:       163946
Compressed: 41744
cl /MD /O2 -c -Fosrc/rs232.obj -IC:/LuaRocks/2.0/include src/rs232.c -Iinclude
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

rs232.c
include\librs232/rs232_posix.h(30) : fatal error C1083: Cannot open include file
: 'termios.h': No such file or directory

Error: Build error: Failed compiling object src/rs232.obj

Thanks a million for any help you guys can provide!

Ignacio Burgueño

unread,
Jun 3, 2013, 8:47:28 PM6/3/13
to kepler-...@googlegroups.com
There are precompiled binaries here:


Regards,
Ignacio
(For further assistance, you should post on lua-l. In fact, I found the link above searhing in the mailing list archive)

Björn Kalkbrenner

unread,
Jun 4, 2013, 1:42:43 PM6/4/13
to kepler-...@googlegroups.com
Hi,

another great alternative is to use Lua4Windows
(http://code.google.com/p/luaforwindows/) which is a really nice
all-in-one-install-and-it-works Lua solution (rs232 is part of it).
Of course, Ignacio is right, the luars232 zip is enough for the luars232
question but i think if you want to use Lua on windows there will be
more than the rs232 stuff.
Give it a try, i really like it on Windows (also the shipped version of
the SciTE Editor is nice expanded with lua debugger features). If you
like you can also try dotnet or graphical WXWidgets Stuff with it and
Lua. It just... works...

Bye
Bj�rn
> --
> You received this message because you are subscribed to the Google
> Groups "Kepler Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to kepler-projec...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages