Login  •  Register


The time is now: Sun Dec 16, 2018 3:38 am

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 10 of 10 [ 240 posts ]    Go to page Previous  1 ... 6, 7, 8, 9, 10
Print view Previous topic  |  Next topic
Author Message
PostPosted: Sun Dec 10, 2017 6:24 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4446
Location: Sittard, The Netherlands
Hi,

This has something to do with a test during configure, not your virtualisation settings. I seem to remember it is related to gnome development libs (or something that is installed alongside those). But I don't know which is the magic combination.
I've given up on finding out ;-)

Best,
Cat_7


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Dec 11, 2017 2:55 am 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 53
Actually, I get the same error while building current cebix/macemu code.
The VM error occurs if configure can't find vm_alloc.cpp.
Similarly, "Windows exceptions" error occurs if sigsegv.cpp is not found.
Confirm two files are exist at the directory written in configure file.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Dec 11, 2017 2:02 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 930
kanjitalk755 wrote:
Actually, I get the same error while building current cebix/macemu code.
The VM error occurs if configure can't find vm_alloc.cpp.
Similarly, "Windows exceptions" error occurs if sigsegv.cpp is not found.
Confirm two files are exist at the directory written in configure file.


Using rakslice's code, I tried copying those two files from src/Windows to src/Unix (to match the paths in the configure file), and I also tried editing the configure file to use the ../Windows instead of ../Unix, but I got the same error message. Clearly I don't know enough to get this right. I hope someone expert can modify the macemu code so that it builds in msys.

One other issue: "make links" produces a number of error messages with rakslice's code and all other code that I tried.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Dec 12, 2017 2:02 am 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 53
Did you check out rakslice:windows_build_script branch?
I could build not rakslice:master but rakslice:windows_build_script.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Dec 12, 2017 1:24 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4446
Location: Sittard, The Netherlands
Hi,

You can get past the "Sorry, Windows VM functions don't work as expected on your system." and "Sorry, Windows exceptions don't work as expected on your system." errors by creating a file extra.cache with the following content:

ac_cv_have_win32_exceptions=yes
ac_cv_VirtualProtect_works=yes

Then, at configure, add the following parameter: --cache-file=extra.cache

In cygwin (using the mingw compiler) I then use configure like this:
./configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --cache-file=extra.cache

This successfully gets you to the end of configure. However, at make some files are not found...

Which can be fixed by adding some links:

ln -s ../CrossPlatform/vm_alloc.cpp vm_alloc.cpp
ln -s ../CrossPlatform/sigsegv.cpp sigsegv.cpp
ln -s ../CrossPlatform/sigsegv.h sigsegv.h
ln -s ../CrossPlatform/video_vosf.h video_vosf.h
ln -s ../CrossPlatform/video_blit.cpp video_blit.cpp
ln -s ../CrossPlatform/video_blit.h video_blit.h

and then:

