-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xml luarocks does not compile C++17 compiler ( i.e. Ubuntu 22.04 LTS gcc) #19
Comments
I ran into this issue as well. After some digging, I found out how to send CXXLAGS flags to the compiler to tell it to run in C++14 mode by updating the package = "xml"
version = "1.1.3-1"
source = {
url = 'git://github.com/lubyk/xml',
tag = 'REL-1.1.3',
dir = 'xml',
}
description = {
summary = "Very fast xml parser based on RapidXML",
detailed = [[
This module is part of the Lubyk project.
Main features are:
- Fast and easy to use
- Complete documentation
- Based on proven code (RapidXML)
- Full test coverage
Read the documentation at http://doc.lubyk.org/xml.html.
]],
homepage = "http://doc.lubyk.org/xml.html",
license = "MIT"
}
dependencies = {
"lua >= 5.1, < 5.4",
"lub >= 1.0.3, < 2",
"luarocks-build-extended"
}
build = {
type = 'extended',
modules = {
-- Plain Lua files
['xml' ] = 'xml/init.lua',
['xml.Parser' ] = 'xml/Parser.lua',
-- C module
['xml.core' ] = {
sources = {
'src/Parser.cpp',
'src/bind/dub/dub.cpp',
'src/bind/xml_Parser.cpp',
'src/bind/xml_core.cpp',
},
incdirs = {'include', 'src/bind', 'src/vendor'},
},
},
platforms = {
freebsd = {
modules = {
['xml.core'] = {
sources = {
},
libraries = {'c++'},
},
},
},
linux = {
modules = {
['xml.core'] = {
sources = {
},
variables = {
CXXFLAG_EXTRAS = { "-std=c++14" }
},
libraries = {'stdc++'},
},
},
},
macosx = {
modules = {
['xml.core'] = {
sources = {
},
libraries = {'stdc++'},
},
},
},
},
} |
After this solution for installing lua-requests (Debian 12, lua 5.3) i'v got the next:
I tried this way:
Where is my mistake? |
When installing from Luarocks:
Compiler I am using is
The text was updated successfully, but these errors were encountered: