Re: will not build dependencies on OS X

162 views
Skip to first unread message

K Moon

unread,
Oct 30, 2019, 5:03:38 PM10/30/19
to bwes...@gmail.com, pdfium
-pdfium-reviews (this list is for code reviews only, and you're unlikely to get a response)
+pdfium

I believe install-build-deps.sh is only used to install packages on Linux, so you wouldn't use it on OS X. I haven't tried to build PDFium on OS X, so not sure what the requirements would be. (The correct version of Xcode, presumably.)

On Wed, Oct 30, 2019 at 1:24 PM <bwes...@gmail.com> wrote:
I'm running OS X 10.14.6 and tried following the instructions found here:


It was working fine, until I got to the "Additional build dependencies" portion of the program.

./build/install-build-deps.sh


At that point, it errors outĀ 

./build/install-build-deps.sh
ERROR
: lsb_release not found in $PATH

my understanding is that lsb_release is a linux thing.

Is there something I'm missing?

I appreciate the feedback.

--
You received this message because you are subscribed to the Google Groups "pdfium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfium-review...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium-reviews/1f1f8f21-d28c-4545-800a-9755e9a06500%40googlegroups.com.

K Moon

unread,
Oct 30, 2019, 5:04:31 PM10/30/19
to bwes...@gmail.com, pdfium
(And yes, we should update the documentation, once we figure out the right thing here. :-) )

Lei Zhang

unread,
Oct 30, 2019, 5:30:21 PM10/30/19
to bwes...@gmail.com, pdfium, K Moon
Following the Chromium setup instructions, up to where one checks out
code, is probably worth a try.
https://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md#System-requirements
> You received this message because you are subscribed to the Google Groups "pdfium" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/CACwGi-44OiwcyRLOh6Y8pkvhD%3DFYo-MqYVs9y76YSCo5RnJejg%40mail.gmail.com.

Vibhav Gupta

unread,
May 2, 2021, 4:43:43 AM5/2/21
to pdfium
I'm building on mac too and seeing the same error. Was there a resolution found for this?

Regards,
Vibhav

Lei Zhang

unread,
May 3, 2021, 3:49:37 AM5/3/21
to Vibhav Gupta, pdfium
The build/install-build-deps.sh script is only used on Linux and is
not meant for Mac. The Mac build instructions doesn't even mention
that script, so why are you trying to run it? Please read the build
instructions carefully.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/113b2d13-cb9c-441b-b1b6-b134e3ceb5bbn%40googlegroups.com.

Vibhav Gupta

unread,
May 3, 2021, 4:50:34 AM5/3/21
to pdfium
I was trying to run it because its not evident from instructions onĀ https://pdfium.googlesource.com/pdfium/ whether 1) they are only for linux or 2) they are for both linux and mac. I assumed it was 2 but that doesn't seem right.

So, could you please let me know exactly what are the build instructions for mac?

Lei Zhang

unread,
May 3, 2021, 4:55:59 AM5/3/21
to Vibhav Gupta, pdfium
Ah, thanks for the clarification. Will update the page. I was
referring to https://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md,
which was the link in the last email on this thread that you replied
to.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/8db71aff-37f5-45b3-a009-07ed4c3d69f4n%40googlegroups.com.

Vibhav Gupta

unread,
May 3, 2021, 5:04:29 AM5/3/21
to pdfium
Thanks. Yes, please update the page. I'll wait for that. That way it would be clearer what's supposed to be done on mac and what isn't.

Vibhav Gupta

unread,
May 3, 2021, 5:12:32 AM5/3/21
to pdfium
Would be great too if you could let us know here once you have updated the page.

Lei Zhang

unread,
May 3, 2021, 5:14:40 AM5/3/21
to Vibhav Gupta, pdfium
No need to wait. I'm just going to:
1) Change the section that mentions build/install-build-deps.sh to
start with "On Linux, additional dependencies ..."
2) Link to https://chromium.googlesource.com/chromium/src/+/main/docs/mac_build_instructions.md
- the build requirements are roughly the same as Chromium's.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/b56062f5-557a-49f1-a633-a1a6603c1517n%40googlegroups.com.

Vibhav Gupta

unread,
May 3, 2021, 10:18:59 AM5/3/21
to pdfium
Lei,

So for mac, can we just skip the build/install-build-deps.sh step onĀ https://pdfium.googlesource.com/pdfium/ and follow rest of the steps as is?

Lei Zhang

unread,
May 3, 2021, 3:02:01 PM5/3/21
to Vibhav Gupta, pdfium
Yes, skip build/install-build-deps.sh. To repeat one more time, it is
a script used on Linux only.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/517f6040-a655-4d07-87ed-4ec611fb7164n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages