Login  •  Register


The time is now: Thu May 23, 2013 8:21 am

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 4 posts ]
Print view Previous topic  |  Next topic
Author Message
 Post subject: Building on Windows ?
PostPosted: Sat Nov 06, 2010 3:56 pm 
Offline
Student Driver

Joined: Tue Aug 03, 2010 1:42 pm
Posts: 16
I couldn't find a previous thread on this. I'm pretty comfortable in the Unix/OS X world, but generally have avoided Windows like the plague. That said, I'd like to see if I can get the bin/cue extensions I wrote working on Windows.. I need a jump start to compile on Windows

1) What tool chain is used ? Visual Studio ? GCC ?
2) What are the basic steps to building a vanilla version

Geoffrey


Top
 Profile  
Post a reply  
 Post subject:
PostPosted: Sat Nov 06, 2010 10:06 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 3127
Location: Sittard, The Netherlands
Hi,

I just built a new windows version today. It doesn't contain new features, I just wanted to test whether the recent code changed had any adverse effects on the window code.

You need a cygwin environment to build SheepShaver or Basilisk (at least, that is what I use). Besides the obvious compiler, you need some extra packages installed as well (cvs etc). Alas there is no overview of all required packages.
You install SDL (I use 1.2.14) in Cygwin and use the same commands as in Unix/OSX. Below are my build steps:

#Install SDL: download the source and do:
cd release-1.2.14
./autogen.sh
./configure --disable-shared --prefix=`pwd`
make
make install

#You need to cd into the SDL folder every time you start cygwin and export the path to sdl-config to build #SheepShaver, so SDL libs and sdl-config file can be found
PATH=`pwd`/bin:$PATH
export PATH

#Download the Basilisk and SheepShaver source
cvs -d :pserver:anoncvs@cvs.cebix.net:/home/cvs/cebix login
#(password is "anoncvs")
cvs -d :pserver:anoncvs@cvs.cebix.net:/home/cvs/cebix checkout BasiliskII
cvs -d :pserver:anoncvs@cvs.cebix.net:/home/cvs/cebix checkout SheepShaver

cd SheepShaver
make links
cd src/Windows
NO_CONFIGURE=1 ../Unix/autogen.sh
./configure #(there are no extra parameters when building in windows)
#You might run into a problem with the GTK version check, at or around line 3977? in configure. Just comment out #the 6 lines in the file related to the check, and things will work out.
make
strip SheepShaver.exe


Top
 Profile  
Post a reply  
 Post subject:
PostPosted: Sun Nov 07, 2010 7:10 pm 
Offline
Student Driver

Joined: Tue Aug 03, 2010 1:42 pm
Posts: 16
Thanks, I've used cygwin a lot in the past.

I did a fresh install of cygwin -- just needed the development tools

I did need to do the following before building things

CC=gcc-3
CXX=g++-3

evidently the version 4 tools can't build standalone non-cygwin apps. For
SDL I also needed

CFLAGS=-mno_cygwin


Geoffrey


Top
 Profile  
Post a reply  
 Post subject:
PostPosted: Sun Nov 07, 2010 10:19 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 3127
Location: Sittard, The Netherlands
Hi,

I use cygwin 1.7 and need no flags or workarounds what so ever.

Best,
Cat_7


Top
 Profile  
Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 4 posts ]


Who is online

Users browsing this forum: No registered users and 3 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
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group