|
Re: SDL2 |
Posted on: 2015/10/5 21:32
#21 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 594
|
Hello,
Configuring and installing SDL 2 will interfere in some way with SDL 1.2? Any news or update on this? thank you very much |
|
_________________
Retired |
||
|
Re: SDL2 |
Posted on: 2015/10/6 7:06
#22 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2013/10/17 16:21 From Hungary
Posts: 648
|
Nope. They changed the name of the library to "sdl2" from "sdl" when they broke the interface. I was busy with other projects lately. What's missing is most of the code that deals with windows and events.
|
|
_________________
I see the jimmies have been rustled. |
||
|
Re: SDL2 |
Posted on: 2015/10/6 8:54
#23 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/12/2 13:27 From Taranto, Italy
Posts: 933
|
i'm busy too.. as i wrote in my first post.. hope someone will join the project. I know that is a "free" project and on os4 world we are not used to work on non-payed projects.. but this lib is very important for a lot of games
|
|
_________________
i'm really tired... ![]() |
||
|
Re: SDL2 |
Posted on: 2016/1/12 19:10
#24 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2007/7/14 21:30 From Lothric
Posts: 1200
|
@afxgroup, BSzili
Anyone has a recent dlopen/dlsym implementation? I found one from OS4Depot, by Chris Young. Unfortunately it doesn't work out-of-the-box for SDL2. Looks like OS4 ships with another version of libdl.so (it has different symbols than Chris'). |
|
|
Re: SDL2 |
Posted on: 2016/1/12 19:31
#25 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2013/10/17 16:21 From Hungary
Posts: 648
|
Static libraries and shared object are mutually exclusive. Just remove the static lib, and link with something like:
-use-dynld -Wl,-rpath-link,/sobjs -L/sobjs
|
|
_________________
I see the jimmies have been rustled. |
||
|
Re: SDL2 |
Posted on: 2016/1/12 19:46
#26 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2007/7/14 21:30 From Lothric
Posts: 1200
|
@BSzili
Unfortunately that doesn't help me to build SDL2 with dynapi support. I found some of my older SDK has dlfcn.h by Hyperion, I wonder was it dropped from the latest SDKs or did I lose it myself. Regarding dynapi, here is some good info https://plus.google.com/+RyanGordon/posts/TB8UfnDYu4U Of course we can implement a symbol loader by Elf.library, or just disable dynapi, but this looks like a possibility in a world full of statically-linking developers ;) |
|
|
Re: SDL2 |
Posted on: 2016/1/12 20:07
#27 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2013/10/17 16:21 From Hungary
Posts: 648
|
They dropped libdl.so in the latest SDK? I'm still stuck in the u6 era, so I didn't know about this. I think it's safe to disable the SObj loader for the time being, since almost nobody uses those SDL functions, and/or has fallback to libdl.
|
|
_________________
I see the jimmies have been rustled. |
||
|
Re: SDL2 |
Posted on: 2016/1/13 8:42
#28 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/12/2 13:27 From Taranto, Italy
Posts: 933
|
libdl is part of the SDK and it was updated also on the latest one. Which file is missing?
|
|
_________________
i'm really tired... ![]() |
||
|
Re: SDL2 |
Posted on: 2016/1/13 8:53
#29 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 594
|
dlopen/dlsym
|
|
_________________
Retired |
||
|
Re: SDL2 |
Posted on: 2016/1/13 9:17
#30 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1775
|
@afxgroup
The header file (dlfcn.h) is missing or at least I can't find it in my SDK install. |
|
|
Re: SDL2 |
Posted on: 2016/1/13 9:18
#31 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/12/2 13:27 From Taranto, Italy
Posts: 933
|
dlopen/dlsym are not a file. they are functions part of dlfcn.h. I remember it was part of libdl updates but in case you need it you can download the file here:
http://www.amigasoft.net/downloads/dlfcn.h |
|
_________________
i'm really tired... ![]() |
||
|
Re: SDL2 |
Posted on: 2016/1/13 9:37
#32 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1775
|
@afxgroup
That must be a really old version of the file because it's missing stuff that's already in the version 53.1 header. The latest version of libdl.so is 53.4 (9.4.2013). |
|
|
Re: SDL2 |
Posted on: 2016/1/13 16:41
#33 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2007/7/14 21:30 From Lothric
Posts: 1200
|
@salass00
Thanks for confirmation. If you think libdl.so should be officially supported by the SDK, I can make a BZ entry, if needed. |
|
|
Re: SDL2 |
Posted on: 2016/1/13 17:11
#34 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1775
|
@Capehill
Quote:
Please do. The soft link for the libdl.so file is still there so likely the header file was left out by mistake. |
|
|
Re: SDL2 |
Posted on: 2016/1/13 19:05
#35 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2007/7/14 21:30 From Lothric
Posts: 1200
|
@salass00
Done. Hopefully we get a new SDK this year :) By the way, should there also be a static libdl.a? I'm using dlfcn.h from the older SDK for now. |
|
|
Re: SDL2 |
Posted on: 2016/1/14 6:12
#36 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1775
|
@Capehill
Quote:
No, it's just built as a shared object. |
|
|
Re: SDL2 |
Posted on: 2016/1/17 13:16
#37 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 594
|
Configure doesn't work with 5.3.0
Seems to works with 4.9.1 as suggested by Capehill |
|
_________________
Retired |
||
|
Re: SDL2 |
Posted on: 2016/1/17 20:42
#38 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 594
|
@afxgroup
i have the file dlfcn.h in the sdk/clib2/include, but compiling the sdl i get the error: dlfcn.h: no such file or directory |
|
_________________
Retired |
||
|
Re: SDL2 |
Posted on: 2016/1/18 6:20
#39 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3939
|
@AmigaBlitter
You're probably compiling with newlib. Have you tried adding -mcrt=clib2 to your compiler CFLAGS? |
|
_________________
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg |
||
|
Re: SDL2 |
Posted on: 2016/1/18 9:35
#40 |
---|---|---|
Amigans Defender
![]() ![]() Joined:
2006/12/2 13:27 From Taranto, Italy
Posts: 933
|
move that file in sdk/newlib/include
|
|
_________________
i'm really tired... ![]() |
||