Can any help about build previous in windows? I need help!
What?
How to build Previous in Windows
the usual way, add the cygwin tools and whatever else it depends on, then be hopeful, 'cause we do it all the *nix way on this forum. It might just be easier to install a linux vm and do it all in that.
I have problem with installing cygwin. Can you tell me what packages I need to install? Because I don't know what packages I have to install. Can I build windows binary on Ubuntu 8.4 LTS? Please give answers.
can any please tell me what is the svn address of Previous sourcecode to download the source by the tortoisesvn?
Ok I have installed this packages for Cygwin-
bash,coreutils,cpio,diffutils,file,greb,groff,gzip,m4,make,man.patch,readline,sed,tar,unzip,zlib0,zlib0-devel,autoconf,binutils,gcc,libtoool,rpm etc.Now I have a problem - I can't download the source from sourceforge.I have installed TortoiseSVN.Please give the link to download the source.Sorry for my bad English :oops:
Follow this link:
http://sourceforge.net/p/previous/code/HEAD/tree/There are the commands and URLs to load the source code (currently active branch is "branch_mmu").
Ok, I have downloaded source code of previous(help by andreas-g). But I don't know where to put the SDL and ZLIB? What kind Source or DLL ? When I start cmake on Cygwin without the files then the massage appears(Please see this picture)-

