Giter Club home page Giter Club logo

Comments (7)

systemed avatar systemed commented on September 22, 2024

I think you have luajit installed and liblua5.1-dev but not libluajit-5.1-dev.

Consequently tilemaker will see that you have LuaJIT, try to find its libraries, and fail.

If you do sudo apt install libluajit-5.1-dev then this will install the headers for LuaJIT and it should build happily. (Tested on Ubuntu 20.04.)

from tilemaker.

StephenAtty avatar StephenAtty commented on September 22, 2024

OK I removed luajit and installed lua 5.1 and that's fixed it. Either way the list of packages to install is wrong - if its going to include liblua5.1-0-dev then it should also include lua5.1

now it fails on

fatal: not a git repository (or any of the parent directories): .git
g++ -O3 -Wall -Wno-unknown-pragmas -Wno-sign-compare -std=c++14 -pthread -fPIE -DTM_VERSION= -o src/attribute_store.o -c src/attribute_store.cpp -I/usr/local/include -isystem ./include -I./src -I/usr/include/lua5.1
fatal: not a git repository (or any of the parent directories): .git
g++ -O3 -Wall -Wno-unknown-pragmas -Wno-sign-compare -std=c++14 -pthread -fPIE -DTM_VERSION= -o src/coordinates_geom.o -c src/coordinates_geom.cpp -I/usr/local/include -isystem ./include -I./src -I/usr/include/lua5.1
In file included from /usr/include/boost/math/tools/cxx03_warn.hpp:9,
from /usr/include/boost/math/constants/constants.hpp:11,
from /usr/include/boost/geometry/util/math.hpp:29,
from /usr/include/boost/geometry/core/radian_access.hpp:33,
from /usr/include/boost/geometry/geometry.hpp:51,
from /usr/include/boost/geometry.hpp:17,
from ./include/geom.h:14,
from ./include/coordinates_geom.h:5,
from src/coordinates_geom.cpp:1:
/usr/include/boost/detail/no_exceptions_support.hpp:17:1: note: ‘#pragma message: This header is deprecated. Use <boost/core/no_exceptions_support.hpp> instead.’
17 | BOOST_HEADER_DEPRECATED("<boost/core/no_exceptions_support.hpp>")
| ^~~~~~~~~~~~~~~~~~~~~~~
fatal: not a git repository (or any of the parent directories): .git
g++ -O3 -Wall -Wno-unknown-pragmas -Wno-sign-compare -std=c++14 -pthread -fPIE -DTM_VERSION= -o src/coordinates.o -c src/coordinates.cpp -I/usr/local/include -isystem ./include -I./src -I/usr/include/lua5.1
fatal: not a git repository (or any of the parent directories): .git
cc -O3 -Wall -Wno-unknown-pragmas -Wno-sign-compare -std=c99 -fPIE -DTM_VERSION= -o src/external/streamvbyte_decode.o -c src/external/streamvbyte_decode.c -I/usr/local/include -isystem ./include -I./src -I/usr/include/lua5.1
fatal: not a git repository (or any of the parent directories): .git
cc -O3 -Wall -Wno-unknown-pragmas -Wno-sign-compare -std=c99 -fPIE -DTM_VERSION= -o src/external/streamvbyte_encode.o -c src/external/streamvbyte_encode.c -I/usr/local/include -isystem ./include -I./src -I/usr/include/lua5.1
fatal: not a git repository (or any of the parent directories): .git
cc -O3 -Wall -Wno-unknown-pragmas -Wno-sign-compare -std=c99 -fPIE -DTM_VERSION= -o src/external/streamvbyte_zigzag.o -c src/external/streamvbyte_zigzag.c -I/usr/local/include -isystem ./include -I./src -I/usr/include/lua5.1
fatal: not a git repository (or any of the parent directories): .git
g++ -O3 -Wall -Wno-unknown-pragmas -Wno-sign-compare -std=c++14 -pthread -fPIE -DTM_VERSION= -o src/geojson_processor.o -c src/geojson_processor.cpp -I/usr/local/include -isystem ./include -I./src -I/usr/include/lua5.1
^Cmake: *** [Makefile:206: src/geojson_processor.o] Interrupt

from tilemaker.

systemed avatar systemed commented on September 22, 2024

OK I removed luajit and installed lua 5.1 and that's fixed it. Either way the list of packages to install is wrong - if its going to include liblua5.1-0-dev then it should also include lua5.1

I don't think that's the issue: if you install liblua5.1-0-dev then you get lua5.1 along with it AIUI. The issue is that you'd installed luajit but not libluajit-5.1-dev. tilemaker looks for LuaJIT first (because it's faster than other Luas), so it was trying to use that, but you hadn't installed the development headers.

Detecting Lua, and all the various places it can be installed, from the simple environment of a Makefile is hard. If you want to use an unusual setup (i.e. LuaJIT binary but no headers, Lua 5.1 binary and headers) then the CMake build will do a better job of that.

now it fails on
fatal: not a git repository (or any of the parent directories): .git

It's not failing to build, it's just failing to get the tilemaker version number (which it gets from a git tag) - I'm guessing you're building from a downloaded zip rather than a git clone? Regardless, if you let it build then it will be fine.

from tilemaker.

StephenAtty avatar StephenAtty commented on September 22, 2024

I'd run the apt install list in the docs - it looks like installing the dev package on 22.04 doesn't include the run time

sudo apt install liblua5.1-0-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
liblua5.1-0-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 122 kB of archives.
After this operation, 817 kB of additional disk space will be used.

$ lua
Command 'lua' not found, but can be installed with:
sudo apt install lua5.1 # version 5.1.5-8.1build4, or
sudo apt install lua5.2 # version 5.2.4-2
sudo apt install lua5.3 # version 5.3.6-1build1
sudo apt install lua5.4 # version 5.4.4-1
sudo apt install tarantool # version 2.6.0-1ubuntu3

from tilemaker.

systemed avatar systemed commented on September 22, 2024

Wow, that's curious. Ok, I'll take a look at the README - thanks.

from tilemaker.

StephenAtty avatar StephenAtty commented on September 22, 2024

I did a make clean and it all worked OK - so I guess something got left behind

from tilemaker.

systemed avatar systemed commented on September 22, 2024

Excellent - glad it's working!

from tilemaker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.