Posts: 126
Joined: Nov 2010
Reputation:
0
msfc
Senior Member
Posts: 126
I am setting up to build on OS X and have been running the step to build dependencies needed for building Kodi.
Several of the tools are already installed on my system, most notably Python, both 2.6 and 2.7. Incidentally, why are both versions needed? There are pre-installed versions of these on OS X yet the source for both was downloaded and then compiled taking some considerable time. Is is possible to avoid downloading existing tools?
Posts: 758
Joined: Jun 2014
Reputation:
31
MrMC
Posting Freak
Posts: 758
2016-06-05, 16:37
(This post was last modified: 2016-06-05, 16:38 by MrMC.)
The depends build system is not setup to do this, patches are welcome to add such features.
The concept of depends is to use the same versions across all platforms. This minimizes support issues of trying to track down problems across versions and also allows fixes to be done.
You don't have to build depends all the time, only when something in tools/depends changes. I build osx/ios/tvos from the same source directory. Each has it's own independent depends build. I never rebuild depends unless something changes.
Posts: 126
Joined: Nov 2010
Reputation:
0
msfc
Senior Member
Posts: 126
The depends list seems to be out of control. Not only does it download Python 2.6.5 and Python 2.7.11. At a much later point in the depends building process it also downloads Python 2.7.10. It is hard to believe that Python compatibility is so bad that something written for 2.7.10 would not run correctly on 2.7.11.
Posts: 16,946
Joined: Feb 2011
Reputation:
256
depends downloads python 2.7.11 and builds it 2 times (first native, then target). Not sure why you think we are using 2 different versions at the same time. Maybe you looked into the tarballs folder and saw an older tarball of python?
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 16,946
Joined: Feb 2011
Reputation:
256
target and native can be the same on osx but don't have to (depends on target sdk selection and so on).
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 758
Joined: Jun 2014
Reputation:
31
MrMC
Posting Freak
Posts: 758
Target and Native confusion was the very thing that lead to the creation of depends.
If you are self building, they can be the same but when you build something that others can download, you need to be very concerned about not mixing the two. For example, your build box is OSX 10.11.3 but you want the resulting binaries to run on 10.8+. You better be treating target different from native or very bad things will happen.