English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 25 December 2007, 13:37   #1
__adil__
 
Posts: n/a
Compiling latest WinUAE (1.45) with completely free tools.

I have successfully completed the long journey of compiling latest WinUAE 1.45 with completely free tools available to download from internet.

If there is interest I can write a complete step-by-step guide how to do it.

__adil__
 
Old 25 December 2007, 15:59   #2
formater
Registered User
formater's Avatar
 
Join Date: May 2007
Location: Alicante/Spain
Posts: 192
I VERY interest in the tools and how realize the compilation
formater is offline  
Old 25 December 2007, 19:07   #3
eLowar
Citizen of Elthesh
eLowar's Avatar
 
Join Date: Sep 2003
Location: London, UK
Posts: 949
Did you use the free MS C++ compiler (Visual C++ Express Edition or suchlike) or did you patch it for a different free compiler (GCC/MinGW being the most logical choice there)?
eLowar is offline  
Old 25 December 2007, 20:59   #4
__adil__
 
Posts: n/a
Vc++

Quote:
Originally Posted by eLowar View Post
Did you use the free MS C++ compiler (Visual C++ Express Edition or suchlike) or did you patch it for a different free compiler (GCC/MinGW being the most logical choice there)?
Well the most logical way is not always the simplest one. I use DevCPP, Codeblocks etc (recently AmiDevCpp) for my compiling needs on windows platform, but for this project specifically I had to download the free Express Edition of Visual Studio 2008. Anyway it does its job and compiles WinUAE cleanly without any major problem. I tested the generated .EXE file against the released one of WinUAE and so far there does not seem to be any difference in operation and performance.

Since there is some interest in it, I will describe the easiest way to bring the same tools together which took me days to accomplish. Perhaps I prepare a ready to install patch (both for WinUAE source & VC++ tree)
and upload it somewhere.

__adil__
 
Old 26 December 2007, 01:00   #5
__adil__
 
Posts: n/a
Here is the guide...

Well here is the final and simple solution to WinUAE compilation.
Instead of writing a long list of web links for each and every piece of the
files required, I have just prepared two simple 'add on' archives to keep it simple. Here we go :

1- Goto to the http://www.microsoft.com/express/download/ site and download the VC++ Express edition.
I downloaded the complete package which is around 900mb iso file (as usual for MS downloads ).
You may try web install if you have a low bandwidth.

If you wish to have a full development environment then download the
following two files as well:

Directx SDK as of Nov. 2007
http://www.microsoft.com/downloads/d...displaylang=en
This download is around 427 mb

Windows Driver Kit (WDK)
Open http://www.microsoft.com/whdc/DevTools/WDK/WDKpkg.mspx site
and login with a ms live-id and follow the instructions to get the
633mb big WDK_WS08RC1.iso file.

2- Of course you should get the actual sources of WinUAE 1.45 from
here http://www.winuae.net/files/source/winuaesrc1450.zip
and extract it somewhere (e.g. c:\work\winuaesrc1450)

3- Download
http://.com/files/79052651...rc1450_add.rar
(133 KB) and extract on top of winuae source tree, allowing file replacement(s).

4- Download Visual C++ Express edition addons (.h & .lib files)
from here http://.com/files/79052748/R1_VC_add.rar
(962 KB) and extract on top of VC folder located at :
<DRIVE>:\Program Files\Microsoft Visual Studio 9.0\VC

(BTW: sorry for upload, I could not get them to post as
file attachments)


5- Winuae msvc config is missing assembly on project description.
to fix this issue just do the following once:

Open a command-shell and goto winuae source folder

C:\>cd c:\work\winuaesrc1450\od-win32
C:\work\winuaesrc1450\od-win32>

and execute asm_new.bat file
C:\work\winuaesrc1450\od-win32>asm_new.bat

which will invoke nasm.exe and create two object files of the hq2x* filters.

6- Now launch Microsoft Visual C++ 2008 Express Edition and goto
File->Project->Open Project/Solution and select

winuaesrc1450\od-win32\winuae_msvc\winuae_msvc.sln

7- Switch to Release / Win32 solution config on toolbar.

8- On the solution explorer list compile each of the following by right-clicking and selecting 'Build'
build68k, genblitter, gencomp, gencpu, genlinetoscr and finally winuae

(if something goes wrong and winuae.exe does not link, keep on
right clicking and building other projects and finally winuae)...

Cross the fingers and get your fresh WinUAE.exe located on d:\amiga\winuae.exe

Happy compiling ..

__adil__

Last edited by __adil__; 26 December 2007 at 01:08. Reason: missing nasm
 
Old 26 December 2007, 01:03   #6
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 43
Posts: 16,495
Thanks for the detailed instructions

Sorry for being uninformed / lacking knowledge, but what's the benefit of compiling your own version of WinUAE (minus tools) over getting the standard release provided by the WinUAE author; Toni Wilen?

No offence intended, just curious
DamienD is online now  
Old 26 December 2007, 01:13   #7
__adil__
 
Posts: n/a
Quote:
Originally Posted by DamienD View Post
Thanks for the detailed instructions

