Simplest Procedure to build for iOS / iPhone/iPad

453 views
Skip to first unread message

Nirav Bhagat

unread,
Nov 5, 2012, 11:02:09 AM11/5/12
to chromi...@chromium.org
Hi,
I have been struggling to get the build for iOS.

I have downloaded the depot_tools and set the environment variables for PATH.
My gclient file looks like this 
solutions = [
  { "name"        : "src",
    "url"         : "http://git.chromium.org/chromium/src.git",
    "deps_file"   : ".DEPS.git",
    "managed"     : True,
    "custom_deps" : {
    "src/third_party/WebKit/LayoutTests": None,
    "src/content/test/data/layout_tests/LayoutTests": None
    },
    "safesync_url": "",
  },
]
target_os= ['iOS']
target_os_only = True

After that on the MAC Terminal i do "
  • gclient sync --deps ios
Also added the chromium.gyp_env file with the same contents as given at http://www.chromium.org/developers/how-tos/build-instructions-ios

It starts the download of some huge number of files and then it fails. 

I have MAC 10.7.5 and XCode 4.5

Regards,
Nirav

Eric Noyau

unread,
Nov 5, 2012, 11:23:06 AM11/5/12
to nilavya, Chromium-dev
What is the failure error message you are experiencing?

-- Eric



--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Nirav Bhagat

unread,
Nov 6, 2012, 8:15:55 AM11/6/12
to chromi...@chromium.org, nilavya
I tried using a source tar ball.
Ran the command gclient runhooks and the xcode files are generated.

When I reported the issue at that time the xcode files were not generated (not sure about the reason).

Now I have started the compilation of the project and I see the terminal stuck at some "message_pump_libevent.o".

I have a 4GB RAM, could you provide any insights into how much time does it take normally to compile?

Thanks.

Stuart Morgan

unread,
Nov 6, 2012, 8:32:48 AM11/6/12
to nil...@gmail.com, chromium-dev
2012/11/6 Nirav Bhagat <nil...@gmail.com>
I tried using a source tar ball.

The iOS instructions specifically say not to; I have no idea whether it works as it's unlikely that anyone has ever tried.

Also, I see in your original email you said you have "target_os= ['iOS']"; this isn't correct, since the value should be ['ios'], like it says in the instructions. Your DEPS pull may very well be incorrect.
 
I have a 4GB RAM, could you provide any insights into how much time does it take normally to compile?

Compiling Chromium with only 4GB of RAM is likely to take a long time. But if your issue is that the compile hangs, then you presumably have a local toolchain or machine issue of some kind, so it's unlikely anyone is going to be able to help.

-Stuart

Nirav Bhagat

unread,
Nov 6, 2012, 9:01:20 AM11/6/12
to chromi...@chromium.org, nil...@gmail.com
Thanks Stuart. 

I tried with gclient sync and it took too much time so I thought to try with source tarball.
And also a good catch, I have changed my gclient file to ios instead of iOS. 

Regards,
Nirav

Nirav Bhagat

unread,
Nov 6, 2012, 11:45:06 AM11/6/12
to chromi...@chromium.org, nil...@gmail.com
Hi Again,

I did the changes and ran the command gclient sync and it gives the errror. I have attached the terminal output for the same.

Regards,
Nirav
Terminal Saved Output.txt

Stuart Morgan

unread,
Nov 6, 2012, 12:07:30 PM11/6/12
to nilavya, chromium-dev
skia_webkit.gyp isn't a dependency on iOS, so your gyp generation is not doing iOS gyp generation. Most likely you didn't set up your chromium.gyp_env correctly, which is where the OS setting for gyp is specified. Check the instructions again against what you have locally.

If you are still having trouble after that, I'd suggest starting over with a new tree and following the instructions more carefully; everything there is there for a reason, and so far you've had a number of places where you did something different than the instructions. It's hard for people on this list to debug a setup that isn't a supported configuration because it isn't based on the instructions.

-Stuart


2012/11/6 Nirav Bhagat <nil...@gmail.com>

--

Nirav Bhagat

unread,
Nov 8, 2012, 12:30:20 PM11/8/12
to chromi...@chromium.org, nilavya
I started from scratch again and followed each and every step as mentioned.

Below are my gclient file and environment file contents.

solutions = [
  { "name"        : "src",
    "url"         : "https://src.chromium.org/chrome/trunk/src",
"custom_deps": {      
    "src/third_party/WebKit/LayoutTests": None,
   "src/content/test/data/layout_tests/LayoutTests": None,
   "src/chrome/tools/test/reference_build/chrome_win": None,
   "src/chrome_frame/tools/test/reference_build/chrome_win": None,
   "src/chrome/tools/test/reference_build/chrome_linux": None,
   "src/chrome/tools/test/reference_build/chrome_mac": None,
   "src/third_party/hunspell_dictionaries": None,
  },
    "deps_file"   : "DEPS",
    "managed"     : True,
    "custom_deps" : {
    },
    "safesync_url": "",
  },
]
target_os = ['ios']
target_os_only = True


{
  'GYP_DEFINES': 'OS=ios', # use space to delimit additional defines.
  'GYP_GENERATOR_FLAGS': 'xcode_project_version=3.2',
}

Now its almost 2days I have been struggling to download /sync the source code. Not sure why?

There are some disconects in network while syncing, does it always start from scratch or it continues on restoration of network?

Many a times the terminal window seems hung and no progress is displayed and finally I have to restart the terminal and do the syncing again.

Regards,
Nirav

Mustafizur Rahaman

unread,
Nov 8, 2012, 1:40:45 PM11/8/12
to nil...@gmail.com, chromi...@chromium.org
I am not sure about MAC, but on Windows I have faced this problem that if your network connection stops in between, your terminal might hang/your source code will not be properly synced. so, either your gclient sync will fail or you would get compilation issue.

I would suggest better to use GIT in stead of SVN as I never faced any such problem in GIT
Thanks,
Rahaman

Eric Noyau

unread,
Nov 8, 2012, 1:47:14 PM11/8/12
to Nirav Bhagat, Chromium-dev
It is stopping at the gyp generation or is it still downloading code?

run the following command and let it run. If there is an error, send us the log. If it just hangs send us the last lines of the log.

gclient sync --vv -j 1 -deps ios

Milan Broum

unread,
Nov 8, 2012, 1:59:47 PM11/8/12
to no...@chromium.org, Nirav Bhagat, Chromium-dev
fixing a typo:
gclient sync -vv -j 1 --deps ios


 Milan

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902
Reply all
Reply to author
Forward
0 new messages