Building Gingerbread on OS X Lion

Showing 21-50 of 50 messages
Building Gingerbread on OS X Lion yasuyuki 7/26/11 3:47 AM
Hi.

I try to build Gingerbread on OS X Lion(10.7).

I got these error message.

[CODE]
Please install the 10.5 SDK on this machine at /Developer/SDKs/
MacOSX10.5.sdk
external/qemu/Makefile.android:75: *** Aborting the build..  Stop.
[/CODE]

I edit external/qemu/Makefile.android to require version 10.6 SDK and
upper,
Next, I got another error message.

[CODE]
./external/elfutils/config-compat-darwin.h:42: error: static
declaration of ‘strnlen’ follows non-static declaration
/usr/include/string.h:143: error: previous declaration of ‘strnlen’
was here
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/
libelf_intermediates/lib/xstrdup.o] Error 1
[/CODE]

Has anyone built Gingerbread on OS X Lion?

thanks.
Re: [android-building] Building Gingerbread on OS X Lion Jean-Baptiste Queru 7/26/11 7:37 AM
I've heard multiple reports that it's broken.

If anyone has been uploading changes to fix things, please chime in.

Let's use this group (android-building) to discuss the improvements
and changes that need to be made.

Thanks,
JBQ

> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Re: [android-building] Building Gingerbread on OS X Lion Jean-Baptiste Queru 7/26/11 7:38 AM
Also, I should have mentioned: let's focus on the master branch. Once
we have that one working, we can focus on backporting changes as
necessary.

JBQ

Re: Building Gingerbread on OS X Lion Matt Reimer 7/27/11 5:22 AM


On Tuesday, July 26, 2011 6:47:36 AM UTC-4, yasuyuki wrote:
Hi.

I try to build Gingerbread on OS X Lion(10.7).

I got these error message.


[snip]

[CODE]
./external/elfutils/config-compat-darwin.h:42: error: static
declaration of ‘strnlen’ follows non-static declaration
/usr/include/string.h:143: error: previous declaration of ‘strnlen’
was here
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/
libelf_intermediates/lib/xstrdup.o] Error 1
[/CODE]

I got this error while building eclair on Lion. I worked around it by wrapping strnlen() in external/elfutils/config-compat-darwin.h with #if 0. Ideally it would be wrapped with #ifdef some_darwin_version but I don't know what define to use.

Matt
Re: Building Gingerbread on OS X Lion yasuyuki 7/28/11 5:46 AM
Thank you Matt.

I edit 2 files below:

