Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code does not work out of the box on macOS #2

Open
kubark42 opened this issue Oct 20, 2021 · 1 comment
Open

Code does not work out of the box on macOS #2

kubark42 opened this issue Oct 20, 2021 · 1 comment

Comments

@kubark42
Copy link

kubark42 commented Oct 20, 2021

Background

Qt Version: Qt 5.15.2
Platform: MacOS 11.6

Problem

Opening the project in Qt Creator, and then building and running the code results in an empty screen.

Screen Shot 2021-10-19 at 20 08 15

Workaround

The line value: applicationDirPath+"/dianzi_gaode_ArcgisServerTiles/_alllayers" points to the wrong directory on macOS, as it is looking inside the application bundle. However, the bundle does not have the files copied into the app directory.

As a workaround, I set

value: "/Users/foo/Downloads/MyQtLocation-master/bin/dianzi_gaode_ArcgisServerTiles/_alllayers"

and it works fine.

Thanks a lot for publishing this project, it's a perfect example of an offline map plugin!

@gongjianbo
Copy link
Owner

Thank you for your valuable feedback. But I don't have an Mac development environment to test. I don't know how Mac gets the relative path of the executable(谢谢你的反馈. 不过我没有苹果开发环境,无法进行测试. 也不知道苹果怎么获取可执行程序相对路径.)

@kubark42 kubark42 changed the title Code does not work out of the box Code does not work out of the box on macOS Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants