I am close to porting AppleWin for Amiga.
Guys this is an open SDL AppleWin not the original AppleWin that relies heavily on directX...but there is a file called curl.h preventing me from compiling it. I compiled every single other file for AppleWin and it compiles with zero error for the Amiga 68k binary except files that rely on curl.h for inheritance where curl.h itself causes an error.
I have shrunk the errors from 1000 to literally 3 errors now...just 3. But I am stuck :banghead in how to fix this. If anyone can help me please I would officially have AppleAmi now ported from AppleWin to run on rtg and vampire Amiga. Here is the code for curl.h: https://codetidy.com/10468/ These are the errors: curl.h expected `}' before "NOTHING" expected init-declarator before "COPYNAME" expected "," or ";" before "COPYNAME" expected constructor, destructor, or type conversion before ';' token 'CURLformoption' does not name a type expected declaration before '}' token That is it!! If the above is fixed...if the above is fixed then entire program compiles and we a have a power apple 2 emulator. Anyone can help me please? |
Hi,
Good work on getting it down to so few errors. The first error on your list: curl.h expected `}' before "NOTHING" looks like it is causing all the rest. What compiler are you using? Looks like the CFINIT macro around line 1945 may not be being expanded properly: #ifdef CURL_ISOCPP #define CFINIT(name) CURLFORM_ ## name #else /* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */ #define CFINIT(name) CURLFORM_/**/name #endif CFINIT(NOTHING) should expand to CURLFORM_NOTHING --- Curl itself is in a constant state of flux: https://github.com/curl Cheers, Red |
Quote:
|
there is an old curl release on aminet, including dev files ( curl.h ...)
maybe you can use these files - bit older, less trouble? i think RedskullDC talks about the constant development of curl, so things may have changed since last AppleWin version - hence the trouble you see now with latest (?) curl you are using. #1) i did a search for curl on the AppleWIN github repository, and it cannot be found. is this the source code you are using? so the curl dependency is maybe provoked by the AmigaDev++ environment or the ixemul.library?? i'm not really sure, but if so, you may disable curl somehow? #2) i have no clue about wxDev C++ , but for the crosscompiler there is a -noixemul option, for example: m68k-amigaos-gcc.exe -m68020 -m68881 -Wall -O3 -noixemul maybe this will keep you busy until someone post a real solution - ignore if it's of no use at all :) |
Is it better than Apple2000?
|
Quote:
I am not expert in this and expert eyes are needed for this. I realized while I convinced arczi to port kegs and it is released in aminet and there are 50 downloads, I know he is busy to port this so I toke over. But I hit a wall end and it is beyond my knowledge and skill. So I realize if applewin the best apple ii emulator on earth get ported into Amiga the demand will be great. Here is the link to download https://www.dropbox.com/s/nenuk82wrs...inSrc.rar?dl=0 |
Quote:
If you have this ported.....you don't need any other emulator for apple ii ever again! It soooooooo perfectly accurate and compatible you literally don't need the real thing for anything. |
What does an Apple 2 emulator need the curl library for? It's for emulator to check self-updates, isn't it?
You can probably eliminate it. |
Try this (if the compiler doesn't support concat when macro parameters are expanded at the same time):
Code:
#ifdef CURL_ISOCPP Code:
typedef enum { |
Quote:
|
Example of where I am stuck:
Code:
typedef ULONG *PULONG; expected ',' or ';' before '*' token expected init-declarator before '*' token expected ',' or ';' before '*' token expected init-declarator before '*' token expected ',' or ';' before '*' token expected init-declarator before '*' token What do I do here? Then I get this error Code:
BYTE GetPB(); 6821.h expected `;' before '(' token 6821.h variable or field `SetPB' declared void 6821.h expected `;' before '(' token 6821.h variable or field `SetCA2' declared void 6821.h expected `;' before '(' token and so on. What do I do here? Then I have this issue Code:
BYTE m_byDDRB; What do I do there? Then I have something like this: Code:
void C6821::Write(BYTE byRS, BYTE byData) What do I do here too? |
add
#include <exec/types.h> on the file that gives you those errors |
the source code on dropbox has some option to connect to a ftp,
this explains curl. i tried to disble some things in Common.h , but this was not successfull. I'm using crosscompiler on cygwin: m68k-amigaos-g++.exe so I change CXX to m68k-amigaos-g++.exe in the Makefile changed CXXFLAG: CXXFLAGS = -mcrt=clib2 -fomit-frame-pointer -lgcc but this give just more errors I cannot fix :( |
Quote:
Then I get this error Code:
typedef CHAR *PCHAR; expected ',' or ';' before '*' token expected init-declarator before '*' token expected ',' or ';' before '*' token expected init-declarator before '*' token expected ',' or ';' before '*' token expected init-declarator before '*' token in file wincompat.h |
Quote:
|
Quote:
What?! Are you serious?? Here is the real port then: https://www.dropbox.com/s/rxdif7ken45ht38/kegs-sdl?dl=0 I am surprised this have happened! |
Quote:
|
Quote:
I bet lots of people who faced this issue doesn't know of this conversation or know to come here or ..... |
using a 128kb rom from mame emulator - i tested some game from the MacGui website.
those *.2mg images. you have to add them in the kegs_conf file, one example was: s7d1 = CRATE.2MG so i renamed the downloaded 2mg file to CRATE.2mg and put it into the kegs folder. the game does boot, but joystick control is somehow weird or does not work. btw. compiling kegs itself seems not too difficult. I ended up with many unknown symbols while linking, but compiling the source seems ok, without any big errors. I think my CCOPTS and LDFLAGS are not correct, but someone skilled can fix this in a minute using crosscompiler on cygwin 32bit system. my src/vars file - file will be read by Makefile and must fit your system you want kegs compile for. Code:
OBJECTS = $(OBJECTS1) engine_c.o link errors (first lines only): Code:
$ make afterwards we can put it on Aminet :) |
Quote:
|
All times are GMT +2. The time now is 17:26. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.