Sorry for being uninformed / lacking knowledge, but what's the benefit of compiling your own version of WinUAE (minus tools) over getting the standard release provided by the WinUAE author; Toni Wilen?

No offence intended, just curious

well of course this is not for the standart user of WinUAE as an emulator
but just for the curious ones who just want to look what is going on behind
the scenes, and perhaps for the advanced ones to ease the contribution of
new features/bug fixes etc.


__adil__
 
Old 26 December 2007, 01:48   #8
formater
Registered User
formater's Avatar
 
Join Date: May 2007
Location: Alicante/Spain
Posts: 192
Thanks _adil_
formater is offline  
Old 26 December 2007, 14:24   #9
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,571
I thought it has always been possible to compile WinUAE with Visual Studio Express Edition as long as you have recent enough SDK, DDK and some extra free libraries and headers from here and there.
Toni Wilen is offline  
Old 27 December 2007, 11:54   #10
ReKlaw
 
Posts: n/a
I've tried downloading the file from: http://.com/files/79052748/R1_VC_add.rar and I get the following message:-

Download session invalid. Please click here.

Possible reasons:
  • Download session expired. Direct-links last a few minutes for free users.
  • You requested this download session from a different IP than yours. If you use AOL, try a different browser.
  • If nothing helps, getting a premium-account will override the IP-check, which means it will solve this problem.
Can you help?
 
Old 27 December 2007, 12:17   #11
__adil__
 
Posts: n/a
Quote:
Originally Posted by ReKlaw View Post
I've tried downloading the file from: http://.com/files/79052748/R1_VC_add.rar and I get the following message:-

Download session invalid. Please click here.

Possible reasons:
  • Download session expired. Direct-links last a few minutes for free users.
  • You requested this download session from a different IP than yours. If you use AOL, try a different browser.
  • If nothing helps, getting a premium-account will override the IP-check, which means it will solve this problem.
Can you help?


Sorry for the trouble .. try these alternate links instead:

R1_winuaesrc1450_add.rar http:///?id=7j6rdp

R1_VC_add.rar http:///?id=l7resw

CU!

__adil__
 
Old 27 December 2007, 15:26   #12
ReKlaw
 
Posts: n/a
Smile

Ok, downloaded now. thanks
 
Old 27 December 2007, 19:05   #13
ReKlaw
 
Posts: n/a
Newbie question:-

I have programmed in VB for a number of years but I have never programmed using C++. I have successfully compiled winuae amd I am now using the winuae source code to get a feel for C++. If I make changes to winuae.rc do I have to rebuild every time I want to see the changes that I have made to the GUI or is there a quicker way?

Thanks
 
Old 27 December 2007, 20:08   #14
eLowar
Citizen of Elthesh
eLowar's Avatar
 
Join Date: Sep 2003
Location: London, UK
Posts: 949
Quote:
Originally Posted by ReKlaw View Post
Newbie question:-

I have programmed in VB for a number of years but I have never programmed using C++. I have successfully compiled winuae amd I am now using the winuae source code to get a feel for C++. If I make changes to winuae.rc do I have to rebuild every time I want to see the changes that I have made to the GUI or is there a quicker way?
You only have to recompile that one file and then relink the main app, assuming you kept the object files for all the other source files. Alas, I haven't actually looked at how WinUAE is built with Visual C++ yet, so this is just generic information. I assume Visual C++'s build tools are smart and only rebuild as much as absolutely necessary, so the answer to your question may well be "yes, you have to rebuild every time".

Edit: Actually, there are tools to edit resources in live binaries. I've used ResHack many moons ago, and I believe there's an open source app called XN Resource Editor or something; and I'm sure there are others. This may be faster than rebuilding, if relinking takes a long time.

Last edited by eLowar; 27 December 2007 at 20:13. Reason: Just remembered something.
eLowar is offline  
Old 28 December 2007, 15:57   #15
ReKlaw
 
Posts: n/a
Quote:
Originally Posted by eLowar View Post
You only have to recompile that one file and then relink the main app, assuming you kept the object files for all the other source files. Alas, I haven't actually looked at how WinUAE is built with Visual C++ yet, so this is just generic information. I assume Visual C++'s build tools are smart and only rebuild as much as absolutely necessary, so the answer to your question may well be "yes, you have to rebuild every time".

Edit: Actually, there are tools to edit resources in live binaries. I've used ResHack many moons ago, and I believe there's an open source app called XN Resource Editor or something; and I'm sure there are others. This may be faster than rebuilding, if relinking takes a long time.
Thanks for the tips.
 
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Completely unnecessary and uncool wish for WinUAE :) ancalimon request.UAE Wishlist 5 28 May 2016 21:43
Games that truly are completely free? Dreedo support.Games 15 15 July 2011 11:46
Compile WinUAE 1.46 with completely free tools __adil__ support.WinUAE 0 08 February 2008 19:24
Compiling WinUAE 1.3.2 rotacak support.WinUAE 1 06 October 2006 21:34
Best free Workbench 1.3 enhancement tools Paul request.Apps 0 29 January 2003 11:26

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:32.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.08556 seconds with 13 queries