English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 29 March 2010, 10:14   #1
Mequa
Registered User
 
Join Date: Nov 2009
Location: UK
Posts: 497
Building WinUAE 2.0.1

I have attempted to build WinUAE in Visual Studio 2008 from the latest sources at WinUAE.net.
I've installed several versions of DirectX SDK including the latest, and added several header files.
I know I am still missing a few required header files - however, it appears that some of the WinUAE source is missing?
Here are some of the errors I get:

13>Compiling...
13>compstbl.c
13>c1 : fatal error C1083: Cannot open source file: '..\..\jit\compstbl.c': No such file or directory
13>compemu.c
13>c1 : fatal error C1083: Cannot open source file: '..\..\jit\compemu.c': No such file or directory
13>epsonprinter.c
13>c:\users\stephen\documents\winuaesrc2010\include\epsonprinter.h(30) : fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory
13>drawing.c
13>c:\users\stephen\documents\winuaesrc2010\drawing.c(861) : fatal error C1083: Cannot open include file: 'linetoscr.c': No such file or directory
13>cpustbl.c
13>c1 : fatal error C1083: Cannot open source file: '..\..\cpustbl.c': No such file or directory
13>cpuemu_31.c
13>c1 : fatal error C1083: Cannot open source file: '..\..\cpuemu_31.c': No such file or directory
13>cpuemu_20.c
13>c:\users\stephen\documents\winuaesrc2010\cpuemu_20.c(9) : fatal error C1083: Cannot open include file: 'cputbl.h': No such file or directory
13>cpuemu_12.c
13>c1 : fatal error C1083: Cannot open source file: '..\..\cpuemu_12.c': No such file or directory
13>cpuemu_11.c
13>c1 : fatal error C1083: Cannot open source file: '..\..\cpuemu_11.c': No such file or directory
13>cpuemu_0.c
13>c1 : fatal error C1083: Cannot open source file: '..\..\cpuemu_0.c': No such file or directory
13>cpudefs.c
13>c1 : fatal error C1083: Cannot open source file: '..\..\cpudefs.c': No such file or directory
13>blitter.c
13>c:\users\stephen\documents\winuaesrc2010\blitter.c(27) : fatal error C1083: Cannot open include file: 'blit.h': No such file or directory
13>blittable.c
13>c1 : fatal error C1083: Cannot open source file: '..\..\blittable.c': No such file or directory
13>blitfunc.c
13>c1 : fatal error C1083: Cannot open source file: '..\..\blitfunc.c': No such file or directory


Is it possible to compile the released sources for 2.0.1? If so, where are the missing source files?

P.S. I do intend to use Toni Wilen's builds, I was just looking to "experiment" a bit...

Last edited by Mequa; 29 March 2010 at 10:19.
Mequa is offline  
Old 29 March 2010, 10:27   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Nothing is missing. You need to build buildxxx and genxxx projects first.
Toni Wilen is offline  
Old 29 March 2010, 10:28   #3
TCD
HOL/FTP busy bee
 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,522
Have a look here : http://eab.abime.net/showthread.php?t=48111
Most of the things should apply to 2.0.1 aswell.
TCD is offline  
Old 29 March 2010, 10:42   #4
Mequa
Registered User
 
Join Date: Nov 2009
Location: UK
Posts: 497
On building gencpu_msvc (on all build modes) I get the following errors:

1>------ Build started: Project: gencpu, Configuration: TestRelease Win32 ------
1>deleting gencpu files
1>Could Not Find c:\Users\Mequa\Documents\winuaesrc2010\cputbl.h
1>Could Not Find c:\Users\Mequa\Documents\winuaesrc2010\cpustbl.c
1>Could Not Find c:\Users\Mequa\Documents\winuaesrc2010\cpuemu.c
1>Linking...
1>unicode.obj : error LNK2019: unresolved external symbol _currprefs referenced in function _ua_fs
1>unicode.obj : error LNK2019: unresolved external symbol _write_log referenced in function _unicode_init
1>gencpu.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Users\Mequa\Documents\winuaesrc2010\od-win32\gencpu_msvc\TestRelease\BuildLog.htm"
1>gencpu - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

And with gencomp_msvc I get the following errors:

