NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
How to : Build Previous in Windows?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NeXT Computers Forum Index -> Emulation / Virtualization
View previous topic :: View next topic  
Author Message
Mominul



Joined: 16 Jan 2014
Posts: 87
Location: Bangladesh

PostPosted: Fri Jan 17, 2014 7:14 pm    Post subject: How to : Build Previous in Windows? Reply with quote

Can any help about build previous in windows? I need help!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
pentium



Joined: 23 Jun 2006
Posts: 1159
Location: Kamloops, BC

PostPosted: Sat Jan 18, 2014 11:31 am    Post subject: Reply with quote

What?
_________________

-NeXT 68040 Cube with NS 3.3 and 64Mb ram
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Mominul



Joined: 16 Jan 2014
Posts: 87
Location: Bangladesh

PostPosted: Sat Jan 18, 2014 11:49 am    Post subject: Reply with quote

How to build Previous in Windows
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Noth



Joined: 04 Apr 2008
Posts: 146
Location: Lausanne, Switzerland

PostPosted: Sat Jan 18, 2014 5:53 pm    Post subject: Reply with quote

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.
_________________
NeXT Cube 040 (NeXTSTEP 3.3), SUN SparcStation5 (NeXTSTEP 3.3), SGI Indigo2 R10000 (IRIX 6.5.22), SGI VSW320 (Windows 2000/Slakware 9.1)
Back to top
View user's profile Send private message
Mominul



Joined: 16 Jan 2014
Posts: 87
Location: Bangladesh

PostPosted: Sun Jan 19, 2014 11:58 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Mominul



Joined: 16 Jan 2014
Posts: 87
Location: Bangladesh

PostPosted: Fri Jan 24, 2014 1:51 am    Post subject: Reply with quote

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 Embarassed
Back to top
View user's profile Send private message Send e-mail MSN Messenger
andreas_g



Joined: 30 Jan 2009
Posts: 442
Location: Austria

PostPosted: Fri Jan 24, 2014 6:38 am    Post subject: Reply with quote

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").
Back to top
View user's profile Send private message Send e-mail
Mominul



Joined: 16 Jan 2014
Posts: 87
Location: Bangladesh

PostPosted: Mon Jan 27, 2014 4:28 am    Post subject: Reply with quote

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)-

screen capture software
Please give a solution!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
andreas_g



Joined: 30 Jan 2009
Posts: 442
Location: Austria

PostPosted: Mon Jan 27, 2014 5:07 am    Post subject: Reply with quote

You can find tutorials here:
http://lazyfoo.net/SDL_tutorials/lesson01/windows/index.php

If 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.
Back to top
View user's profile Send private message Send e-mail
Mominul



Joined: 16 Jan 2014
Posts: 87
Location: Bangladesh

PostPosted: Thu Feb 06, 2014 10:21 am    Post subject: Reply with quote

I am stuck at how to install sdl library on cygwin.Please help Me!!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Mominul



Joined: 16 Jan 2014
Posts: 87
Location: Bangladesh

PostPosted: Thu Feb 13, 2014 7:20 am    Post subject: Reply with quote

Ok I have installed SDL on Cygwin. But there is a problem -
Code:

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
Back to top
View user's profile Send private message Send e-mail MSN Messenger
andreas_g



Joined: 30 Jan 2009
Posts: 442
Location: Austria

PostPosted: Thu Feb 13, 2014 8:21 am    Post subject: Reply with quote

I think you can just use this one:

http://www.libsdl.org/release/SDL-1.2.15/include/SDL_config_minimal.h

Please only post relevant parts of log files.
Back to top
View user's profile Send private message Send e-mail
gilles



Joined: 03 Sep 2009
Posts: 117

PostPosted: Tue Feb 25, 2014 9:52 pm    Post subject: Reply with quote

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.
_________________
http://previous.alternative-system.com
http://www.alternative-system.com/?lang=EN
Back to top
View user's profile Send private message Send e-mail
gilles



Joined: 03 Sep 2009
Posts: 117

PostPosted: Sat Mar 01, 2014 12:31 am    Post subject: Reply with quote

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...
_________________
http://previous.alternative-system.com
http://www.alternative-system.com/?lang=EN
Back to top
View user's profile Send private message Send e-mail
Mominul



Joined: 16 Jan 2014
Posts: 87
Location: Bangladesh

PostPosted: Sun Mar 02, 2014 1:05 am    Post subject: Reply with quote

I have also the same error ( Error 41, FPU Error). It may be andreas_g is not updated the source code.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> Emulation / Virtualization All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2017 phpBB Group