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

macOS still missing some libs after build: QtDbus, libprotobuf. #199

Closed
fractalshine opened this issue Oct 17, 2024 · 3 comments
Closed

Comments

@fractalshine
Copy link
Contributor

fractalshine commented Oct 17, 2024

Describe the problem

Expected behavior: successful app launch

Actual behavior: App crash due to missing libs: QtDbus, libprotobuf.

How to reproduce

Build environment :
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 14.7-arm64
CLT: 15.3.0.0.1.1708646388

Testing environment:
macOS 15.0.1-arm64

investigation

Not sure if my build setup configured in right way.

QtDbus
To resolve problem with QtDbus changed CmakeLists.txt, added

target_link_libraries(mytarget PRIVATE Qt6::DBus)

according documentation https://doc.qt.io/qt-6/qtdbus-index.html

protobuf

Got error with compilation process of protobuf (C++ versions less than C++14 are not supported)
resolved according to protocolbuffers/protobuf#12393
-DCMAKE_CXX_STANDARD=14 to cmake arguments libs/build_deps_all.sh

Protobuf now compiled w/o errors but crash still occurs, libprotobuf is missing

@fractalshine fractalshine changed the title BUG: macOS still missing some libs after build: QtDbus, libprotobuf. Oct 17, 2024
@Mahdi-zarei
Copy link
Owner

The build process should involve running libs/build_deps_all.sh to build the deps, then running cmake and ninja to build the app, and if you wanna ship it to another system, use macdeployqt to pack it up. Did you do these and get these errors in the end?

@fractalshine
Copy link
Contributor Author

Yep did this steps as you described. On my macos build env app runs well because this libs are present in system. But on clean macos i'm experiencing crashes (libprotobuf is missing). Your builds from github actions run well on both of my macbooks.

@Mahdi-zarei
Copy link
Owner

Well, if you follow exactly the build process you should be able to ship the resulting AppDir. I suggest you try to make sure that you haven't missed any steps. Also make sure to ship the resulting AppDir and not the Nekoray executable that has been built.

@Mahdi-zarei Mahdi-zarei closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2025
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