Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

xproj fails to build — GLFW/glfw3.h not found #2025

Closed
1ec5 opened this issue Aug 10, 2015 · 5 comments
Closed

xproj fails to build — GLFW/glfw3.h not found #2025

1ec5 opened this issue Aug 10, 2015 · 5 comments
Labels
build macOS Mapbox Maps SDK for macOS
Milestone

Comments

@1ec5
Copy link
Contributor

1ec5 commented Aug 10, 2015

  1. Clean and distclean everything.
  2. make xproj
  3. Build the osxapp target.
In file included from /Users/mxn/hub/mapbox-gl-native/macosx/main.mm:6:
../include/mbgl/platform/default/glfw_view.hpp:9:10: fatal error: 'GLFW/glfw3.h' file not found
#include <GLFW/glfw3.h>

I also see lots of warnings in mbgl-render of the form:

ld: warning: direct access in void boost::throw_exception<boost::bad_lexical_cast>(boost::bad_lexical_cast const&) to global weak symbol typeinfo for boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> > means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

Xcode 6.4 on OS X 10.10.4. Possibly related to #2016.

/cc @kkaefer @incanus

@1ec5 1ec5 added build macOS Mapbox Maps SDK for macOS labels Aug 10, 2015
@1ec5 1ec5 added this to the v0.6.0 milestone Aug 10, 2015
@1ec5
Copy link
Contributor Author

1ec5 commented Aug 11, 2015

Possibly a regression from #1988.

@incanus
Copy link
Contributor

incanus commented Aug 11, 2015

Doing a make distclean, then make xproj here builds fine for me in Xcode 6.4.

@incanus
Copy link
Contributor

incanus commented Aug 11, 2015

Also no sign of the boost logs either with running the gamut of interactive tests on OS X.

@1ec5
Copy link
Contributor Author

1ec5 commented Aug 11, 2015

After distclean, I encounter the GLFW errors in master but not release-0.5.0. I’m bisecting right now, but it’ll take awhile.

@1ec5
Copy link
Contributor Author

1ec5 commented Aug 11, 2015

I must’ve had some cruft lying around. After a bunch of bisecting, I no longer get the GLFW compiler error, although the Boost linker warnings remain.

@1ec5 1ec5 closed this as completed Aug 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

No branches or pull requests

2 participants