Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build input file cannot be found: '/opt/local/lib/libpng16.a' #26

Open
lifepillar opened this issue Jan 26, 2019 · 3 comments
Open

Build input file cannot be found: '/opt/local/lib/libpng16.a' #26

lifepillar opened this issue Jan 26, 2019 · 3 comments
Assignees

Comments

@lifepillar
Copy link

I am trying to build develop's head in Xcode 10.1 and macOS 10.14.2. The build fails with the following error:

Libtool /Users/me/Library/Developer/Xcode/DerivedData/OpenEmulator-dghiwjfipkoadieueibnirgqjzlh/Build/Products/Debug/libemulation.a normal x86_64 (in target: emulation)
    cd /Users/me/Documents/Outbox/OpenEmulator-OSX
    export MACOSX_DEPLOYMENT_TARGET=10.9
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -L/Users/me/Library/Developer/Xcode/DerivedData/OpenEmulator-dghiwjfipkoadieueibnirgqjzlh/Build/Products/Debug -L/Users/me/Documents/Outbox/OpenEmulator-OSX/lib -L/opt/local/lib -L/usr/local/lib -filelist /Users/me/Library/Developer/Xcode/DerivedData/OpenEmulator-dghiwjfipkoadieueibnirgqjzlh/Build/Intermediates.noindex/OpenEmulator.build/Debug/emulation.build/Objects-normal/x86_64/emulation.LinkFileList -lpng16 -o /Users/me/Library/Developer/Xcode/DerivedData/OpenEmulator-dghiwjfipkoadieueibnirgqjzlh/Build/Products/Debug/libemulation.a

error: Build input file cannot be found: '/opt/local/lib/libpng16.a'

I have libpng in /usr/local/lib/libpng16.a. I have tried to remove /opt/local/lib from Library Search Paths and Framework Search Paths, but I keep getting the same error. Any idea how to fix it?

@lifepillar
Copy link
Author

lifepillar commented Feb 2, 2019

If I update Link Binary with Libraries in the Build Phases of the emulation target so that it points to an existing libpng16.a then I can build successfully. But I need to build from the command line, and I'd rather not patch the project file.

@tobier tobier added bug and removed bug labels Jun 6, 2019
@tobier tobier self-assigned this Jun 6, 2019
@tobier
Copy link
Member

tobier commented Jun 6, 2019

I'm having the same problem, so I'm starting to look into a better way of packaging dependencies.

@tobier
Copy link
Member

tobier commented Jun 9, 2019

Related: openemulator/libemulation#34

Will add Travis integration and update paths to build OpenEmulator in an upcoming PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants