tangram-es: Raspberry Pi 3 Model B / Raspbian Make Failed
Hi Devs,
Over the weekend, I have been trying to install tangram-es on a Raspberry Pi 3Model B running the latest Raspbian image - with no joy. It all looks good and then fails at the final make stages.
I have tried following the tool chains here: https://github.com/tangrams/tangram-es and here: https://www.raspberrypi.org/blog/tangram-an-open-source-map-rendering-library/
And combinations of the two. I have also searched through the issues on github.com (and google) and tried various fixes but it keeps failing at the same point with the same errors. I have posted the output below as well as some useful debug info regarding C++ compiler and make versions etc.
Any pointers would be greatly appreciated!
Sorry about the long post - figured you would need the debug info …
Many Thanks,
Wardo.
// ================================== Raspberry Pi 3 Model B // ==================================
Raspian Image: https://www.raspberrypi.org/downloads/raspbian/ Raspbian Jessie with PIXEL Image with PIXEL desktop based on Debian Jessie Version: November 2016 Release date: 2016-11-25 Kernel version: 4.4 2016-11-25-raspbian-jessie.zip / 2016-11-25-raspbian-jessie.img
// ================================== GCC / C++ / GPP / Versions // ==================================
pi@raspberrypi:~ $ dpkg -s gcc-4.9 Package: gcc-4.9 Status: install ok installed Priority: optional Section: devel Installed-Size: 14352 Maintainer: Debian GCC Maintainers debian-gcc@lists.debian.org Architecture: armhf Version: 4.9.2-10 Replaces: gccgo-4.9 (<< 4.9.2-10) Provides: c-compiler Depends: cpp-4.9 (= 4.9.2-10), gcc-4.9-base (= 4.9.2-10), binutils (>= 2.25), libgcc-4.9-dev (= 4.9.2-10), libc6 (>= 2.11), libcloog-isl4 (>= 0.17), libgmp10 (>= 2:5.0.1~), libisl10 (>= 0.10), libmpc3, libmpfr4 (>= 3.1.2), zlib1g (>= 1:1.1.4) Recommends: libc6-dev (>= 2.13-5) Suggests: gcc-4.9-doc (>= 4.9), gcc-4.9-locales (>= 4.9), libgcc1-dbg (>= 1:4.9.2-10), libgomp1-dbg (>= 4.9.2-10), libitm1-dbg (>= 4.9.2-10), libatomic1-dbg (>= 4.9.2-10), libasan1-dbg (>= 4.9.2-10), liblsan0-dbg (>= 4.9.2-10), libtsan0-dbg (>= 4.9.2-10), libubsan0-dbg (>= 4.9.2-10), libcilkrts5-dbg (>= 4.9.2-10), libquadmath-dbg (>= 4.9.2-10) Description: GNU C compiler
// ==================================
pi@raspberrypi:~ $ dpkg -s cpp-4.9 Package: cpp-4.9 Status: install ok installed Priority: optional Section: interpreters Installed-Size: 13344 Maintainer: Debian GCC Maintainers debian-gcc@lists.debian.org Architecture: armhf Source: gcc-4.9 Version: 4.9.2-10 Replaces: gccgo-4.9 (<< 4.9.2-10) Depends: gcc-4.9-base (= 4.9.2-10), libc6 (>= 2.11), libcloog-isl4 (>= 0.17), libgmp10 (>= 2:5.0.1~), libisl10 (>= 0.10), libmpc3, libmpfr4 (>= 3.1.2), zlib1g (>= 1:1.1.4) Suggests: gcc-4.9-locales (>= 4.9) Description: GNU C preprocessor A macro processor that is used automatically by the GNU C compiler to transform programs before actual compilation.
// ==================================
pi@raspberrypi:~ $ dpkg -s g+±4.9 Package: g+±4.9 Status: install ok installed Priority: optional Section: devel Installed-Size: 21367 Maintainer: Debian GCC Maintainers debian-gcc@lists.debian.org Architecture: armhf Source: gcc-4.9 Version: 4.9.2-10 Provides: c+±compiler, c++abi2-dev Depends: gcc-4.9-base (= 4.9.2-10), gcc-4.9 (= 4.9.2-10), libstdc+±4.9-dev (= 4.9.2-10), libc6 (>= 2.11), libcloog-isl4 (>= 0.17), libgmp10 (>= 2:5.0.1~), libisl10 (>= 0.10), libmpc3, libmpfr4 (>= 3.1.2), zlib1g (>= 1:1.1.4) Suggests: gcc-4.9-doc (>= 4.9), libstdc++6-4.9-dbg (>= 4.9.2-10) Description: GNU C++ compiler This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
// ================================== Tool Chain // ==================================
sudo apt-get update sudo apt-get upgrade sudo apt-get update
sudo apt-get install cmake libcurl4-openssl-dev
// ==================================
pi@raspberrypi:~ $ sudo apt-get install cmake libcurl4-openssl-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
cmake-data
Suggested packages:
codeblocks eclipse ninja-build libcurl4-doc libcurl3-dbg libidn11-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev libssl-dev
The following NEW packages will be installed:
cmake cmake-data libcurl4-openssl-dev
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 3,158 kB of archives.
After this operation, 15.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main cmake-data all 3.0.2-1+deb8u1 [929 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main cmake armhf 3.0.2-1+deb8u1 [1,915 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libcurl4-openssl-dev armhf 7.38.0-4+deb8u5 [313 kB]
Fetched 3,158 kB in 1s (1,779 kB/s)
Selecting previously unselected package cmake-data.
(Reading database … 121836 files and directories currently installed.)
Preparing to unpack …/cmake-data_3.0.2-1+deb8u1_all.deb …
Unpacking cmake-data (3.0.2-1+deb8u1) …
Selecting previously unselected package cmake.
Preparing to unpack …/cmake_3.0.2-1+deb8u1_armhf.deb …
Unpacking cmake (3.0.2-1+deb8u1) …
Selecting previously unselected package libcurl4-openssl-dev:armhf.
Preparing to unpack …/libcurl4-openssl-dev_7.38.0-4+deb8u5_armhf.deb …
Unpacking libcurl4-openssl-dev:armhf (7.38.0-4+deb8u5) …
Processing triggers for man-db (2.7.0.2-5) …
Setting up cmake-data (3.0.2-1+deb8u1) …
Setting up cmake (3.0.2-1+deb8u1) …
Setting up libcurl4-openssl-dev:armhf (7.38.0-4+deb8u5) …
=================>>>>>>>>>>>>>>>>>> **** CHECK CMAKE VERSION … ***
pi@raspberrypi:~ $ dpkg -s cmake Package: cmake Status: install ok installed Priority: optional Section: devel Installed-Size: 10782 Maintainer: Modestas Vainius modax@debian.org Architecture: armhf Multi-Arch: foreign Version: 3.0.2-1+deb8u1 Depends: cmake-data (= 3.0.2-1+deb8u1), procps, libarchive13, libc6 (>= 2.15), libcurl3 (>= 7.16.2), libexpat1 (>= 2.0.1), libgcc1 (>= 1:4.4.0), libstdc++6 (>= 4.9), zlib1g (>= 1:1.2.3.3) Pre-Depends: dpkg (>= 1.17.5~) Recommends: gcc, make Suggests: codeblocks, eclipse, ninja-build Conffiles: /etc/bash_completion.d/cmake 89a2635a79da8cbc1c78dd7e50e56898 /etc/bash_completion.d/cpack 8d65632f9a6c67527019978f17469d7d /etc/bash_completion.d/ctest 788e5c5eb043b85aaddf5d5584652464 Description: cross-platform, open-source make system
// ================================== Clone Repository and update // ==================================
cd ~ git clone https://github.com/tangrams/tangram-es.git cd tangram-es
update:
git submodule init && git submodule update
git submodule update --init --recursive
OR suggested fix - USED THIS:
git submodule sync --recursive
git submodule update --init --recursive
pi@raspberrypi:~/tangram-es $ git submodule sync --recursive pi@raspberrypi:~/tangram-es $ git submodule update --init --recursive Submodule ‘core/include/earcut.hpp’ (https://github.com/tangrams/earcut.hpp) registered for path ‘core/include/earcut.hpp’ Submodule ‘core/include/glm’ (https://github.com/g-truc/glm.git) registered for path ‘core/include/glm’ Submodule ‘core/include/isect2d’ (https://github.com/tangrams/isect2d.git) registered for path ‘core/include/isect2d’ Submodule ‘core/include/variant’ (https://github.com/tangrams/variant) registered for path ‘core/include/variant’ Submodule ‘external/alfons’ (https://github.com/hjanetzek/alfons) registered for path ‘external/alfons’ Submodule ‘external/benchmark’ (https://github.com/google/benchmark) registered for path ‘external/benchmark’ Submodule ‘core/dependencies/csscolorparser’ (https://github.com/tangrams/css-color-parser-cpp) registered for path ‘external/css-color-parser-cpp’ Submodule ‘core/dependencies/duktape’ (https://github.com/tangrams/duktape.git) registered for path ‘external/duktape’ Submodule ‘core/dependencies/geojson-vt-cpp’ (https://github.com/tangrams/geojson-vt-cpp.git) registered for path ‘external/geojson-vt-cpp’ Submodule ‘external/glfw’ (https://github.com/glfw/glfw) registered for path ‘external/glfw’ Submodule ‘external/harfbuzz-icu-freetype’ (https://github.com/tangrams/harfbuzz-icu-freetype.git) registered for path ‘external/harfbuzz-icu-freetype’ Submodule ‘external/yaml-cpp’ (https://github.com/tangrams/yaml-cpp) registered for path ‘external/yaml-cpp’ Cloning into ‘core/include/earcut.hpp’… remote: Counting objects: 568, done. remote: Total 568 (delta 0), reused 0 (delta 0), pack-reused 567 Receiving objects: 100% (568/568), 569.53 KiB | 727.00 KiB/s, done. Resolving deltas: 100% (272/272), done. Checking connectivity… done. Submodule path ‘core/include/earcut.hpp’: checked out ‘195b2fdae9a354c0f86592f320df4988c896f822’ Submodule ‘glfw’ (https://github.com/glfw/glfw.git) registered for path ‘glfw’ Cloning into ‘glfw’… remote: Counting objects: 19561, done. remote: Compressing objects: 100% (119/119), done. remote: Total 19561 (delta 48), reused 0 (delta 0), pack-reused 19439 Receiving objects: 100% (19561/19561), 8.97 MiB | 1.29 MiB/s, done. Resolving deltas: 100% (13411/13411), done. Checking connectivity… done. Submodule path ‘core/include/earcut.hpp/glfw’: checked out ‘96cdcec58ac9ed6d6d9c7de26a1fc88a4f948d18’ Cloning into ‘core/include/glm’… remote: Counting objects: 42270, done. remote: Total 42270 (delta 0), reused 0 (delta 0), pack-reused 42270 Receiving objects: 100% (42270/42270), 59.62 MiB | 1.54 MiB/s, done. Resolving deltas: 100% (30300/30300), done. Checking connectivity… done. Submodule path ‘core/include/glm’: checked out ‘e98ce44d850d36930cbf2e89a88570f458fb9878’ Cloning into ‘core/include/isect2d’… remote: Counting objects: 576, done. remote: Total 576 (delta 0), reused 0 (delta 0), pack-reused 576 Receiving objects: 100% (576/576), 389.52 KiB | 605.00 KiB/s, done. Resolving deltas: 100% (279/279), done. Checking connectivity… done. Submodule path ‘core/include/isect2d’: checked out ‘2e1a75cee09d9949900e926c61c86505b09205b2’ Cloning into ‘core/include/variant’… remote: Counting objects: 1712, done. remote: Total 1712 (delta 0), reused 0 (delta 0), pack-reused 1712 Receiving objects: 100% (1712/1712), 502.19 KiB | 705.00 KiB/s, done. Resolving deltas: 100% (1132/1132), done. Checking connectivity… done. Submodule path ‘core/include/variant’: checked out ‘70ed581dd110b049674a1dddfd3027640ef52c8b’ Submodule ‘.mason’ (https://github.com/mapbox/mason.git) registered for path ‘.mason’ Cloning into ‘.mason’… remote: Counting objects: 10278, done. remote: Compressing objects: 100% (145/145), done. remote: Total 10278 (delta 59), reused 0 (delta 0), pack-reused 10126 Receiving objects: 100% (10278/10278), 2.18 MiB | 780.00 KiB/s, done. Resolving deltas: 100% (3312/3312), done. Checking connectivity… done. Submodule path ‘core/include/variant/.mason’: checked out ‘07179f160b96c72ddedbbe6bf82580d1a1d0091a’ Cloning into ‘external/alfons’… remote: Counting objects: 567, done. remote: Total 567 (delta 0), reused 0 (delta 0), pack-reused 567 Receiving objects: 100% (567/567), 2.92 MiB | 639.00 KiB/s, done. Resolving deltas: 100% (331/331), done. Checking connectivity… done. Submodule path ‘external/alfons’: checked out ‘370e1616c6bf5ddf4ebefb767b99f603d3a27e04’ Cloning into ‘external/benchmark’… remote: Counting objects: 3151, done. remote: Compressing objects: 100% (4/4), done. remote: Total 3151 (delta 0), reused 0 (delta 0), pack-reused 3146 Receiving objects: 100% (3151/3151), 803.11 KiB | 937.00 KiB/s, done. Resolving deltas: 100% (2038/2038), done. Checking connectivity… done. Submodule path ‘external/benchmark’: checked out ‘559c71d840876783e071569b5e6a3863a8c44ae3’ Cloning into ‘external/css-color-parser-cpp’… remote: Counting objects: 75, done. remote: Total 75 (delta 0), reused 0 (delta 0), pack-reused 75 Unpacking objects: 100% (75/75), done. Checking connectivity… done. Submodule path ‘external/css-color-parser-cpp’: checked out ‘1771826bc3a868e5e23e3ba6d2a024872218812d’ Cloning into ‘external/duktape’… remote: Counting objects: 14, done. remote: Total 14 (delta 0), reused 0 (delta 0), pack-reused 14 Unpacking objects: 100% (14/14), done. Checking connectivity… done. Submodule path ‘external/duktape’: checked out ‘67f53b3d9b83702038650d425b560af891c54395’ Cloning into ‘external/geojson-vt-cpp’… remote: Counting objects: 964, done. remote: Compressing objects: 100% (3/3), done. remote: Total 964 (delta 0), reused 0 (delta 0), pack-reused 961 Receiving objects: 100% (964/964), 826.34 KiB | 911.00 KiB/s, done. Resolving deltas: 100% (561/561), done. Checking connectivity… done. Submodule path ‘external/geojson-vt-cpp’: checked out ‘acf68233caf1f5f0324ef74f93ebf9678e8af252’ Cloning into ‘external/glfw’… remote: Counting objects: 19561, done. remote: Compressing objects: 100% (119/119), done. remote: Total 19561 (delta 48), reused 0 (delta 0), pack-reused 19439 Receiving objects: 100% (19561/19561), 8.97 MiB | 1.45 MiB/s, done. Resolving deltas: 100% (13411/13411), done. Checking connectivity… done. Submodule path ‘external/glfw’: checked out ‘a7b75792ec0ce49525a5690f0db0f141a966a178’ Cloning into ‘external/harfbuzz-icu-freetype’… remote: Counting objects: 2213, done. remote: Total 2213 (delta 0), reused 0 (delta 0), pack-reused 2213 Receiving objects: 100% (2213/2213), 5.28 MiB | 952.00 KiB/s, done. Resolving deltas: 100% (1061/1061), done. Checking connectivity… done. Submodule path ‘external/harfbuzz-icu-freetype’: checked out ‘26e76b9cdd6a37d23b25256d9b60041ad611b561’ Submodule ‘harfbuzz’ (https://github.com/behdad/harfbuzz.git) registered for path ‘harfbuzz’ Cloning into ‘harfbuzz’… remote: Counting objects: 25292, done. remote: Compressing objects: 100% (6/6), done. remote: Total 25292 (delta 1), reused 0 (delta 0), pack-reused 25286 Receiving objects: 100% (25292/25292), 9.46 MiB | 1.89 MiB/s, done. Resolving deltas: 100% (17320/17320), done. Checking connectivity… done. Submodule path ‘external/harfbuzz-icu-freetype/harfbuzz’: checked out ‘0251b0cc5c39272d2299d4b2ab802faaafe96837’ Cloning into ‘external/yaml-cpp’… remote: Counting objects: 7514, done. remote: Total 7514 (delta 0), reused 0 (delta 0), pack-reused 7514 Receiving objects: 100% (7514/7514), 2.66 MiB | 818.00 KiB/s, done. Resolving deltas: 100% (4926/4926), done. Checking connectivity… done. Submodule path ‘external/yaml-cpp’: checked out ‘22651128b9d304a97e48fedf7cce51122b023899’
// ================================== Select compiler and make // ==================================
export CXX=/usr/bin/g+±4.9 make rpi
// ================================== Final error: // ==================================
[ 92%] Building CXX object core/CMakeFiles/core.dir/src/data/topoJsonSource.cpp.o
[ 93%] Building CXX object core/CMakeFiles/core.dir/src/data/mvtSource.cpp.o
[ 93%] Building CXX object core/CMakeFiles/core.dir/src/data/clientGeoJsonSource.cpp.o
In file included from /home/pi/tangram-es/core/include/mapbox/variant.hpp:2:0,
from /home/pi/tangram-es/external/geojson-vt-cpp/include/mapbox/geojsonvt/geojsonvt_types.hpp:4,
from /home/pi/tangram-es/core/src/data/clientGeoJsonSource.cpp:3:
/home/pi/tangram-es/core/include/variant/include/mapbox/variant.hpp: In member function ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = mapbox::util::variant<mapbox::util::geojsonvt::TilePoint, mapbox::util::geojsonvt::TileRing>; _Alloc = std::allocator<mapbox::util::variant<mapbox::util::geojsonvt::TilePoint, mapbox::util::geojsonvt::TileRing> >]’:
/home/pi/tangram-es/core/include/variant/include/mapbox/variant.hpp:624:27: warning: ‘((void)& temp +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
variant<Types…> temp(std::forward<T>(rhs));
^
[ 93%] Building CXX object core/CMakeFiles/core.dir/src/data/properties.cpp.o
[ 93%] Building CXX object core/CMakeFiles/core.dir/src/data/dataSource.cpp.o
[ 94%] Building CXX object core/CMakeFiles/core.dir/src/data/rasterSource.cpp.o
[ 94%] Building CXX object core/CMakeFiles/core.dir/src/scene/styleParam.cpp.o
[ 94%] Building CXX object core/CMakeFiles/core.dir/src/scene/filters.cpp.o
In file included from /home/pi/tangram-es/core/src/scene/filters.cpp:1:0:
/home/pi/tangram-es/core/src/scene/filters.h: In function ‘void std::swap(_Tp&, _Tp&) [with _Tp = Tangram::Filter]’:
/home/pi/tangram-es/core/src/scene/filters.h:35:12: warning: ‘((void)& __tmp +32)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
struct Equality {
^
In file included from /usr/include/c++/4.9/bits/stl_pair.h:59:0,
from /usr/include/c++/4.9/bits/stl_algobase.h:64,
from /usr/include/c++/4.9/bits/char_traits.h:39,
from /usr/include/c++/4.9/string:40,
from /usr/include/c++/4.9/stdexcept:39,
from /home/pi/tangram-es/core/include/variant/include/mapbox/variant.hpp:7,
from /home/pi/tangram-es/core/src/util/variant.h:11,
from /home/pi/tangram-es/core/src/scene/filters.h:3,
from /home/pi/tangram-es/core/src/scene/filters.cpp:1:
/usr/include/c++/4.9/bits/move.h:175:11: note: ‘((void)& __tmp +32)’ was declared here
_Tp __tmp = _GLIBCXX_MOVE(__a);
^
[ 94%] Building CXX object core/CMakeFiles/core.dir/src/scene/ambientLight.cpp.o
[ 95%] Building CXX object core/CMakeFiles/core.dir/src/scene/dataLayer.cpp.o
[ 95%] Building CXX object core/CMakeFiles/core.dir/src/scene/drawRule.cpp.o
[ 95%] Building CXX object core/CMakeFiles/core.dir/src/scene/scene.cpp.o
[ 95%] Building CXX object core/CMakeFiles/core.dir/src/scene/styleContext.cpp.o
[ 96%] Building CXX object core/CMakeFiles/core.dir/src/scene/styleMixer.cpp.o
[ 96%] Building CXX object core/CMakeFiles/core.dir/src/scene/spotLight.cpp.o
[ 96%] Building CXX object core/CMakeFiles/core.dir/src/scene/importer.cpp.o
[ 96%] Building CXX object core/CMakeFiles/core.dir/src/scene/directionalLight.cpp.o
[ 97%] Building CXX object core/CMakeFiles/core.dir/src/scene/stops.cpp.o
[ 97%] Building CXX object core/CMakeFiles/core.dir/src/scene/skybox.cpp.o
[ 97%] Building CXX object core/CMakeFiles/core.dir/src/scene/light.cpp.o
[ 97%] Building CXX object core/CMakeFiles/core.dir/src/scene/sceneLayer.cpp.o
[ 98%] Building CXX object core/CMakeFiles/core.dir/src/scene/sceneLoader.cpp.o
[ 98%] Building CXX object core/CMakeFiles/core.dir/src/scene/spriteAtlas.cpp.o
[ 98%] Building CXX object core/CMakeFiles/core.dir/src/scene/pointLight.cpp.o
[ 98%] Building CXX object core/CMakeFiles/core.dir/src/debug/textDisplay.cpp.o
[ 99%] Building CXX object core/CMakeFiles/core.dir/src/debug/frameInfo.cpp.o
[ 99%] Building CXX object core/CMakeFiles/core.dir/src/text/fontContext.cpp.o
[ 99%] Building CXX object core/CMakeFiles/core.dir/src/text/textUtil.cpp.o
Linking CXX static library …/lib/libcore.a
make[3]: Leaving directory ‘/home/pi/tangram-es/build/rpi’
[ 99%] Built target core
make[3]: Entering directory ‘/home/pi/tangram-es/build/rpi’
Scanning dependencies of target tangram
make[3]: Leaving directory ‘/home/pi/tangram-es/build/rpi’
make[3]: Entering directory ‘/home/pi/tangram-es/build/rpi’
[ 99%] Building CXX object CMakeFiles/tangram.dir/rpi/src/context.cpp.o
/home/pi/tangram-es/rpi/src/context.cpp: In function ‘void initGL(int, char**)’:
/home/pi/tangram-es/rpi/src/context.cpp:244:13: warning: variable ‘success’ set but not used [-Wunused-but-set-variable]
int32_t success = 0;
^
/home/pi/tangram-es/rpi/src/context.cpp:245:16: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
EGLBoolean result;
^
[ 99%] Building CXX object CMakeFiles/tangram.dir/rpi/src/platform_rpi.cpp.o
In file included from /home/pi/tangram-es/rpi/src/platform_rpi.h:7:0,
from /home/pi/tangram-es/rpi/src/context.h:3,
from /home/pi/tangram-es/rpi/src/platform_rpi.cpp:3:
/opt/vc/include/GLES2/gl2.h:78:0: warning: “GL_FALSE” redefined
#define GL_FALSE (GLboolean)0
^
In file included from /home/pi/tangram-es/rpi/src/platform_rpi.cpp:2:0:
/home/pi/tangram-es/core/src/gl.h:64:0: note: this is the location of the previous definition
#define GL_FALSE 0
^
In file included from /home/pi/tangram-es/rpi/src/platform_rpi.h:7:0,
from /home/pi/tangram-es/rpi/src/context.h:3,
from /home/pi/tangram-es/rpi/src/platform_rpi.cpp:3:
/opt/vc/include/GLES2/gl2.h:79:0: warning: “GL_TRUE” redefined
#define GL_TRUE (GLboolean)1
^
In file included from /home/pi/tangram-es/rpi/src/platform_rpi.cpp:2:0:
/home/pi/tangram-es/core/src/gl.h:65:0: note: this is the location of the previous definition
#define GL_TRUE 1
^
[ 99%] Building CXX object CMakeFiles/tangram.dir/rpi/src/main.cpp.o
[100%] Building CXX object CMakeFiles/tangram.dir/linux/src/urlWorker.cpp.o
Linking CXX executable bin/tangram
lib/libcore.a(textDisplay.cpp.o): In function Tangram::TextDisplay::draw(Tangram::RenderState&, std::string const&, int, int)': /home/pi/tangram-es/core/src/debug/textDisplay.cpp:106: undefined reference to Tangram::GL::drawArrays(unsigned int, int, int)’
lib/libcore.a(textDisplay.cpp.o): In function Tangram::TextDisplay::draw(Tangram::RenderState&, std::vector<std::string, std::allocator<std::string> > const&)': /home/pi/tangram-es/core/src/debug/textDisplay.cpp:119: undefined reference to Tangram::GL::getIntegerv(unsigned int, int*)’
lib/libcore.a(frameInfo.cpp.o): In function Tangram::FrameInfo::draw(Tangram::RenderState&, Tangram::View const&, Tangram::TileManager&)': /home/pi/tangram-es/core/src/debug/frameInfo.cpp:80: undefined reference to Tangram::GL::finish()’
lib/libcore.a(textStyle.cpp.o): In function Tangram::DynamicQuadMesh<Tangram::TextVertex>::upload(Tangram::RenderState&)': /home/pi/tangram-es/core/src/gl/dynamicQuadMesh.h:88: undefined reference to Tangram::GL::genBuffers(int, unsigned int*)’
/home/pi/tangram-es/core/src/gl/dynamicQuadMesh.h:88: undefined reference to Tangram::GL::genBuffers(int, unsigned int*)' /home/pi/tangram-es/core/src/gl/dynamicQuadMesh.h:88: undefined reference to Tangram::GL::genBuffers(int, unsigned int*)’
lib/libcore.a(textStyle.cpp.o): In function Tangram::DynamicQuadMesh<Tangram::TextVertex>::draw(Tangram::RenderState&, Tangram::ShaderProgram&, int)': /home/pi/tangram-es/core/src/gl/dynamicQuadMesh.h:149: undefined reference to Tangram::GL::drawElements(unsigned int, int, unsigned int, void const*)’
lib/libcore.a(pointStyle.cpp.o): In function Tangram::DynamicQuadMesh<Tangram::SpriteVertex>::upload(Tangram::RenderState&)': /home/pi/tangram-es/core/src/gl/dynamicQuadMesh.h:88: undefined reference to Tangram::GL::genBuffers(int, unsigned int*)’
/home/pi/tangram-es/core/src/gl/dynamicQuadMesh.h:88: undefined reference to Tangram::GL::genBuffers(int, unsigned int*)' /home/pi/tangram-es/core/src/gl/dynamicQuadMesh.h:88: undefined reference to Tangram::GL::genBuffers(int, unsigned int*)’
lib/libcore.a(pointStyle.cpp.o): In function Tangram::DynamicQuadMesh<Tangram::SpriteVertex>::draw(Tangram::RenderState&, Tangram::ShaderProgram&, int)': /home/pi/tangram-es/core/src/gl/dynamicQuadMesh.h:149: undefined reference to Tangram::GL::drawElements(unsigned int, int, unsigned int, void const*)’
lib/libcore.a(hardware.cpp.o): In function Tangram::Hardware::loadExtensions()': /home/pi/tangram-es/core/src/gl/hardware.cpp:48: undefined reference to Tangram::GL::getString(unsigned int)’
lib/libcore.a(hardware.cpp.o): In function Tangram::Hardware::loadCapabilities()': /home/pi/tangram-es/core/src/gl/hardware.cpp:71: undefined reference to Tangram::GL::getIntegerv(unsigned int, int*)’
/home/pi/tangram-es/core/src/gl/hardware.cpp:74: undefined reference to Tangram::GL::getIntegerv(unsigned int, int*)' lib/libcore.a(vao.cpp.o): In function Tangram::Vao::bind(unsigned int)‘:
/home/pi/tangram-es/core/src/gl/vao.cpp:53: undefined reference to Tangram::GL::bindVertexArray(unsigned int)' lib/libcore.a(vao.cpp.o): In function Tangram::Vao::unbind()’:
/home/pi/tangram-es/core/src/gl/vao.cpp:58: undefined reference to Tangram::GL::bindVertexArray(unsigned int)' lib/libcore.a(vao.cpp.o): In function Tangram::Vao::dispose()‘:
/home/pi/tangram-es/core/src/gl/vao.cpp:63: undefined reference to Tangram::GL::deleteVertexArrays(int, unsigned int const*)' lib/libcore.a(vao.cpp.o): In function Tangram::Vao::initialize(Tangram::RenderState&, Tangram::ShaderProgram&, std::vector<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int> > > const&, Tangram::VertexLayout&, unsigned int, unsigned int)’:
/home/pi/tangram-es/core/src/gl/vao.cpp:15: undefined reference to Tangram::GL::genVertexArrays(int, unsigned int*)' /home/pi/tangram-es/core/src/gl/vao.cpp:29: undefined reference to Tangram::GL::bindVertexArray(unsigned int)’
/home/pi/tangram-es/core/src/gl/vao.cpp:29: undefined reference to Tangram::GL::bindVertexArray(unsigned int)' lib/libcore.a(tangram.cpp.o): In function Tangram::Map::captureSnapshot(unsigned int*)‘:
/home/pi/tangram-es/core/src/tangram.cpp:549: undefined reference to Tangram::GL::readPixels(int, int, int, int, unsigned int, unsigned int, void*)' lib/libcore.a(framebuffer.cpp.o): In function operator()’:
/home/pi/tangram-es/core/src/gl/framebuffer.cpp:162: undefined reference to Tangram::GL::deleteFramebuffers(int, unsigned int const*)' lib/libcore.a(framebuffer.cpp.o): In function Tangram::FrameBuffer::apply(Tangram::RenderState&, unsigned int, glm::tvec2<float, (glm::precision)0>, glm::tvec4<float, (glm::precision)0>)‘:
/home/pi/tangram-es/core/src/gl/framebuffer.cpp:54: undefined reference to Tangram::GL::clear(unsigned int)' lib/libcore.a(framebuffer.cpp.o): In function Tangram::FrameBuffer::readAt(float, float) const’:
/home/pi/tangram-es/core/src/gl/framebuffer.cpp:70: undefined reference to Tangram::GL::readPixels(int, int, int, int, unsigned int, unsigned int, void*)' lib/libcore.a(framebuffer.cpp.o): In function Tangram::FrameBuffer::init(Tangram::RenderState&)‘:
/home/pi/tangram-es/core/src/gl/framebuffer.cpp:83: undefined reference to Tangram::GL::genFramebuffers(int, unsigned int*)' /home/pi/tangram-es/core/src/gl/framebuffer.cpp:89: undefined reference to Tangram::GL::genRenderbuffers(int, unsigned int*)’
/home/pi/tangram-es/core/src/gl/framebuffer.cpp:90: undefined reference to Tangram::GL::bindRenderbuffer(unsigned int, unsigned int)' /home/pi/tangram-es/core/src/gl/framebuffer.cpp:92: undefined reference to Tangram::GL::renderbufferStorage(unsigned int, unsigned int, int, int)’
/home/pi/tangram-es/core/src/gl/framebuffer.cpp:95: undefined reference to Tangram::GL::framebufferRenderbuffer(unsigned int, unsigned int, unsigned int, unsigned int)' /home/pi/tangram-es/core/src/gl/framebuffer.cpp:112: undefined reference to Tangram::GL::genRenderbuffers(int, unsigned int*)’
/home/pi/tangram-es/core/src/gl/framebuffer.cpp:113: undefined reference to Tangram::GL::bindRenderbuffer(unsigned int, unsigned int)' /home/pi/tangram-es/core/src/gl/framebuffer.cpp:115: undefined reference to Tangram::GL::renderbufferStorage(unsigned int, unsigned int, int, int)’
/home/pi/tangram-es/core/src/gl/framebuffer.cpp:118: undefined reference to Tangram::GL::framebufferRenderbuffer(unsigned int, unsigned int, unsigned int, unsigned int)' /home/pi/tangram-es/core/src/gl/framebuffer.cpp:121: undefined reference to Tangram::GL::checkFramebufferStatus(unsigned int)’
/home/pi/tangram-es/core/src/gl/framebuffer.cpp:107: undefined reference to Tangram::GL::framebufferTexture2D(unsigned int, unsigned int, unsigned int, unsigned int, int)' lib/libcore.a(framebuffer.cpp.o): In function Tangram::FrameBuffer::apply(Tangram::RenderState&, unsigned int, glm::tvec2<float, (glm::precision)0>, glm::tvec4<float, (glm::precision)0>)‘:
/home/pi/tangram-es/core/src/gl/framebuffer.cpp:54: undefined reference to Tangram::GL::clear(unsigned int)' lib/libcore.a(primitives.cpp.o): In function Tangram::Primitives::init()’:
/home/pi/tangram-es/core/src/gl/primitives.cpp:61: undefined reference to Tangram::GL::lineWidth(float)' lib/libcore.a(primitives.cpp.o): In function Tangram::Primitives::drawLine(Tangram::RenderState&, glm::tvec2<float, (glm::precision)0> const&, glm::tvec2<float, (glm::precision)0> const&)‘:
/home/pi/tangram-es/core/src/gl/primitives.cpp:87: undefined reference to Tangram::GL::getIntegerv(unsigned int, int*)' /home/pi/tangram-es/core/src/gl/primitives.cpp:94: undefined reference to Tangram::GL::drawArrays(unsigned int, int, int)’
lib/libcore.a(primitives.cpp.o): In function Tangram::Primitives::drawPoly(Tangram::RenderState&, glm::tvec2<float, (glm::precision)0> const*, unsigned int)': /home/pi/tangram-es/core/src/gl/primitives.cpp:112: undefined reference to Tangram::GL::getIntegerv(unsigned int, int*)’
/home/pi/tangram-es/core/src/gl/primitives.cpp:119: undefined reference to Tangram::GL::drawArrays(unsigned int, int, int)' lib/libcore.a(primitives.cpp.o): In function Tangram::Primitives::drawTexture(Tangram::RenderState&, Tangram::Texture&, glm::tvec2<float, (glm::precision)0>, glm::tvec2<float, (glm::precision)0>)‘:
/home/pi/tangram-es/core/src/gl/primitives.cpp:130: undefined reference to Tangram::GL::getIntegerv(unsigned int, int*)' /home/pi/tangram-es/core/src/gl/primitives.cpp:156: undefined reference to Tangram::GL::drawArrays(unsigned int, int, int)’
lib/libcore.a(primitives.cpp.o): In function drawLine': /home/pi/tangram-es/core/src/gl/primitives.cpp:87: undefined reference to Tangram::GL::getIntegerv(unsigned int, int*)’
/home/pi/tangram-es/core/src/gl/primitives.cpp:94: undefined reference to Tangram::GL::drawArrays(unsigned int, int, int)' /home/pi/tangram-es/core/src/gl/primitives.cpp:87: undefined reference to Tangram::GL::getIntegerv(unsigned int, int*)’
/home/pi/tangram-es/core/src/gl/primitives.cpp:94: undefined reference to Tangram::GL::drawArrays(unsigned int, int, int)' /home/pi/tangram-es/core/src/gl/primitives.cpp:87: undefined reference to Tangram::GL::getIntegerv(unsigned int, int*)’
/home/pi/tangram-es/core/src/gl/primitives.cpp:94: undefined reference to Tangram::GL::drawArrays(unsigned int, int, int)' /home/pi/tangram-es/core/src/gl/primitives.cpp:87: undefined reference to Tangram::GL::getIntegerv(unsigned int, int*)’
/home/pi/tangram-es/core/src/gl/primitives.cpp:94: undefined reference to Tangram::GL::drawArrays(unsigned int, int, int)' lib/libcore.a(shaderProgram.cpp.o): In function operator()‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:39: undefined reference to Tangram::GL::deleteShader(unsigned int)' /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:35: undefined reference to Tangram::GL::deleteShader(unsigned int)’
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:31: undefined reference to Tangram::GL::deleteProgram(unsigned int)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::makeLinkedShaderProgram(int, int)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:189: undefined reference to Tangram::GL::createProgram()' /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:191: undefined reference to Tangram::GL::attachShader(unsigned int, unsigned int)’
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:192: undefined reference to Tangram::GL::attachShader(unsigned int, unsigned int)' /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:193: undefined reference to Tangram::GL::linkProgram(unsigned int)’
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:196: undefined reference to Tangram::GL::getProgramiv(unsigned int, unsigned int, int*)' /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:200: undefined reference to Tangram::GL::getProgramiv(unsigned int, unsigned int, int*)’
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:204: undefined reference to Tangram::GL::getProgramInfoLog(unsigned int, int, int*, char*)' /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:210: undefined reference to Tangram::GL::deleteProgram(unsigned int)’
lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getAttribLocation(std::string const&)': /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:91: undefined reference to Tangram::GL::getAttribLocation(unsigned int, char const*)’
lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::makeCompiledShader(std::string const&, unsigned int)': /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:220: undefined reference to Tangram::GL::createShader(unsigned int)’
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:223: undefined reference to Tangram::GL::shaderSource(unsigned int, int, char const**, int const*)' /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:224: undefined reference to Tangram::GL::compileShader(unsigned int)’
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:227: undefined reference to Tangram::GL::getShaderiv(unsigned int, unsigned int, int*)' /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:231: undefined reference to Tangram::GL::getShaderiv(unsigned int, unsigned int, int*)’
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:237: undefined reference to Tangram::GL::getShaderInfoLog(unsigned int, int, int*, char*)' /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:269: undefined reference to Tangram::GL::deleteShader(unsigned int)’
lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::build(Tangram::RenderState&)': /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:155: undefined reference to Tangram::GL::deleteShader(unsigned int)’
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:171: undefined reference to Tangram::GL::deleteShader(unsigned int)' /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:172: undefined reference to Tangram::GL::deleteShader(unsigned int)’
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:173: undefined reference to Tangram::GL::deleteProgram(unsigned int)' /home/pi/tangram-es/core/src/gl/shaderProgram.cpp:164: undefined reference to Tangram::GL::deleteShader(unsigned int)’
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:165: undefined reference to Tangram::GL::deleteShader(unsigned int)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformi(Tangram::RenderState&, Tangram::UniformLocation const&, int)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:363: undefined reference to Tangram::GL::uniform1i(int, int)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformf(Tangram::RenderState&, Tangram::UniformLocation const&, glm::tvec2<float, (glm::precision)0> const&)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:420: undefined reference to Tangram::GL::uniform2f(int, float, float)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformf(Tangram::RenderState&, Tangram::UniformLocation const&, glm::tvec3<float, (glm::precision)0> const&)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:429: undefined reference to Tangram::GL::uniform3f(int, float, float, float)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformf(Tangram::RenderState&, Tangram::UniformLocation const&, glm::tvec4<float, (glm::precision)0> const&)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:438: undefined reference to Tangram::GL::uniform4f(int, float, float, float, float)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformf(Tangram::RenderState&, Tangram::UniformLocation const&, float)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:399: undefined reference to Tangram::GL::uniform1f(int, float)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformi(Tangram::RenderState&, Tangram::UniformLocation const&, Tangram::UniformTextureArray const&)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:501: undefined reference to Tangram::GL::uniform1iv(int, int, int const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformf(Tangram::RenderState&, Tangram::UniformLocation const&, glm::tvec2<float, (glm::precision)0> const&)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:420: undefined reference to Tangram::GL::uniform2f(int, float, float)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformi(Tangram::RenderState&, Tangram::UniformLocation const&, int, int)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:372: undefined reference to Tangram::GL::uniform2i(int, int, int)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformf(Tangram::RenderState&, Tangram::UniformLocation const&, glm::tvec3<float, (glm::precision)0> const&)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:429: undefined reference to Tangram::GL::uniform3f(int, float, float, float)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformi(Tangram::RenderState&, Tangram::UniformLocation const&, int, int, int)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:381: undefined reference to Tangram::GL::uniform3i(int, int, int, int)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformf(Tangram::RenderState&, Tangram::UniformLocation const&, glm::tvec4<float, (glm::precision)0> const&)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:438: undefined reference to Tangram::GL::uniform4f(int, float, float, float, float)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformi(Tangram::RenderState&, Tangram::UniformLocation const&, int, int, int, int)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:390: undefined reference to Tangram::GL::uniform4i(int, int, int, int, int)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformf(Tangram::RenderState&, Tangram::UniformLocation const&, std::vector<float, std::allocator<float> > const&)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:474: undefined reference to Tangram::GL::uniform1fv(int, int, float const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformMatrix2f(Tangram::RenderState&, Tangram::UniformLocation const&, glm::tmat2x2<float, (glm::precision)0> const&, bool)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:447: undefined reference to Tangram::GL::uniformMatrix2fv(int, int, unsigned char, float const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformMatrix3f(Tangram::RenderState&, Tangram::UniformLocation const&, glm::tmat3x3<float, (glm::precision)0> const&, bool)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:456: undefined reference to Tangram::GL::uniformMatrix3fv(int, int, unsigned char, float const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformMatrix4f(Tangram::RenderState&, Tangram::UniformLocation const&, glm::tmat4x4<float, (glm::precision)0> const&, bool)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:465: undefined reference to Tangram::GL::uniformMatrix4fv(int, int, unsigned char, float const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformf(Tangram::RenderState&, Tangram::UniformLocation const&, std::vector<glm::tvec2<float, (glm::precision)0>, std::allocator<glm::tvec2<float, (glm::precision)0> > > const&)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:483: undefined reference to Tangram::GL::uniform2fv(int, int, float const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::getUniformLocation(Tangram::UniformLocation const&)‘:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:107: undefined reference to Tangram::GL::getUniformLocation(unsigned int, char const*)' lib/libcore.a(shaderProgram.cpp.o): In function Tangram::ShaderProgram::setUniformf(Tangram::RenderState&, Tangram::UniformLocation const&, std::vector<glm::tvec3<float, (glm::precision)0>, std::allocator<glm::tvec3<float, (glm::precision)0> > > const&)’:
/home/pi/tangram-es/core/src/gl/shaderProgram.cpp:492: undefined reference to Tangram::GL::uniform3fv(int, int, float const*)' lib/libcore.a(vertexLayout.cpp.o): In function Tangram::VertexLayout::enable(Tangram::fastmap<std::string, unsigned int> const&, unsigned int)‘:
/home/pi/tangram-es/core/src/gl/vertexLayout.cpp:66: undefined reference to Tangram::GL::enableVertexAttribArray(unsigned int)' /home/pi/tangram-es/core/src/gl/vertexLayout.cpp:67: undefined reference to Tangram::GL::vertexAttribPointer(unsigned int, int, unsigned int, unsigned char, int, void const*)’
lib/libcore.a(vertexLayout.cpp.o): In function Tangram::VertexLayout::enable(Tangram::RenderState&, Tangram::ShaderProgram&, unsigned int, void*)': /home/pi/tangram-es/core/src/gl/vertexLayout.cpp:86: undefined reference to Tangram::GL::enableVertexAttribArray(unsigned int)’
/home/pi/tangram-es/core/src/gl/vertexLayout.cpp:91: undefined reference to Tangram::GL::vertexAttribPointer(unsigned int, int, unsigned int, unsigned char, int, void const*)' /home/pi/tangram-es/core/src/gl/vertexLayout.cpp:101: undefined reference to Tangram::GL::disableVertexAttribArray(unsigned int)’
/home/pi/tangram-es/core/src/gl/vertexLayout.cpp:101: undefined reference to Tangram::GL::disableVertexAttribArray(unsigned int)' /home/pi/tangram-es/core/src/gl/vertexLayout.cpp:101: undefined reference to Tangram::GL::disableVertexAttribArray(unsigned int)’
/home/pi/tangram-es/core/src/gl/vertexLayout.cpp:101: undefined reference to Tangram::GL::disableVertexAttribArray(unsigned int)' /home/pi/tangram-es/core/src/gl/vertexLayout.cpp:101: undefined reference to Tangram::GL::disableVertexAttribArray(unsigned int)’
lib/libcore.a(vertexLayout.cpp.o):/home/pi/tangram-es/core/src/gl/vertexLayout.cpp:101: more undefined references to Tangram::GL::disableVertexAttribArray(unsigned int)' follow lib/libcore.a(mesh.cpp.o): In function operator()‘:
/home/pi/tangram-es/core/src/gl/mesh.cpp:55: undefined reference to Tangram::GL::deleteBuffers(int, unsigned int const*)' /home/pi/tangram-es/core/src/gl/mesh.cpp:51: undefined reference to Tangram::GL::deleteBuffers(int, unsigned int const*)’
lib/libcore.a(mesh.cpp.o): In function Tangram::MeshBase::upload(Tangram::RenderState&)': /home/pi/tangram-es/core/src/gl/mesh.cpp:139: undefined reference to Tangram::GL::bufferData(unsigned int, long, void const*, unsigned int)’
/home/pi/tangram-es/core/src/gl/mesh.cpp:153: undefined reference to Tangram::GL::bufferData(unsigned int, long, void const*, unsigned int)' /home/pi/tangram-es/core/src/gl/mesh.cpp:132: undefined reference to Tangram::GL::genBuffers(int, unsigned int*)’
/home/pi/tangram-es/core/src/gl/mesh.cpp:147: undefined reference to Tangram::GL::genBuffers(int, unsigned int*)' lib/libcore.a(mesh.cpp.o): In function Tangram::MeshBase::subDataUpload(Tangram::RenderState&, signed char*)‘:
/home/pi/tangram-es/core/src/gl/mesh.cpp:109: undefined reference to Tangram::GL::bufferData(unsigned int, long, void const*, unsigned int)' /home/pi/tangram-es/core/src/gl/mesh.cpp:122: undefined reference to Tangram::GL::bufferData(unsigned int, long, void const*, unsigned int)’
/home/pi/tangram-es/core/src/gl/mesh.cpp:112: undefined reference to Tangram::GL::mapBuffer(unsigned int, unsigned int)' /home/pi/tangram-es/core/src/gl/mesh.cpp:117: undefined reference to Tangram::GL::unmapBuffer(unsigned int)’
lib/libcore.a(mesh.cpp.o): In function Tangram::MeshBase::draw(Tangram::RenderState&, Tangram::ShaderProgram&, bool)': /home/pi/tangram-es/core/src/gl/mesh.cpp:219: undefined reference to Tangram::GL::drawElements(unsigned int, int, unsigned int, void const*)’
/home/pi/tangram-es/core/src/gl/mesh.cpp:221: undefined reference to Tangram::GL::drawArrays(unsigned int, int, int)' /home/pi/tangram-es/core/src/gl/mesh.cpp:219: undefined reference to Tangram::GL::drawElements(unsigned int, int, unsigned int, void const*)’
/home/pi/tangram-es/core/src/gl/mesh.cpp:221: undefined reference to Tangram::GL::drawArrays(unsigned int, int, int)' lib/libcore.a(mesh.cpp.o): In function Tangram::MeshBase::subDataUpload(Tangram::RenderState&, signed char*)‘:
/home/pi/tangram-es/core/src/gl/mesh.cpp:109: undefined reference to Tangram::GL::bufferData(unsigned int, long, void const*, unsigned int)' /home/pi/tangram-es/core/src/gl/mesh.cpp:112: undefined reference to Tangram::GL::mapBuffer(unsigned int, unsigned int)’
/home/pi/tangram-es/core/src/gl/mesh.cpp:117: undefined reference to Tangram::GL::unmapBuffer(unsigned int)' /home/pi/tangram-es/core/src/gl/mesh.cpp:122: undefined reference to Tangram::GL::bufferData(unsigned int, long, void const*, unsigned int)’
lib/libcore.a(texture.cpp.o): In function operator()': /home/pi/tangram-es/core/src/gl/texture.cpp:46: undefined reference to Tangram::GL::deleteTextures(int, unsigned int const*)’
lib/libcore.a(texture.cpp.o): In function Tangram::Texture::generate(Tangram::RenderState&, unsigned int)': /home/pi/tangram-es/core/src/gl/texture.cpp:184: undefined reference to Tangram::GL::genTextures(int, unsigned int*)’
/home/pi/tangram-es/core/src/gl/texture.cpp:188: undefined reference to Tangram::GL::texParameteri(unsigned int, unsigned int, int)' /home/pi/tangram-es/core/src/gl/texture.cpp:189: undefined reference to Tangram::GL::texParameteri(unsigned int, unsigned int, int)’
/home/pi/tangram-es/core/src/gl/texture.cpp:191: undefined reference to Tangram::GL::texParameteri(unsigned int, unsigned int, int)' /home/pi/tangram-es/core/src/gl/texture.cpp:192: undefined reference to Tangram::GL::texParameteri(unsigned int, unsigned int, int)’
lib/libcore.a(texture.cpp.o): In function Tangram::Texture::update(Tangram::RenderState&, unsigned int, unsigned int const*)': /home/pi/tangram-es/core/src/gl/texture.cpp:253: undefined reference to Tangram::GL::texImage2D(unsigned int, int, int, int, int, int, unsigned int, unsigned int, void const*)’
/home/pi/tangram-es/core/src/gl/texture.cpp:270: undefined reference to Tangram::GL::texSubImage2D(unsigned int, int, int, int, int, int, unsigned int, unsigned int, void const*)' /home/pi/tangram-es/core/src/gl/texture.cpp:257: undefined reference to Tangram::GL::generateMipmap(unsigned int)’
lib/libcore.a(texture.cpp.o): In function Tangram::Texture::generate(Tangram::RenderState&, unsigned int)': /home/pi/tangram-es/core/src/gl/texture.cpp:184: undefined reference to Tangram::GL::genTextures(int, unsigned int*)’
/home/pi/tangram-es/core/src/gl/texture.cpp:188: undefined reference to Tangram::GL::texParameteri(unsigned int, unsigned int, int)' /home/pi/tangram-es/core/src/gl/texture.cpp:189: undefined reference to Tangram::GL::texParameteri(unsigned int, unsigned int, int)’
/home/pi/tangram-es/core/src/gl/texture.cpp:191: undefined reference to Tangram::GL::texParameteri(unsigned int, unsigned int, int)' /home/pi/tangram-es/core/src/gl/texture.cpp:192: undefined reference to Tangram::GL::texParameteri(unsigned int, unsigned int, int)’
lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::deleteQuadIndexBuffer()': /home/pi/tangram-es/core/src/gl/renderState.cpp:331: undefined reference to Tangram::GL::deleteBuffers(int, unsigned int const*)’
lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::invalidate()': /home/pi/tangram-es/core/src/gl/renderState.cpp:76: undefined reference to Tangram::GL::depthFunc(unsigned int)’
/home/pi/tangram-es/core/src/gl/renderState.cpp:77: undefined reference to Tangram::GL::clearDepth(float)' /home/pi/tangram-es/core/src/gl/renderState.cpp:78: undefined reference to Tangram::GL::depthRange(float, float)’
lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::cacheDefaultFramebuffer()': /home/pi/tangram-es/core/src/gl/renderState.cpp:83: undefined reference to Tangram::GL::getIntegerv(unsigned int, int*)’
lib/libcore.a(renderState.cpp.o): In function setGlFlag': /home/pi/tangram-es/core/src/gl/renderState.cpp:124: undefined reference to Tangram::GL::disable(unsigned int)’
/home/pi/tangram-es/core/src/gl/renderState.cpp:122: undefined reference to Tangram::GL::enable(unsigned int)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::blendingFunc(unsigned int, unsigned int)‘:
/home/pi/tangram-es/core/src/gl/renderState.cpp:140: undefined reference to Tangram::GL::blendFunc(unsigned int, unsigned int)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::clearColor(float, float, float, float)’:
/home/pi/tangram-es/core/src/gl/renderState.cpp:149: undefined reference to Tangram::GL::clearColor(float, float, float, float)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::colorMask(unsigned char, unsigned char, unsigned char, unsigned char)‘:
/home/pi/tangram-es/core/src/gl/renderState.cpp:158: undefined reference to Tangram::GL::colorMask(unsigned char, unsigned char, unsigned char, unsigned char)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::cullFace(unsigned int)’:
/home/pi/tangram-es/core/src/gl/renderState.cpp:167: undefined reference to Tangram::GL::cullFace(unsigned int)' lib/libcore.a(renderState.cpp.o): In function setGlFlag’:
/home/pi/tangram-es/core/src/gl/renderState.cpp:124: undefined reference to Tangram::GL::disable(unsigned int)' /home/pi/tangram-es/core/src/gl/renderState.cpp:122: undefined reference to Tangram::GL::enable(unsigned int)’
/home/pi/tangram-es/core/src/gl/renderState.cpp:124: undefined reference to Tangram::GL::disable(unsigned int)' /home/pi/tangram-es/core/src/gl/renderState.cpp:122: undefined reference to Tangram::GL::enable(unsigned int)’
lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::depthMask(unsigned char)': /home/pi/tangram-es/core/src/gl/renderState.cpp:194: undefined reference to Tangram::GL::depthMask(unsigned char)’
lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::frontFace(unsigned int)': /home/pi/tangram-es/core/src/gl/renderState.cpp:203: undefined reference to Tangram::GL::frontFace(unsigned int)’
lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::stencilMask(unsigned int)': /home/pi/tangram-es/core/src/gl/renderState.cpp:212: undefined reference to Tangram::GL::stencilMask(unsigned int)’
lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::stencilFunc(unsigned int, int, unsigned int)': /home/pi/tangram-es/core/src/gl/renderState.cpp:221: undefined reference to Tangram::GL::stencilFunc(unsigned int, int, unsigned int)’
lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::stencilOp(unsigned int, unsigned int, unsigned int)': /home/pi/tangram-es/core/src/gl/renderState.cpp:230: undefined reference to Tangram::GL::stencilOp(unsigned int, unsigned int, unsigned int)’
lib/libcore.a(renderState.cpp.o): In function setGlFlag': /home/pi/tangram-es/core/src/gl/renderState.cpp:124: undefined reference to Tangram::GL::disable(unsigned int)’
/home/pi/tangram-es/core/src/gl/renderState.cpp:122: undefined reference to Tangram::GL::enable(unsigned int)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::shaderProgram(unsigned int)‘:
/home/pi/tangram-es/core/src/gl/renderState.cpp:248: undefined reference to Tangram::GL::useProgram(unsigned int)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::texture(unsigned int, unsigned int)’:
/home/pi/tangram-es/core/src/gl/renderState.cpp:257: undefined reference to Tangram::GL::bindTexture(unsigned int, unsigned int)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::textureUnit(unsigned int)‘:
/home/pi/tangram-es/core/src/gl/renderState.cpp:268: undefined reference to Tangram::GL::activeTexture(unsigned int)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::vertexBuffer(unsigned int)’:
/home/pi/tangram-es/core/src/gl/renderState.cpp:277: undefined reference to Tangram::GL::bindBuffer(unsigned int, unsigned int)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::indexBuffer(unsigned int)‘:
/home/pi/tangram-es/core/src/gl/renderState.cpp:286: undefined reference to Tangram::GL::bindBuffer(unsigned int, unsigned int)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::deleteQuadIndexBuffer()’:
/home/pi/tangram-es/core/src/gl/renderState.cpp:331: undefined reference to Tangram::GL::deleteBuffers(int, unsigned int const*)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::framebuffer(unsigned int)‘:
/home/pi/tangram-es/core/src/gl/renderState.cpp:376: undefined reference to Tangram::GL::bindFramebuffer(unsigned int, unsigned int)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::viewport(int, int, int, int)’:
/home/pi/tangram-es/core/src/gl/renderState.cpp:386: undefined reference to Tangram::GL::viewport(int, int, int, int)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::generateQuadIndexBuffer()‘:
/home/pi/tangram-es/core/src/gl/renderState.cpp:349: undefined reference to Tangram::GL::genBuffers(int, unsigned int*)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::indexBuffer(unsigned int)’:
/home/pi/tangram-es/core/src/gl/renderState.cpp:286: undefined reference to Tangram::GL::bindBuffer(unsigned int, unsigned int)' lib/libcore.a(renderState.cpp.o): In function Tangram::RenderState::generateQuadIndexBuffer()‘:
/home/pi/tangram-es/core/src/gl/renderState.cpp:352: undefined reference to `Tangram::GL::bufferData(unsigned int, long, void const*, unsigned int)’
collect2: error: ld returned 1 exit status
CMakeFiles/tangram.dir/build.make:170: recipe for target ‘bin/tangram’ failed
make[3]: *** [bin/tangram] Error 1
make[3]: Leaving directory ‘/home/pi/tangram-es/build/rpi’
CMakeFiles/Makefile2:69: recipe for target ‘CMakeFiles/tangram.dir/all’ failed
make[2]: *** [CMakeFiles/tangram.dir/all] Error 2
make[2]: Leaving directory ‘/home/pi/tangram-es/build/rpi’
Makefile:137: recipe for target ‘all’ failed
make[1]: *** [all] Error 2
make[1]: Leaving directory ‘/home/pi/tangram-es/build/rpi’
Makefile:348: recipe for target ‘rpi’ failed
make: *** [rpi] Error 2
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (7 by maintainers)
Hi! good news using the pixel distribution recreates the problem… I will debug it now… stay tune!