Opened 4 years ago
Closed 3 years ago
#5798 closed defect (invalid)
macOS/OSX Build Error: Fcollada library does not build/needs dependencies
Reported by: | 1dabred | Owned by: | |
---|---|---|---|
Priority: | Nice to Have | Milestone: | |
Component: | Build & Packages | Keywords: | |
Cc: | Patch: |
Description
Following up from a forum post where I asked about this:
Consistently getting errors building the libraries for osx, specifically building FCollada - added workaround at the bottom of ticket.
I followed the build instructions for macOS:
1. Made sure I had Apple Command line tools, even updated them with xcode-select --install
2. Made sure I had python 2.7 or later
3. Use homebrew to install cmake
4. Get code - tried on one of. my macs from github, the other mac from svn
The next step is building the game by running:
cd libraries/osx
./build-osx-libs.sh -j3
Here, all of the libraries built without errors except Fcollada, which gives the following error and fails to build:
Building FCollada... ~/coding/0ad/libraries/source/fcollada/src ~/coding/0ad/libraries/source/fcollada ~/coding/0ad/libraries/osx FCollada/FCollada.cpp FCollada/FColladaPlugin.cpp FCollada/FCDocument/FCDAnimated.cpp /bin/sh: pkg-config: command not found /bin/sh: pkg-config: command not found /bin/sh: pkg-config: command not found In file included from In file included from FCollada/FCDocument/FCDAnimated.cppIn file included from FCollada/FColladaPlugin.cpp:FCollada/FCollada.cpp:15:9: : In file included from 9In file included from FCollada/StdAfx.h: :FCollada/StdAfx.hIn file included from 13:FCollada/StdAfx.h: 13:In file included from : 13FCollada/FCollada.hIn file included from : :FCollada/FCollada.hIn file included from 49:FCollada/FCollada.h: 49:: 49: FCollada/FUtils/FUtils.h:FCollada/FUtils/FUtils.h91FCollada/FUtils/FUtils.h:::911091:::10 10:: fatal error: fatal errorfatal error: : 'libxml/tree.h''libxml/tree.h''libxml/tree.h' file file file not not not found foundfound #include <libxml/tree.h>#include <libxml/tree.h>#include <libxml/tree.h> ^~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
Again tried this on two separate macs running catalina 10.15 and ran into the same issue.
The workaround for both of my macs was installing MacPorts, then installing libxml2 with "sudo port install libxml2" before running build-osx-libs again - but this should probably be documented in the external dependencies, included in the libraries, or otherwise fixed so others don't run into this.
Change History (1)
comment:1 by , 3 years ago
Milestone: | Backlog |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Fixed on that forum post (Incompatibility with MacPorts)