# Plex Compiling

**URL:** <https://forums.plex.tv/t/plex-compiling/3091>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [December 3, 2009, 6:10pm UTC](https://forums.plex.tv/t/plex-compiling/3091 "2009-12-03T18:10:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![charleseladams](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/charleseladams/32/607_2.png) [@charleseladams](https://forums.plex.tv/u/charleseladams)\
**Post date:** [December 3, 2009, 6:10pm UTC](https://forums.plex.tv/t/plex-compiling/3091/1 "2009-12-03T18:10:24Z")

</div>

Hi,  
  
I have followed the How to Compile wiki for Plex but I am getting the following error on compilation within Xcode right at the end of the process:

```auto

library not found for -lmad.0.2.1

```

  
  
This comes during the linking stage at the end. How can I resolve this?  
  
Thanks!

---

<div class="post-metadata">

**Author:** ![charleseladams](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/charleseladams/32/607_2.png) [@charleseladams](https://forums.plex.tv/u/charleseladams)\
**Post date:** [December 3, 2009, 6:25pm UTC](https://forums.plex.tv/t/plex-compiling/3091/2 "2009-12-03T18:25:20Z")

</div>

Looking closer I believe it has something to do with the libmad.0.2.1.dylib library. However “sudo port install libmad” says that libmad it is already installed.  
  
  
  
I’m guessing there is a version issue?

---

<div class="post-metadata">

**Author:** ![charleseladams](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/charleseladams/32/607_2.png) [@charleseladams](https://forums.plex.tv/u/charleseladams)\
**Post date:** [December 3, 2009, 10:11pm UTC](https://forums.plex.tv/t/plex-compiling/3091/3 "2009-12-03T22:11:40Z")

</div>

MacPorts seems to download libmad.0.2.1 but renames it to libmad.0.  
  
  
  
A quick redirection to this in Xcode’s Targets sorted this.  
  
  
  
Compiled 😃

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 8:33pm UTC](https://forums.plex.tv/t/plex-compiling/3091/4 "2019-12-20T20:33:45Z")

</div>

Closed on December 20, 2019, 8:33pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
