[MacPorts] #23938: bochs: error: 'kAudioUnitComponentType' was not declared in this scope

MacPorts noreply at macports.org
Tue Nov 16 18:59:11 PST 2010


#23938: bochs: error: 'kAudioUnitComponentType' was not declared in this scope
--------------------------+-------------------------------------------------
 Reporter:  jjh13@…       |       Owner:  macports-tickets@…                   
     Type:  defect        |      Status:  new                                  
 Priority:  Normal        |   Milestone:                                       
Component:  ports         |     Version:  1.8.2                                
 Keywords:                |        Port:  bochs                                
--------------------------+-------------------------------------------------

Comment(by instinc@…):

 Well good news everyone.  After a bit of fiddling in the sources, the
 Portfile and rebuilding all my ports, I got Bochs to build!  Unfortunately
 I had to disable sound support and switch the GUI to wxWidget; but
 otherwise seems to work.

 So, here's what I had to do to get there:
 '''1.)''' Modify the Portfile
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/emulators/bochs/Portfile

 '''1.1)''' Change the configure arguments to remove sound and use wxWidget
 for the GUI:

 {{{
 ...
 configure.args      --exec-prefix=${prefix} \
                     --bindir=${prefix}/bin \
                     --mandir=${prefix}/share/man \
                     --enable-all-optimizations \
                     --enable-vbe \
                     --enable-cdrom \
                     --with-wx
 ...
 }}}

 ''note: feel free to add or remove other options, PCI support, ACPI, etc.
 ''
 '''1.2)'''Because we are not following the standard MacOS build of Bochs,
 the resulting executable file is not the same as originally planned, so
 also change the post-destroot code to:

 {{{
 post-destroot {
     xinstall -d ${destroot}${prefix}/share/bochs
     file copy ${worksrcpath}/bochs ${destroot}${prefix}/share/bochs
     system "ln -s ${prefix}/share/bochs/bochs
 ${destroot}${applications_dir}/bochs.app"
     xinstall -W ${worksrcpath} bochs bximage bxcommit
 ${destroot}${prefix}/bin
 #    reinplace "s|\$BXSHARE/|${prefix}/share/bochs/|g" \
 #        ${destroot}${prefix}/share/bochs/bochsrc-sample.txt
 }
 }}}

 '''1.3)''' We will also need a small patch file for wxmain.cc to compile
 properly:

 {{{
 patchfiles          patch-.bochsrc.diff \
                     patch-gui-wxmain.cc.diff

 }}}

 2) Create the following file
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/emulators/bochs/files
 /patch-gui-wxmain.cc.diff

 {{{
 --- gui/wxmain.cc.orig  2010-11-16 21:03:56.000000000 -0500
 +++ gui/wxmain.cc       2010-11-16 21:02:40.000000000 -0500
 @@ -76,9 +76,9 @@
  //#include "bitmaps/configbutton.xpm"
  #include "bitmaps/userbutton.xpm"
  #include "bitmaps/saverestore.xpm"
 -#ifdef __WXGTK__
 +//#ifdef __WXGTK__
  #include "icon_bochs.xpm"
 -#endif
 +//#endif

  // FIXME: ugly global variables that the bx_gui_c object in wx.cc can use
  // to access the MyFrame and the MyPanel.
 }}}

 '''3)''' Last but not least, update your
 /opt/local/etc/macports/macports.conf file to build all your ports in
 32bits:

 {{{
 ...
 build_arch i386
 }}}

 '''4)''' cross your fingers then run: port install bochs

 After a while if you were lucky you will have a usable
 /opt/local/bin/bochs executable file.  Note that you will need to have a
 usable configuration file in either the local directory or your home
 directory.  Let me know how it goes for you.

-- 
Ticket URL: <https://trac.macports.org/ticket/23938#comment:9>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list