Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Carbon Bochs (x86 emulator)

Carbon Bochs (x86 emulator)
Thread Tools
me
Mac Enthusiast
Join Date: Jun 2000
Location: Seattle, WA
Status: Offline
Reply With Quote
Dec 11, 2001, 03:45 AM
 
I just read that Bochs has a carbon version, I downloaded it, did ./configure --with-carbon. A few minutes into make the errors start to fly

cd gui && \
make CC="cc" CXX="c++" CFLAGS="-g -O2 " CXXFLAGS="-g -O2 " LDFLAGS="" LIBS="" X_LIBS="-L/usr/X11R6/lib" X_PRE_LIBS="-lSM -lICE" prefix="/usr/local" exec_prefix="/usr/local" bindir="/usr/local/bin" infodir="" libgui.a
c++ -c -g -O2 -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs carbon.cc -o carbon.o
carbon.cc: In function `void CreateWindows()':
carbon.cc:278: unknown escape sequence `\p'
carbon.cc:278: passing `const char *' as argument 3 of `NewWindow(void *, const Rect *, const unsigned char *, unsigned char, short int, OpaqueWindowPtr *, unsigned char, long int)' changes signedness
carbon.cc:292: unknown escape sequence `\p'
carbon.cc:293: passing `const char *' as argument 3 of `NewCWindow(void *, const Rect *, const unsigned char *, unsigned char, short int, OpaqueWindowPtr *, unsigned char, long int)' changes signedness
carbon.cc:299: unknown escape sequence `\p'
carbon.cc:299: passing `const char *' as argument 3 of `NewCWindow(void *, const Rect *, const unsigned char *, unsigned char, short int, OpaqueWindowPtr *, unsigned char, long int)' changes signedness
carbon.cc:302: unknown escape sequence `\p'
carbon.cc:303: passing `const char *' as argument 3 of `NewCWindow(void *, const Rect *, const unsigned char *, unsigned char, short int, OpaqueWindowPtr *, unsigned char, long int)' changes signedness
make[1]: *** [carbon.o] Error 1
make: *** [gui/libgui.a] Error 2

Any ideas what to do about this?
http://bochs.sourceforge.net/
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Dec 11, 2001, 04:16 AM
 
Tried the pre-built binary that's available on their site?

Works for me...

Too bad I don't have an OS to run on it, other than the Linux image they provide...

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Senior User
Join Date: Aug 2001
Location: CA
Status: Offline
Reply With Quote
Dec 11, 2001, 06:23 AM
 
Originally posted by CharlesS:
<STRONG>Tried the pre-built binary that's available on their site?

Works for me...

Too bad I don't have an OS to run on it, other than the Linux image they provide...</STRONG>
Anyone know if this works with VPC images?
Dual 800 - GF3 - 1.5GB
     
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Dec 11, 2001, 09:38 AM
 
What I want to know is how fast is it in comparison to VPC? I realize that VPC is a more complete emulator (given that it accomodates a wider range of OS's), but if bochs can achieve near par performance with it's OS 9 counterpart (is there one?) then that would be telling...
     
me  (op)
Mac Enthusiast
Join Date: Jun 2000
Location: Seattle, WA
Status: Offline
Reply With Quote
Dec 11, 2001, 12:05 PM
 
I hadn't seen the 1.21 OS X binary, I wanted to see the 1.3 in action.
     
Junior Member
Join Date: Feb 2001
Status: Offline
Reply With Quote
Dec 11, 2001, 03:15 PM
 
Actually, it compiles for me, but you're right, the carbon.o file doesn't get built correctly. On my system (OSX 10.1 build 5M28) it links against the X11 libs, and works just fine with XDarwin. Maybe we need the new developer tools that apple only released to developers who pay .

But, right now I'm running "DLX Linux", a very small 10 meg linux distro, and it works fine. The CPU emulated is an original pentium 60/66! Quite an unloved chip, if my memory serves me correctly. Maybe i'll try some linux images from the bochs site and see if i can make it work any faster.

Or wait for a binary
     
Junior Member
Join Date: Feb 2001
Status: Offline
Reply With Quote
Dec 11, 2001, 03:31 PM
 
Ok, I don't think this is a replacement for VPC . VPC5 may be really slow under OSX, but bochs is REALLY slow . For the past 10 minutes i've been watching it try to boot OpenBSD, and it still hasn't even finished. It loaded that dlx-linux pretty quickly, but that was using an ancient linux kernel (something from the 1.3 series). I think you're better off with VPC ... unless the carbon version is REALLY fast or something ...
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Dec 12, 2001, 05:27 PM
 
Whether or not Bochs is a viable VPC replacement depends on what you want out of it. If you want to play Half-Life or render 3D animation with some obscure Windows-only program, then no, Bochs isn't going to help you. Same goes if you want to crunch RC5 or SETI.

If, on the other hand, you're doing non-performance-intensive stuff, Bochs should work fine. In cases like these, you're generally talking about running specific programs with no direct Mac counterparts (mostly games, and even then mostly games in specific genres that don't generally require high performance).

Note: If you turn on some optimizations when compiling Bochs, you can boost the speed significantly. I find -O4 seems to work very nicely.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:02 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2