Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

libicns failed to build on 10.8.2 #15478

Closed
janlimpens opened this issue Oct 15, 2012 · 25 comments
Closed

libicns failed to build on 10.8.2 #15478

janlimpens opened this issue Oct 15, 2012 · 25 comments

Comments

@janlimpens
Copy link

==> Upgrading libicns
==> Downloading http://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.
Already downloaded: /Library/Caches/Homebrew/libicns-0.8.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libicns/0.8.1
==> make install
      _WritePNGImage in icns2png.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [icns2png] Error 1
make: *** [install-recursive] Error 1

Error: libicns did not build

https://gist.github.com/3897056

~ ❯❯❯ brew doctor
Your system is raring to brew.
@jacknagel
Copy link
Contributor

@Raynes
Copy link
Contributor

Raynes commented Oct 17, 2012

I've got this same issue. Not sure what I'm supposed to be looking at in the troubleshooting section, but nothing seems relevant.

@janlimpens
Copy link
Author

Yip, same here.

@mgol
Copy link

mgol commented Oct 17, 2012

Same here. Due to this issue brew install wine fails.

@mistydemeo
Copy link
Member

@Raynes We're looking for the information the troubleshooting page requests be provided, which is what will let us figure out what the problem is.

@Raynes
Copy link
Contributor

Raynes commented Oct 17, 2012

https://gist.github.com/3907782 is the log output.

@mistydemeo
Copy link
Member

Can you try this:

brew rm libpng
brew install libpng --universal

And then let me know if you can build libicns?

@Raynes
Copy link
Contributor

Raynes commented Oct 17, 2012

That did the trick!

@janlimpens
Copy link
Author

Misty De Meo@17/102012:

brew rm libpng
brew install libpng --universal

here, too :)

@Raynes
Copy link
Contributor

Raynes commented Oct 17, 2012

Note that in order to build wine (which was the end goal here), I needed to build freetype as universal as well.

@mistydemeo
Copy link
Member

Reopening, since a real fix is dependent on #14456.

@mistydemeo mistydemeo reopened this Oct 18, 2012
@rinchen
Copy link

rinchen commented Dec 2, 2012

libpng trick worked for me too.

HOMEBREW_VERSION: 0.9.3
HEAD: 55cfbdf
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.5.2
CLT: 4.5.0.0.1.1249367152
LLVM-GCC: build 2336
Clang: 4.1 build 421
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

@agrawalankur
Copy link

libpng trick worked for me too.

@rabialam
Copy link

rabialam commented Dec 7, 2012

thirded

@binary132
Copy link

Had to rebuild Freetype as well as libpng as Universal. Then it worked. (Build took 18 minutes on my 2.4GHz Core 2 Duo. Didn't realize to expect that! lol.)

@jfmercer
Copy link

libpng trick worked for me

@ethereal-engineer
Copy link

--universal worked great thx!

@oschrenk
Copy link
Contributor

brew rm libpng
brew install libpng --universal

👍

@rodrigoSyscop
Copy link

brew rm libpng
brew install libpng --universal

Works for me too.

@silvansky
Copy link

Thanks for workaround with libpng!

@terryblood
Copy link

brew rm libpng
brew install libpng --universal

Works for me too.

@adamv adamv closed this as completed in be74c06 Feb 6, 2013
@glittershark
Copy link

brew install libpng --universal
looks like it takes me to a dead link

@Japh
Copy link

Japh commented Mar 14, 2013

@glittershark: I got the dead link too. I downloaded the libpng-1.5.13.tar.gz file from here http://sourceforge.net/projects/libpng/files/libpng15/older-releases/1.5.13/ and put it in /Library/Caches/Homebrew/, then ran again. Worked fine.

@tanaydin
Copy link

workaround is not working anymore... I'm getting

tanaydin•/usr/local(master)» brew rm libpng Uninstalling /usr/local/Cellar/libpng/1.5.14...
tanaydin•/usr/local(master)» brew install libpng --universal
==> Downloading http://downloads.sf.net/project/libpng/libpng15/older-releases/1.5.14/libpng-1.5.14.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libpng/1.5.14
==> make install
/usr/local/Cellar/libpng/1.5.14: 15 files, 1.3M, built in 35 seconds
tanaydin•/usr/local(master)» brew install --universal libicns
==> Downloading http://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libicns/0.8.1
==> make install
_WritePNGImage in icns2png.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [icns2png] Error 1
make: *** [install-recursive] Error 1

@ar2rsawseen
Copy link

I had libpng already preinstalled before brew and for some reason it was always using it (although I've relinked using brew). Manually removing it from /usr/local helped install libicns through brew

@Homebrew Homebrew locked and limited conversation to collaborators Feb 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests