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

undefined notify_map_change #269

Closed
springmeyer opened this issue May 29, 2014 · 1 comment
Closed

undefined notify_map_change #269

springmeyer opened this issue May 29, 2014 · 1 comment

Comments

@springmeyer
Copy link
Contributor

Hitting this on OS X with make run-headless-test:

  ./gyp-mac-tool flock ../Release/linker.lock c++ -L/Users/dane/projects/llmr-native2/mapnik-packaging/osx/out/build-cpp11-libcpp-universal/lib -lpng16 -lz -L/Users/dane/projects/llmr-native2/mapnik-packaging/osx/out/build-cpp11-libcpp-universal/lib -luv -lpthread -ldl -L/Users/dane/projects/llmr-native2/mapnik-packaging/osx/out/build-cpp11-libcpp-universal/lib -lcurl -lssl -lcrypto -lssl -lcrypto -lz -Wl,-dead_strip -arch x86_64 -L../Release -stdlib=libc++  -o "../Release/test_headless" ../Release/obj.target/headless/test/main.o ../Release/obj.target/headless/test/headless.o ../Release/obj.target/headless/common/curl_request.o ../Release/libgtest.a ../Release/libllmr-x86.a -lpthread -framework OpenGL
Undefined symbols for architecture x86_64:
  "llmr::platform::notify_map_change()", referenced from:
      llmr::Transform::resize(unsigned short, unsigned short, float, unsigned short, unsigned short) in libllmr-x86.a(transform.o)
      llmr::Transform::_setAngle(double, unsigned long long, bool) in libllmr-x86.a(transform.o)
      llmr::Transform::_setScaleXY(double, double, double, unsigned long long) in libllmr-x86.a(transform.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [../Release/test_headless] Error 1
make: *** [run-headless-test] Error 2
@incanus
Copy link
Contributor

incanus commented May 29, 2014

Sorry, this is a new platform-specific call and you need to provide it in Linux/things not using GLFW. It's related to iOS and the delegate callback mechanism. On OS X, we don't (yet) need this so it's simply:

void notify_map_change() {
    // no-op
}

https://github.com/mapbox/llmr-native/blob/1da72cb77932b3f4e2a5b169d3e0d9c971571d4c/common/glfw_view.cpp#L276-L278

acalcutt pushed a commit to acalcutt/mapbox-gl-native that referenced this issue Apr 30, 2022
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants