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

after building to a binary file ,can not work on other computer #386

Open
JackySmith opened this issue Aug 24, 2018 · 3 comments
Open

after building to a binary file ,can not work on other computer #386

JackySmith opened this issue Aug 24, 2018 · 3 comments

Comments

@JackySmith
Copy link

just a easy gtk program, after build it to a execute file ,can work well on my mac which I build it ,but when i transfer the other mac, it can not work and relay as follows:

dyld: Library not loaded: /usr/local/opt/gtk+/lib/libgtk-quartz-2.0.0.dylib
Referenced from: /Users/bigdisk/Desktop/testgtk
Reason: image not found
Abort trap: 6
logout

it seems that some lib not included ,how can i build it with that lib

@mattn
Copy link
Owner

mattn commented Aug 24, 2018

Since your gtk libraries are not compiled as static library.

@JackySmith
Copy link
Author

Thanks for you reply. And I google and found that : GTK+ does not officially support static linking. If you want to statically link GTK+, you will need to build it (and all its dependencies) from scratch as static libraries .
Is that true? But I don't know how to build it from scratch as static libraries .Can you give me some useful manual?

@mattn
Copy link
Owner

mattn commented Aug 26, 2018

Is that true?

Yes. See https://www.geany.org/manual/gtk/gtk/gtk-building.html

You can modify flags for configure script to build static library.

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