1. No user installed addons are supported, python or otherwise.
2. No, they really are not supported.
3. They are not coming back
4. Read from 1. again

Any mention of illegal streaming sites, addons or any pirated material will not be tolerated. This is not democracy and any offenders will be banned and posts deleted immediately without warning.

Other than that, we hope you enjoy MrMC so far and we welcome any input and feedback you might have.

Team MrMC.

Can't compile mrmc on Xcode 7.1

Report any issues you might have in here
Post Reply
TheJmc
Posts: 28
Joined: 06 Dec 2015, 04:42

Re: Can't compile mrmc on Xcode 7.1

Post by TheJmc »

davilla wrote:remember, depends is built 9.0 min.
see tools/darwin/Configurations/App-TVOS.xcconfig, its in xcode project list.

The xcode build is heavily controlled by .xcconfig files, some of which are created during the main configure. For example, App.xcconfig.in, while App.xcconfig shows in xcode project files, any changes there will get wiped out on the next configure.
Thanks for the explanation. 8-)
ima747
Posts: 3
Joined: 28 Dec 2015, 19:01

Re: Can't compile mrmc on Xcode 7.1

Post by ima747 »

Thanks to all in this thread, got it compiled and installed with up to date everything (Xcode 7.2, tvOS 9.1, mrmc-master.zip pulled Dec 28th 2015). Just have a question for future reference regarding multi-core compiling.

Code: Select all

NOTE: You can speedup compilation on multicore systems by doing 
 "make -j<number of cores>" instead of "make". For a dualcore this would read:
 "make -j2"
I have never gotten make to successfully compile something using more than 2 or possibly 4 cores in the past (can't recall exactly, but "a few" is the best I've ever managed). Has anyone gotten working compiles when specifying more cores (if you have more cores to play with obviously...)? I'd really like to use more for future compiles but if I waste 30 minutes per attempt it's kind of a bummer and I get annoyed and just fall back to single core since I know it will work, when it eventually completes...
User avatar
davilla
Team MrMC
Posts: 4377
Joined: 26 Oct 2015, 17:01

Re: Can't compile mrmc on Xcode 7.1

Post by davilla »

Xcode compiles are done multi-core. That's where you tend to do most work.

Depends can take j20's but they can get twitchy, there are one or two libs that should be forced to j1 as they can't handle it. At one time, back when I designed the depends, j20 was norm, then Kodi devs messed it up adding things without checking. That will return over time as I get a change to hunt them down. The lucky thing about depends is unless they change, you only need to compile it once.

There will be more changes over time, 'make xcode_depends' needs to die.
ima747
Posts: 3
Joined: 28 Dec 2015, 19:01

Re: Can't compile mrmc on Xcode 7.1

Post by ima747 »

Thanks. I had some time to poke a little today and it seemed to work fine with j12 and j24 when I tried (left it running while doing other things around the house, so wasn't closely monitoring) however I may not have cleared everything out between builds (trashed the mrmc-master folder each time, but I believe the depends largely end up in /user/Shared and I didn't touch that).

The compiles through Xcode never have issues for me, just the command line Makes, but that was in the past, and again, I didn't clear out the shared folder resources, so perhaps my non-j compile made all the shared stuff, and it wasn't touched with the multi-core makes later (in line with your comment of make it one for dependencies...).

Thanks for this project btw, I can't wait to find time to dive in properly.
ajrietveld
Posts: 9
Joined: 25 Dec 2015, 20:29

Re: Can't compile mrmc on Xcode 7.1

Post by ajrietveld »

Can it be compiled in 7.2 yet or is the workaround mentioned earlier in this thread still required?

I picked a heck of a project to cut my teeth on with Xcode haha.

Thanks for this!
ima747
Posts: 3
Joined: 28 Dec 2015, 19:01

Re: Can't compile mrmc on Xcode 7.1

Post by ima747 »

I had no issue compiling in 7.2 just following the instructions on page 5 and building for device, besides the required signing adjustments, but that's not an Xcode thing, that's an apple requirements thing.
A.Coward
Posts: 3
Joined: 10 Dec 2015, 09:53

