• 0

[C] Plex86 for Windows?


Question

Hi,

I wanted to know if it's possible to compile a Plex86 (a linux application written in C#) for Windows.

(I have the source-code from the application.)

I tried "nmake d:\plex86c\makefile", but it gave me some errors.

The first was:

C:\Program Files\Microsoft Visual Studio 8\VC\bin>nmake d:\plex86c\makefile

Microsoft (R) Program Maintenance Utility Version 8.00.40607.16
Copyright (C) Microsoft Corporation.  All rights reserved.

subdir niet verwacht op dit moment.
NMAKE : fatal error U1077: 'for' : return code '0x1'
Stop.

Then I changed the contents of the makefile to:

.PHONY: all clean dist-clean

include Rules.make

subdirs= host-kernel host-user guest-kernel guest-user

all:
	$(MAKE) -C $subdir; then break; fi; done

But then I got the error:

C:\Program Files\Microsoft Visual Studio 8\VC\bin>nmake d:\plex86c\makefile

Microsoft (R) Program Maintenance Utility Version 8.00.40607.16
Copyright (C) Microsoft Corporation.  All rights reserved.

        "C:\Program Files\Microsoft Visual Studio 8\VC\bin\nmake.exe" -C $subdir
; then break; fi; done
NMAKE :  U1073: don't know how to make '$subdir'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\bin\n
make.exe"' : return code '0x2'
Stop.

I noticed more makefiles in the subdirectories, so I tried with those, but it didn't work out.

I'll post the original makefile here:

#  $Id: Makefile,v 1.5 2004/01/12 18:12:31 kevinlawton Exp $
#
#  plex86: run multiple x86 operating systems concurrently
#  Copyright (C) 1999-2004 Kevin P. Lawton

.PHONY: all clean dist-clean

include Rules.make

subdirs= host-kernel host-user guest-kernel guest-user

all:
	@for subdir in $(subdirs); \
   do if ! $(MAKE) -C $$subdir; then break; fi; done

clean:
	@for subdir in $(subdirs); \
   do if ! $(MAKE) -C $$subdir clean; then break; fi; done

dist-clean: 
	@for subdir in $(subdirs); \
   do if ! $(MAKE) -C $$subdir dist-clean; then break; fi; done
	@/bin/rm -f Rules.make include/config.h
	@/bin/rm -rf config.status config.log autom4te.cache config.cache

I have access to Visual C# and C++ version 2005 beta and 6.0 (maybe .net but I'll have to wait for that).

Ow yeah, I don't know anything about C# or C++ (usualy I make simple programs using visual basic).

(We'll start learning the basics of C this year in college.)

Thanks in advance,

the Blue Squirle

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
If its written in c# try mono!

Either that, or you can download cygwin to give you a linux environment in windows.

plex86 is not written in C#, it's written in C. And like I said, it's dead. Nothing's been contributed for a long time.

Link to comment
Share on other sites

  • 0
hmm, he lied! said it was written in c# tongue.gif (see parent post)

Sorry, my mistake.

Ok, I think I'm going to give it up.

I'm unable to rewite the makefiles,

plus the program seems to change the hosts kernel

(which I think is impossible to do in windows).

Thanks for the replies anyway!

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.