| <<<Back 1 day (to 2017/01/13) | 20170114 |
vtorri | hey | 10:40.39 |
ghostbot | Welcome to #ghostscript, the channel for Ghostscript and MuPDF. If you have a question, please ask it, don't ask to ask it. Do be prepared to wait for a reply as devs will check the logs and reply when they come on line. | 10:40.39 |
vtorri | i want to integrate mupdf 1.9 in my project | 10:41.01 |
| but i already have several libraries that mupdf provides as third-party lib | 10:41.29 |
| that is : harfbuzz, jpeg, zlib and freetype | 10:41.56 |
| and openjpeg | 10:42.06 |
| is it possible to compile mupdf using the libraries I have instead of the third-party ones, by modifying mupdf Makefile's ? | 10:43.18 |
sh4rm4^bnc_ | hmm, since there's no function to load js function per name, maybe it'll work to 1) load js file with the named functions 2) when C event function is triggered, load a hardcoded javascript string that runs the named js func | 13:32.25 |
| vtorri, if your question is "can mupdf use system libs instead of their copies in its source tree", then the answer is "yes". | 13:48.23 |
| IIRC it picks them up automatically via pkg-config | 13:48.54 |
vtorri | sh4rm4^bnc_: no, it does not on my system (windows, MSYS2) | 14:30.02 |
| pkg-config --modversion zlib returns 1.2.8 | 14:30.16 |
| but mupdf compiles the zlib provided with it | 14:30.35 |
sh4rm4^bnc_ | oh ? let me check my build log | 14:54.48 |
vtorri | also : mingw-w64 as compiler | 14:55.48 |
| i just run : | 14:55.55 |
| make | 14:55.58 |
| that's all | 14:56.01 |
| no other environment definitions except to find .pc files | 14:56.35 |
sh4rm4^bnc_ | https://github.com/sabotage-linux/sabotage/blob/master/pkg/mupdf#L29 | 14:56.49 |
vtorri | ha | 14:57.18 |
| i have to remove the dirs ? | 14:57.25 |
| it should be easy then | 14:57.32 |
| rtying | 14:57.36 |
sh4rm4^bnc_ | that's what i do, and it works | 14:57.42 |
vtorri | ft2build.h not found | 15:01.21 |
| btw | 15:01.24 |
| mupdf 1.9 | 15:01.28 |
sh4rm4^bnc_ | ft2build.h not found -> your freetype install is incomplete | 15:01.48 |
vtorri | i doubt | 15:01.58 |
| i compile several projects using freetype | 15:02.12 |
sh4rm4^bnc_ | then see the rest of my recipe how i pass FREETYPE_CFLAGS | 15:02.15 |
vtorri | yes | 15:02.20 |
| i wanted to mention that | 15:02.25 |
sh4rm4^bnc_ | freetype uses a braindead program named freetype-config instead of the standardized pkg-config | 15:02.55 |
| the freetype-config is not usable for crosscompiles | 15:03.10 |
vtorri | it has a pc file | 15:31.45 |
| i use it :) | 15:31.48 |
| freetype-config is a legacy script | 15:31.59 |
| it's better | 15:35.22 |
| bu i have to do that in a cross platform way | 15:35.40 |
| sh4rm4^bnc_: thank you | 15:41.40 |
sh4rm4^bnc_ | vtorri, got it working ? | 16:23.00 |
vtorri | sh4rm4^bnc_: not completely working, but i understand what i have to do, so i'm integrating it in my project | 23:38.10 |
sh4rm4^bnc_ | ok | 23:39.07 |
| do you undestand why i call make twice ? | 23:39.40 |
vtorri | i've even not remarked that point | 23:44.33 |
| Forward 1 day (to 2017/01/15)>>> | |