visopsys.org

Visopsys Forums
It is currently Tue Apr 24, 2018 5:40 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: How Can i Compile Visopsys under windows xp or 7 ?
PostPosted: Wed Jul 27, 2011 3:54 pm 
Offline
User avatar

Joined: Fri Jul 22, 2011 3:53 pm
Posts: 45
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
---


Top
 Profile  
 
 Post subject: Re: How Can i Compile Visopsys under windows xp or 7 ?
PostPosted: Wed Jul 27, 2011 4:06 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 7:20 pm
Posts: 463
Is your 'osloader' directory missing from your 'src' directory?


Top
 Profile  
 
 Post subject: Re: How Can i Compile Visopsys under windows xp or 7 ?
PostPosted: Wed Jul 27, 2011 4:27 pm 
Offline
User avatar

Joined: Fri Jul 22, 2011 3:53 pm
Posts: 45
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


Top
 Profile  
 
 Post subject: Re: How Can i Compile Visopsys under windows xp or 7 ?
PostPosted: Wed Jul 27, 2011 4:46 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 7:20 pm
Posts: 463
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:


Top
 Profile  
 
 Post subject: Re: How Can i Compile Visopsys under windows xp or 7 ?
PostPosted: Wed Jul 27, 2011 4:58 pm 
Offline
User avatar

Joined: Fri Jul 22, 2011 3:53 pm
Posts: 45
i will install linux fedora ,or other systems :D :D :D i'm bored too diffucult :D :D


Top
 Profile  
 
 Post subject: Re: How Can i Compile Visopsys under windows xp or 7 ?
PostPosted: Fri Jan 31, 2014 5:14 am 
Offline
User avatar

Joined: Tue Feb 14, 2012 12:40 am
Posts: 103
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


Top
 Profile  
 
 Post subject: Re: How Can i Compile Visopsys under windows xp or 7 ?
PostPosted: Fri Jan 31, 2014 8:41 am 
Offline
User avatar

Joined: Tue Nov 16, 2010 7:20 pm
Posts: 463
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:


Top
 Profile  
 
 Post subject: Re: How Can i Compile Visopsys under windows xp or 7 ?
PostPosted: Tue Feb 18, 2014 3:54 pm 
Offline
User avatar

Joined: Tue Feb 14, 2012 12:40 am
Posts: 103
if you're still interested, tutorial here

viewtopic.php?f=3&t=216

_________________
Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group