|
Re: Porting to AmigaOS4 thread |
Posted on: 9/26 5:33
#101 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@salass00
The outdated libc.so wasn't the problem, i still get the very same crash on accessing an engine .so ![]()
Crash log for task "scummvm"
|
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 9/26 10:38
#102 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@all
@all Makefile question. I'd like to automate the process of building and linking a static library. Can this be done in one makefile? Right now i have this, but ar is never picked up.
CXX = g++
Thank you |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 9/26 12:33
#103 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1690
|
@Raziel
For a static library you only need:
AR = ar
Note that for the commands following the dependency rules (ar and rm) you absolutely need to have a tab character at the beginning of the line or they won't work. |
|
|
Re: Porting to AmigaOS4 thread |
Posted on: 9/26 14:25
#104 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@salass00
Thank you |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 9/26 18:13
#105 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@Capehill
ResidualVM: https://github.com/residualvm/residualvm/pull/1576 Quote:
Maybe this is something that should be added to minigl? |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 9/28 9:37
#106 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/7/14 20:30 From Lothric
Posts: 806
|
@Raziel
Perhaps, there seems to be GL_UNSIGNED_INT_8_8_8_8_REV support. http://www.hyperion-entertainment.com ... s/updates-kc/src/unpack.c |
|
|
Re: Porting to AmigaOS4 thread |
Posted on: 9/29 19:16
#107 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@Capehill
I don't understand, does that mean it's already supported, but not yet released? |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/6 12:55
#108 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@salass00
I really want (to try) to tackle this, so, if you got time, please help... Quote:
This is what i get on serial: Quote:
Quote:
So, if i understand that correctly, some part of my SDK is linking the project with an outdated newlib library version, correct? Or why could it be requesting 53.20 and not the newer one? Is there something i can update in my toolchain to prevent that? Maybe newlib (though i thought i have everything uptodate my libc.so was outdated, so other things might be aswell)? Also, any more debug output i could add? What kind of information/output would be needed? EDIT: Also, how can i PrintF characters or strings, if the variable to debug should have a path or directory name in it? I can't get my head around using %s or %c, at least they only output garbage most of the time. Thank you very much Edited by Raziel on 2019/10/6 13:11:47
|
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/6 15:55
#109 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/7/14 20:30 From Lothric
Posts: 806
|
@Raziel
printf("char: %c\n", 'a');
Some info: http://www.cplusplus.com/reference/cstdio/printf/ Ps. regarding that texture format, I was just thinking that it probably wouldn't be difficult to add support for that missing format in MiniGL. |
|
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/6 16:35
#110 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@Capehill
Yes, i read the manual, still i am unnsure on how to print out certain variables. I'm still thinking in AREXX scripts, i guess. e.g. if i wanted to print out the variable "p" or "*p" from here: https://github.com/scummvm/scummvm/blo ... gaos4/amigaos4-fs.cpp#L81 How would i achieve that? Not that i think there's anything wrong with the path, just for learning purposes (as i think that p holds the path where it tries to load from...but maybe i'm completely wrong again?). |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/6 16:49
#111 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/7/14 20:30 From Lothric
Posts: 806
|
@Raziel
Right, so "p" is an reference (&) to a String object that exists in Common namespace (Common::String). When it comes to C++ objects, typically we can only "print" their address using %p, but as we can see in the same function, Common::String has a similar member function than normal std::string, called c_str() that apparently returns a C string that lives inside the object. So you can use something like printf("String: %s\n", p.c_str()); |
|
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/6 17:21
#112 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@Capehill
I see, something new learned... It clashes with common/str.cpp and produce a crash, but nevermind. Quote:
What could/should i look at next to see and maybe find why the shared objects build is crashing on loading a game (and ultimately on loading in a shared object engine)? Edited by Raziel on 2019/10/7 6:34:44
|
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/7 6:39
#113 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@Capehill
Quote:
Just curious: Take a look here: https://github.com/residualvm/residual ... facesdl-graphics.cpp#L439 If i set bpp to either 8 or 24 in residualvm.ini, i get that exact error message. Quote:
Why? I thought 8, 16, 24 and 32 bpp were supported on AmigaOS4? EDIT: I see, that is only if i use the Softw3are renderer...intriguing Edited by Raziel on 2019/10/7 6:56:39
|
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/7 17:22
#114 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/7/14 20:30 From Lothric
Posts: 806
|
@Raziel
It's ResidualVM who doesn't support 8 or 24 bpp. Are you 100% Residual is meant to work with 8/24 bit? |
|
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/7 17:25
#115 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/7/14 20:30 From Lothric
Posts: 806
|
@Raziel
Quote:
Really? How? Quote:
I would add debug traces close to the crash site (before the crash line) if the root cause is somehow non-obvious. |
|
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/7 19:01
#116 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@Capehill
Quote:
Mostly stupidity, mixed with a little bit of c&p mistakes and lots of missing night sleep... I can't reproduce the (str.cpp) crash anymore and i have another debug output ready, salass00 was right. Right before it should load the game it hits an IDOS: 0x0000000. See:
IDOS: 0x6FCCC170
Also, i made an exhausting post over at Hyperion with all the information gathered in one place, maybe you want to continue there, since this thread seems to get derailed? |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/7 19:25
#117 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5539
|
@Raziel
You may remember it, or may not : but when i release Barony game port , there was some strange crashes too : they was exactly because of IDOS 0x00000000. To fix them, i just open dos.library (together with IDOS interface up) in the place where crashes happens (i.e. via stack trace build with -gstab check in which source file it crashes, and there add opening / closing of dos.library with interface). Just like that:
//somewhere at begining of function
For Barony i had to do it in 2 places, and it wasn't "sobjes" but statically compiled. And i do not know of course if it will fix your issues, but just all of this remind me my ones i have with Barony port. |
|
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/7 19:39
#118 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@Capehill
Quote:
Of course not ![]() I'm unsure in everything i do or know ![]() |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/7 19:43
#119 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@kas1e
Uhh, sweet...an easy enough solution for me to try. Hmm, well, the two lines where it crashes are 82 and 88, so i'll try those first. But, wouldn't this be a bug in ScummVM's Amiga part then? Or even a bug in the system itself? Or could it be simply that ScummVM's Amiga part is old enough to have outlived the coding necessaties of the current system? |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: Porting to AmigaOS4 thread |
Posted on: 10/7 20:15
#120 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3550
|
@kas1e
/me gives kas1e a kiss That did it...preliminary test though, but at least i can start games without crashing with ALL the engines in place. Thank you I still have to test if anything bad happens when building static, but i guess not. Thank you, thank you, thank you, thank you ![]() |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||