How Can i Compile Visopsys under windows xp or 7 ?

General discussion about Visopsys.
User avatar
doga-1494
Posts: 46
Joined: Fri Jul 22, 2011 3:53 pm

Re: How Can i Compile Visopsys under windows xp or 7 ?

Post by doga-1494 »

thank you :D i tried but i see this errors .

---
Doğa@doga-pc /cygdrive/c/tos
$ make
mkdir -p build/system
cp COPYING.txt build/system/
mkdir -p build/system/locale
make -C dist
make[1]: Entering directory `/cygdrive/c/tos/dist'
mkdir -p ../build/
mkdir -p ../build//temp
make -C programs
make[2]: Entering directory `/cygdrive/c/tos/dist/programs'
mkdir -p ../../build/programs
make -C helpfiles
make[3]: Entering directory `/cygdrive/c/tos/dist/programs/helpfiles'
mkdir -p ../../../build/programs/helpfiles
cp *.txt ../../../build/programs/helpfiles
make[3]: Leaving directory `/cygdrive/c/tos/dist/programs/helpfiles'
make -C mines.dir
make[3]: Entering directory `/cygdrive/c/tos/dist/programs/mines.dir'
mkdir -p ../../../build/programs/mines.dir
cp *.bmp ../../../build/programs/mines.dir
make[3]: Leaving directory `/cygdrive/c/tos/dist/programs/mines.dir'
make -C snake.dir
make[3]: Entering directory `/cygdrive/c/tos/dist/programs/snake.dir'
mkdir -p ../../../build/programs/snake.dir
cp *.bmp ../../../build/programs/snake.dir
make[3]: Leaving directory `/cygdrive/c/tos/dist/programs/snake.dir'
make[2]: Leaving directory `/cygdrive/c/tos/dist/programs'
make -C system
make[2]: Entering directory `/cygdrive/c/tos/dist/system'
mkdir -p ../../build/system
cp *.jpg install-files.* password.blank ../../build/system
mkdir -p ../../build/system/config
cp config/*.conf ../../build/system/config
mkdir -p ../../build/system/icons
cp icons/*.bmp icons/*.ico ../../build/system/icons
mkdir -p ../../build/system/fonts
cp fonts/*.vbf ../../build/system/fonts
mkdir -p ../../build/system/keymaps
cp keymaps/*.map ../../build/system/keymaps
mkdir -p ../../build/system/mouse
cp mouse/*.bmp ../../build/system/mouse
mkdir -p ../../build/system/wallpaper
cp wallpaper/*.jpg ../../build/system/wallpaper
make[2]: Leaving directory `/cygdrive/c/tos/dist/system'
make[1]: Leaving directory `/cygdrive/c/tos/dist'
make -C utils
make[1]: Entering directory `/cygdrive/c/tos/utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/c/tos/utils'
make -C src
make[1]: Entering directory `/cygdrive/c/tos/src'
mkdir -p ../build
make -C osloader
make: Entering an unknown directory
make: *** osloader: No such file or directory. Stop.
make: Leaving an unknown directory
make[1]: *** [all] Error 2
make[1]: Leaving directory `/cygdrive/c/tos/src'
make: *** [all] Error 2
---
User avatar
andymc
Posts: 589
Joined: Tue Nov 16, 2010 7:20 pm

Re: How Can i Compile Visopsys under windows xp or 7 ?

Post by andymc »

Is your 'osloader' directory missing from your 'src' directory?
User avatar
doga-1494
Posts: 46
Joined: Fri Jul 22, 2011 3:53 pm

Re: How Can i Compile Visopsys under windows xp or 7 ?

Post by doga-1494 »

i solved this problem . but i see now other error :)

mkdir -p ../build
make -C osloader
make[2]: Entering directory `/cygdrive/e/tos/a/src/osloader'
mkdir -p obj ../../build/system/boot ../../build
nasm -f bin -w+orphan-labels mbr-simple.s -o ../../build/system/boot/mbr.simple
nasm -f bin -w+orphan-labels mbr-bootmenu.s -o ../../build/system/boot/mbr.bootm
enu
nasm -f bin -w+orphan-labels bootmenu.s -o ../../build/system/boot/bootmenu
nasm -f bin -w+orphan-labels bootsect-fat.s -o ../../build/system/boot/bootsect.
fat
nasm -f bin -w+orphan-labels -DFAT32 bootsect-fat.s -o ../../build/system/boot/b
ootsect.fat32
nasm -f bin -w+orphan-labels bootsect-fatnoboot.s -o ../../build/system/boot/boo
tsect.fatnoboot
nasm -f bin -w+orphan-labels -DFAT32 bootsect-fatnoboot.s -o ../../build/system/
boot/bootsect.fatnoboot32
nasm -f elf -w+orphan-labels loaderMain.s -o obj/loaderMain.o
nasm -f elf -w+orphan-labels loaderA20.s -o obj/loaderA20.o
nasm -f elf -w+orphan-labels loaderVideo.s -o obj/loaderVideo.o
nasm -f elf -w+orphan-labels loaderDetectHardware.s -o obj/loaderDetectHardware.
o
nasm -f elf -w+orphan-labels loaderLoadFile.s -o obj/loaderLoadFile.o
nasm -f elf -w+orphan-labels loaderLoadKernel.s -o obj/loaderLoadKernel.o
nasm -f elf -w+orphan-labels loaderDiskError.s -o obj/loaderDiskError.o
nasm -f elf -w+orphan-labels loaderPrintRoutines.s -o obj/loaderPrintRoutines.o
gcc -nodefaultlibs -nostartfiles -O2 -Wl,-warn-common,-X,--oformat,binary,-e,loa
derMain,-Ttext,0x00000000 obj/loaderMain.o obj/loaderA20.o obj/loaderVideo.o obj
/loaderDetectHardware.o obj/loaderLoadFile.o obj/loaderLoadKernel.o obj/loaderDi
skError.o obj/loaderPrintRoutines.o -o ../../build/vloader
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot perf
orm PE operations on non PE output file '../../build/vloader.exe'.
collect2: ld returned 1 exit status
make[2]: *** [../../build/vloader] Error 1
make[2]: Leaving directory `/cygdrive/e/tos/a/src/osloader'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/cygdrive/e/tos/a/src'
make: *** [all] Error 2
User avatar
andymc
Posts: 589
Joined: Tue Nov 16, 2010 7:20 pm

Re: How Can i Compile Visopsys under windows xp or 7 ?

Post by andymc »

Yeah, it looks like gcc/ld is somehow expecting a straight binary program (vloader) to be a Windows executable. You'll have to figure out how to get gcc to link a straight binary under cygwin.

You'll have to research that one, I think.

Told you it might be difficult :smile:
User avatar
doga-1494
Posts: 46
Joined: Fri Jul 22, 2011 3:53 pm

Re: How Can i Compile Visopsys under windows xp or 7 ?

Post by doga-1494 »

i will install linux fedora ,or other systems :D :D :D i'm bored too diffucult :D :D
User avatar
ap0r
Posts: 105
Joined: Tue Feb 14, 2012 12:40 am

Re: How Can i Compile Visopsys under windows xp or 7 ?

Post by ap0r »

I managed to write a small C hello world program, compile, make an ISO from the compiled files, boot from it and sucessfully test my hello world program in visopsys, using windows, vmware, and free software available from internet... would anyone like or be interested in a simple tutorial? In the style of compiling visopsys under windows for noobs...
Image
Image
User avatar
andymc
Posts: 589
Joined: Tue Nov 16, 2010 7:20 pm

Re: How Can i Compile Visopsys under windows xp or 7 ?

Post by andymc »

Yes, that would be great. Occasionally people ask me how to build it in Windows, but I don't really have much to tell them :oops:
User avatar
ap0r
Posts: 105
Joined: Tue Feb 14, 2012 12:40 am

Re: How Can i Compile Visopsys under windows xp or 7 ?

Post by ap0r »

if you're still interested, tutorial here

http://visopsys.org/forums/viewtopic.php?f=3&t=216
Image
Image
Post Reply