Re: Can't compile mrmc on Xcode 7.1

Post by A.Coward »

For those trying to build 1.3 from source, a couple of extra steps will be necessitated because of the addition of the Top Shelf feature.
  • - Within the Xcode steps, after changing the Bundle Identifier for the "MrMC-TVOS" target, you will also have to do the same for the "TopShelf" target.
    - Because of the TopShelf integration in MrMC 1.3, which uses the "App Groups" development feature, you will need to be a paid Apple Developer to build and run as-is.
    - If you are not a paid developer, you will need to:
    • 1) In the Target / Capabilities tab for "MrMC-TVOS" and "TopShelf", disable the "App Groups" entitlement.
      2) Locate the file "RecentlyAddedJob.cpp". On line 157, change:
      • Code: Select all

        #if defined(TARGET_DARWIN_TVOS)
        
        to

        Code: Select all

        #if defined(TARGET_DARWIN_TVOS) && !defined(TARGET_DARWIN_TVOS_UNPAID)
        
      3) In the MrMC "MrMC-TVOS" target, go to the "Build Settings" table and double-click on the "Apple LLVM 7.0 - Preprocessing" / "Preprocessor Macros" line. Hit the "+" button and add "TARGET_DARWIN_TVOS_UNPAID".
The simpler way would just be to edit the TARGET_DARWIN_TVOS on line 157 above to some jibberish text string instead of using a compiler directive, but I wanted to keep things clean.

Note that this will essentially kill the TopShelf feature which you need to be an paid Apple Developer to use. But, to be honest, I'd prefer to disable this feature to begin with (don't want strangers playing with my Apple TV and seeing what movies I watch :D).
User avatar
davilla
Team MrMC
Posts: 4377
Joined: 26 Oct 2015, 17:01

Re: Can't compile mrmc on Xcode 7.1

Post by davilla »

sounds like a settings to disable topshelf should be added to the list :)
Antibus
Posts: 36
Joined: 02 Feb 2016, 22:54

Re: Can't compile mrmc on Xcode 7.1

Post by Antibus »

I've been trying to do a build on the latest 2.0.0, but can't seem to successfully complete the pre-make builds. I'm running Xcode 7.2 on Yosemite with tvos 9.1 and I have been able to successfully build 1.6.0 in the past.

On the first "make", in ../tools/depends, it goes for quite a while, but ends with:

touch .installed-appletvos9.1_arm64-target
make: *** [target/.installed-appletvos9.1_arm64-target] Error 2

Then later, with the "make -C tools/depends/target/xbmc", it stops with:

configure: error: Could not find a required library. Please see the README for your platform.
make: *** [../../../..//libmrmc.so] Error 1

Note that I've been using a "make -j8 ..." for all my makes, but getting rid of the -j8 doesn't seem to help (the one time I tried I had other errors).

Any thoughts?
User avatar
davilla
Team MrMC
Posts: 4377
Joined: 26 Oct 2015, 17:01

Re: Can't compile mrmc on Xcode 7.1

Post by davilla »

Antibus wrote:I've been trying to do a build on the latest 2.0.0, but can't seem to successfully complete the pre-make builds. I'm running Xcode 7.2 on Yosemite with tvos 9.1 and I have been able to successfully build 1.6.0 in the past.

On the first "make", in ../tools/depends, it goes for quite a while, but ends with:

touch .installed-appletvos9.1_arm64-target
make: *** [target/.installed-appletvos9.1_arm64-target] Error 2

Then later, with the "make -C tools/depends/target/xbmc", it stops with:

configure: error: Could not find a required library. Please see the README for your platform.
make: *** [../../../..//libmrmc.so] Error 1

Note that I've been using a "make -j8 ..." for all my makes, but getting rid of the -j8 doesn't seem to help (the one time I tried I had other errors).

Any thoughts?
If depends does not build, stop. Do not pass go :) Error 2 is the final message, need to find error 1

make (no -jX) is always preferred unless you are familiar with the depends build system and known how to fixup issues.
Post Reply