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

j2objc Build #2064

Open
kelvinjm opened this issue Apr 20, 2023 · 9 comments
Open

j2objc Build #2064

kelvinjm opened this issue Apr 20, 2023 · 9 comments

Comments

@kelvinjm
Copy link

Have you tried the full j2objc build lately?

I am trying to follow the instructions:
https://developers.google.com/j2objc/guides/building-j2objc

But the last buildable commits are half a year old.

The latest version throws a lot of not supported in -source 8 errors right at the start. At the same time, java.mk explicitly states -source 1.8 -target 1.8. If I change it, more errors are thrown, and so on and on.

@kelvinjm
Copy link
Author

Well, thanks DEEP-Dh for the reply from ChatGPT 1.0 Alpha.

@tomball
Copy link
Collaborator

tomball commented Apr 24, 2023 via email

@kelvinjm
Copy link
Author

kelvinjm commented Apr 24, 2023

Thank you very much. Much better than AI :)

One more thing. Is there a specific version of protobuf needed? I tried libprotoc 3.3.0 (brew install protobuf delivers this) and a fresh build of the latest version libprotoc 22.3, both have the same problem:

fatal error: 'google/protobuf/stubs/strutil.h' file not found

@tomball
Copy link
Collaborator

tomball commented Apr 24, 2023 via email

@kelvinjm
Copy link
Author

Successfully built. One more thing (there's always one more :). Are there any special settings needed for bitcode activation?
Xcode 14.2 on Monterey reports:

'.../j2objc/lib/iphone/libjre_emul.a(ErrnoException.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '.../j2objc/lib/iphone/libjre_emul.a' for architecture arm64

Your build (2.3) does not have this problem.

@tomball
Copy link
Collaborator

tomball commented Apr 25, 2023 via email

@tomball
Copy link
Collaborator

tomball commented Apr 25, 2023 via email

@kelvinjm
Copy link
Author

Thanks for the clarification, I didn't notice the deprecation at all.

@tomball
Copy link
Collaborator

tomball commented Apr 25, 2023 via email

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