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

Issue running gradle build on project: Lossy conversion from double to float #18

Open
priya4991 opened this issue Mar 1, 2024 · 2 comments

Comments

@priya4991
Copy link

I am following the steps in the ReadMe, created the cmake files, and then ran ./gradlew build zipNatives publishToMavenLocal
Getting the following error about a lossy conversion from float to double
Screenshot 2024-03-01 at 8 55 21 pm

These values are defined in the bullet3 C library with the f for float, but when they are converted into a java code, the f is not persisting and the values are turning into double trying to be saved in a float variable.

Can you help me please?

@skaldarnar
Copy link
Member

This issue seems to be related to the version of SWIG used, or it is related to running this on Mac (regardless of the architecture):

@BenjaminAmos found swig/swig#1605 and wants to apply that to all the faulty constants.

@BenjaminAmos
Copy link

I have just tested this and can confirm that swig 4.0.2 on macOS works. Swig 4.2.0 does not work.

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

3 participants