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

Ubuntu 7.10 + derelictsdl + derelictsdlnet + tango + dsss

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



Joined: 15 Aug 2007
Posts: 12

PostPosted: Tue Mar 04, 2008 1:37 am    Post subject: Ubuntu 7.10 + derelictsdl + derelictsdlnet + tango + dsss Reply with quote

that combination produces these errors if I try to compile my source code:

http://trac2.assembla.com/neiderra2/ticket/51

you see, there are dlopen, dlclose, ... , errors correlated with derelict, and others probably with tango.

maybe that's all because of wrong installation..

i have downloaded the old bundle of dsss-0.74+tango-0.99.4+gdc, then installed it and fixed:
1) that error in gdmd script ($header=1),
2) the environment setting in ...dsss-install-path.../etc/rebuild/default I've changed the gdc-posix to gdc-posix-tango.

only after that fixes I finally 'dsss net installed' derelict*, minid, etc... and 'rebuild' finally stopped thinking that it uses phobos as default lib. Confused

then I 'sudo aptitude installed sdl, sdlnet' (latest versions in repository):
1.2.11-9ubuntu2 of sdl and 1.2.5-7 of sdlnet.

P.S. under dmd/tango/windows everything is ok.

sources: http://trac2.assembla.com/neiderra2/browser
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Tue Mar 04, 2008 4:08 am    Post subject: Reply with quote

You need to link with libdl.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
JetBird



Joined: 15 Aug 2007
Posts: 12

PostPosted: Fri Mar 07, 2008 3:54 pm    Post subject: Reply with quote

ok, that worked well, but now I have this runtime error:

derelict.util.exception.SharedLibProcLoadException: Failed to load proc SDLNet_Linked_Version from shared library libSDL_net-1.2.so.0

SDLnet version is 1.2.5-7
derelict.sdl.net version is 1.2.5

SDL version is 1.2.11...
derelict.sdl version is 1.2.10
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Sat Mar 08, 2008 5:48 am    Post subject: Reply with quote

A quick Google search led me to this page. In order to work around it, two solutions come to mind: compile your own SDLNet binary (which you would also need to bundle with your app if you distribute it) or take ignore the exception via Derelict's selective loading mechanism (which you can read all about in the Derelict docs). I'd go for the latter option, unless you need to actually use that function.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
JetBird



Joined: 15 Aug 2007
Posts: 12

PostPosted: Wed Mar 12, 2008 9:09 am    Post subject: Reply with quote

I have downloaded SDL, SDLnet sources and then compiled them (just configure, make, make install commands, nothing more..); also I changed compiler to DMD and used Tango 0.99.5 and DSSS 0.75.

'dsss net install derelict, sdl, sdlnet' was successfull, and finally I've compiled my project.

It's finally ok, but there is an error in runtime:

Code:

No available video device


produced by SDL_Init(SDL_INIT_VIDEO)
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Wed Mar 12, 2008 8:07 pm    Post subject: Reply with quote

JetBird wrote:
I have downloaded SDL, SDLnet sources and then compiled them (just configure, make, make install commands, nothing more..); also I changed compiler to DMD and used Tango 0.99.5 and DSSS 0.75.

'dsss net install derelict, sdl, sdlnet' was successfull, and finally I've compiled my project.

It's finally ok, but there is an error in runtime:

Code:

No available video device


produced by SDL_Init(SDL_INIT_VIDEO)


That's not a Derelict issue, but is an error internal to SDL. You should take it to the SDL mailing list.
_________________
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