Hi,

I downloaded the code via my mac till it wrote "finished” (total ~21GB).
The reason I downloaded to my mac is because I am using Ubuntu 14 as a guest 
machine and when I tried to fetch the code via the virtual machine its stops 
after 6 hours with an error.

So I download the code via the Mac with a shared folder that Ubuntu can use it.

The following steps I did:

1. Ubuntu_Setup: 
https://code.google.com/p/chromium/wiki/LinuxBuildInstructionsPrerequisites#Ubuntu_Setup
2. Next to the .gclient file,  Configure GYP : ~/crosswalk-src$ echo "{ 
'GYP_DEFINES': 'OS=android', }" > chromium.gyp_env
3. Install Java JDK: : ~/crosswalk-src $ sudo apt-get install openjdk-7-jdk
4. Install build dependencies : 
~/crosswalk-src/src/build/install-build-deps-android.sh
  Here I got that no need to upgrade but with one error (The following 
directory is exist: java-1.7.0-openjdk-i386)
.
.
.
openjdk-7-jdk is already the newest version.
openjdk-7-jre is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 351 not upgraded.
ERRORS: Failed to update alternatives for java-6-sun:
update-java-alternatives: directory does not exist: 
/usr/lib/jvm/java-1.7.0-openjdk-amd64
crosswalk-src$

When I wrote the following command: which java , I got /usr/bin/java


5. Install Google Play Services:  
src/third_party/android_tools/sdk/tools/android update sdk --no-ui --filter 57
I got the following warning:
Warning: The package filter removed all packages. There is nothing to install.
         Please consider trying to update again without a package filter.

I believe that it is OK because no error were there

6. Prepare the environment: src$ . build/android/envsetup.sh

7. Fetch depot_tools (did for both MAC and Ubuntu):
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:"$PATH”

8. Download the Crosswalk source: export XWALK_OS_ANDROID=1 (did for both MAC 
and Ubuntu):

In the MAC only :
fetch the code:

gclient config --name=src/xwalk \
git://github.com/crosswalk-project/crosswalk.git

gclient sync

* The download was in the MAC from the Shared folder , so the guest machine 
could see it.

9. Building Crosswalk for Android : sudo ./build/install-build-deps-android.sh
I got the same error as Step 4.

10. Next to the .gclient file,  Configure GYP : ~/crosswalk-src$ echo "{ 
'GYP_DEFINES': 'OS=android target_arch=ia32', }" > chromium.gyp_env
(This command override the previous step 2)

11.  Set up the Android build environment: . ./xwalk/build/android/envsetup.sh

12. Configure your setup to generate the Crosswalk projects:
export GYP_GENERATORS='ninja'
python xwalk/gyp_xwalk

And then I got the known error:

Updating projects from gyp files...
gyp: Error importing pymod_do_mainmodule (grit_info): No module named grit_info 
while trying to load /media/sf_sf_Shared/crosswalk-src/src/xwalk/xwalk.gyp
shahar@shahar-VirtualBox:/media/sf_sf_Shared/crosswalk-src/src$


What I am doing wrong?


Thanks,
Shahar



On Jun 3, 2015, at 1:30 PM, Raphael Kubo da Costa 
<[email protected]<mailto:[email protected]>> wrote:

Shahar Gluzman 
<[email protected]<mailto:[email protected]>> writes:
I downloaded the code to my MAC (~21GB) and tried to build it thru
Ubuntu 14.

I am getting the following error when I run the following command :

$ python xwalk/gyp_xwalk.py

gyp: Error importing pymod_do_mainmodule (grit_info): No module named
grit_info

What I am doing wrong?

Can you expand on what you mean by "downloaded the code to my mac and
tried to build it thru Ubuntu 14"? Which steps did you follow exactly,
and why not fetch the code from Linux directly?
_______________________________________________
Crosswalk-help mailing list
[email protected]<mailto:[email protected]>
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Confidentiality: The contents of this e-mail and any attachments transmitted 
with it are intended to be confidential to the intended recipient; and may be 
privileged or otherwise protected from disclosure. If you are not an intended 
recipient of this e-mail, do not duplicate or redistribute it by any means. 
Please delete it and any attachments and notify the sender that you have 
received it in error. This e-mail is sent by a William Hill PLC group company. 
The William Hill group companies include, among others, William Hill PLC 
(registered number 4212563), William Hill Organization Limited (registered 
number 278208), William Hill US HoldCo Inc, WHG (International) Limited 
(registered number 99191) and WHG Trading Limited (registered number 101439). 
Each of William Hill PLC, William Hill Organization Limited is registered in 
England and Wales and has its registered office at Greenside House, 50 Station 
Road, Wood Green, London N22 7TP. William Hill U.S. HoldCo, Inc. is 160 
Greentree Drive, Suite 101, Dover 19904, Kent, Delaware, United States of 
America. Each of WHG (International) Limited and WHG Trading Limited is 
registered in Gibraltar and has its registered office at 6/1 Waterport Place, 
Gibraltar. Unless specifically indicated otherwise, the contents of this e-mail 
are subject to contract; and are not an official statement, and do not 
necessarily represent the views, of William Hill PLC, its subsidiaries or 
affiliated companies. Please note that neither William Hill PLC, nor its 
subsidiaries and affiliated companies can accept any responsibility for any 
viruses contained within this e-mail and it is your responsibility to scan any 
emails and their attachments. William Hill PLC, its subsidiaries and affiliated 
companies may monitor e-mail traffic data and also the content of e-mails for 
effective operation of the e-mail system, or for security, purposes..
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to