Problem Using LuaRocks

General discussion about LÖVE, Lua, game development, puns, and unicorns.
bonez001
Prole
Posts: 36
Joined: Wed Sep 14, 2016 8:14 am

Re: Problem Using LuaRocks

Post by bonez001 »

There is a file called luasql-mysql-cvs-1.rockspec. I changed the sources part to the actual destination. Does the heder needs the actual localtion?

package = "LuaSQL-MySQL"
version = "cvs-1"
source = {
url = "git://github.com/keplerproject/luasql.git"
}
description = {
summary = "Database connectivity for Lua (MySQL driver)",
detailed = [[
LuaSQL is a simple interface from Lua to a DBMS. It enables a
Lua program to connect to databases, execute arbitrary SQL statements
and retrieve results in a row-by-row cursor fashion.
]],
license = "MIT/X11",
homepage = "http://www.keplerproject.org/luasql/"
}
dependencies = {
"lua >= 5.1"
}
external_dependencies = {
MYSQL = {
header = "mysql.h"
}
}
build = {
type = "builtin",
modules = {
["luasql.mysql"] = {
sources = { "C:/Users/pc/Desktop/luasql-master/src/luasql.c", "C:/Users/pc/Desktop/luasql-master/src/ls_mysql.c" },
libraries = { "libmysql" },
incdirs = { "$(MYSQL_INCDIR)" },
libdirs = { "$(MYSQL_LIBDIR)" }
}
}
}
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 9 guests