On Sunday, December 28, 2014 3:47:15 PM UTC+1, Wassim Chegham wrote:
> Thank you Tom for your reply. 
> I'll let you know if I manage to get the emulators to work.
> 
> Wassim.
> 
> On Monday, December 22, 2014 4:54:16 AM UTC+1, Thomas Phillips wrote:
> > Hi Wassim,
> > 
> > 
> > I got B2G to build using config.sh emulator-jb.  I think I had tried 
> > emulator-kk and something went wrong, but emulator-jb seemed to work.  
> > However, after the build the emulator rendered the screen upside down 
> > (inverted Y axis).
> > 
> > 
> > If you get an emulator (any sort) to work on Mac OS X, please post on the 
> > list to say what worked.
> > 
> > 
> > Tom
> > 
> > 
> > 
> > 
> > On Sun, Dec 21, 2014 at 3:00 PM,  <[email protected]> wrote:
> > Send dev-b2g mailing list submissions to
> > 
> >         [email protected]
> > 
> > 
> > 
> > To subscribe or unsubscribe via the World Wide Web, visit
> > 
> >         https://lists.mozilla.org/listinfo/dev-b2g
> > 
> > or, via email, send a message with subject or body 'help' to
> > 
> >         [email protected]
> > 
> > 
> > 
> > You can reach the person managing the list at
> > 
> >         [email protected]
> > 
> > 
> > 
> > When replying, please edit your Subject line so it is more specific
> > 
> > than "Re: Contents of dev-b2g digest..."
> > 
> > 
> > 
> > 
> > 
> > Today's Topics:
> > 
> > 
> > 
> >    1.  Issues when building FirefoxOS on Mac OS X 10.10.2
> > 
> >       (Wassim Chegham)
> > 
> > 
> > 
> > 
> > 
> > ----------------------------------------------------------------------
> > 
> > 
> > 
> > Message: 1
> > 
> > Date: Sun, 21 Dec 2014 04:44:46 -0800 (PST)
> > 
> > From: Wassim Chegham <[email protected]>
> > 
> > To: [email protected]
> > 
> > Subject: [b2g] Issues when building FirefoxOS on Mac OS X 10.10.2
> > 
> > Message-ID: <[email protected]>
> > 
> > Content-Type: text/plain; charset=ISO-8859-1
> > 
> > 
> > 
> > Hi,
> > 
> > 
> > 
> > I started a few days ago trying to build FFOS on my Mac OS X 10.10.2.
> > 
> > I followed then all the instructions from 
> > https://developer.mozilla.org/en-US/Firefox_OS/Building_and_installing_Firefox_OS.
> > 
> > 
> > 
> > But I can't get it to build successfully. I believe that it has something 
> > to do with the emulator (emulator kk). I've also applied this patch 
> > (https://bug897727.bugzilla.mozilla.org/attachment.cgi?id=786280), but no 
> > luck.
> > 
> > 
> > 
> > Here is the last part from the logs:
> > 
> > 
> > 
> > ------
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzVideo.h:94: 
> > error: expected specifier-qualifier-list before 'CGDirectPaletteRef'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m: In 
> > function 'QZ_SetupOpenGL':
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:83: error: 
> > 'struct SDL_PrivateVideoData' has no member named 'bpp'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:85: error: 
> > 'struct SDL_PrivateVideoData' has no member named 'bpp'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:140: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'gl_context'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:145: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'gl_context'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:158: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'gl_context'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:179: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'gl_context'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m: In 
> > function 'QZ_TearDownOpenGL':
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:192: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'gl_context'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:193: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'gl_context'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m: In 
> > function 'QZ_GL_LoadLibrary':
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:202: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'gl_context'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:207: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'opengl_library'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:208: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'opengl_library'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:213: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'opengl_library'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:214: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'opengl_library'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m: In 
> > function 'QZ_GL_GetProcAddress':
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:224: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'opengl_library'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m: In 
> > function 'QZ_GL_GetAttribute':
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:275: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'gl_context'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m: In 
> > function 'QZ_GL_MakeCurrent':
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:286: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'gl_context'
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m: In 
> > function 'QZ_GL_SwapBuffers':
> > 
> > external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.m:291: 
> > error: 'struct SDL_PrivateVideoData' has no member named 'gl_context'
> > 
> > make: *** 
> > [out/host/darwin-x86/obj/STATIC_LIBRARIES/emulator-libui_intermediates/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzGL.o]
> >  Error 1
> > 
> > 
> > 
> > real    0m34.096s
> > 
> > user    0m14.076s
> > 
> > sys     0m10.673s
> > 
> > 
> > 
> > > Build failed! <
> > 
> > 
> > 
> > Build with |./build.sh -j1| for better messages
> > 
> > If all else fails, use |rm -rf objdir-gecko| to clobber gecko and |rm -rf 
> > out| to clobber everything else.
> > 
> > -----
> > 
> > 
> > 
> > Any ideas?
> > 
> > 
> > 
> > 
> > 
> > ------------------------------
> > 
> > 
> > 
> > Subject: Digest Footer
> > 
> > 
> > 
> > _______________________________________________
> > 
> > dev-b2g mailing list
> > 
> > [email protected]
> > 
> > https://lists.mozilla.org/listinfo/dev-b2g
> > 
> > 
> > 
> > 
> > 
> > ------------------------------
> > 
> > 
> > 
> > End of dev-b2g Digest, Vol 41, Issue 32
> > 
> > ***************************************

Hi Tom,

I finally managed to got it compile on Yosemeti 10.10.2. Here are the steps:

1) download Xcode 5.0.2 and copy the app somewhere, ex. /tmp/Xcode.app
2) make sure to use this version of Xcode, by executing "sudo xcode-select -s 
/tmp/Xcode.app/Contents/Developer"
3) next download and install gcc 4.9.2 from here => http://hpc.sourceforge.net/ 
(and follow the instructions to install it)
4) add these 2 lines to your .userconfig file (to use the new gcc)
  export CC=/usr/local/bin/gcc
  export CXX=/usr/local/bin/g++
5) ./build.sh emulator-kk && ./build.sh
6) ./run-emulator.sh (it may take sometime to load, so be patient)

Please also note that the build process took more than 3 hours on my machine 
(with the default -j switch)

Here are my numbers:
   real 31m56.883s
   user 185m49.301s
   sys  20m40.698s

Enjoy,
Wassim.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to