latexpp
latexpp copied to clipboard
Version of V8 working
Hello,
I just compiled and linked the static library of google V8. However I get some errors of undefined functions for example auto context = v8::Context::New(_isolate); in latex.cpp gives the error expected unqualified-id before ‘new’
I wonder if my version of V8 is too new and latexpp has deprecated functions
Thank you
You can find the version I used to compile this in https://github.com/goldsborough/latexpp/blob/master/examples/image/Makefile
Thanks for your help. I found the problem, I didn't include in a right way the v8 libraries which have a circular dependency.
Althrough, importing latexpp with a newer version of V8 compile but make it crash at launch ! It misses an initializer for newer version of V8
v8::V8::InitializeExternalStartupData(argv[0]);Check this
I had a problem that was that katex was not found.
I ended up hardcoding local path of katex in the latex::to_complete HTML
html += "
I also had problems of dependency hell due to wktohtml using newer version of libpng and libjpeg than my gui toolkit Wx.
I ended up implementing bmp generation of image as the same way latexpp generate jpeg, png and svg. That is a really easy implementation as wkhtmltoimage can already export to bmp format.
I suggest implementing thoses fix to the project. (plus the v8 initialization fix).
Thanks for this wonderfull library !
Sounds great. Feel free to send a pull request with your changes and bmp support if you like :)
Hi @florian-jean,
Do you have a repository with your modifications?
Thank you
Don't need the 4.5.103.35 version. Just the latest is good. Because the old version is hard to build