Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
36 user(s) are online (16 user(s) are browsing Forums)

Members: 1
Guests: 35

Rigo, more...

Support us!

Recent OS4 Files
OS4Depot.net




« 1 ... 43 44 45 (46)


Re: SDL2
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 6356
@Jabirulo
Wild guess that you have in your SDK older sdl2.so or how it called , and link against it. You need to replace one in SDK , and just in case one in SOBJS: with one from RC2, and then try again. And be sure nowhere else in the system/SDK you didn't have older SDL2.so , etc

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: SDL2
Quite a regular
Joined:
2007/2/6 13:57
From Donostia (SPAIN)
Posts: 549
@Capehill

Downloaded SDL2 and copied again where it should:

#version SDK:Local/newlib/lib/libSDL2.so file
VERSION: Sin información de versión para "SDK:Local/newlib/lib/libSDL2.so".
#

So no version tag inside .so


Doing:
nm SDK:Local/newlib/lib/libSDL2.so >ram:sdl2_symb

and searching for "SDL_GameControllerTypeForIndex'" and "SDL_JoystickGetDevicePlayerIndex'" shows nothing found

   Report Go to top

Re: SDL2
Quite a regular
Joined:
2007/2/6 13:57
From Donostia (SPAIN)
Posts: 549
and using -v in gcc:
...
ppc-amigaos-gcc -o testgamecontroller testgamecontroller.o -v -use-dynld -lSDL2 -athread=native -lpthread
Using built-in specs.
COLLECT_GCC=/Devel/SDK/gcc/bin/ppc-amigaos-gcc
COLLECT_LTO_WRAPPER=/Devel/SDK/gcc/bin/../libexec/gcc/ppc-amigaos/8.4.0/lto-wrapper
Target: ppc-amigaos
Configured with: /var/lib/jenkins/workspace/native-gcc-8/gcc/repo/configure --with-bugurl=https://github.com/sba1/adtools/issues --with-pkgversion='adtools build 8.4.0' --host=ppc-amigaos --target=ppc-amigaos --disable-nls --prefix=/gcc --with-gmp=/var/lib/jenkins/workspace/native-gcc-8/native-build/root-cross --with-mpfr=/var/lib/jenkins/workspace/native-gcc-8/native-build/root-cross --with-mpc=/var/lib/jenkins/workspace/native-gcc-8/native-build/root-cross --enable-languages=c,c++ --enable-haifa --enable-sjlj-exceptions --disable-libstdcxx-pch --disable-tls --enable-threads=amigaos --enable-lto
Thread model: amigaos
gcc version 8.4.0 (adtools build 8.4.0)
COMPILER_PATH=/Devel/SDK/gcc/bin/../libexec/gcc/ppc-amigaos/8.4.0/:/Devel/SDK/gcc/bin/../libexec/gcc/:/Devel/SDK/gcc/bin/../lib/gcc/ppc-amigaos/8.4.0/../../../../ppc-amigaos/bin/
LIBRARY_PATH=/Devel/SDK/gcc/bin/../lib/gcc/ppc-amigaos/8.4.0/:/Devel/SDK/gcc/bin/../lib/gcc/:/Devel/SDK/gcc/bin/../lib/gcc/ppc-amigaos/8.4.0/../../../../ppc-amigaos/lib/:/Devel/SDK/gcc/bin/../lib/gcc/ppc-amigaos/8.4.0/../../../
COLLECT_GCC_OPTIONS='-o' 'testgamecontroller' '-v' '-use-dynld' '-athread=native'
/Devel/SDK/gcc/bin/../lib/gcc/ppc-amigaos/8.4.0/../../../../ppc-amigaos/bin/ld --eh-frame-hdr --defsym __amigaos4__=1 -q -d -V -Qy /Devel/SDK/gcc/bin/../lib/gcc/ppc-amigaos/8.4.0/gthr-amigaos-native.o -dy -L/SDK/newlib/lib -L/GCC/lib/gcc/ppc-amigaos/8.4.0/newlib/lib -L/SDK/local/newlib/lib -L/SDK/local/common/lib -o testgamecontroller -use-dynld /SDK/newlib/lib/crtbegin.o -L/Devel/SDK/gcc/bin/../lib/gcc/ppc-amigaos/8.4.0 -L/Devel/SDK/gcc/bin/../lib/gcc -L/Devel/SDK/gcc/bin/../lib/gcc/ppc-amigaos/8.4.0/../../../../ppc-amigaos/lib -L/Devel/SDK/gcc/bin/../lib/gcc/ppc-amigaos/8.4.0/../../.. testgamecontroller.o -lSDL2 -lpthread -lgcc --start-group -lc --end-group -lgcc /SDK/newlib/lib/crtend.o
GNU ld (GNU Binutils) 2.23.2
Supported emulations:
amigaos
elf32ppc
testgamecontroller.o: In function `loop':
testgamecontroller.c:99: undefined reference to `SDL_GameControllerTypeForIndex'
testgamecontroller.o: In function `WatchGameController':
testgamecontroller.c:234: undefined reference to `SDL_JoystickGetDevicePlayerIndex'
make: *** [testgamecontroller] Error 1

