omkar-mohanty / vortex

A tool to extract images from pdf files
MIT License
52 stars 7 forks source link

Failing to compile #2

Open mahaling opened 7 months ago

mahaling commented 7 months ago

I am getting the following error while compiling. Any ideas on how to fix this?.

Compiling pdf v0.8.1 (https://github.com/omkar-mohanty/pdf.git?branch=png_flate#afe56419) error: mismatched closing delimiter: ) --> /home/azureuser/.cargo/git/checkouts/pdf-2fe412da58dbfdde/afe5641/pdf/src/object/types.rs:641:37 | 641 | let mut data = match filter { | ^ unclosed delimiter ... 654 | StreamFilter::JPXDecode => jpx_decode(&data)?, params)?, | ^ mismatched closing delimiter

error: unexpected closing delimiter: } --> /home/azureuser/.cargo/git/checkouts/pdf-2fe412da58dbfdde/afe5641/pdf/src/object/types.rs:668:1 | 654 | StreamFilter::JPXDecode => jpx_decode(&data)?, params)?, | - missing open ( for this delimiter ... 668 | } | ^ unexpected closing delimiter

error: could not compile pdf (lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish... error: failed to compile `vortex v1.0.0

omkar-mohanty commented 6 months ago

Hi, Sorry for replying a bit late. Can tell me the environment you were running ? Possibly you might want to try again because there were some changes in the underlying crate which I had not updated.

maxpowel commented 4 months ago

I have just cloned and compiled from scratch and it compiles perfectly