How to compile under DosEMU?

DOS specific questions.
dkl
Site Admin
Posts: 3166
Joined: Jul 28, 2005 14:45
Location: Germany

Re: How to compile under DosEMU?

Postby dkl » Oct 09, 2017 16:10

The synchronization between Github/SourceForge repositories is manual, and I forgot about it. I don't know whether it can be automated (especially in both directions).

The github repo is the one providing the IRC commit messages, by the way. SourceForge used to have some limitations on sending data out of the container/machine containing the git server...
rugxulo
Posts: 181
Joined: Jun 30, 2006 5:31
Location: Usono (aka, USA)
Contact:

Re: How to compile under DosEMU?

Postby rugxulo » Oct 15, 2017 21:56

dkl wrote:I've only ever tested DJGPP builds on Windows or cross-compiling from Ubuntu, but... what errors do you get? Is there a gcc compilation error on src/gfxlib2/gfx_paletteget64.c, or a linking problem later when compiling FB programs using the gfxlib?


I've never rebuilt FBC (yet). I am somewhat curious but not quite adventurous enough.

I did make a mini FreeDOS meta-distro (MetaDOS) hopefully meant to assist in things like this. For instance, according to this old post from counting_pine, it shouldn't be too hard, given the right tools. (Though MetaDOS is far from ideal, I'm not claiming perfection, but maybe it helps somehow.)
rugxulo
Posts: 181
Joined: Jun 30, 2006 5:31
Location: Usono (aka, USA)
Contact:

Re: How to compile under DosEMU?

Postby rugxulo » Oct 15, 2017 22:00

angros47 wrote:I first installed all the files in pth207b.zip, and then installed in the lib directory of DJGPP only the file libsocket.a from ls080b.zip (it can be found http://www.delorie.com/pub/djgpp/current/v2tk/).


Libsocket is from 2002, hence it's unmaintained and probably unwise to use here. GNU pth is dated 2007, so similar problem. I seriously don't recommend them. Don't expect them to be flawless. I know that the buggy DJGPP port of p7zip used to rely on it, but nowadays for that you can just use Juan's recent (re)port of FSU Pthreads instead, see here.
St_W
Posts: 1121
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: How to compile under DosEMU?

Postby St_W » Oct 15, 2017 22:37

@angros47:
Now, as the changes have been merged to the master branch, could you please update the build instructions in the wiki accordingly?
https://freebasic.net/wiki/wikka.php?wakka=DevBuildDos
angros47
Posts: 1305
Joined: Jun 21, 2005 19:04

Re: How to compile under DosEMU?

Postby angros47 » Oct 18, 2017 22:21

@rugxulo
I already tried that version, it doesn't work. At least not with current code. Feel free to try using it to replace the one I used, anyway, it is the main advantage of open source development, after all

@St_W
Done, I hope it is clear

Also, about the dynamic libraries, at the moment it works in a way slightly different than in Windows or Linux, and a small change is required in the example: dylibload requires the suffix ".dxe" to be added (since in dos there is not an official extension for dynamic libraries). And dylibsymbol requires to add the "_" prefix to the symbol loaded. It could be changed, to match the behavior of windows and linux, or it could be left in the current status and in the documentation the difference can be pointed out (it would just require a small change in the examples for dos)

Return to “DOS”

Who is online

Users browsing this forum: No registered users and 1 guest