Page 1 of 2

Trying to compile and run ScummVM

PostPosted: Apr 10, 2005 @ 12:59am
by TazDevil76
Hi,

Maybe someone can help me out: I can compile ScummVM 0.7.1 under Embedded Visual C++ 3.0 but when I try to run it, it says "The Intel 80486 CPU does not support configuration Win32 (WCE ARM)! Executable will not run on devivce."

What am I doing wrong? If I ignore the error the virtual PPC will start up, but it says that scummvm.exe is not a valid executable.


ADD ON: The whole thing shouldn't be executed in the emulator at all, right? Because the emulator and the real PPC are incompatible it won't run. I switched to "Default device" and hoped that it will be started on my iPAQ directly but this fails completely...

René

PostPosted: Apr 10, 2005 @ 7:09am
by refractor
The evc++3 emulator isn't a "real" emulator. You need to build for the "Win32 (WCE x86em)" Debug/Release target to run on the emulator. If that choice isn't there, reinstall evc++ and make sure you choose it in the target list.

PostPosted: Apr 10, 2005 @ 8:36am
by TazDevil76
Thanks for this hint. The x86 option has already been installed but it's not shown in the target combo. I added it under Build->Configurations but now I get hundreds of errors "fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory".

I copied the x86 debug target from PPC2002 debug.

René

PostPosted: Apr 10, 2005 @ 3:30pm
by fast_rx

PostPosted: Apr 10, 2005 @ 7:39pm
by TazDevil76
I still get this error 74 times in different files:

"Command line warning D4002 : ignoring unknown option '/MC'
chunk.cpp
D:\WinCE\scummvm-0.7.1\scumm\smush\chunk.cpp(22) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory"

Can you give advice?

René

PostPosted: Apr 11, 2005 @ 5:51pm
by TazDevil76
Can anyone assist a bit?
What do I have to do to get it running on the emulator under eMVC4?
I downloaded all the precompiled libs from Arisme's site. Still I'm missing "vorbisfile.h" etc. and cannot compile.
I don't know if I have to set my include path to "PPC\ARM" or to "PPC2003" - my os is PW2003 though...so I guess it's "PPC2003".

To run it in the emulator I will need precompiled libs for the emulator. Are there any sources? I have tried to compile them myself but one tough thing about C++ are the weird includes. :-(
I admit, I'm out of practice (last C++ project was years ago and I switched to Java), but I'd really like to get into coding and finish those paths setup thing...or at least: I'd like to understand what to do. :-)

Thanks.

Regards,
René

PostPosted: Apr 11, 2005 @ 6:17pm
by Arisme
Well, I never worked with the emulator, sorry, cannot help much here

PostPosted: Apr 11, 2005 @ 6:58pm
by TazDevil76
But maybe you might be able to help if I compile it for the PPC...
I've set the target to "Win32 (WCE ARMV4) Debug" and get the problems described above.

René

PostPosted: Apr 11, 2005 @ 7:18pm
by Kzinti

PostPosted: Apr 11, 2005 @ 7:26pm
by TazDevil76

PostPosted: Apr 11, 2005 @ 10:06pm
by Arisme

PostPosted: Apr 11, 2005 @ 10:35pm
by refractor
You're not trying to mix the obj files are you? The <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/LNK1166.asp">LNK1166</a> makes absolutely no sense whatsoever for ARM (all instructions are 32-bits and thus cannot span a page boundary).

PostPosted: Apr 12, 2005 @ 3:31am
by fast_rx
refractor , I've gotten those warnings in my projects:
rotblit2.obj : warning LNK1166: cannot adjust code at offset=0x00001000, rva=0x0003601C

I had thought that it was something to do with my asm files, but who knows - the program runs fine...

PostPosted: Apr 12, 2005 @ 9:01am
by Arisme
I got these warnings too, without link problems

PostPosted: Apr 12, 2005 @ 5:28pm
by refractor
Ok, weird. :)