ying32 / govcl

Cross-platform Go/Golang GUI library.
https://z-kit.cc
Apache License 2.0
2.25k stars 228 forks source link

Can someone make a step by step guide how this can work on a mac? #115

Closed MarcelXia closed 2 years ago

ying32 commented 2 years ago

The step already exists in README.md .

MarcelXia commented 2 years ago

well, I still have this: vendor/github.com/ying32/govcl/vcl/api/importFuncsAuto.go:392:53: undefined: TMessage

ying32 commented 2 years ago

MacOS M1? If so, it is not supported for the time being, but fork‘s project has been supported by M1.

3084fuid commented 2 years ago

@ying32 谢谢你。我喜欢govcl! Will M1 support be merged in future? Are you still actively maintaining govcl?

ying32 commented 2 years ago

@3084fuid The dev branch has been merged, but I can't provide the liblcl.dylib under M1 because I don't have the relevant device.

3084fuid commented 2 years ago

Thank you very much for your answer. This does make sense.

MarcelXia commented 2 years ago

ld: warning: object file (/var/folders/2j/sl_kv1311vggqj0m8jy3_w7w0000gn/T/go-link-3362521056/000002.o) was built for newer macOS version (11.1) than being linked (11.0) ld: warning: object file (/var/folders/2j/sl_kv1311vggqj0m8jy3_w7w0000gn/T/go-link-3362521056/000003.o) was built for newer macOS version (11.1) than being linked (11.0) ld: warning: object file (/var/folders/2j/sl_kv1311vggqj0m8jy3_w7w0000gn/T/go-link-3362521056/000004.o) was built for newer macOS version (11.1) than being linked (11.0) ld: warning: object file (/var/folders/2j/sl_kv1311vggqj0m8jy3_w7w0000gn/T/go-link-3362521056/000005.o) was built for newer macOS version (11.1) than being linked (11.0) ld: warning: object file (/var/folders/2j/sl_kv1311vggqj0m8jy3_w7w0000gn/T/go-link-3362521056/000006.o) was built for newer macOS version (11.1) than being linked (11.0) ld: warning: object file (/var/folders/2j/sl_kv1311vggqj0m8jy3_w7w0000gn/T/go-link-3362521056/000007.o) was built for newer macOS version (11.1) than being linked (11.0) ld: warning: object file (/var/folders/2j/sl_kv1311vggqj0m8jy3_w7w0000gn/T/go-link-3362521056/000008.o) was built for newer macOS version (11.1) than being linked (11.0) ld: warning: object file (/var/folders/2j/sl_kv1311vggqj0m8jy3_w7w0000gn/T/go-link-3362521056/000009.o) was built for newer macOS version (11.1) than being linked (11.0) ld: warning: object file (/var/folders/2j/sl_kv1311vggqj0m8jy3_w7w0000gn/T/go-link-3362521056/000010.o) was built for newer macOS version (11.1) than being linked (11.0) ld: warning: object file (/var/folders/2j/sl_kv1311vggqj0m8jy3_w7w0000gn/T/go-link-3362521056/000011.o) was built for newer macOS version (12.0) than being linked (11.0) ld: warning: object file (/var/folders/2j/sl_kv1311vggqj0m8jy3_w7w0000gn/T/go-link-3362521056/000012.o) was built for newer macOS version (12.0) than being linked (11.0) dlopen err: dlopen(/Users/marcelloh/data/go-private/WiMaLiCommander/liblcl.dylib, 0x0009): tried: '/Users/marcelloh/data/go-private/WiMaLiCommander/liblcl.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) panic: dlopen("liblcl.dylib"), failed.

goroutine 1 [running]: github.com/ying32/govcl/vcl/api.loadUILib() /Users/marcelloh/data/go-private/WiMaLiCommander/vendor/github.com/ying32/govcl/vcl/api/dylib_nonmemory.go:32 +0xe8 github.com/ying32/govcl/vcl/api.init() /Users/marcelloh/data/go-private/WiMaLiCommander/vendor/github.com/ying32/govcl/vcl/api/dylib.go:24 +0x14c exit status 2

ying32 commented 2 years ago

@MarcelXia I've said that I can't provide the arm version of liblcl.dylib.

MarcelXia commented 2 years ago

Why close this? I know you can't provide it, but perhaps an other person can. (You're not alone on this planet, right?)

ying32 commented 2 years ago

In your question #102 I already told you that other people have compiled liblcl.dylib for arm under macOS, but you ignored this? Should I not close it?

MarcelXia commented 2 years ago

Because I don't ask for that, but for a step by step guide on how to do this :-( I really want to try this package, but am not able to do this. (all new Macs will have an M1 or M2, so you will miss a platform later on)

ying32 commented 2 years ago

I also answered the steps before. whatever!

MarcelXia commented 2 years ago

I'm sorry, but don't be rude.

So when I follow the steps (which I did), how come I have an error? (I think there's something missing in the steps, or I am doing something wrong) Let's assume, I do something wrong, how can I check what is wrong?