Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add phantomjs binary for Linux on armhf #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mecrazy
Copy link

@mecrazy mecrazy commented May 27, 2016

Built on Debian Jessie(8.4) armhf

Built on Debian Jessie(8.4) armhf
@avaynshtok
Copy link
Owner

Nice, thanks for this. Can you make the file executable? I'll merge once that's done.

Also, I tried this out and had to install libicu on my box to get this binary to run. I think this is ok given this comment on the phantom tracker.

@mecrazy
Copy link
Author

mecrazy commented Jul 15, 2016

( I guess deploy/docker-build.sh was wrote when the latest Debian was wheezy. So I think it is not easy for me to build phantomjs on Debian jessie, but )

I tried steps on deploy/docker-build.sh, and it was failed on Debian jessie many times ...

ldd result on jessie is

# ldd ./phantomjs
        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb6ee8000)
        libsqlite3.so.0 => /usr/lib/arm-linux-gnueabihf/libsqlite3.so.0 (0xb6e5f000)
        libfontconfig.so.1 => /usr/lib/arm-linux-gnueabihf/libfontconfig.so.1 (0xb6e27000)
        libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0xb6db2000)
        libssl.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0 (0xb6d69000)
        libcrypto.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 (0xb6c42000)
        libicui18n.so.52 => /usr/lib/arm-linux-gnueabihf/libicui18n.so.52 (0xb6aea000)
        libicuuc.so.52 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.52 (0xb69de000)
        libicudata.so.52 => /usr/lib/arm-linux-gnueabihf/libicudata.so.52 (0xb5362000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb534f000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb5338000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb5315000)
        libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb525e000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb51ea000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb51c1000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb50d0000)
        /lib/ld-linux-armhf.so.3 (0x7f565000)
        libexpat.so.1 => /lib/arm-linux-gnueabihf/libexpat.so.1 (0xb50a8000)
        libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0xb507f000)

( Even if I replace versions of OpenSSL and ICU for jessie's current ones, change target-architecture of OpenSSL and manually compile them. )

If I try same procedure on Debian wheezy, it was also failed.
ldd result on wheezy is

# ldd ./phantomjs
        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x402ae000)
        libfontconfig.so.1 => /usr/lib/arm-linux-gnueabihf/libfontconfig.so.1 (0x40095000)
        libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0x400c1000)
        libssl.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0 (0x40164000)
        libcrypto.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 (0x402c7000)
        libicui18n.so.48 => /usr/lib/arm-linux-gnueabihf/libicui18n.so.48 (0x403e6000)
        libicuuc.so.48 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.48 (0x40586000)
        libicudata.so.48 => /usr/lib/arm-linux-gnueabihf/libicudata.so.48 (0x406d9000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x40125000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x40130000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x4020c000)
        libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x41851000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x40227000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x401a5000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x418fc000)
        /lib/ld-linux-armhf.so.3 (0x40076000)
        libexpat.so.1 => /lib/arm-linux-gnueabihf/libexpat.so.1 (0x4013f000)

I don't know how to use docker, but I guess there is no docker for ARM CPU.
I am not good at building application sorry.

Would you know correct procedure to build on Debian without docker and include icu library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants