cage1016 / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

Shared library failed build in Xcode on Mac #125

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download pdfium and dependencies
2. Change pdfium target type from static_library to shared_library in pdfium.gyp
3. run $ ./build/gyp_pdfium
4. run $ xcodebuild -configuration Release -target pdfium

What is the expected output? What do you see instead?
Compiled libpdfium.dylib file

What version of the product are you using? On what operating system?
Xcode 6.1.1
Mac OS X 10.10 Yosemite

Please provide any additional information below.

Missing Mac OS X frameworks AppKit and CoreFoundation while linking.
Adding with link_settings: libraries does not working properly.

Original issue reported on code.google.com by mar...@mikita.eu on 1 Mar 2015 at 8:23

Attachments:

GoogleCodeExporter commented 9 years ago
I found the problem. link_settings are working, but it has to be outside 
all_dependent_settings, where it is now.
I am not sure, if full path needed, I just have AppKit.framework and gyp 
correctly makes flags for linking (-framework AppKit)

Original comment by mar...@mikita.eu on 7 Mar 2015 at 1:05