Git Product home page Git Product logo

Comments (5)

astefanutti avatar astefanutti commented on June 30, 2024

Your understanding is correct. PhantomJS static build on Linux is a long story as per ariya/phantomjs#12948. To work around that issue, you can either:

If the above does not work for you, I'll try to provide a binary for Ubuntu 15.15 ASAP.

Thanks for the feedback. You may want to share some love and star the project ;)

from decktape.

darribas avatar darribas commented on June 30, 2024

I've tried compiling PhantomJS unsuccessfully, here's the error I get after a while having my desktop full-speed:

collect2: error: ld returned 1 exit status
Makefile.jsc:98: recipe for target '../../bin/jsc' failed
make[2]: *** [../../bin/jsc] Error 1
make[2]: Leaving directory '/media/dani/baul/code/decktape/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore'
Makefile.JavaScriptCore:126: recipe for target 'sub-jsc-pro-make_first-ordered' failed
make[1]: *** [sub-jsc-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/media/dani/baul/code/decktape/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore'
Makefile:91: recipe for target 'sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered' failed
make: *** [sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2

I'd rather have it running natively as I have the creation of pdf's on scripts that run not only on Linux but of OSX and there it works well as it is, so I'd prefer to stick to a cross-platform codebase.

Do you have any suggestions? I basically installed all the dependencies mentioned in the PhantomJS website:

sudo apt-get install build-essential g++ flex bison gperf ruby perl \
  libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
  libpng-dev libjpeg-dev python libx11-dev libxext-dev

Then from the decktape clone, I ran:

git submodule update --init --recursive

Navigated into the folder:

cd phantomjs

And ran the build script:

./build.sh

Note it's not ./build.py as indicated in your instructions. Maybe that's it? But I couldn't find the python script.

Happily starred the project ;-)

from decktape.

astefanutti avatar astefanutti commented on June 30, 2024

Have you pulled the latest revision of DeckTape? You should have the build.py script which is the most recent way of building PhantomJS. So that'd be better if you'd use that script.

Unfortunately the error that you faced doesn't ring a bell to me. You may search / reach out the PhantomJS project directly.

On my side, I'll try having a reproducible Ubuntu build with a Docker image ASAP so that we can compare the set of installed libraries.

from decktape.

darribas avatar darribas commented on June 30, 2024

Sorry my bad!!! I was on an older version. I pulled the latest and the greatest, run ./build.py and it worked!

Thanks very much for all the help and support!

from decktape.

astefanutti avatar astefanutti commented on June 30, 2024

Great!

I'll follow-up with the PhantomJS Linux static build issue. At some point, if no progress is made, I'll upload a specific binary for Ubuntu 15.15 as well.

In the meantime I think it's safe closing this issue.

from decktape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.