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

[newton.mod] Win32/Linux linking & MAV issues. #1

Open
kfprimm opened this issue Sep 20, 2015 · 4 comments
Open

[newton.mod] Win32/Linux linking & MAV issues. #1

kfprimm opened this issue Sep 20, 2015 · 4 comments

Comments

@kfprimm
Copy link
Owner

kfprimm commented Sep 20, 2015

Reported by @markcwm here.

Need to check over Makefiles for Win32, MacOS, & Linux to make sure source.bmx is importing all the required C files.

@kfprimm kfprimm changed the title [newton.mod] Win32 & Linux linking issues. [newton.mod] Win32/Linux linking & MAV issues. Sep 20, 2015
@markcwm
Copy link

markcwm commented Sep 21, 2015

Thanks. I updated source.bmx again to look in pthreads.2 on Win only, as I got errors when I tried it on Linux.

I really don't think there's anything wrong with source.bmx as your original source ran on Mac, so I think it must be something wrong in the CC_OPTS flags.

Edit: Oh yes, I forgot to say I tested NewtonCreate() on Linux and it segfaulted there. I then ran gdb on it and got very little info. I did find a post where someone had a similar segfault on Linux and they fixed it by using the dynamic library.

@markcwm
Copy link

markcwm commented Sep 21, 2015

Well I found that Brucey is working on a wrapper for Newton too! Which is cool. It's on Git in bmx-ng/b3d.mod. So I built it but it also segfaults on Linux (32 bit). So now I'm at the point where a dynamic library version would be just fine thank you, as long as it works. I suspect it is a threading issue but this is just an uneducated guess - when I used gdb the only info I got was about the threading library version.

@markcwm
Copy link

markcwm commented Sep 22, 2015

I tried building threaded versions and then using Lock/Unlock Mutex which fixed the segfault but when I tried another command CreateBody, it segfaulted and I couldn't fix that.

@kfprimm
Copy link
Owner Author

kfprimm commented Oct 9, 2015

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