3 ms·
Hard coded compiler version? Could not find compiler set in environment variable CC: gcc-4.8. I'm running gcc-4.9. I got it working by doing: l
by hornetblack 12y ago
Hard coded compiler version?
Could not find compiler set in environment variable CC:
gcc-4.8.
I'm running gcc-4.9. I got it working by doing:
ln -s /usr/bin/gcc ~/bin/gcc-4.8
ln -s /usr/bin/g++ ~/bin/g++-4.8
I'm not saying this is good practice, but it works.
Also need to make sure python means python2.
- danespringmeyer 12y agoThanks for noting these issues. I've made a note about Python 2.x in the readme (https://github.com/mapbox/mapbox-gl-native/commit/ae7e3de61c209d32ec52372a21726941e7fe652a https://github.com/mapbox/mapbox-gl-native/commit/ae7e3de61c...). As far as the compiler, g++-4.9 is fine to use. If you hit an error with it could you share the details in an issue? https://github.com/mapbox/mapbox-gl-native/issues https://github.com/mapbox/mapbox-gl-native/issues
- green7ea 12y agoI had to change: #!/usr/bin/env python to: #!/usr/bin/env python2 in the python scripts to get it working under archlinux. If this works on the other platforms, that might be a good change.
- bri3d 12y agoFrom looking at the build code, you should be able to just set CC=gcc-4.9 and CXX=g++-4.9 in your environment. This is a pretty standard practice and the reason that it's set to "gcc-4.8" rather than "gcc" by default is because it requires real C++11 support in order to compile.