13 December 2015, 17:07 | #1 |
Registered User
Join Date: Jan 2015
Location: Belarus
Posts: 44
|
WinUAE compilation (again!)
Hello!
Could somebody fix all that troubles with compilation? I want Debug mode. And other modes. winuaeinclibs are old already! And it is not possible to compile with them! Every time I have to deal with all that troubles, unresolved symbols, manually runnable commands, etc. Visual Studio 2015. Please, somebody, clone latest sources, and try to compile it! When you'll done it, please, write good instruction for that. |
13 December 2015, 17:20 | #2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Use winuaeinclibs_2015.zip. Old libs are not 2015 compatible. (for some unknown reason)
Use "Test", it is nearly same as debug. |
13 December 2015, 17:24 | #3 |
Registered User
Join Date: Jan 2015
Location: Belarus
Posts: 44
|
Ok, I'll try.
And how could I know about that new libs? Where are you keeping links to such stuff? |
13 December 2015, 17:38 | #4 |
Registered User
Join Date: Jan 2015
Location: Belarus
Posts: 44
|
New winuaeinclibs doesn't contain include (*.h) files. Why?
And in project genlinetoscr there is not include paths to sysconfig.h |
13 December 2015, 17:44 | #5 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Not needed, they have not been changed. Only libs are incompatible.
Quote:
-- "I don't do documentation". "Works for me". And so on. Sorry. |
|
13 December 2015, 17:49 | #6 |
Registered User
Join Date: Jan 2015
Location: Belarus
Posts: 44
|
|
13 December 2015, 18:18 | #7 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
winuaeinclibs_2015.zip now updated. Perhaps it helps.
("works for me" = I don't know whats the problem is unless it is explained in detail) |
13 December 2015, 18:27 | #8 |
Registered User
Join Date: Jan 2015
Location: Belarus
Posts: 44
|
I mean, that there are no any compilation documentation, any full and correct project and solution files. Link to winuaelibs could be found only by the such threads, as this one, and so on. Include paths in project files are different for different build configurations... And many-many such things...
Imagine, that someday, you will be no possible to continue any work on UAE. Just imagine that. Then, some guy will try to compile your project. And he will not compile it, because of such stuff! Thank you anyway. |
13 December 2015, 18:54 | #9 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
I don't care (who wants to volunteer to clean this up!?!) and it would not be that difficult, all of them are standard libraries, just download original sources from official download sites, compile them as static (or even dynamic if you want) libraries and link them.
They are not any kind of winuae-only custom libraries. Unfortunately Windows binaries are rarely available and usually when they are, they are not compatible with any newer compilers or have strange dependencies. There is no need for winuaeinclibs.zip, it only makes it easier and quicker. |
15 April 2017, 19:15 | #10 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,335
|
Are there current (as you used to build 3.4.1b5 at the time of writing) winuaeinclibs archives (32- and 64-bit) which work with Visual Studio 2017?
|
15 April 2017, 19:20 | #11 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
|
16 April 2017, 16:45 | #12 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,335
|
Thanks, I have it almost building now. Could you add LogitechLCDLib.h to the winuaeinclibs archive? I get this build error:
..\lcd.cpp(13): fatal error C1083: Cannot open include file: 'LogitechLCDLib.h': No such file or directory |
16 April 2017, 16:52 | #13 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Added. (But it probably would have been easier to just disable that part)
|
16 April 2017, 16:59 | #14 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,335
|
Also, I'm getting this:
LINK : fatal error LNK1181: cannot open input file 'ddraw.lib' I found https://blogs.msdn.microsoft.com/chu...er-directdraw/, which mentioned that Microsoft removed ddraw.lib from the June 2010 DirectX SDK: "It is worth noting, however, that the import library DDRAW.LIB is not present in the Windows SDK. It is therefore recommended that if you do make use of DirectDraw, you use explicit linking (i.e. LoadLibrary and GetProcAddress) to get any DDRAW.DLL entry-points." Maybe worth doing that, to make building WinUAE easier for others? I'll try to find an earlier DirectX SDK to get the ddraw.lib file. |
16 April 2017, 17:00 | #15 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
It is already included. I don't want to touch DD code anymore unless it goes away completely.
EDIT: Using loadlibrary (or delay load that winuae uses) has nothing to do with linking. lib is always needed. Last edited by Toni Wilen; 16 April 2017 at 17:30. |
16 April 2017, 18:19 | #16 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,335
|
D'oh I copied the winuaeinclibs lib directory to the WinUAE/od-win32 source dir which fixed that.
Next problem... I downloaded current source from github, and the build reports link errors like: 1>fpp_softfloat.obj : error LNK2001: unresolved external symbol "struct floatx80 __fastcall floatx80_atanh(struct floatx80,struct float_status *)" (?floatx80_atanh@@YI?AUfloatx80@@U1@PAUfloat_status@@@Z) ... 1>E:\Work\WinUAE\amiga\winuae.exe : fatal error LNK1120: 18 unresolved externals |
16 April 2017, 18:46 | #17 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Quote:
Quote:
EDIT: and make sure all files are added to project. EDIT2: Just use last beta, too many changes still pending.. Last edited by Toni Wilen; 16 April 2017 at 18:53. |
||
17 April 2017, 14:33 | #18 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
|
For my own future reference, here is an unofficial, unsupported guide to building winuae c1be5812d725905a82561dbea8efd77f18e31e3a:
1. Get Visual Studio 2017 Community edition (include at least "Desktop development with C++", make sure Win8.1SDK+XP Support+VC++ 2015.3 tool set are all checked) 2. Get WinUAE source code 2. Download nasm and add it to your path (or put it in winuae/od-win32) 3. Get winuaeinclibs_2015.zip and extract to c:\dev 4. Download the DirectX SDK and install headers/libraries (you can install them to c:\dev - if you do copy the relevant lib files from lib\<arch> otherwise add them to VC++ directories later on). 5. Get aros.rom.cpp somehow and put it in the winuae source folder 6. From a command prompt, go to winuae\od-win32 and execute "asm.cmd" 7. Make sure d:\amiga exists and is writable (use "subst" if necessary). You can probably also change the output folder. 8. Open the winuae solution in MSVC (WinUAE\od-win32\winuae_msvc15\winuae_msvc.sln) 9. Add softfloat/softfloat_fpsp.cpp to the winuae project (Note MSVC crashed when I tried to do this from the IDE, so I just modified the vcxproj file manually!) 10. Change configuration to "Release" and build the projects manually in alphabetical order. (Ignore uaeunp) 11. Enjoy d:\amiga\winuae.exe |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compilation issues using Amos Pro and WinUAE | CaptainNow | Coders. Language | 3 | 06 May 2014 15:22 |
Looking the name of a Compilation | jjsmith | Looking for a game name ? | 1 | 05 October 2005 04:19 |
cd 32 compilation | Dexther | request.Old Rare Games | 2 | 31 August 2005 11:59 |
Compilation Disk | Carlos Ace | request.Old Rare Games | 1 | 05 May 2003 03:31 |
|
|