Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
93 user(s) are online (61 user(s) are browsing Forums)

Members: 0
Guests: 93

more...

Headlines

Forum Index


Board index » All Posts (SinanSam460)




Re: SDL2
Not too shy to talk
Not too shy to talk


@Capehill

Thanks that also worked.. However I still get some _Z errors.

I think I am doing correct linking, maybe the original code is broken ?

ppc-amigaos-gcc -athread=native *.cc -o Rocketz -lGL -lGLUT -lGLU -lSDL2_image -lSDL2_net -lSDL2_ttf -lfreetype -ltiff -lwebp -lpng -ljpeg -lz -lm -lSDL2_mixer -lmikmod -lmodplug -lFLAC -lvorbisfile -lvorbis -logg -lSDL2 -lsmpeg2 -lpthread -lz -lstdc++
/
tmp/ccNLpETN.o:(.sbss+0x0): multiple definition of `window'
/tmp/cc1bLF33.o:(.sbss+0x0): first defined here
/tmp/ccbbxwE0.o: In function 
`_Z12compress_pngPPhiiS_i':
test_png.cc:(.text+0xe8): multiple definition of `_Z12compress_pngPPhiiS_i'
/tmp/cceaAsxd.o:main.cc:(.text+0xebc): first defined here
/tmp/ccbbxwE0.oIn function `main':
test_png.cc:(.text+0x464): multiple definition of 
`main'
/tmp/cceaAsxd.o:main.cc:(.text+0x1d30): first defined here
/tmp/ccSyrZ4e.o: In function `_Z18jpeg_writer_threadi'
:
threads.cc:(.text+0x0): multiple definition of `_Z18jpeg_writer_threadi'
/tmp/cceaAsxd.o:main.cc:(.text+0x124c): first defined here
/tmp/ccSyrZ4e.o: In function 
`main':
threads.cc:(.text+0xa4): multiple definition of `main'
/tmp/cceaAsxd.o:main.cc:(.text+0x1d30): first defined here
/tmp/cc8rD4sB.oIn function `_ZN9Billboard4drawEv':
billboard.cc:(.text+0x59c): undefined reference to 
`_Z19sgVectorProductVec3PfPKfS1_'
/tmp/ccXjnL6r.o: In function `_ZN6Camera15setup_modelviewEv'
:
camera.cc:(.text+0x88): undefined reference to `_Z13sgMakeRotMat4PA4_ffPKf'
camera.cc:(.text+0xdc): undefined reference to 
`_Z13sgMakeRotMat4PA4_ffPKf'
camera.cc:(.text+0xf4): undefined reference to `_Z14sgPostMultMat4PA4_fPA4_Kf'
camera.cc:(.text+0x110): undefined reference to `_Z21sgTransposeNegateMat4PA4_fPA4_Kf'
camera.cc:(.text+0x14c): undefined reference to 
`_Z15sgMakeTransMat4PA4_ffff'
camera.cc:(.text+0x16c): undefined reference to `_Z10sgMultMat4PA4_fPA4_KfS3_'
/tmp/cc2aNItA.oIn function `_ZN5PlaneC2EPfS0_S0_':
frustum.cc:(.text._ZN5PlaneC2EPfS0_S0_[_ZN5PlaneC5EPfS0_S0_]+0x64): undefined reference to 
`_Z19sgVectorProductVec3PfPKfS1_'
/tmp/ccKdXJ7P.o: In function `_ZN6Object6rotateEfPf'
:
object.cc:(.text+0x7ec): undefined reference to `_Z13sgMakeRotMat4PA4_ffPKf'
object.cc:(.text+0x804): undefined reference to 
`_Z14sgPostMultMat4PA4_fPA4_Kf'
/tmp/ccKdXJ7P.o: In function `_ZN6Object4drawEv'
:
object.cc:(.text+0x1214): undefined reference to `_Z15sgMakeTransMat4PA4_fPKf'
object.cc:(.text+0x122c): undefined reference to 
`_Z13sgPreMultMat4PA4_fPA4_Kf'
/tmp/ccKdXJ7P.o: In function `_ZN6Object9draw_shotEv'
:
object.cc:(.text+0x16f0): undefined reference to `_Z15sgMakeTransMat4PA4_fPKf'
object.cc:(.text+0x1708): undefined reference to 
`_Z13sgPreMultMat4PA4_fPA4_Kf'
/tmp/ccKdXJ7P.o: In function `_ZN12DynamicLight17light_environmentEv'
:
object.cc:(.text+0x2088): undefined reference to `_Z19sgVectorProductVec3PfPKfS1_'
/tmp/ccNLpETN.o: In function 
`_ZN6Rocket4drawEv':
rocket.cc:(.text+0x1450): undefined reference to `_Z14sgQuatToMatrixPA4_fPKf'
rocket.cc:(.text+0x1464): undefined reference to `_Z13sgPreMultMat4PA4_fPA4_Kf'
rocket.cc:(.text+0x14b8): undefined reference to 
`_Z13sgMakeRotMat4PA4_ffPKf'
/tmp/ccNLpETN.o: In function `_ZN6Rocket12setup_orientEii'
:
rocket.cc:(.text+0x1f10): undefined reference to `_Z14sgQuatToMatrixPA4_fPKf'
rocket.cc:(.text+0x1f98): undefined reference to 
`_Z14sgQuatToMatrixPA4_fPKf'
/tmp/ccNLpETN.o: In function `_ZN6Rocket6updateEfP6Camera'
:
rocket.cc:(.text+0x25f8): undefined reference to `_Z14sgQuatToMatrixPA4_fPKf'
rocket.cc:(.text+0x2610): undefined reference to 
`_Z14sgPostMultMat4PA4_fPA4_Kf'
/tmp/ccNLpETN.o: In function `_ZN6Rocket12setup_cameraEv'
:
rocket.cc:(.text+0x30cc): undefined reference to `_Z19sgVectorProductVec3PfPKfS1_'
rocket.cc:(.text+0x31cc): undefined reference to 
`_Z21sgTransposeNegateMat4PA4_fPA4_Kf'
rocket.cc:(.text+0x31fc): undefined reference to `_Z11sgXformVec3PfPKfPA4_S0_'
/tmp/ccNLpETN.oIn function `_ZN6Rocket14update_cubemapEv':
rocket.cc:(.text+0x3418): undefined reference to 
`_Z15sgMakeTransMat4PA4_ffff'
rocket.cc:(.text+0x3474): undefined reference to `_Z13sgMakeRotMat4PA4_ffPKf'
rocket.cc:(.text+0x3494): undefined reference to `_Z14sgPostMultMat4PA4_fPA4_Kf'
rocket.cc:(.text+0x3504): undefined reference to 
`_Z13sgMakeRotMat4PA4_ffPKf'
rocket.cc:(.text+0x3518): undefined reference to `_Z14sgPostMultMat4PA4_fPA4_Kf'
rocket.cc:(.text+0x352c): undefined reference to `_Z14sgPostMultMat4PA4_fPA4_Kf'
rocket.cc:(.text+0x359c): undefined reference to 
`_Z13sgMakeRotMat4PA4_ffPKf'
rocket.cc:(.text+0x35b0): undefined reference to `_Z14sgPostMultMat4PA4_fPA4_Kf'
/tmp/ccNLpETN.oIn function `_ZN6Rocket8draw_envEv':
rocket.cc:(.text+0x37c0): undefined reference to 
`_Z15sgMakeTransMat4PA4_fPKf'
rocket.cc:(.text+0x37d8): undefined reference to `_Z13sgPreMultMat4PA4_fPA4_Kf'
/tmp/ccNLpETN.oIn function `_Z11sgXformVec3PfPA4_Kf':
rocket.cc:(.text._Z11sgXformVec3PfPA4_Kf[_Z11sgXformVec3PfPA4_Kf]+0x28): undefined reference to 
`_Z11sgXformVec3PfPKfPA4_S0_'
/tmp/ccNLpETN.o: In function `_Z14sgPostMultQuatPfPKf'
:
rocket.cc:(.text._Z14sgPostMultQuatPfPKf[_Z14sgPostMultQuatPfPKf]+0x3c): undefined reference to `_Z10sgMultQuatPfPKfS1_'
/tmp/ccNLpETN.o: In function 
`_Z13sgPostRotQuatPffPKf':
rocket.cc:(.text._Z13sgPostRotQuatPffPKf[_Z13sgPostRotQuatPffPKf]+0x30): undefined reference to `_Z17sgAngleAxisToQuatPffPKf'
/tmp/ccusyGJn.oIn function `_ZN5World4drawEv':
world.cc:(.text+0x920): undefined reference to 
`_Z10sgMultMat4PA4_fPA4_KfS3_'
/tmp/ccusyGJn.o: In function `_ZN5World10draw_roomsEP4RoomPf'
:
world.cc:(.text+0xe38): undefined reference to `_Z10sgMultMat4PA4_fPA4_KfS3_'
collect2: error: ld returned 1 exit status

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: SDL2
Not too shy to talk
Not too shy to talk


@Capehill

jconfig.h

/* Define "boolean" as unsigned char, not enum, on Windows systems. */
#ifdef _WIN32
#ifndef __RPCNDR_H__        /* don't conflict if rpcndr.h already read */
typedef unsigned char boolean;
#endif
#ifndef FALSE            /* in case these macros already exist */
#define FALSE    0        /* values of boolean */
#endif
#ifndef TRUE
#define TRUE    1
#endif
#define HAVE_BOOLEAN        /* prevent jmorecfg.h from redefining it */
#endif


jmore.cfg

#ifndef HAVE_BOOLEAN
#if defined FALSE || defined TRUE || defined QGLOBAL_H
/* Qt3 defines FALSE and TRUE as "const" variables in qglobal.h */
typedef int boolean;
#ifndef FALSE            /* in case these macros already exist */
#define FALSE    0        /* values of boolean */
#endif
#ifndef TRUE
#define TRUE    1
#endif
#else
typedef enum FALSE 0TRUE boolean;
#endif
#endif

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: SDL2
Not too shy to talk
Not too shy to talk


@Capehill

Ok..Now just 2 errors left.


Sinan@LENOVO /amiga/roketz3d
ppc-amigaos-g++ -athread=native *.cc -o Rocket -lGL -lGLU -lSDL2_mixer -lSDL2 -lSDL2_image -ltiff -lpng -ljpeg -lmikmod -lmodplug -lFLAC -lvorbisfile -lsmpeg2 -lsmpeg -lvorbis -logg -lwebp -lpthread -lmpg123 -lz -lm
main
.ccIn function ‘int write_to_jpeg_file(intintunsigned char*, FILE*, int):
main.cc:356:36errorcannot convert ‘bool’ to ‘boolean’
  356 
|  jpeg_set_quality(&cinfoqualitytrue /* limit to baseline-JPEG values */);
      |                                    ^~~~
      |                                    |
      |                                    
bool
In file included from main
.cc:17:
/
usr/local/amiga/ppc-amigaos/SDK/local/common/include/jpeglib.h:991:31note:   initializing argument 3 of ‘void jpeg_set_quality(j_compress_ptrintboolean)
  991 
EXTERN(voidjpeg_set_quality JPP((j_compress_ptr cinfoint quality,
      |                               ^~~
main.cc:363:33errorcannot convert ‘bool’ to ‘boolean’
  363 
|     jpeg_start_compress(&cinfotrue);
      |                                 ^~~~
      |                                 |
      |                                 
bool
In file included from main
.cc:17:
/
usr/local/amiga/ppc-amigaos/SDK/local/common/include/jpeglib.h:1010:34note:   initializing argument 2 of ‘void jpeg_start_compress(j_compress_ptrboolean)
 1010 
EXTERN(voidjpeg_start_compress JPP((j_compress_ptr cinfo,
      |                                  ^~~

When I look at jpeglib.h at SDK.. Lines 991 and 1010 shows these:

EXTERN(voidjpeg_set_quality JPP((j_compress_ptr cinfoint quality,boolean force_baseline));

EXTERN(voidjpeg_start_compress JPP((j_compress_ptr cinfoboolean write_all_tables));


Edited by SinanSam460 on 2021/4/24 14:20:53
Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: SDL2
Not too shy to talk
Not too shy to talk


Thanks..

I solved problems in threads.cc and test_png.cc

Now I get this error:


$ ppc-amigaos-g++ -athread=native *.cc -o Rocket -lGL -lGLU -lSDL2_mixer -lSDL2 -lSDL2_image -ltiff -lpng -ljpeg -lmikmod -lmodplug -lFLAC -lvorbisfile -lsmpeg2 -lsmpeg -lvorbis -logg -lwebp -lpthread -lmpg123 -lz -lm
In file included from /usr/local/amiga/ppc-amigaos/SDK/local/newlib/include/plib/sg.h:29,
from main.cc:23:
main.cc: In function ‘int write_to_jpeg_file(int, int, unsigned char*, FILE*, int)’:
main.cc:354:39: error: invalid conversion from ‘int’ to ‘boolean’ [-fpermissive]
354 | jpeg_set_quality(&cinfo, quality, TRUE);
| ^~~~
| |
| int
In file included from main.cc:17:
/usr/local/amiga/ppc-amigaos/SDK/local/common/include/jpeglib.h:991:31: note: initializing argument 3 of ‘void jpeg_set_quality(j_compress_ptr, int, boolean)’
991 | EXTERN(void) jpeg_set_quality JPP((j_compress_ptr cinfo, int quality,
| ^~~
In file included from /usr/local/amiga/ppc-amigaos/SDK/local/newlib/include/plib/sg.h:29,
from main.cc:23:
main.cc:361:33: error: invalid conversion from ‘int’ to ‘boolean’ [-fpermissive]
361 | jpeg_start_compress(&cinfo, TRUE);
| ^~~~
| |
| int
In file included from main.cc:17:
/usr/local/amiga/ppc-amigaos/SDK/local/common/include/jpeglib.h:1010:34: note: initializing argument 2 of ‘void jpeg_start_compress(j_compress_ptr, boolean)’
1010 | EXTERN(void) jpeg_start_compress JPP((j_compress_ptr cinfo,
| ^~~
threads.cc: In function ‘int jpeg_writer_thread(int)’:
threads.cc:46:1: warning: no return statement in function returning non-void [-Wreturn-type]
46 | }

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: SDL2
Not too shy to talk
Not too shy to talk


Hi all

I am trying to compile this little game

https://github.com/landersson/roketz3d

It was written for SDL1.2, now I migrated them to SDL2

However when I try to compile it, I get these errors

compiling with g++ or adding
#include <cstring> to source code

does not work..

Sinan@LENOVO /amiga/roketz3d
$ ppc-amigaos-gcc -athread=native *.cc -o roketz.3d -lGL -lGLU -lSDL2 -lSDL2_mixer -lSDL2_image -lplib -ljpeg -lpng -lz -lm -lc -lpthread -lstdc++
test_png.cc: In function ‘void png_mem_write_data(png_structp, png_bytep, png_size_t)’:
test_png.cc:31:5: error: ‘memcpy’ was not declared in this scope
31 | memcpy(buf->buffer + buf->offset, data, length);
| ^~~~~~
test_png.cc:11:1: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
10 | #include <zlib.h>
+++ |+#include <cstring>
11 |
test_png.cc: In function ‘int compress_png(unsigned char**, int, int, uint8_t*, int)’:
test_png.cc:63:5: error: ‘memset’ was not declared in this scope
63 | memset(&png_buf, 0, sizeof(png_buf));
| ^~~~~~
test_png.cc:63:5: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
test_png.cc: In function ‘int main()’:
test_png.cc:125:5: error: ‘memset’ was not declared in this scope
125 | memset(data, 0, width * height * 3);
| ^~~~~~
test_png.cc:125:5: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
threads.cc: In constructor ‘ImageData::ImageData(uint8_t*, int, int)’:
threads.cc:18:62: error: class ‘ImageData’ does not have any field named ‘_size’
18 | ImageData(uint8_t *data, int wid, int id) : _data(data), _size(size), _id(id) { }
| ^~~~~
threads.cc:18:68: error: ‘size’ was not declared in this scope
18 | ImageData(uint8_t *data, int wid, int id) : _data(data), _size(size), _id(id) { }
| ^~~~
threads.cc: In function ‘int jpeg_writer_thread(int)’:
threads.cc:46:1: warning: no return statement in function returning non-void [-Wreturn-type]
46 | }
| ^

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: python3.8 AmigaOS4 in development
Not too shy to talk
Not too shy to talk


@afxgroup

When python 3.8 is out, will some modules like TK be available ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: Enhancer 2 DataType.library issue
Not too shy to talk
Not too shy to talk


@sierratu

Please also check this bugreport.

http://www.amiga.org/developer/bugreports/view.php?id=728

adddatatype(A-eon version) crashes on A1222

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: MineCraft (MineTest) work in progress help need it
Not too shy to talk
Not too shy to talk


@kas1e

I removed -lgai from Makefile and now it compiles.

I also created a "test world"

However I got this error:
Mod Error: Mod Security: Blocked attempted read from BACKUP-1:Games/minetest/builtin/common/strict.lua


Edited by SinanSam460 on 2021/4/19 10:33:49
Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: MineCraft (MineTest) work in progress help need it
Not too shy to talk
Not too shy to talk


@kas1e

I removed -lgai from Makefile and now it compiles.

Executable works, can I create an offline game with this version ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: MineCraft (MineTest) work in progress help need it
Not too shy to talk
Not too shy to talk


@kas1e

I am trying to compile minetest.. But it fails like this:

Consolidate compiler generated dependencies of target minetest
[ 12%] Linking CXX executable ../../bin/minetest
/usr/local/amiga/lib/gcc/ppc-amigaos/10.1.0/../../../../ppc-amigaos/bin/ld: cannot find -lgai
/usr/local/amiga/lib/gcc/ppc-amigaos/10.1.0/../../../../ppc-amigaos/bin/ld: cannot find -lgai
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/minetest.dir/build.make:4374: ../bin/minetest] Error 1
make[1]: *** [CMakeFiles/Makefile2:515: src/CMakeFiles/minetest.dir/all] Error 2
make: *** [Makefile:156: all] Error 2


Edited by SinanSam460 on 2021/4/17 23:52:05
Edited by SinanSam460 on 2021/4/18 0:11:12
Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: Introducing the Rear Window blog
Not too shy to talk
Not too shy to talk


@trixie

Do you plan to add some funtions like export, encode/decode ?

Like from OGG, FLAC to WAV or vice-versa ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: X5000/Cyrus+ sold out?!
Not too shy to talk
Not too shy to talk



Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: Enhancer Software v2.0 Released
Not too shy to talk
Not too shy to talk


@all

It seems Hans De Ruiter has found a solution to UVD playback problems that some of us experience.

First tests on X5000+RX560 and A1222+RX550 looks promising.

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: New Sam460cr boards will hit the road soon!
Not too shy to talk
Not too shy to talk


@all

This card is working fine my Sam460EX

https://www.msi.com/Graphics-Card/Radeon-RX-550-2GT-LP-OC.html

Warp3D-Nova, UVD Playback, Does not require extra power

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: New Sam460cr boards will hit the road soon!
Not too shy to talk
Not too shy to talk


@beanbandit

RX-580 is working on my A1222 and X5000. But it doesn't have working Warp3D Nova and UVD playback support yet.
2D working is fine..

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: Enhancer Software v2.0 Released
Not too shy to talk
Not too shy to talk


@Spectre660

I tried that..

AmigaOS4.1 Final Edition > Update 1 > Update 2 > Update 2 Hotfix > Enhancer 2.0

I can reproduce same crash.


Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: Enhancer Software v2.0 Released
Not too shy to talk
Not too shy to talk


@IamSONIC

Can you get the serial output of crash when UVD Playback ?

Hans says
"Also, do those crashes include the "UVD block hung" error message? I need to be sure that the failure is the same."

And it would be great if you open an account at http://www.amiga.org/developer/bugreports/login_page.php

Thanks

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: Enhancer Software v2.0 Released
Not too shy to talk
Not too shy to talk


@IamSONIC

Your workaround doesn't work on my system.. I have to use older Radeon V1.17 version UVD playback

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: Enhancer Software v2.0 Released
Not too shy to talk
Not too shy to talk


@IamSONIC

It seems one way or another, most user have some kind of these crashes related to RadeonRX V2.4

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: Enhancer Software v2.0 Released
Not too shy to talk
Not too shy to talk


@all

There are some Memory Timing , Power Limits and GPU Clock differences between IamSONIC's MSI 560X and my Sapphire 560X

Does this matter ?

Sapphire RX560
https://www.techpowerup.com/vgabios/19 ... apphire-rx560-4096-170419

MSI Aero Rx560
https://www.techpowerup.com/vgabios/192647/msi-rx560-4096-170505


Edited by SinanSam460 on 2021/4/4 15:04:06
Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top



TopTop
« 1 ... 10 11 12 (13) 14 15 16 ... 22 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project