[cross]compiling chromedriver for RaspberryPi B+

1,002 views
Skip to first unread message

arg...@gmail.com

unread,
Apr 9, 2015, 5:32:05 AM4/9/15
to chromedri...@googlegroups.com
Hi group!

I'm trying to get chromedriver to run on a Raspberry Pi B+ (ARMv6 arch) with Raspbian OS.

I'm trying to cross-compile the project to that arch from my ubuntu x64. However I don't seem to be passing the correct flags (or I'm doing something else wrong) as I manage to compile the binary but I get an "Illegal instruction" error when executing it on the RPi.


I'm following this guide here:
https://code.google.com/p/chromium/wiki/LinuxChromiumArm

but just trying to build chromedriver only (i.e.: ninja -C out/Release chromedriver). So, basically the steps I'm following are:

1. Install all the dependencies specified in the guide
2. export GYP_CROSSCOMPILE=1
2. Try different values for GYP_DEFINES
3. Run: gclient sync
4. ninja -C out/Release chromedriver
5. execute the compiled binary on the RaspberryPi

I've tried several values for GYP_DEFINES with no luck, like these:

GYP_DEFINES="target_arch=arm disable_nacl=1 linux_use_tcmalloc=0 armv6=1 arm_thumb=0 use_libjpeg_turbo=0 arm_float_abi=hard"

GYP_DEFINES="OS=linux target_arch=arm arm_version=6 arm_float_abi=hard"

GYP_DEFINES="target_arch=arm arm_float_abi=hard"

These are the CPU details on the RaspberryPi:

pi@raspberrypi ~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 2.00
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

Hardware : BCM2708
Revision : 0010
Serial : 000000003ce5d9f7


Can anyone help me?

Thanks!!!!


Seba.

ron.b...@gmail.com

unread,
Jun 2, 2015, 3:03:52 PM6/2/15
to chromedri...@googlegroups.com, arg...@gmail.com
Hi Seba ... did you ever get this to work ? I think that I'me trying to do the same as yourself i.e. 'scrape' websites using Python via ChromeDrover and Chrome on Raspberry PI. I've got the same thing running on a Mac but would like to port it to the Rpi. I only started to use the pi a few hours ago but after some good progress, I seem to have hit this hardstop.
Could you let me know if this is worth proceeding with pls ?

Thanks
Ron

Seba

unread,
Jun 4, 2015, 3:18:27 AM6/4/15
to ron.b...@gmail.com, chromedri...@googlegroups.com
Hi Ron,

     Unfortunatelly I had only a couple of days to work on that, and I was not able to keep trying. However, for scraping with python I would suggest you use:
  * BeatifulSoup (http://www.crummy.com/software/BeautifulSoup/) if you don't need to execute JS, but just scrape the sites' htmls
  * PhantomJS (http://phantomjs.org/): You can use selenium with a phantomjs driver. Apparently it can be run on a Raspberry Pi: https://github.com/aeberhardo/phantomjs-linux-armv6l

Good luck!
Reply all
Reply to author
Forward
0 new messages