| <<<Back 1 day (to 2021/02/23) | Fwd 1 day (to 2021/02/25)>>> | 20210224 |
enderverse | hi! | 04:00.29 |
enderverse | I have been having trouble compiling the source to WebAssembly. Am I supposed to download emsdk, drop it in a folder called "opt". and drop that in the wasm folder? Probably not, because I did that (trying to follow the README) and it did not work. | 04:03.18 |
| #mupdf When I run "make wasm" from the root of the entire mupdf directory, I get the errors "make[1]: *** [../../build/wasm/libmupdf.a] Error 127" and "make: *** [wasm] Error 2 " | 04:06.12 |
| #mupdf /info | 04:07.05 |
| #mupdf Oh no! Sorry, I don't understand IRC and was trying to see the help command. Please ignore that. | 04:07.31 |
| I have to go now, but I'll check in later. Please help me... | 04:15.10 |
artifexirc-bot | <Robin_Watts> enderverse: We assume that emsdk is in /opt. (i.e. at the top of the disc, not within mupdf) | 10:43.02 |
ender | Hi Robin, thank you for responding! I moved opt to the root directory and now have this error: "make[2]: Nothing to be done for `generate'. " | 12:43.57 |
| I assume the other errors, "make[1]: *** [../../build/wasm/libmupdf.a] Error 127" and "make: *** [wasm] Error 2" are a result of the first. | 12:44.53 |
| I found a file in ./mupdf/wasm called hexdump.exe which my OS can't run. I think that could be the root of the issue. | 12:56.57 |
artifexirc-bot | <Robin_Watts> ender: I set all this up on a linux box the other day without any issues. What OS are you using? | 13:04.53 |
| <Robin_Watts> I believe I do: cd platform/wasm && make | 13:05.39 |
ender | Hi Robin, my OS is OSX. | 14:28.30 |
| I wonder if I followed these steps correctly: | 14:28.44 |
| 1. Create folder called opt | 14:28.48 |
| 2. Place emsdk in that folder | 14:28.54 |
| 3. Go back to root directory | 14:28.58 |
| 4. git clone --recursive git://git.ghostscript.com/mupdf.git | 14:29.02 |
artifexirc-bot | <Robin_Watts> No. | 14:29.06 |
| <Robin_Watts> Well, maybe. I'm not sure we're agreeing on what we mean by "root directory". | 14:29.52 |
| <Robin_Watts> mkdir /opt | 14:30.02 |
| <Robin_Watts> cd /opt | 14:30.04 |
| <Robin_Watts> git clone https://github.com/emscripten-core/emsdk.git | 14:30.39 |
| <Robin_Watts> Then: cd ~/ | 14:31.11 |
| <Robin_Watts> Sorry, ignore that last cd. | 14:31.32 |
| <Robin_Watts> cd emsdk | 14:31.38 |
| <Robin_Watts> ./emsdk install latest | 14:31.45 |
| <Robin_Watts> ./emsdk activate latest | 14:31.56 |
| <Robin_Watts> That sets emsdk up. | 14:32.13 |
| <Robin_Watts> Then cd ~/whereever_you_want_to_keep_your_sourcetree | 14:32.34 |
| <Robin_Watts> git clone --recursive git://git.ghostscript.com/mupdf.git | 14:32.58 |
| <Robin_Watts> cd mupdf/platform/wasm | 14:33.03 |
| <Robin_Watts> make | 14:33.05 |
ender | I don't know why I still have the same errors as I did yesterday. To be clear, /opt and /mupdf are in the same directory | 14:44.00 |
artifexirc-bot | <Robin_Watts> change into opt. Run 'pwd' and paste me what it says. | 14:44.34 |
ender | Users/a./opt | 14:45.01 |
artifexirc-bot | <Robin_Watts> Right, so you're still not listening to me. | 14:45.09 |
| <Robin_Watts> Our installation assumes that emsdk is installed as /opt/emsdk | 14:45.40 |
| <Robin_Watts> That's not Users/whatever/opt/emsdk | 14:46.02 |
| <Robin_Watts> That's /opt/emsdk. | 14:46.08 |
ender | I didn't realize that. Thanks, I'll try again. | 14:54.32 |
artifexirc-bot | <ator> @ender You should also be able to call: make EMSDK_DIR=/wherever/you/put/emsdk | 15:43.33 |
ender | @ator Thank you. I was unable to write directly to my hard drive because of OSX Catalina security settings, so I tried cd mupdf/platform/wasm && make EMSDK_DIR=/Users/a./opt/emsdk | 17:47.53 |
| I still have "make: *** [../../build/wasm/libmupdf.a] Error 127 " | 17:48.29 |
artifexirc-bot | <Robin_Watts> ender: Can you pastebin the full logs please? We can't deduce anything from that line alone. | 17:54.25 |
ender | https://pastebin.com/DtqwunSf | 17:57.37 |
sam_ | i think we still need the full log | 17:59.22 |
| sorry, I mean, we may need a make clean ideally | 17:59.32 |
ender | I am not very familiar with C, so please excuse my inexperience. Would that be cd mupdf/platform/wasm && make clean EMSDK_DIR=/Users/a./opt/emsdk ? | 18:00.52 |
artifexirc-bot | <Robin_Watts> Yes. | 18:01.09 |
| <Robin_Watts> Do that, and it should clean the source tree. | 18:01.19 |
| <Robin_Watts> THEN do the make you just did, and the logs should be larger - those are the ones we want to see. | 18:01.35 |
ender | I'm sorry, the logs look the same. Should I clone from git again? | 18:03.54 |
| I did "make clean EMSDK_DIR=/Users/a./opt/emsdk" and then "make EMSDK_DIR=/Users/a./opt/emsdk" but that may have been incorrect? | 18:05.02 |
artifexirc-bot | <Robin_Watts> That sounds fine. | 18:12.11 |
| <Robin_Watts> So, it looks like something is going wrong during the making of the libs stuff. | 18:17.42 |
| <Robin_Watts> It looks very much to me like you're using an apple machine, and I don't have one of those. | 18:18.01 |
ender | More extensive logs: https://pastebin.com/axYs56v0 | 18:25.50 |
artifexirc-bot | <Robin_Watts> Right, so the first part (the generate stage) looks fine. | 18:27.04 |
| <Robin_Watts> The second part (building 'libs') is failing. | 18:27.20 |
| <Robin_Watts> I can't say why, offhand. | 18:27.49 |
ender | I assumed that it would be the .exe file, somehow. | 18:29.05 |
| I don't understand the build process enough to pinpoint the issue, however. | 18:29.41 |
artifexirc-bot | <Robin_Watts> hexdump.exe is built and used as part of the generate stage. | 18:29.56 |
| <Robin_Watts> That's working fine. | 18:29.59 |
ender | Ahh, I see the process stalls out after `libs`. | 18:30.28 |
| (Which is what you already said, I just hadn't noticed.) | 18:31.08 |
| What does `libs` do? | 18:42.46 |
| <<<Back 1 day (to 2021/02/23) | Forward 1 day (to 2021/02/25)>>> | |