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:
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?
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\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\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!