View previous topic :: View next topic |
Author |
Message |
oranda
Joined: 22 Mar 2008 Posts: 6
|
Posted: Fri May 09, 2008 2:35 am Post subject: Seg faults with ODE on Ubuntu |
|
|
I'm currently attempting to use the Derelict ODE bindings on my Linux box, and whenever I call the DerelictODE.load() function, my program seg faults. It compiles just fine, and there are no exceptions thrown, just a straight up seg fault.
I've compiled and installed the latest release of ODE from source, as well as tried using the Debian package, but get the same result both ways. Any ideas on what the hang-up could be? |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
|
Back to top |
|
|
oranda
Joined: 22 Mar 2008 Posts: 6
|
Posted: Fri May 09, 2008 4:22 am Post subject: |
|
|
I'm using DSSS, so my command line doesn't really look like much. Would the rebuild command that DSSS generates help?
#edit# I'm also loading SDL, SDLImage, GL, and GLU, and none of those cause any issues #/edit# |
|
Back to top |
|
|
oranda
Joined: 22 Mar 2008 Posts: 6
|
Posted: Fri May 09, 2008 8:27 pm Post subject: |
|
|
I figured it out. Even though I manually compiled the ODE libraries, the Ubuntu provided libraries were higher up in the link order and so they were being grabbed. I removed the Ubuntu provided libraries completely and now the project links correctly. |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Sat May 10, 2008 4:41 pm Post subject: |
|
|
oranda wrote: | I figured it out. Even though I manually compiled the ODE libraries, the Ubuntu provided libraries were higher up in the link order and so they were being grabbed. I removed the Ubuntu provided libraries completely and now the project links correctly. |
What do you mean by 'link'? You shouldn't be linking to ODE at all when using Derelict. _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
|
oranda
Joined: 22 Mar 2008 Posts: 6
|
Posted: Sun May 11, 2008 6:49 am Post subject: |
|
|
You do link, but dynamically rather than statically. The .so files for the Ubuntu provided libraries were higher up on the loading chain, so they were linked into my program at runtime rather than the self-compiled ones. |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Sun May 11, 2008 7:47 am Post subject: |
|
|
oranda wrote: | You do link, but dynamically rather than statically. |
You shouldn't even be dynamically linking. The loading is handled manually by Derelict when you call DerelictODE.load. _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
|
|