FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Seg faults with ODE on Ubuntu

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
oranda



Joined: 22 Mar 2008
Posts: 6

PostPosted: Fri May 09, 2008 2:35 am    Post subject: Seg faults with ODE on Ubuntu Reply with quote

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
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Fri May 09, 2008 4:07 am    Post subject: Reply with quote

What does your command line look like when compiling your app?
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
oranda



Joined: 22 Mar 2008
Posts: 6

PostPosted: Fri May 09, 2008 4:22 am    Post subject: Reply with quote

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
View user's profile Send private message
oranda



Joined: 22 Mar 2008
Posts: 6

PostPosted: Fri May 09, 2008 8:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Sat May 10, 2008 4:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
oranda



Joined: 22 Mar 2008
Posts: 6

PostPosted: Sun May 11, 2008 6:49 am    Post subject: Reply with quote

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
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Sun May 11, 2008 7:47 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group