(
http://postimage.org/)
screen capture software (
http://postimage.org/app.php)
Please give a solution!
You can find tutorials here:
http://lazyfoo.net/SDL_tutorials/lesson01/windows/index.phpIf this doesn't help there are lots of other tutorials. Google gives good results here.
Important note: You need
SDL 1.2.x. Do not try SDL 2.x. It won't work.
I am stuck at how to install sdl library on cygwin.Please help Me!!
Ok I have installed SDL on Cygwin. But there is a problem -
Nahid)@Nahid-PC ~
$ cd previous-code
Nahid)@Nahid-PC ~/previous-code
$ mkdir build
Nahid)@Nahid-PC ~/previous-code
$ cd build
Nahid)@Nahid-PC ~/previous-code/build
$ cmake ..
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
CMake Warning at /usr/share/cmake-2.8.9/Modules/Platform/CYGWIN.cmake:15 (messag e):
CMake no longer defines WIN32 on Cygwin!
(1) If you are just trying to build this project, ignore this warning or
quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
the CMake cache. If later configuration or build errors occur then this
project may have been written under the assumption that Cygwin is WIN32.
In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.
(2) If you are developing this project, add the line
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
at the top of your top-level CMakeLists.txt file or set the minimum
required version of CMake to 2.8.4 or higher. Then teach your project to
build on Cygwin without WIN32.
Call Stack (most recent call first):
/usr/share/cmake-2.8.9/Modules/CMakeSystemSpecificInformation.cmake:36 (INCLUD E)
CMakeLists.txt:4 (project)
-- Check for working C compiler: /usr/bin/gcc.exe
-- Check for working C compiler: /usr/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++.exe
-- Check for working CXX compiler: /usr/bin/c++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found SDL: /usr/lib/libSDLmain.a;/usr/lib/libSDL.dll.a
-- Found MATH: /usr/lib/libm.a
-- Could NOT find READLINE (missing: READLINE_LIBRARY READLINE_INCLUDE_DIR)
cygwin warning:
MS-DOS style path detected: C:/Program Files/zlib/lib
Preferred POSIX equivalent is: /cygdrive/c/Program Files/zlib/lib
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
-- Could NOT find PORTAUDIO (missing: PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR)
-- Looking for include file termios.h
-- Looking for include file termios.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for include file SDL/SDL_config.h
-- Looking for include file SDL/SDL_config.h - not found.
-- Looking for include file sys/times.h
-- Looking for include file sys/times.h - found
-- Looking for include files sys/socket.h, sys/un.h
-- Looking for include files sys/socket.h, sys/un.h - found
-- Looking for cfmakeraw
-- Looking for cfmakeraw - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for select
-- Looking for select - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for memalign
-- Looking for memalign - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for alphasort
-- Looking for alphasort - found
-- Looking for scandir
-- Looking for scandir - found
-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /cygdrive/f/Home/previous-code/build
Nahid)@Nahid-PC ~/previous-code/build
$ make
Scanning dependencies of target build68k
[ 1%] Building C object src/cpu/CMakeFiles/build68k.dir/build68k.c.o
/cygdrive/f/Home/previous-code/src/cpu/build68k.c: In function 'main':
/cygdrive/f/Home/previous-code/src/cpu/build68k.c:228:6: warning: array subscrip t has type 'char' [-Wchar-subscripts]
while (isspace(*opstrp))
^
/cygdrive/f/Home/previous-code/src/cpu/build68k.c:233:3: warning: array subscrip t has type 'char' [-Wchar-subscripts]
if (!isspace (*osendp))
^
/cygdrive/f/Home/previous-code/src/cpu/build68k.c:245:6: warning: array subscrip t has type 'char' [-Wchar-subscripts]
while (!isspace(*p++));
^
/cygdrive/f/Home/previous-code/src/cpu/build68k.c:83:7: warning: variable 'patbi ts' set but not used [-Wunused-but-set-variable]
char patbits[16];
^
Linking C executable build68k.exe
[ 1%] Built target build68k
[ 2%] Generating cpudefs.c
Scanning dependencies of target gencpu
[ 3%] Building C object src/cpu/CMakeFiles/gencpu.dir/gencpu.c.o
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c: In function 'read_counts':
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:80:6: warning: variable 'ret' se t but not used [-Wunused-but-set-variable]
int ret;
^
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c: In function 'gen_opcode':
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:2152:7: warning: format '%X' exp ects argument of type 'unsigned int', but argument 2 has type 'long unsigned int ' [-Wformat=]
printf ("\t\texception3i (0x%04X, m68k_getpc (), newpc);\n", opcode);
^
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:2152:7: warning: format '%X' exp ects argument of type 'unsigned int', but argument 2 has type 'long unsigned int ' [-Wformat=]
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:2176:4: warning: format '%X' exp ects argument of type 'unsigned int', but argument 2 has type 'long unsigned int ' [-Wformat=]
printf ("\t\texception3i (0x%04X, m68k_getpc (), pc);\n", opcode);
^
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:2176:4: warning: format '%X' exp ects argument of type 'unsigned int', but argument 2 has type 'long unsigned int ' [-Wformat=]
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:2181:6: warning: format '%X' exp ects argument of type 'unsigned int', but argument 2 has type 'long unsigned int ' [-Wformat=]
printf ("\t\texception3i (0x%04X, m68k_getpc(), pc);\n", opcode);
^
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:2181:6: warning: format '%X' exp ects argument of type 'unsigned int', but argument 2 has type 'long unsigned int ' [-Wformat=]
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:2244:3: warning: format '%X' exp ects argument of type 'unsigned int', but argument 2 has type 'long unsigned int ' [-Wformat=]
printf ("\t\texception3i (0x%04X, pc, faultpc);\n", opcode);
^
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:2244:3: warning: format '%X' exp ects argument of type 'unsigned int', but argument 2 has type 'long unsigned int ' [-Wformat=]
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c: In function 'generate_one_opcod e':
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:3669:4: warning: format '%x' exp ects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wform at=]
opcode, name);
^
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:3669:4: warning: format '%d' exp ects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:3669:4: warning: format '%x' exp ects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wform at=]
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:3669:4: warning: format '%d' exp ects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:3775:4: warning: format '%x' exp ects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wform at=]
opcode, postfix, opcode, name);
^
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:3775:4: warning: format '%d' exp ects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:3775:4: warning: format '%x' exp ects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wform at=]
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:3775:4: warning: format '%d' exp ects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c: At top level:
/cygdrive/f/Home/previous-code/src/cpu/gencpu.c:127:13: warning: 'cpulimit' defi ned but not used [-Wunused-function]
static void cpulimit (void)
^
[ 4%] Building C object src/cpu/CMakeFiles/gencpu.dir/readcpu.c.o
/cygdrive/f/Home/previous-code/src/cpu/readcpu.c: In function 'build_insn':
/cygdrive/f/Home/previous-code/src/cpu/readcpu.c:324:3: warning: array subscript has type 'char' [-Wchar-subscripts]
while (opcstr[pos] && !_istspace(opcstr[pos])) {
^
/cygdrive/f/Home/previous-code/src/cpu/readcpu.c:359:3: warning: array subscript has type 'char' [-Wchar-subscripts]
while (opcstr[pos] && _istspace(opcstr[pos]))
^
[ 5%] Building C object src/cpu/CMakeFiles/gencpu.dir/cpudefs.c.o
Linking C executable gencpu.exe
[ 5%] Built target gencpu
[ 6%] Generating cpustbl.c, cpuemu_0.c, cpuemu_11.c, cpuemu_12.c, cpuemu_20.c, cpuemu_21.c, cpuemu_31.c, cpuemu_32.c
Scanning dependencies of target UaeCpu
[ 7%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/cpuemu_0.c.o
In file included from /usr/include/SDL/SDL_stdinc.h:30:0,
from /usr/include/SDL/SDL_endian.h:31,
from /cygdrive/f/Home/previous-code/src/cpu/maccess.h:31,
from /cygdrive/f/Home/previous-code/src/cpu/memory.h:17,
from /cygdrive/f/Home/previous-code/build/src/cpu/cpuemu_0.c:4:
/usr/include/SDL/SDL_config.h:42:32: fatal error: SDL_config_minimal.h: No such file or directory
#include "SDL_config_minimal.h"
^
compilation terminated.
src/cpu/CMakeFiles/UaeCpu.dir/build.make:82: recipe for target 'src/cpu/CMakeFil es/UaeCpu.dir/cpuemu_0.c.o' failed
make[2]: *** [src/cpu/CMakeFiles/UaeCpu.dir/cpuemu_0.c.o] Error 1
CMakeFiles/Makefile2:274: recipe for target 'src/cpu/CMakeFiles/UaeCpu.dir/all' failed
make[1]: *** [src/cpu/CMakeFiles/UaeCpu.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
Nahid)@Nahid-PC ~/previous-code/build
$
I cannot find the SDL_config_minimal.h in sdl 1.2.15
I think you can just use this one:
http://www.libsdl.org/release/SDL-1.2.15/include/SDL_config_minimal.hPlease only post relevant parts of log files.
I'll recompile on windows in some days. Last time i used mingw2003 and cmake but it´s a bit tricky. I'll take snapshots and links to what is needed.
I've cross compiled with mingw for linux (much simpler than compiling under windows itself). It compiles but the platform specific fpu is not correct and fails at startup tests. Also the system does not find the boot sector...
I have also the same error ( Error 41, FPU Error). It may be andreas_g is not updated the source code.
This error is just in ROM self test.
you can boot after that with command "bsd"
I have the same issue with the gcc win32 compiled version.
Can any give me detailed introduction how to compile Previous for windows by cygwin or mingw? Please help me!
Ok I found a way that should be OK with current cygwin:
short anwser: Install mingw32 for cygwin and do a cross compile.
usefull answer:
_ under cygwin install mingw32-gcc-core, binutils, zlib and g++ (all in mingw32 flavor).
_ copy include and lib of SDL 1.2 for mingw devel in correct path
(for me it's C:\cygwin\usr\share\i686-pc-mingw32\sys-root\mingw )
adapt path in previous-code/cmake/Toolchain.mingw32.cmake
then in cygwin shell go to source dir
for me it's /cygdrive/c/previous/previous-code
and type
./configure --cross-compile-win32
then
make
you will get a previous.exe in src directory
you will need SDL.dll and libz-1.dll to run (libz-1.dll is in mingw bin dir)
[edit]
also need libgcc_s_dw1-2.dll also in bin directory