x86_64-w64-mingw32-g++ -I../kpx_cpu/include -I../kpx_cpu/src -DUSE_JIT -I../include -I. -I../slirp -DHAVE_CONFIG_H -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c ../main.cpp -o obj/main.o
In file included from ../main.cpp:52:0:
../include/debug.h: In function ‘void vwinbug(const char*, va_list)’:
../include/debug.h:41:30: error: ‘lengthof’ was not declared in this scope
_snprintf( msg, lengthof(msg), "B2: %s %s:%03u ", date, hours, tstruct.millitm );
^
../include/debug.h: In function ‘void vwwinbug(const wchar_t*, va_list)’:
../include/debug.h:56:31: error: ‘lengthof’ was not declared in this scope
_snwprintf( msg, lengthof(msg), L"B2: %s %s:%03u ", date, hours, tstruct.millitm );
^
make: *** [Makefile:157: obj/main.o] Error 1


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Dec 12, 2017 4:12 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 930
This really isn't worth anyone's trouble (and kanjitalk755 shouldn't waste his time on my failures), but here's what happened when I tried to follow kanjitalk755's build instructions for rakslice's code in msys.

I have a build of SDL-1.2.15. I downloaded rakslice's macemu-windows_buildscript branch and copied into src. Then I performed these steps:

Quote:
cd src
cd SDL-1.2.15
PATH=`pwd`/bin:$PATH
export PATH
cd ..
cd macemu-windows_build_script
cd SheepShaver
make links
cd src/Windows
ln -s ../Unix/m4
NO_CONFIGURE=1 ../Unix/autogen.sh
## see firstoutput.txt
./configure --with-gtk=no --disable-jit
## delete sysdeps.h, line 28: #define min(x,y) ((x) < (y) ? (x) : (y))
## delete from makefile, line 40, the string "-lpthread"
make
## see secondoutput.text


The messages I got from autogen.sh are these (referred to above as firstoutput.txt):

Quote:
Edward@Edward ~/src/macemu-windows_build_script/SheepShaver/src/Windows
$ NO_CONFIGURE=1 ../Unix/autogen.sh
+ Running aclocal: configure.ac:186: warning: AC_CACHE_VAL(ac_cv_gcc_no_strict_aliasing, ...): suspicious presence of an AC_SUBST in the second argument, where no actions should be taken
/mingw/src/autoconf/26/autoconf2.5-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
/mingw/src/autoconf/26/autoconf2.5-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...configure.ac:186: the top level
done.
+ Running autoheader: configure.ac:186: warning: AC_CACHE_VAL(ac_cv_gcc_no_strict_aliasing, ...): suspicious presence of an AC_SUBST in the second argument, where no actions should be taken
/mingw/src/autoconf/26/autoconf2.5-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
/mingw/src/autoconf/26/autoconf2.5-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
configure.ac:186: the top level
done.
+ Running autoconf: configure.ac:186: warning: AC_CACHE_VAL(ac_cv_gcc_no_strict_aliasing, ...): suspicious presence of an AC_SUBST in the second argument, where no actions should be taken
/mingw/src/autoconf/26/autoconf2.5-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
/mingw/src/autoconf/26/autoconf2.5-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
configure.ac:186: the top level
done.


And the output of make (referred to above as secondoutput.txt) is this:

Quote:
Edward@Edward ~/src/macemu-windows_build_script/SheepShaver/src/Windows
$ make
cp -p ../CrossPlatform/vm_alloc.cpp vm_alloc.cpp
cp -p ../CrossPlatform/vm_alloc.h vm_alloc.h
cp -p ../CrossPlatform/sigsegv.cpp sigsegv.cpp
cp -p ../CrossPlatform/sigsegv.h sigsegv.h
cp -p ../CrossPlatform/video_vosf.h video_vosf.h
cp -p ../CrossPlatform/video_blit.cpp video_blit.cpp
cp -p ../CrossPlatform/video_blit.h video_blit.h
g++ -I../kpx_cpu/include -I../kpx_cpu/src -I../include -I. -I../slirp -DHAVE_CONFIG_H -O2 -I/home/Edward/src/SDL-1.2.15/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -c ../main.cpp -o obj/main.o
g++ -I../kpx_cpu/include -I../kpx_cpu/src -I../include -I. -I../slirp -DHAVE_CONFIG_H -O2 -I/home/Edward/src/SDL-1.2.15/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -c main_windows.cpp -o obj/main_windows.o
In file included from main_windows.cpp:46:0:
util_windows.h:66:5: error: 'constexpr' does not name a type
constexpr null_delete() noexcept = default;
^
util_windows.h:66:5: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
util_windows.h:67:59: error: expected initializer before 'noexcept'
template <class U> null_delete(const null_delete<U>&) noexcept { }
^
util_windows.h:68:26: error: expected ';' at end of member declaration
void operator ()(T*) const noexcept { }
^
util_windows.h:68:32: error: 'noexcept' does not name a type
void operator ()(T*) const noexcept { }
^
util_windows.h:68:32: note: C++11 'noexcept' only available with -std=c++11 or -std=gnu++11
util_windows.h:71:5: error: 'constexpr' does not name a type
constexpr null_delete() noexcept = default;
^
util_windows.h:71:5: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
util_windows.h:72:26: error: expected ';' at end of member declaration
void operator ()(T*) const noexcept { }
^
util_windows.h:72:32: error: 'noexcept' does not name a type
void operator ()(T*) const noexcept { }
^
util_windows.h:72:32: note: C++11 'noexcept' only available with -std=c++11 or -std=gnu++11
util_windows.h:73:53: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
template <class U> void operator ()(U*) const = delete;
^
util_windows.h:77:6: error: 'unique_ptr' in namespace 'std' does not name a template type
std::unique_ptr<char[]> str(const wchar_t* s);
^
util_windows.h:78:6: error: 'unique_ptr' in namespace 'std' does not name a template type
std::unique_ptr<wchar_t[]> wstr(const char* s);
^
util_windows.h:80:13: error: 'unique_ptr' in namespace 'std' does not name a template type
inline std::unique_ptr<const char[], null_delete<const char[]>> str(const char* s)
^
util_windows.h:84:13: error: 'unique_ptr' in namespace 'std' does not name a template type
inline std::unique_ptr<const wchar_t[], null_delete<const wchar_t[]>> wstr(const wchar_t* s)
^
make: *** [obj/main_windows.o] Error 1


Again, someone more competent than I am can probably accomplish this, but maybe this will be helpful for future work.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Dec 12, 2017 9:18 pm 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 53
You have to add compiler option "-std=gnu++11" in case using old MinGW, latest one doesn't need.
Or, try to build using latest MinGW.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Dec 13, 2017 1:43 am 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 930
kanjitalk755 wrote:
You have to add compiler option "-std=gnu++11" in case using old MinGW, latest one doesn't need.
Or, try to build using latest MinGW.


Thank you for this very impressive information! I will install latest MinGW and try again.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Dec 13, 2017 8:05 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 930
OK, following kanjitalk755's expert and generous advice, I've built rakslice's macemu-windows_build_script fork in Msys under Windows 7. I downloaded and installed a fresh copy of MinGW, added the mingw-developer-toolkit from the MinGW Installation Manager, and then (following the excellent guide on this site), created a directory named "src" in my MinGW\msys\1.0\home\MYUSERNAME\ folder.

As the guide says, I did this: downloaded the source code from: http://www.libsdl.org/release/SDL-1.2.15.zip and extracted the folder inside the Zip to the src directory.

Then I downloaded a ZIP of rakslice's code from https://github.com/rakslice/macemu/tree ... ild_script and extracted the folder inside the Zip to the src directory.

Then, from the Msys prompt, I did this:

Quote:
cd src/SDL-1.2.15
./autogen.sh
./configure --disable-shared
make
make install
## when rebuilding SheepShaver after building SDL, skip the previous steps, but cd to SDL-1.2.15 and perform the next steps:
PATH=`pwd`/bin:$PATH
export PATH
cd ..
cd macemu-windows_build_script
cd SheepShaver
## next step (make links) not needed after first time
make links
cd src/Windows
## next step create symbolic link) not needed after first time
ln -s ../Unix/m4
NO_CONFIGURE=1 ../Unix/autogen.sh
./configure --with-gtk=no --disable-jit
## next step (edit sysdeps.h) not needed after first time
## delete sysdeps.h, line 28: #define min(x,y) ((x) < (y) ? (x) : (y))
## next step needed every time (unless you make matching edit in makefile.in)
## delete from makefile, line 40, the string "-lpthread"
make
strip SheepShaver.exe


and I had a working build, exactly as kanjitalk755 said.

Now, is it possible to do something similar with more up-to-date branches of the macemu code?

Again, thanks to kanjitalk755 for all his help.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Dec 23, 2017 6:24 pm 
Offline
Space Cadet

Joined: Sat Oct 21, 2017 5:52 am
Posts: 2
Hello,
With your last version of SheepShaver CD open but there is a problem of color. Indeed 256 do not correspond any more. While on the previous version no problem with colors but no CD.
Has you he a solution there?
Cordially


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Jul 22, 2018 10:52 pm 
Offline
Space Cadet

Joined: Sun Jul 22, 2018 10:45 pm
Posts: 1
Hi. This is my first post here, sorry for the bother. I've searched high and low and can't find a solution to this.

I managed to install OS9 on a Windows build of SheepShaver by using the information on this site. However, I can't get the thing to detect my DVD drive, even using the updated build from March 2015. If I set the drive letter on the GUI frontend, Sheepshaver crashes. If I delete the drive letter, it boots fine. The program doesn't write any error messages to stderr.txt so I'm at a loss at what is going on.

Note that ISOs work fine. But the CD does not.

I'm running Windows 7 Professional 64-Bit. Hope you can help me figure out what's going on here. Thanks. :)


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Dec 12, 2018 11:05 pm 
Offline
Space Cadet

Joined: Fri Aug 24, 2018 6:21 pm
Posts: 6
Hey Cat_7 i actually was using SheepShaver today and i had installed Mac OS 8 on SheepShaver i recently updated SheepShaver from Mac OS 8.0 to Mac OS 9.0.4 and when i try to open the Scrapbook the instructions appear and when i click next SheepShaver crashes.
I have Windows 10.
Idk how to post images but this is what the error says:

Runtime Error!

Program: C:/Users/Nicke/Desktop/SheepShaver/SheepShaver.exe

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Is this because of the update?
Or is it because Mac OS 8.0 was in Spanish and 9.0.4 is in English?
Pls help.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Dec 12, 2018 11:31 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2299
Location: Emaculation.com
Do you have "Ignore Illegal Instructions" enabled? If not, enable it and many issues will go away.

You may also have issues with the ROM you are using with it.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Dec 13, 2018 11:36 am 
Offline
Space Cadet

Joined: Fri Aug 24, 2018 6:21 pm
Posts: 6
I enabled "Ignore Illegal Memory Access" but that did not actually change anything.
Scrapbook keeps crashing SheepShaver also i can't use internet explorer i try and write "www.google.com"
it appears to load and then SheepShaver crashes.
Maybe SheepShaver isn't that compatible with Mac OS 9.0.4 because i saw a video of Mac OS 9.0.4 installed on an iMac G3 and internet explorer was just working fine in the iMac.
I think i will just use Mac OS 8.0 but thanks for trying to help me adespoton.
And im using an New World Rom.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Dec 13, 2018 1:01 pm 
Offline
Forum All-Star

Joined: Wed Nov 11, 2009 5:47 pm
Posts: 1161
Location: Germany
iKnow, I would like to recommend MacOS 8.6 over 8.X for SheepShaver.
For a PPC browser, Classilla is best to use, equally well for 8.6 or 9.0.4.
I never saw much sense in using a web browser within an emulated MacOS and many old browsers are disfunctional for one reason or the other today.

Classilla OS9 DE:

Image


If you need a web browser badly, both iCab and Classilla should work, given that slirp is set in the emulators GUI and TCP/IP is set to DHCP via ethernet on the Mac side.
I´m using MacOS localisations criss-cross: German, English, Danish and Spanish (sometimes) and your error is not related to the language localisation for sure.
In any case, please do set up a new MacOS on a fresh volume from a CD image.
The MacOS Anthology is covering a bunch of languages including Spanish:
http://macintoshgarden.org/apps/mac-os-anthology-99
If you should run into trouble extracting a IMG file, I might set up a bootable volume for you.

¡Salut, pesetas y amor!
(If we only had Pta and DM, for that matter.)

PS: Pictures may be added by using an external host like ImgBB with a BBCode added in your posting.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 10 of 10 [ 240 posts ]    Go to page Previous  1 ... 6, 7, 8, 9, 10


Who is online

Users browsing this forum: No registered users and 5 guests


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
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group