DXX-Rebirth Forum
[D2XR v0.58.1] Building with software renderer fails - Printable Version

+- DXX-Rebirth Forum (https://forum.dxx-rebirth.com)
+-- Forum: DXX-Rebirth (https://forum.dxx-rebirth.com/forumdisplay.php?fid=3)
+--- Forum: Bugs (https://forum.dxx-rebirth.com/forumdisplay.php?fid=8)
+--- Thread: [D2XR v0.58.1] Building with software renderer fails (/showthread.php?tid=548)



[D2XR v0.58.1] Building with software renderer fails - Ryusei117 - 08-10-2013

Yes, D2XR exclusive this time--I double checked. Wink

When building with scons opengl=0, the build terminates after outputting these lines near the end:

Code:
3d/draw.c:68:6: error: conflicting types for ‘g3_draw_line’
In file included from 3d/draw.c:22:0:
include/3d.h:192:6: note: previous declaration of ‘g3_draw_line’ was here
3d/draw.c:197:6: error: conflicting types for ‘g3_draw_poly’
In file included from 3d/draw.c:22:0:
include/3d.h:168:6: note: previous declaration of ‘g3_draw_poly’ was here
3d/draw.c:245:6: error: conflicting types for ‘g3_draw_tmap’
In file included from 3d/draw.c:22:0:
include/3d.h:172:6: note: previous declaration of ‘g3_draw_tmap’ was here
scons: *** [3d/draw.o] Error 1
scons: building terminated because of errors.

Some of those three functions' parameters are const in include/3d.h, but not in 3d/draw.c. I guess Make various g3s_point pointers const is the commit that broke it?


Re: [D2XR v0.58.1] Building with software renderer fails - Kp - 08-10-2013

That looks reasonable.  I think I fixed this in unification, but never backported it.  If you need this to work, cherry-pick in Remove some const modifiers that broke SDL-only build.


Re: [D2XR v0.58.1] Building with software renderer fails - Ryusei117 - 08-11-2013

(08-10-2013, 03:01 PM)Kp link Wrote: That looks reasonable.  I think I fixed this in unification, but never backported it.  If you need this to work, cherry-pick in Remove some const modifiers that broke SDL-only build.

Thanks. I managed to get it working by simply making things const in 3d/draw.c to match include/3d.h, but given my minimal C knowledge, I would rather trust your fix.