From: Toshimitsu T. <t_t...@db...> - 2004-02-04 12:06:19
|
Hi. The GUI cannot be enabled in Darwin port of SheepShaver. I installed GTK+ and esound using Fink. I got source code of SheepShaver from CVS and modified some files. Make was successful. The Panel is displayed. http://www006.upp.so-net.ne.jp/t_tanaka/images/settingpanel.jpg However, after clicking the "Start" button, SheepShaver says "Cannot map RAM:Unknown error:0". What's wrong? ------------------------------------------------------------------------ ----------------------------------------------- --- main_unix.org Sat Jan 31 20:10:49 2004 +++ main_unix.cpp Sun Feb 1 22:11:54 2004 @@ -493,8 +493,10 @@ } fclose(proc_file); } else { +#if defined(__linux__) sprintf(str, GetString(STR_PROC_CPUINFO_WARN), strerror(errno)); WarningAlert(str); +#endif } #endif D(bug("PVR: %08x (assumed)¥n", PVR)); --- prefs_editor_gtk.org Tue Jan 13 00:37:22 2004 +++ prefs_editor_gtk.cpp Sun Feb 1 21:57:58 2004 @@ -815,7 +815,11 @@ if (d) { struct dirent *de; while ((de = readdir(d)) != NULL) { +#if defined(__linux__) if (strncmp(de->d_name, "ttyS", 4) == 0 || strncmp(de->d_name, "lp", 2) == 0) { +#else + if (false) { +#endif char *str = new char[64]; sprintf(str, "/dev/%s", de->d_name); glist = g_list_append(glist, str); @@ -846,7 +850,13 @@ struct ifreq req, *ifr = ifc.ifc_req; for (int i=0; i<ifc.ifc_len; i+=sizeof(ifreq), ifr++) { req = *ifr; +#if defined(__linux__) if (ioctl(s, SIOCGIFHWADDR, &req) == 0 && req.ifr_hwaddr.sa_family == ARPHRD_ETHER) { +#elif defined(__APPLE__) && defined(__MACH__) + if (ioctl(s, SIOCGIFADDR, &req) == 0 && (req.ifr_addr.sa_family == ARPHRD_ETHER || req.ifr_addr.sa_family == ARPHRD_ETHER+1)) { +#else + if (false) { +#endif char *str = new char[64]; strncpy(str, ifr->ifr_name, 63); glist = g_list_append(glist, str); --- user_strings_unix.org Tue Jan 13 00:37:22 2004 +++ user_strings_unix.cpp Sun Feb 1 21:51:46 2004 @@ -25,10 +25,10 @@ // Platform-specific string definitions user_string_def platform_strings[] = { // Common strings that have a platform-specific variant - {STR_VOLUME_IS_MOUNTED_WARN, "The volume '%s' is mounted under Linux. Basilisk II will try to unmount it."}, - {STR_EXTFS_CTRL, "Linux Root"}, - {STR_EXTFS_NAME, "Linux Directory Tree"}, - {STR_EXTFS_VOLUME_NAME, "Linux"}, + {STR_VOLUME_IS_MOUNTED_WARN, "The volume '%s' is mounted under Unix. SheepShaver will try to unmount it."}, + {STR_EXTFS_CTRL, "Unix Root"}, + {STR_EXTFS_NAME, "Unix Directory Tree"}, + {STR_EXTFS_VOLUME_NAME, "Unix"}, // Purely platform-specific strings {STR_NO_DEV_ZERO_ERR, "Cannot open /dev/zero: %s."}, --- Toshimitsu Tanaka t_t...@db... --- 田中 俊光 QYT...@ni... t_t...@db... http://member.nifty.ne.jp/poseidon/index.html |