Subject:
[Crosswalk-dev] Build problem with Crosswalk for Android on Linux
From:
Roger Stringer <[email protected]>
Date:
05/30/2014 11:18 AM

To:
[email protected]


~/git/crosswalk/src/xwalk$ GYP_DEFINES="OS=android" gclient runhooks

~/git/crosswalk/src/xwalk$ cd ..

~/git/crosswalk/src$ ninja -C out/Release xwalk

~/git/crosswalk/src$ ./xwalk/build/android/envsetup.sh

~/git/crosswalk/src$ export GYP_GENERATORS='ninja'

~/git/crosswalk/src$ python xwalk/gyp_xwalk -Dmediacodecs_EULA=1 -Dtarget_arch=arm
Traceback (most recent call last):
  File "xwalk/gyp_xwalk", line 454, in <module>
    vs2013_runtime_dll_dirs = vs_toolchain.DownloadVsToolchain()
AttributeError: 'module' object has no attribute 'DownloadVsToolchain'

========================

Platform:  Ubuntu 14.04 in 64 bit mode
Settings:
XWALK_OS_ANDROID=1
XWALK_DIR=$HOME/git/crosswalk
ANDROID_HOME=$HOME/adt-bundle-linux-x86_64-20130917/sdk

========================

Commentary:

vs_toolchain.DownloadVsToolchain() is a function which returns a string value, later tested to be non-empty to determine where gyp_xwalk should call vs_toolchain.CopyVsRuntimeDlls(...)

However the function is missing from my version of vs_toolchain.py

It looks like vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs() returns the correct value, which appears to be None on a Linux build. Not surprisingly, a function call containing "Dll" appears to be win32 specific. :-)

Question (1): Am I safe to skip this part of the build process and hard code a None return value because
   I'm using Linux?

Question (2): Are there pre-built versions of Crosswalk with media activated, so I can avoid having to build
  from source?


Update:  I'm trying to build crosstalk-6 with full media activated.

Having hardcoded a solution to Q#1, I now hit a compiler problem:

   ../../third_party/tcmalloc/chromium/src/libc_override_gcc_and_weak.h:97:51:
   error: declaration of C function 'size_t malloc_usable_size(void*)'
   conflicts with
   
/home/roger/git/crosswalk/src/third_party/android_tools/ndk//platforms/android-14/arch-arm/usr/include/malloc.h:36:15:
   error: previous declaration 'size_t malloc_usable_size(void const*)'
   here
   [2918/11196] ACTION make_core_generated:
   CSSValueKeywords_b4f6869119f466a1edf793e3126ba2f0
   ninja: build stopped: subcommand failed.

This occurs regardless of whether the build target is 'arm' or 'x86'

If I remove media build flag, it fails at a different point:

   zipfile.BadZipfile: File is not a zip file
   [2332/11196] ACTION Creating dex file: lib.java/jsr_305_javalib.dex.jar
   FAILED: cd ../../third_party/jsr-305; python
   ../../build/android/gyp/dex.py
   "--dex-path=../../out/Release/lib.java/jsr_305_javalib.dex.jar"
   
"--android-sdk-tools=/home/roger/git/crosswalk/src/third_party/android_tools/sdk//build-tools/19.0.0"
   "--configuration-name=Release" "--proguard-enabled=false"
   "--proguard-enabled-input-path=" "--no-locals=0"
   ../../out/Release/lib.java/jsr_305_javalib.jar
   Traceback (most recent call last):
      File "../../build/android/gyp/dex.py", line 58, in <module>
        sys.exit(main())
      File "../../build/android/gyp/dex.py", line 54, in main
        DoDex(options, paths)
      File "../../build/android/gyp/dex.py", line 28, in DoDex
        input_strings=dex_cmd)
      File
   "/home/roger/git/crosswalk/src/build/android/gyp/util/md5_check.py",
   line 30, in CallAndRecordIfStale
        function()
      File "../../build/android/gyp/dex.py", line 25, in <lambda>
        lambda: build_utils.CheckOutput(dex_cmd, print_stderr=False),
      File
   "/home/roger/git/crosswalk/src/build/android/gyp/util/build_utils.py",
   line 113, in CheckOutput
        raise CalledProcessError(cwd, args, stdout + stderr)
   util.build_utils.CalledProcessError: Command failed: ( cd
   /home/roger/git/crosswalk/src/third_party/jsr-305;
   
/home/roger/git/crosswalk/src/third_party/android_tools/sdk//build-tools/19.0.0/dx
   --dex --force-jumbo --output
   ../../out/Release/lib.java/jsr_305_javalib.dex.jar
   ../../out/Release/lib.java/jsr_305_javalib.jar )

   UNEXPECTED TOP-LEVEL EXCEPTION:
   java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at
   
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
        at
   com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
        at
   com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
        at com.android.dx.command.dexer.Main.processOne(Main.java:596)
        at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
        at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
        at com.android.dx.command.dexer.Main.run(Main.java:230)
        at com.android.dx.command.dexer.Main.main(Main.java:199)
        at com.android.dx.command.Main.main(Main.java:103)
   1 error; aborting

   [2332/11196] CXX obj.host/v8/src/v8_nosnapshot.arm.snapshot-empty.o
   ninja: build stopped: subcommand failed.

I must admit to being surprised to run into these compile and build issues on what should be a reasonably stable source code base.


_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to