Homesource Forums

Homeworld Source Editing Talk
It is currently Wed Mar 29, 2017 11:47 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Oct 17, 2006 1:05 am 
Offline
coder
User avatar

Joined: Wed Oct 04, 2006 8:13 pm
Posts: 94
Location: UTC -0500
if you find any errors, or want to give constructive critism or other useful comments -- speak.

NOTICE: No one currently actively maintains this build process, so if you find that HWSDL does not compile, this is why. You could instead try using the vc8 project file. To use it, google and download Visual C++ 2005 express, it is free.

> requirements
-- if going to run HWSDL then homeworld v1.05 needs to be installed.
-- do not install msys and mingw in a path with spaces, eg:
not acceptable: c:\dev apps\mingw
acceptable: c:\devapps\mingw

-- you'll need an account setup for you to login and checkout the source from the svn server. see this:
http://www.homeworldsdl.org/

----------------------------------------------------------------------------------------
> msys info
-- highlighted text is automatically copied

-- left click and highlight some text
scrolling down then right click to add more highlighted text.
you can copy everything.

-- double clicking on text will highlight it.

> hotkeys
shift+left click = paste
mouse wheel = paste

> for fixing the home/end/etc keys, see:
http://www.mingw.org/MinGWiki/index.php/FAQ

> msys HWSDL shortcut
you may want to create a shortcut to msys.bat and change the shortcuts "start in" parameter to
your HWSDL dir (eg: c:\src\hwsdl\ ).
-- c:\msys\etc\profile
disable "cd $HOME" (prefix #) if you want to make use of msys.bat shortcuts.
----------------------------------------------------------------------------------------

> required files

LibSDL: http://www.libsdl.org/release/SDL-devel ... w32.tar.gz
modified makefile for this package: http://vampteam.com/1/hwsdl/makefile2_S ... ingw32.zip

flex `Complete package': http://gnuwin32.sourceforge.net/packages/flex.htm
bison `complete package': http://gnuwin32.sourceforge.net/packages/bison.htm

from http://sourceforge.net/project/showfile ... up_id=2435
MinGW-5.0.3.exe

from http://www.mingw.org/download.shtml
MSYS-1.0.11
msysDTK-1.0.1.exe

tortoise svn
http://google.com/search?q=tortoise+svn

autoconf, etc
http://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.bz2
http://ftp.gnu.org/gnu/automake/automake-1.9.6.tar.bz2
http://ftp.gnu.org/gnu/libtool/libtool-1.5.22.tar.gz

> optional files
http://ftp.gnu.org/pub/gnu/libiconv/lib ... .11.tar.gz

> newer versions (not tested)
automake 1.10 dated oct 15 2006 http://ftp.gnu.org/gnu/automake/

------------------------------------------------
> run MinGW-5.0.3 exe
choose package version: current or candidate
choose components: mingw base tools, g++ compiler
install to c:\mingw

wait while it downloads and installs these files (or similar) from 'current':
mingw-runtime-3.10.tar.gz
w32api-3.7.tar.gz
binutils-2.15.91-20040904-1.tar.gz
gcc-core-3.4.2-20040916-1.tar.gz
gcc-g++-3.4.2-20040916-1.tar.gz

> run MSYS-1.0.11 exe
install to c:\msys
after its done installing an msys config window will appear.
complete it, answering y/yes to all.

"oh joy you do not have c:/mingw/bin/make.exe. keep it that way"
this is good. continue on.

WARNING
> run msysDTK-1.0.1 exe
WARNING:
* I see that msysDTK1.0.1 installs old versions of autoconf, automake, libtool, and other things when all we want
from it is its modified perl. As a workaround for now, install msysDTK to a temp dir, and remove most
things from it except perl related files and then move it to your c:\msys\ dir.


> (skip if font is ok) fixing msys font spacing issues
open c:\msys\msys.bat
search for: "-fn" (no quotes)
make it look like this: -fn fixedsys-10
fixed.

**optional, but recommended: in msys, type gcc (enter). it should say something. this is good.
perl --version should say "built for msys" somewhere at the top.

> run GetText exe
install to c:\mingw

> run bison exe
install to c:\msys\localtemp
delete c:\msys\localtemp\bin\m4.exe
move c:\msys\localtemp\* (all files) to c:\msys\local\

> run flex exe
install to c:\msys\local

(you're suppose to do the compiling using msys)

> compiling autoconf
unpack it to c:\src\
./configure && make && make install
(installs to /usr/local which is c:\msys\local

> compiling automake
unpack it to c:\src\
./configure && make && make install

> compiling libtool
unpack it to c:\src\
./configure && make && make install

> (optional) compiling libiconv
unpack it to c:\src\
--if using `gettext 0.14-gnuwin32' then msgfmt may crash during ./configure doing a `msgfmt --version'. You can ignore this.
./configure --prefix=/mingw && make && make install

> installing libsdl
unpack to c:\src\
using the modified makefile renamed to makefile type make native
manually, you'll have to put sdl.dll in root of your hwsdl dir or in c:\windows\system32 or c:\windows
----------

> after you have checked out a copy of hwsdl from the svn server
(in the hwsdl dir)
cd linux && ./bootstrap

after it finishes, you may need to 'cd ..' back.

type and enter:
./configure --enable-hwdebug

after its done, open hwsdl/src/Makefile
remove all occurences of "-lX11 -lXext" from it.

make
wait until it finishes.

if it finishes successfully:
- From hwsdl/src/rgl/.libs/ copy librgl*.dll's so they're in the same dir as hwsdl exe.
- run hwsdl exe
----------------

> misc.
make clean if you want your object and other files deleted.
make distclean deletes even more.

..end

_________________
http://againsttcpa.com/what-is-tcpa.html
http://google.com/search?q=c+programming+faq
http://research.att.com/~bs
acronyms.ch, neworder.box.sk


Top
 Profile  
 
PostPosted: Sun Sep 21, 2014 3:06 am 
Offline

Joined: Mon Jul 07, 2014 8:13 pm
Posts: 20
8 years since this post was submit...

Now I have the source of svn revision 917. Seems that I can do MinGW build with bootstrap.old located in the Linux folder (but not bootstrap!).

But not done yet, seems that I lack of libgmp-10.dll. Will work on it later.


Top
 Profile  
 
PostPosted: Mon Feb 16, 2015 10:30 pm 
Offline

Joined: Mon Jul 07, 2014 8:13 pm
Posts: 20
Ah, mingw+msys build is fixed at r942.


Top
 Profile  
 
PostPosted: Sat Feb 28, 2015 8:42 am 
Offline

Joined: Wed Apr 03, 2013 5:41 am
Posts: 1
I'm trying to compile HWSDL for windows and I am following your instructions to the letter, but it looks like the web site where the modified makefile is stored is not available anymore. Is there any way I could get a copy? Or could you tell me how sdl needs to be installed?


Top
 Profile  
 
PostPosted: Sun Mar 01, 2015 3:50 am 
Offline

Joined: Mon Jul 07, 2014 8:13 pm
Posts: 20
toschulz wrote:
I'm trying to compile HWSDL for windows and I am following your instructions to the letter, but it looks like the web site where the modified makefile is stored is not available anymore. Is there any way I could get a copy? Or could you tell me how sdl needs to be installed?


The code has been changed a lot since nova's post. The Makefiles are not included (downloaded) directly in the source but are generated by the configure script.

To start build HWSDL for windows using mingw+msys, cd to the HomeworldSDL\Linux directory, and then run ./bootstrap, ../configure and then make. The makefiles are generated by ../configure.

The SDL library is installed by downloading and installing the MinGW version library from http://libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz.


Top
 Profile  
 
PostPosted: Fri Jan 20, 2017 2:13 pm 
Offline
coder
User avatar

Joined: Wed Oct 04, 2006 8:13 pm
Posts: 94
Location: UTC -0500
For downloading the small version of the dx9 SDK files off of vampteam update the .Com And change it to .net. as the .Com domain was never renewed.

_________________
http://againsttcpa.com/what-is-tcpa.html
http://google.com/search?q=c+programming+faq
http://research.att.com/~bs
acronyms.ch, neworder.box.sk


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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® Forum Software © phpBB Group