Using this SDL2 release/files: https://github.com/AmigaPorts/SDL/releases/tag/v2.0.12-rc2-amigaos4

   Report Go to top

Re: SDL2
Quite a regular
Joined:
2007/2/6 13:57
From Donostia (SPAIN)
Posts: 549
@kas1e

searched/looked a couple of times for "old" duplicated SDL2 lib/so/files and nothing.
I deleted an SDL drawer in SDK:Local/common/include in case it used/looked there.

but with -USE-DYNLD I get this :
...
testgamecontroller.o: In function `loop':
testgamecontroller.c:99: undefined reference to `SDL_GameControllerTypeForIndex'
testgamecontroller.o: In function `WatchGameController':
testgamecontroller.c:234: undefined reference to `SDL_JoystickGetDevicePlayerIndex'


and using the same makefile, but without -USE-DYNLD compiles ok.

   Report Go to top

Re: SDL2
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091
@jabirulo

Quote:

version SDK:Local/newlib/lib/libSDL2.so file
VERSION: Sin información de versión para "SDK:Local/newlib/lib/libSDL2.so".


1) There is no libSDL2.so in the 2.0.12 archive. If you run the installer, it will create a link called libSDL2.so though. If yours libSDL2.so is a file, where it came from? If it's a link where does it point to?

2) The shared object contains $VER.

My conclusion is that you are using some old/wrong/corrupted .so version. Use filesize and md5sum to verify it against the archive and check also that you are using a correct archive.

   Report Go to top

Re: SDL2
Quite a regular
Joined:
2007/2/6 13:57
From Donostia (SPAIN)
Posts: 549
@Capehill
1)Yes, Install script:
makelink from=libSDL2.so to=libSDL2-2.0.so soft

Ok maybe then c:version doesn't "like" links. will try again with "real" ibSDL2-2.0.so and post md5sum et all.

EDIT:
Aaaand you were right didn't notice, but I had a libSDL2.so FILE, removed, create link and now compiles correctly

THXALAOT

#make -f Makefile.amigaos4
ppc-amigaos-gcc -gstabs -O2 -Wall -ISDK:Local/newlib/include/SDL2 -DHAVE_OPENGL -c -o testgamecontroller.o testgamecontroller.c
testgamecontroller.c: In function 'loop':
testgamecontroller.c:156:16: warning: unused variable 'high_frequency_rumble' [-Wunused-variable]
Uint16 high_frequency_rumble = SDL_GameControllerGetAxis(gamecontroller, SDL_CONTROLLER_AXIS_TRIGGERRIGHT) * 2;
^~~~~~~~~~~~~~~~~~~~~
testgamecontroller.c:155:16: warning: unused variable 'low_frequency_rumble' [-Wunused-variable]
Uint16 low_frequency_rumble = SDL_GameControllerGetAxis(gamecontroller, SDL_CONTROLLER_AXIS_TRIGGERLEFT) * 2;
^~~~~~~~~~~~~~~~~~~~
ppc-amigaos-gcc -o testgamecontroller testgamecontroller.o -use-dynld -lSDL2 -athread=native


#list sobjs:libSDL2#?
Directorio "sobjs:" a Jueves 18-Jun-20
libSDL2-2.0.so 4296799 ----rwed Lunes 20:31:48
libSDL2-2.0_debug.so 4380299 ----rwed Lunes 20:24:26
libSDL2.so vacío ----rwed Lunes 22:39:30
> libSDL2-2.0.so
3 ficheros - 8473K bytes - 16953 bloques usados


#md5sum SOBJS:libSDL2.so
7bceedae5b025633628467e984308a90 SOBJS:libSDL2.so
#md5sum SOBJS:libSDL2-2.0.so
7bceedae5b025633628467e984308a90 SOBJS:libSDL2-2.0.so


#version SOBJS:libSDL2-2.0.so file
libSDL2.so 0.12
#version SOBJS:libSDL2.so file
libSDL2.so 0.12


Edited by jabirulo on 2020/6/18 17:12:09
Edited by jabirulo on 2020/6/18 17:15:47
Edited by jabirulo on 2020/6/18 17:17:34
   Report Go to top

Re: SDL2
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091

   Report Go to top

Re: SDL2
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091
After multiple release candidates, 2.0.12 is released now: https://github.com/AmigaPorts/SDL/releases

Going to update the older OS4Depot version next...

   Report Go to top

Re: SDL2
Just popping in
Joined:
2007/1/10 21:56
From Stockholm Sweden
Posts: 103
@Capehill

Thank you very much for your work once again today!

_________________
1989-> A500, A600, A3000, A4000, A1200, CD32, µA1, PegII, A1XE, CDTV, Amy/416D79, A1X5000, Vampire 500 V2+, Vampire 600 V2, Amy-ITX<-2020
   Report Go to top


« 1 ... 43 44 45 (46)



[Advanced Search]



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project