[CODE]
$ diff -u external/qemu/Makefile.android_org external/qemu/
Makefile.android
--- external/qemu/Makefile.android_org        2011-07-28 20:56:22.000000000
+0900
+++ external/qemu/Makefile.android        2011-07-28 20:58:16.000000000 +0900
@@-67,15 +67,15 @@
ifneq ($(filter 10.1 10.2 10.3 10.1.% 10.2.% 10.3.% 10.4 10.4.%,$
(DARWIN_VERSION)),)
$(error Building the Android emulator requires OS X 10.5 or above)
endif
- ifeq ($(filter 10.5 10.5.%,$(DARWIN_VERSION)),)
+ ifeq ($(filter 10.6 10.6.%,$(DARWIN_VERSION)),)
# We are on Snow Leopard or above
- LEOPARD_SDK := /Developer/SDKs/MacOSX10.5.sdk
+ LEOPARD_SDK := /Developer/SDKs/MacOSX10.6.sdk
ifeq ($(strip $(wildcard $(LEOPARD_SDK))),)
- $(info Please install the 10.5 SDK on this machine at $
(LEOPARD_SDK))
+ $(info Please install the 10.6 SDK on this machine at $
(LEOPARD_SDK))
$(error Aborting the build.)
endif
- MY_CFLAGS += -isysroot $(LEOPARD_SDK) -mmacosx-version-min=10.5 -
DMACOSX_DEPLOYMENT_TARGET=10.5
- MY_LDLIBS += -isysroot $(LEOPARD_SDK) -Wl,-syslibroot,$(LEOPARD_SDK)
-mmacosx-version-min=10.5
+ MY_CFLAGS += -isysroot $(LEOPARD_SDK) -mmacosx-version-min=10.6 -
DMACOSX_DEPLOYMENT_TARGET=10.6
+ MY_LDLIBS += -isysroot $(LEOPARD_SDK) -Wl,-syslibroot,$(LEOPARD_SDK)
-mmacosx-version-min=10.6
endif
endif
[/CODE[

[CODE]
$ diff -u external/elfutils/config-compat-darwin.h_org external/
elfutils/config-compat-darwin.h
--- external/elfutils/config-compat-darwin.h_org        2011-07-28
21:02:07.000000000 +0900
+++ external/elfutils/config-compat-darwin.h        2011-07-28
21:14:38.000000000 +0900
@@-38,6 +38,7 @@
return NULL;
}

+#if 0
static inline size_t strnlen (const char *__string, size_t __maxlen)
{
int len = 0;
@@-45,6 +46,7 @@
len++;
return len;
}
+#endif

static inline void *mempcpy (void * __dest, const void * __src, size_t
__n)
{
[/CODE]

btw, I got another error here:

[CODE]
ld: warning: ignoring file out/host/darwin-x86/obj/STATIC_LIBRARIES/
libSDL_intermediates/libSDL.a, file was built for archive which is not
the architecture being linked (i386)
Undefined symbols for architecture i386:
  "_SDL_Init", referenced from:
      _init_skinned_ui in main.o
  "_SDL_GetError", referenced from:
      _init_skinned_ui in main.o
      _skin_window_resize in emulator-ui.a(window.o)
  "_SDL_EnableUNICODE", referenced from:
      _init_skinned_ui in main.o
      _skin_keyboard_enable in emulator-ui.a(keyboard.o)
      _skin_keyboard_process_event in emulator-ui.a(keyboard.o)
  "_SDL_EnableKeyRepeat", referenced from:
      _init_skinned_ui in main.o
      _skin_keyboard_enable in emulator-ui.a(keyboard.o)
  "_SDL_WM_SetIcon", referenced from:
      _init_skinned_ui in main.o
  "_SDL_FreeSurface", referenced from:
      _init_skinned_ui in main.o
      _skin_image_unref in emulator-ui.a(image.o)
      _skin_image_create in emulator-ui.a(image.o)
      _skin_image_clone in emulator-ui.a(image.o)
      _skin_window_resize in emulator-ui.a(window.o)
      _skin_window_free in emulator-ui.a(window.o)
      _skin_trackball_destroy in emulator-ui.a(trackball.o)
      ...
  "_SDL_Quit", referenced from:
      _sdl_at_exit in main.o
  "_SDL_PollEvent", referenced from:
      _sdl_refresh in main.o
  "_SDL_WM_GetPos", referenced from:
      _emulator_config_done in main.o
      _skin_window_toggle_fullscreen in emulator-ui.a(window.o)
      _skin_window_reset in emulator-ui.a(window.o)
  "_SDL_WM_GetMonitorDPI", referenced from:
      _qemulator_fb_rotate in qemulator.o
  "_SDL_CreateRGBSurfaceFrom", referenced from:
      _sdl_surface_from_argb32 in emulator-ui.a(image.o)
      _skin_image_create in emulator-ui.a(image.o)
      _skin_image_clone in emulator-ui.a(image.o)
  "_SDL_LockSurface", referenced from:
      _skin_image_blend_clone in emulator-ui.a(image.o)
      _skin_image_create in emulator-ui.a(image.o)
      _display_redraw in emulator-ui.a(window.o)
      _skin_trackball_refresh in emulator-ui.a(trackball.o)
      _skin_scaler_scale in emulator-ui.a(scaler.o)
  "_SDL_UnlockSurface", referenced from:
      _skin_image_blend_clone in emulator-ui.a(image.o)
      _skin_image_create in emulator-ui.a(image.o)
      _display_redraw in emulator-ui.a(window.o)
      _skin_trackball_refresh in emulator-ui.a(trackball.o)
      _skin_scaler_scale in emulator-ui.a(scaler.o)
  "_SDL_SetAlpha", referenced from:
      _skin_image_blend_clone in emulator-ui.a(image.o)
  "_SDL_GetTicks", referenced from:
      _skin_trackball_move in emulator-ui.a(trackball.o)
  "_SDL_UpperBlit", referenced from:
      _display_redraw in emulator-ui.a(window.o)
      _skin_window_redraw in emulator-ui.a(window.o)
      _trackball_draw in emulator-ui.a(trackball.o)
      _skin_trackball_draw in emulator-ui.a(trackball.o)
  "_SDL_UpdateRect", referenced from:
      _display_redraw in emulator-ui.a(window.o)
  "_SDL_WM_GetMonitorRect", referenced from:
      _skin_window_resize in emulator-ui.a(window.o)
  "_SDL_SetVideoMode", referenced from:
      _skin_window_resize in emulator-ui.a(window.o)
  "_SDL_WM_SetPos", referenced from:
      _skin_window_resize in emulator-ui.a(window.o)
      _skin_window_create in emulator-ui.a(window.o)
  "_SDL_FillRect", referenced from:
      _skin_window_redraw in emulator-ui.a(window.o)
  "_SDL_UpdateRects", referenced from:
      _skin_window_redraw in emulator-ui.a(window.o)
      _trackball_draw in emulator-ui.a(trackball.o)
      _skin_trackball_draw in emulator-ui.a(trackball.o)
      _skin_scaler_scale in emulator-ui.a(scaler.o)
  "_SDL_WM_SetCaption", referenced from:
      _skin_window_set_title in emulator-ui.a(window.o)
  "_SDL_WM_IsFullyVisible", referenced from:
      _skin_window_create in emulator-ui.a(window.o)
  "_SDL_ShowCursor", referenced from:
      _ball_state_show in emulator-ui.a(window.o)
  "_SDL_WM_GrabInput", referenced from:
      _ball_state_show in emulator-ui.a(window.o)
  "_SDL_PushEvent", referenced from:
      -[SDLApplication terminate:] in libSDLmain.a(SDLMain.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make: *** [out/host/darwin-x86/obj/EXECUTABLES/emulator_intermediates/
emulator] Error 1
make: *** Waiting for unfinished jobs....
target StaticLib: libc_nomalloc (out/target/product/crespo/obj/
STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
??:???̓t?@?C???̑???̂????A???`?F?b?N?܂??͈??S?ł͂Ȃ????̂?????܂??B
??:?ڍׂɂ‚??ẮA-Xlint:unchecked ?I?v?V???????w?肵?čăR???p?C?????Ă????????B
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero
area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero
area
[/CODE]
Re: Building Gingerbread on OS X Lion Francesco Donadon 8/11/11 4:27 AM
I'm having exactly the same problem (complaining about the wrong
architecture in Lion).

Did you manage to fix it somehow?
Re: Building Gingerbread on OS X Lion Francesco Donadon 8/12/11 4:24 AM
Some updates.

Looks like that linking error is in the libSDL prebuilt package.
Although is should be possible to just download the sources
and compile them separately in your machine, its compilation fails.

I am reporting here the error messages, although it probably would
belong to another group/discussion, in case somebody else would just
happen to know some assembler :)

/var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
1168:suffix or operands invalid for `movq'
/var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
1829:suffix or operands invalid for `movq'
/var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
2566:suffix or operands invalid for `movq'
/var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
2836:suffix or operands invalid for `movd'
/var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
2934:suffix or operands invalid for `movq'
/var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
3884:suffix or operands invalid for `movq'
/var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
4433:suffix or operands invalid for `movq'
/var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
4992:suffix or operands invalid for `movq'
/var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
5207:suffix or operands invalid for `movd'
/var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
5307:suffix or operands invalid for `movq'
make: *** [build/SDL_RLEaccel.lo] Error 1


Reverting to XCode 3 makes the (Android) compilation work again for
all but the emulator, which still fails.

Commenting out all the lines in external/qemu/Android.mk makes the
building go well until the end.

Personally I'll revert back to Snow Leopard, as I cannot afford to
work in this unstable environment.

I will go back to Lion when it will be more stable and supported.

Francesco
Re: Building Gingerbread on OS X Lion julius canute 8/16/11 12:44 PM
Is there any way to force the entire build to 32 bit?
Re: Building Gingerbread on OS X Lion BrandonT 8/17/11 8:25 PM
I've install libsdl & libsdl-devel package via ports.  How do I tell
the android build process to use /opt/local/lib as a library
location?  This should resolve this problem right?

The problem seems to be the build process is only using default xcode
library locations, which have pre-compiled versions of libsdl.
They're precompiled for i386 however. <-- Not sure about this.

Thanks,
Brandon
Re: Building Gingerbread on OS X Lion Fredrik Duprez 8/21/11 1:59 PM
I'm having the same problem. Installed sdl with homebrew and put /usr/
local/lib first in PATH, but i suppose the libpath is read somewhere
else?
Re: [android-building] Re: Building Gingerbread on OS X Lion Brandon Trussell 8/22/11 12:49 PM
I got past the sdl errors by excluding the emulator as stated by one of the previous commentators.  I commented the whole android.mk file that was mentioned.

--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en



--
Brandon
Re: Building Gingerbread on OS X Lion Fredrik Duprez 8/23/11 12:07 PM
I figured out the problem for everything but the emulator.

I found this post:
http://groups.google.com/group/android-building/msg/d4730b36e861569d

So then I just put the homebrew stuff (/usr/local/bin) last in $PATH,
letting the Mac use all stuff from apple toolchain first.

For building the third party ROM DevNull and Oxygen, you need to make
a symlink in /usr/local/bin from sed to gsed, since they explicitly
call gsed at one point. Also you have to add WITH_DEXPREOPT=false  at
the end of the make statement. Like so:

make -j8 devnull WITH_DEXPREOPT=false

So in essence, if you want to build on Lion you patch the makefiles
mentioned in this thread and put homebrew apps last in PATH and you
will be able to build for the real device at least.

On 22 Aug, 21:49, Brandon Trussell <brandon...@gmail.com> wrote:
> I got past the sdl errors by excluding the emulator as stated by one of the
> previous commentators.  I commented the whole android.mk file that was
> mentioned.
>
>
>
>
>
>
>
>
>
Re: Building Gingerbread on OS X Lion Bryan Hinton 8/23/11 1:20 PM
It looks like there is some new posix stuff in 10.7+.  I will be
submitting a patch for this.
Also, I'll post my environment when done.

Cheers,

Bryan
Re: Building Gingerbread on OS X Lion Bryan Hinton 8/29/11 12:33 AM
Good evening,
I was able to successfully build everything, including the emulator,
on OS X Lion this evening.
I also ran and tested the emulator.

Here are the instructions for building Android (master) on OS X 10.7+.

1) Install XCode 4.1.1 from the Apple App store. If you need to re-
install it, search for "XCode install" in spotlight and then launch
the installer.  Leave the default installation location - "/Developer"

2) Download XCode 3.2.4 for Mac OS X 10.6 and iOS 4.1.  This can be
obtained for free from the Mac Developer connection via the Developer
Tools Downloads page.  You will need this as it contains the OS X 10.4
Universal SDK and the OS X 10.5 SDK.
After downloading, run the installer. Choose custom installation and
ensure that the 10.4u.sdk option is selected.
Set the installation folder to /Developer324

3) From a terminal:
    $ sudo cp -R /Developer324/SDKs/MacOSX10.4u.sdk /Developer/SDKs
    $ sudo cp -R /Developer324/SDKs/MacOSX10.5.sdk /Developer/SDKs

4) Four directories should now reside in /Developer/SDKs
    $ ls -l /Developer/SDKs
    MacOSX10.4u.sdk        MacOSX10.5.sdk        MacOSX10.6.sdk        MacOSX10.7.sdk

5) My environment is standard. I'm using the prebuilt arm toolchain in
prebuilt/ with CROSS_COMPILE set appropriately, ARCH is set to arm,
and I'm using the latest llvm-gcc 4.2 build from XCode 4.1.1

6) You can test things out as follows:
     $ cd ~/android/external/qemu/
     $ ./android-configure.sh
     $ make

Last of all, in external/elfutils/config-compat-darwin.h, the
following built-in gcc preprocessor macro should take care of the
strnlen redefinition problem from /usr/include/string.h on OS X >=
10.7.
#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070
static inline strneln(...) ...
#endif
Or the header include path order can be changed as mentioned in the
above post.
Re: Building Gingerbread on OS X Lion Bryan Hinton 8/30/11 12:37 PM
Correction to the procedure below for building Gingerbread on OSX Lion
(10.7+).

If you install XCode 4.1 first and then you install XCode 3.2.4
(choose /Developer324 as install location), the installer will place
the resulting gcc binaries in the relevant folders - /Developer324 for
XCode 3.2.4 and /Developer for XCode 4.1.
Given that XCode 3.2.4 was installed after 4.1, the resulting llvm-gcc
binary that is installed in your system path will be the prior version
that was shipped with XCode 3.2.4.  It is this version that you will
need to use in order to build qemu, including libsdl.
When you install the XCode 4.1.1 update OR you install XCode 4.1.1
after you install XCode 3.2.4, then the latest gcc binaries will be
symlinked in /usr/bin respectively.  In this case, you must set the CC
environment variable upon building qemu and prior to running android-
configure.sh. The following commands show how I have it setup and
working.

Here are the commands to determine the proper version of gcc to use
for building qemu

# prior version works (xcode 3.2.4)
~ $ /Developer324/usr/bin/llvm-gcc-4.2 --version
i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2326.10)

# latest version does not work (xcode 4.1.1)
~ $ /Developer/usr/bin/llvm-gcc-4.2 --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2335.15.00)

# latest version installed in /usr/bin so we need to set CC when
building qemu
~ $ /usr/bin/gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2335.15.00)
~/android/external/qemu $ export CC=/Developer323/usr/bin/llvm-gcc-4.2

Last of all, the Xcode 4.1.1 update removes the /Developer/SDKs/
MacOSX10.4u.sdk and /Developer/SDKs/MacOSX10.5.sdk folders to you'll
need to symlink them or copy them to /Developer324/SDKs respectively.

Makefile fixes to come so you won't have to mess with any of this...
Re: [android-building] Re: Building Gingerbread on OS X Lion Brandon Trussell 8/30/11 3:52 PM
Submitted a change request for the strnlen implementation issue.  Just wanted to do it in order to learn some git/repo commands.
https://review.source.android.com/#/c/25863/

-BT
Re: Building Gingerbread on OS X Lion riazrahaman 9/19/11 9:09 AM
Uninstall xcode 4.* and install Xcode 3.2.6 fixed the problem.

Will there be any issues with using Xcode 3.2.6 on LION?

Riaz

On Aug 31, 3:52 am, Brandon Trussell <brandon...@gmail.com> wrote:
> Submitted a change request for the strnlen implementation issue.  Just
> wanted to do it in order to learn some git/repo commands.https://review.source.android.com/#/c/25863/
>
> -BT
> ...
>
> read more »
Re: Building Gingerbread on OS X Lion Andrew Coutts 11/15/11 10:24 AM
Xcode 3.2.6 did not fix the problem on my macbook:

2009 Model
OS X 10.7.2
2.26GHz Core 2 Duo

Same error about 10.5 support. I remember checking the option to
install 10.5 sdk support when I installed xcode too... going to try re-
installing it again.
> > > > > > > > > > I will go back to Lion when it will be more stable and...
>
> read more »
Re: Building Gingerbread on OS X Lion Andrew Coutts 11/15/11 12:06 PM
Just as a correction - after doing this step, I was able to
successfully compile on 10.7 (Lion):

3) From a terminal:
    $ sudo cp -R /Developer324/SDKs/MacOSX10.4u.sdk /Developer/SDKs
    $ sudo cp -R /Developer324/SDKs/MacOSX10.5.sdk /Developer/SDKs

[replace Developer324 with whatever folder Xcode is installed to, mine
was Developer-3.2.6]


So I guess the fix is:

- install xcode 3
- do step 3 mentioned above
> > > > > > > > > > > /var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:...
>
> read more »
Re: [android-building] Re: Building Gingerbread on OS X Lion Mike Pontillo 11/15/11 1:50 PM
FYI,

   You can actually get away with doing "ln -s" instead of "cp -R" to save some disk space.

Regards,
Mike

>
> read more »

--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

Re: Building Gingerbread on OS X Lion Shell Shrader 11/19/11 8:48 PM
All I had to do was link back to the 10.5 SDK that was in my Developer-
old dir that all my pre-Lion xCode 3 stuff was moved to when I
upgraded.  ICS built no problem.  Thanks for the pointers.

On Nov 15, 4:50 pm, Mike Pontillo <ponti...@gmail.com> wrote:
> FYI,
>
>    You can actually get away with doing "ln -s" instead of "cp -R" to save
> some disk space.
>
> Regards,
> Mike
>
> On Tue, Nov 15, 2011 at 12:06 PM, Andrew Coutts
> <andrewjohncou...@gmail.com>wrote:> > > > > > > > > > previous commentators.  I commented the whole android.mkfile that> ...
>
> read more »

Re: Building Gingerbread on OS X Lion Shell Shrader 11/19/11 8:50 PM
disregard prior post ... this is a GB thread

On Nov 15, 4:50 pm, Mike Pontillo <ponti...@gmail.com> wrote:
> FYI,
>
>    You can actually get away with doing "ln -s" instead of "cp -R" to save
> some disk space.
>
> Regards,
> Mike
>
> On Tue, Nov 15, 2011 at 12:06 PM, Andrew Coutts
> <andrewjohncou...@gmail.com>wrote:> > > > > > > > > > previous commentators.  I commented the whole android.mkfile that> ...
>
> read more »

Re: Building Gingerbread on OS X Lion Shell Shrader 11/21/11 3:15 PM
Correction (even though I know I'm OT) -- My ICS build eventually
failed.  Nothing to see here, move along.

On Nov 19, 11:48 pm, Shell Shrader <shelld...@gmail.com> wrote:
> All I had to do was link back to the 10.5 SDK that was in my Developer-
> old dir that all my pre-LionxCode 3 stuff was moved to when I> > > > > > > > on OS XLionthis evening.> > > > > > > > > > So in essence, if you want to build onLionyou patch the> ...
>
> read more »

Re: Building Gingerbread on OS X Lion barrett 11/29/11 12:20 PM
To get GB (and probably ICS I'm verifying this now) to build on Lion.
this is what I have done:

I followed these instructions:
http://anatomicwax.tumblr.com/post/8064949186/installing-xcode-3-2-6-on-lion-redux

to get XCode 3.2.6 installed. I haven't yet installed 4 (I will
shortly) but I was able to build GB.

I'll post an update when I have more details.

On Nov 19, 9:48 pm, Shell Shrader <shelld...@gmail.com> wrote:
> All I had to do was link back to the 10.5 SDK that was in my Developer-
> old dir that all my pre-LionxCode 3 stuff was moved to when I> > > > > > > > on OS XLionthis evening.> > > > > > > > > > So in essence, if you want to build onLionyou patch the> ...
>
> read more »

Re: Building Gingerbread on OS X Lion Jace 12/5/11 8:16 AM
I got following ERROR

ChoonSik-ui-iMac:android choonsik$ cd external/qemu
ChoonSik-ui-iMac:qemu choonsik$ ./android-configure.sh 
OPTION_CC=''
Check32Bits: Forcing generation of 32-bit binaries (--try-64 to disable)
ANDROID_TOP found at /Volumes/android
Prebuilt   : ANDROID_PREBUILT=/Volumes/android/prebuilt/darwin-x86
Targets    : TARGETS= /Volumes/android/out/host/darwin-x86/bin/emulator
Tools      : Found tools revision number 16
GLES       : Probing for headers
GLES       : Headers in /Volumes/android/development/tools/emulator/opengl/host/include
GLES       : Probing for host libraries
GLES       : Libs in /Volumes/android/out/host/darwin-x86/lib
ERROR: Missing OpenGLES emulation host library: /Volumes/android/out/host/darwin-x86/lib/libOpenglRender.dylib
Please fix this by using --gles-libs to point to the right directory!
ChoonSik-ui-iMac:qemu choonsik$ 

Re: [android-building] Re: Building Gingerbread on OS X Lion Jean-Baptiste Queru 12/5/11 8:39 AM
Gingerbread is much too old to build out of the box on Lion. I believe
that the master branch might somewhat work, though not quite entirely.

JBQ

On Mon, Dec 5, 2011 at 8:16 AM, Jace <choo...@gmail.com> wrote:
> I got following ERROR
>>
>> ChoonSik-ui-iMac:android choonsik$ cd external/qemu
>> ChoonSik-ui-iMac:qemu choonsik$ ./android-configure.sh
>> OPTION_CC=''
>> Check32Bits: Forcing generation of 32-bit binaries (--try-64 to disable)
>> ANDROID_TOP found at /Volumes/android
>> Prebuilt   : ANDROID_PREBUILT=/Volumes/android/prebuilt/darwin-x86
>> Targets    : TARGETS= /Volumes/android/out/host/darwin-x86/bin/emulator
>> Tools      : Found tools revision number 16
>> GLES       : Probing for headers
>> GLES       : Headers in
>> /Volumes/android/development/tools/emulator/opengl/host/include
>> GLES       : Probing for host libraries
>> GLES       : Libs in /Volumes/android/out/host/darwin-x86/lib
>> ERROR: Missing OpenGLES emulation host library:
>> /Volumes/android/out/host/darwin-x86/lib/libOpenglRender.dylib
>> Please fix this by using --gles-libs to point to the right directory!
>> ChoonSik-ui-iMac:qemu choonsik$
>
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Re: [android-building] Re: Building Gingerbread on OS X Lion David Herges 3/9/12 4:05 PM

On Monday, 5 December 2011 17:39:32 UTC+1, Jean-Baptiste Queru wrote:
Gingerbread is much too old to build out of the box on Lion. I believe
that the master branch might somewhat work, though not quite entirely.

Yeah, that old that two-third of all Android devices are running it...

So is there any other way past the SDL error other than Xcode 3? Was anything changed in the git repositories in the meantime?

Re: [android-building] Building Gingerbread on OS X Lion Al Sutton 3/12/12 11:14 AM
Gingerbreads release pre-dates Lions by about 7 months, and once a release has been made changes to build scripts are very rare.

I've been working on the master branch, Xcode 4, and Lion, so feel free to check those out and use the patch at https://android-review.googlesource.com/33101 which is enough to build a working image for the Galaxy Nexus. The emulator won't work post compilation, which is something that I've unfortunately not had time to look at in any detail.

Al.
-- 
Al Sutton - Funky Android Ltd.
T: @alsutton  

The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. 

--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

Re: [android-building] Building Gingerbread on OS X Lion David Herges 3/13/12 5:16 AM
Hi Al,

this is great work, really. unfortunately, it didn't work for me. I have a feeling that the problem is not with your patch for the build system, but gcc and cc seem to be shortcuts for the same apple-...-llvm compiler; the problem you stated in https://groups.google.com/forum/?fromgroups#!topic/android-building/63QR-NxnsoY

I now went back to a backup copy of an old build and avoid rebuilding c/c++ system libraries. All I do, is partially building framework and libcore and that seems to work.

Cheers,
David
Re: [android-building] Building Gingerbread on OS X Lion Al Sutton 10/23/12 10:33 PM
That looks like your external disk unmounted itself (possibly going to sleep).

Al.
-- 
Al Sutton - Funky Android Ltd.

T: @alsutton  

The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. 

On 23 Oct 2012, at 21:54, Heaven Chen <yc15...@gmail.com> wrote:

Hi

After I follow the instruction and have osx sdk 10.5 installed, it seemed working until I hit this error:

target Prebuilt: libarity (out/target/product/crespo/obj/JAVA_LIBRARIES/libarity_intermediates/javalib.jar)
Target userdata fs image: out/target/product/crespo/userdata.img
/bin/bash: Image/nfc-card-emu/out/host/darwin-x86/bin:/Volumes/Disk: No such file or directory
make: *** [out/target/product/crespo/userdata.img] Error 127
make: *** Waiting for unfinished jobs....

I am quite new to android development so I don't really understand what the problem is. I tried to google the specific problem but didn't find anything. My mac doesn't have much space left so I created a case-sensitive file system disk image on an external hard drive for the process. I am not sure if that is the problem. Can anyone can give me some suggestions of this problem?

Thanks
Heaven

On Monday, August 29, 2011 2:33:31 AM UTC-5, Bryan Hinton wrote:
Good evening,
I was able to successfully build everything, including the emulator,
on OS X Lion this evening.
I also ran and tested the emulator.

Here are the instructions for building Android (master) on OS X 10.7+.

1) Install XCode 4.1.1 from the Apple App store. If you need to re-
install it, search for "XCode install" in spotlight and then launch
the installer.  Leave the default installation location - "/Developer"

2) Download XCode 3.2.4 for Mac OS X 10.6 and iOS 4.1.  This can be
obtained for free from the Mac Developer connection via the Developer
Tools Downloads page.  You will need this as it contains the OS X 10.4
Universal SDK and the OS X 10.5 SDK.
After downloading, run the installer. Choose custom installation and
ensure that the 10.4u.sdk option is selected.
Set the installation folder to /Developer324

3) From a terminal:
    $ sudo cp -R /Developer324/SDKs/MacOSX10.4u.sdk /Developer/SDKs
    $ sudo cp -R /Developer324/SDKs/MacOSX10.5.sdk /Developer/SDKs

4) Four directories should now reside in /Developer/SDKs
    $ ls -l /Developer/SDKs
    MacOSX10.4u.sdk        MacOSX10.5.sdk        MacOSX10.6.sdk        MacOSX10.7.sdk

5) My environment is standard. I'm using the prebuilt arm toolchain in
prebuilt/ with CROSS_COMPILE set appropriately, ARCH is set to arm,
and I'm using the latest llvm-gcc 4.2 build from XCode 4.1.1

6) You can test things out as follows:
     $ cd ~/android/external/qemu/
     $ ./android-configure.sh
     $ make

Last of all, in external/elfutils/config-compat-darwin.h, the
following built-in gcc preprocessor macro should take care of the
strnlen redefinition problem from /usr/include/string.h on OS X >=
10.7.
#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070
static inline strneln(...) ...
#endif
Or the header include path order can be changed as mentioned in the
above post.


On Aug 23, 3:20 pm, Bryan Hinton <bryan.hin...@gmail.com> wrote:
> It looks like there is some new posix stuff in 10.7+.  I will be
> submitting a patch for this.
> Also, I'll post my environment when done.
>
> Cheers,
>
> Bryan
>
> On Aug 23, 2:07 pm, Fredrik Duprez <fred...@duprez.org> wrote:
>
>
>
>
>
>
>
> > I figured out the problem for everything but the emulator.
>
> > I found this post:http://groups.google.com/group/android-building/msg/d4730b36e861569d
>
> > So then I just put the homebrew stuff (/usr/local/bin) last in $PATH,
> > letting the Mac use all stuff from apple toolchain first.
>
> > For building the third party ROM DevNull and Oxygen, you need to make
> > a symlink in /usr/local/bin from sed to gsed, since they explicitly
> > call gsed at one point. Also you have to add WITH_DEXPREOPT=false  at
> > the end of the make statement. Like so:
>
> > make -j8 devnull WITH_DEXPREOPT=false
>
> > So in essence, if you want to build on Lion you patch the makefiles
> > mentioned in this thread and put homebrew apps last in PATH and you
> > will be able to build for the real device at least.
>
> > On 22 Aug, 21:49, Brandon Trussell <brandon...@gmail.com> wrote:
>
> > > I got past the sdl errors by excluding the emulator as stated by one of the
> > > previous commentators.  I commented the whole android.mk file that was
> > > mentioned.
>
> > > On Sun, Aug 21, 2011 at 1:59 PM, Fredrik Duprez <fred...@duprez.org> wrote:
> > > > I'm having the same problem. Installed sdl with homebrew and put /usr/
> > > > local/lib first in PATH, but i suppose the libpath is read somewhere
> > > > else?
>
> > > > On 18 Aug, 05:25, BrandonT <brandon...@gmail.com> wrote:
> > > > > I've install libsdl & libsdl-devel package via ports.  How do I tell
> > > > > the android build process to use /opt/local/lib as a library
> > > > > location?  This should resolve this problem right?
>
> > > > > The problem seems to be the build process is only using default xcode
> > > > > library locations, which have pre-compiled versions of libsdl.
> > > > > They're precompiled for i386 however. <-- Not sure about this.
>
> > > > > Thanks,
> > > > > Brandon
>
> > > > > On Aug 12, 4:24 am, Francesco Donadon <nonn...@gmail.com> wrote:
>
> > > > > > Some updates.
>
> > > > > > Looks like that linking error is in the libSDL prebuilt package.
> > > > > > Although is should be possible to just download the sources
> > > > > > and compile them separately in your machine, its compilation fails.
>
> > > > > > I am reporting here the error messages, although it probably would
> > > > > > belong to another group/discussion, in case somebody else would just
> > > > > > happen to know some assembler :)
>
> > > > > > /var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
> > > > > > 1168:suffix or operands invalid for `movq'
> > > > > > /var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
> > > > > > 1829:suffix or operands invalid for `movq'
> > > > > > /var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
> > > > > > 2566:suffix or operands invalid for `movq'
> > > > > > /var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
> > > > > > 2836:suffix or operands invalid for `movd'
> > > > > > /var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
> > > > > > 2934:suffix or operands invalid for `movq'
> > > > > > /var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
> > > > > > 3884:suffix or operands invalid for `movq'
> > > > > > /var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
> > > > > > 4433:suffix or operands invalid for `movq'
> > > > > > /var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
> > > > > > 4992:suffix or operands invalid for `movq'
> > > > > > /var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
> > > > > > 5207:suffix or operands invalid for `movd'
> > > > > > /var/folders/x2/gmbz48kx5ml_g72ct64t3xv00000gn/T//ccTPt2z6.s:
> > > > > > 5307:suffix or operands invalid for `movq'
> > > > > > make: *** [build/SDL_RLEaccel.lo] Error 1
>
> > > > > > Reverting to XCode 3 makes the (Android) compilation work again for
> > > > > > all but the emulator, which still fails.
>
> > > > > > Commenting out all the lines in external/qemu/Android.mk makes the
> > > > > > building go well until the end.
>
> > > > > > Personally I'll revert back to Snow Leopard, as I cannot afford to
> > > > > > work in this unstable environment.
>
> > > > > > I will go back to Lion when it will be more stable and supported.
>
> > > > > > Francesco
>
> > > > > > On Aug 11, 2:27 pm, Francesco Donadon <nonn...@gmail.com> wrote:
>
> > > > > > > I'm having exactly the same problem (complaining about the wrong
> > > > > > > architecture in Lion).
>
> > > > > > > Did you manage to fix it somehow?
>
> > > > --
> > > > You received this message because you are subscribed to the "Android
> > > > Building" mailing list.
> > > > To post to this group, send email to android-...@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-buildi...@googlegroups.com
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-building?hl=en
>
> > > --
> > > Brandon

--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en