![]() |
|
Technical Issues For bug reports, problem solving, and help running Japanese software. |
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
I get this error when trying to compile onscripter-en with -DBPP16 defined:
Code:
ONScripterLabel_animation.cpp: In member function ‘int ONScripterLabel::estimateNextDuration(AnimationInfo*, SDL_Rect&, int)’: ONScripterLabel_animation.cpp:93: error: ‘TRANS_LAYER’ is not a member of ‘AnimationInfo’ ONScripterLabel_animation.cpp: In member function ‘void ONScripterLabel::setupAnimationInfo(AnimationInfo*, Fontinfo*)’: ONScripterLabel_animation.cpp:238: error: ‘TRANS_LAYER’ is not a member of ‘AnimationInfo’ ONScripterLabel_animation.cpp: In member function ‘void ONScripterLabel::parseTaggedString(AnimationInfo*)’: ONScripterLabel_animation.cpp:272: error: ‘TRANS_LAYER’ is not a member of ‘AnimationInfo’ ONScripterLabel_animation.cpp: In member function ‘void ONScripterLabel::drawTaggedSurface(SDL_Surface*, AnimationInfo*, SDL_Rect&)’: ONScripterLabel_animation.cpp:416: error: ‘TRANS_LAYER’ is not a member of ‘AnimationInfo’ make: *** [ONScripterLabel_animation.o] Error 1 Thanks |
#2
|
|||
|
|||
![]()
Okay, I compiled the original onscripter without -DBPP16 and it runs without segfaulting, but the colours are messed up.So it does require -DBPP16, but it's not the cause of the segfault.
|
#3
|
|||
|
|||
![]()
I put together a quick patch over my morning coffee before heading into work, so I'm not going to guarantee that this won't break things, but give it a try and see if it works.
Check out the most recent (as of this morning) version from svn: Code:
svn co -r 284 svn://svn.denpa.mobi/onscripter/trunk onscripter-svn http://roto1.net/misc/BPP16_experimental.patch cd into that directory, and apply the patch: Code:
patch -p0 < BPP16_experimental.patch Let me know how that works. I gave it a try with Higurashi and it looks like the colors are in 16 bits without anything breaking, but I didn't try for very long. Mion's really the one who would know the proper fix to this, as she's the one who implemented the layer effects. I'll ask next time I see her. |
#4
|
|||
|
|||
![]()
I tried the patch and it compiled and ran, but still segfaults as before, so I can't be sure if the patch actually helps :)
Anyway, so I tried debugging it with gdb, and this was the result: Quote:
Perhaps it might be issues with uclibc, as this is what dingux (dingoo for linux) uses? |
#5
|
|||
|
|||
![]()
Well, I couldn't say for sure what the problem is, but I did find a thread about a project porting to dingux that was running into the same "GDB can't find the start of the function" problem with SDL: http://www.bennugd.co.uk/viewtopic.php?id=44
Based on what the programmer is describing there, it does seem to be a toolchain issue, especially with uclibc. Anyway, it sounds like you'd do well to ask around dingux forums about how to build SDL-based applications, as they'd know more than us. But certainly let us know what you get worked out - it'd be cool to add a configuration for building for dingux :) Mion |
#6
|
|||
|
|||
![]()
By the way, I just made an update to the onscripter-en repo that fixes the compilation for when you set -DBPP16 (you don't need to specify -DNO_LAYER_EFFECTS) and corrects the messed-up colors.
Mion |
#7
|
|||
|
|||
![]()
I think it would be useful to track down what part of ONScripter precedes the crash. It looks like something clobbered the stack or the heap to me. Perhaps extra printf statements in the code could narrow this down. I'm wondering if there's some issue with assumptions about bit-widths of data types.
|
#8
|
|||
|
|||
![]()
I did run strace on it, but it didn't seem to crash anywhere specific (or nowhere that was visible from strace).As for adding printf statements, I guess you just mean inserting these after certain parts of the code to see where it is crashing? I might need to do my research on this one, I have little experience with C and programming in general, other then some basic bash scripting.
I'll post something on dingooinity, maybe there will be more insight there.And yeah, the Dingoo is really a cool little handheld, it's amazing what you can do with something so small and cheap :) Thanks |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile Problem RLDEV SVN VERSION | Ayane | Technical Issues | 0 | 2007-05-18 06:00 |