1>------ Build started: Project: gencomp, Configuration: Debug Win32 ------
1>Compiling...
1>readcpu.c
1>c:\users\mequa\documents\winuaesrc2010\include\sysdeps.h(232) : error C2143: syntax error : missing '{' before '*'
1>c:\users\mequa\documents\winuaesrc2010\include\sysdeps.h(233) : error C2143: syntax error : missing '{' before '*'
1>c:\users\mequa\documents\winuaesrc2010\include\sysdeps.h(234) : error C2143: syntax error : missing ')' before '*'
1>c:\users\mequa\documents\winuaesrc2010\include\sysdeps.h(234) : error C2143: syntax error : missing '{' before '*'
1>c:\users\mequa\documents\winuaesrc2010\include\sysdeps.h(234) : error C2059: syntax error : ')'
1>c:\users\mequa\documents\winuaesrc2010\include\sysdeps.h(234) : error C2059: syntax error : ';'

Any suggestions how to fix this?
Mequa is offline  
Old 29 March 2010, 10:48   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Use "Release", not "TestRelease". (gen and build projects may not have correct compilation settings in other build modes)
Toni Wilen is offline  
Old 29 March 2010, 10:54   #6
Mequa
Registered User
 
Join Date: Nov 2009
Location: UK
Posts: 497
I get the same errors in "Release" mode.

1>------ Build started: Project: gencpu, Configuration: Release Win32 ------
1>deleting gencpu files
1>Could Not Find c:\Users\Mequa\Documents\winuaesrc2010\cputbl.h
1>Could Not Find c:\Users\Mequa\Documents\winuaesrc2010\cpustbl.c
1>Could Not Find c:\Users\Mequa\Documents\winuaesrc2010\cpuemu.c
1>Linking...
1>unicode.obj : error LNK2019: unresolved external symbol _currprefs referenced in function _ua_fs
1>unicode.obj : error LNK2019: unresolved external symbol _write_log referenced in function _unicode_init
etc.

Last edited by Mequa; 29 March 2010 at 11:03.
Mequa is offline  
Old 29 March 2010, 11:16   #7
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
http://eab.abime.net/showpost.php?p=632897&postcount=40
Toni Wilen is offline  
Old 29 March 2010, 14:17   #8
Mequa
Registered User
 
Join Date: Nov 2009
Location: UK
Posts: 497
Given the problem with the 2.0.1 source, I decided to grab the latest beta source from http://www.winuae.net/files/b/winuaesrc.zip and attempted to build.
After some hours of attempts, I got as far as the linking and got the error included. Any suggestions?

P.S. I'm using Windows 7 64-bit (still building as x86 of course).
Attached Files
File Type: txt winuaecompileerror.txt (2.7 KB, 250 views)
Mequa is offline  
Old 29 March 2010, 14:23   #9
TCD
HOL/FTP busy bee
 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,522
http://eab.abime.net/showthread.php?p=633065#post633065
Looks familiar?
TCD is offline  
Old 29 March 2010, 15:19   #10
Mequa
Registered User
 
Join Date: Nov 2009
Location: UK
Posts: 497
Yes, but I already added the sources and library files from winuaeinclibs.zip and still get the _enet errors, and the _write_log error from prowizard.lib.

Last edited by Mequa; 29 March 2010 at 15:25.
Mequa is offline  
Old 29 March 2010, 21:02   #11
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Redownload winuaeinclibs.zip. Should fix the problem.
Toni Wilen is offline  
Old 29 March 2010, 23:25   #12
Mequa
Registered User
 
Join Date: Nov 2009
Location: UK
Posts: 497
Thanks Toni! It now builds fine.


One other change I needed to make was in epsonprinter.cpp, the problem was with the line:

> #include "parser.h"

Which I changed to:

> #include "od-win32/parser.h"

which fixed a definition error with PARALLEL_MATRIX_EPSON9 (it is now correctly defined as the integer 2).
Mequa is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
I am building up a forum for developers OlafSch Amiga scene 8 04 December 2012 05:55
Building a project in SAS/C Tiddlypeeps Coders. General 2 21 April 2010 11:48
Building an own module player Another World New to Emulation or Amiga scene 20 14 October 2008 23:32
Building a 1200 from a 500 Scatter support.Hardware 22 28 August 2008 22:04
Building me a new Amiga StarEye support.Hardware 12 02 April 2008 20:01

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 21:13.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.18082 seconds with 16 queries