Jamplus + MacOSX Lion (10.8.2) + XCode 4.6 (4H127) problems

Added by Jamie Wither over 6 years ago

Hi,

I'm trying to use the nextgen branch to build the samples/iphone/opengles sample but I'm having a problem. I follow this procedure:

git clone https://github.com/jamplus/jamplus.git
cd jamplus
git checkout origin/nextgen
cd src
make macosx32

This seems to create jam in jamplus/bin/macosx32/jam correctly. But if I put it in the path and try to build the sample it will complain about missing lua.

So I tried to build luaplus from git by a similar procedure:

cd luaplus51-all
git checkout origin/nextgen
jam

This complains about some targets which couldn't be built - but I carry on regardless as I got an output directory

cd bin.clang.macosx32
export LUA_BIN=`pwd`
cd ~/projects/jamplus/src
make macosx32

Which copies lua into the jamplus/bin/macosx directory (as best it can). But then when attempting the sample I get this:

ukknu03350:opengles jwither$ ./CreateJamXcodeWorkspace.sh
Creating build environment...
Reading platform [*] and config [*]...
Reading platform [iphone] and config [release]...
don't know how to make <iphone!release:opengles|source>Entitlements.plist
  • skipped <iphone!release:opengles>Entitlements.plist for lack of <iphone!release:opengles|source>Entitlements.plist...
    Reading platform [iphone] and config [releaseltcg]...
    don't know how to make <iphone!releaseltcg:opengles|source>Entitlements.plist
  • skipped <iphone!releaseltcg:opengles>Entitlements.plist for lack of <iphone!releaseltcg:opengles|source>Entitlements.plist...
    Reading platform [iphone] and config [debug]...
    don't know how to make <iphone!debug:opengles|source>Entitlements.plist
  • skipped <iphone!debug:opengles>Entitlements.plist for lack of <iphone!debug:opengles|source>Entitlements.plist...
    Reading platform [iphonesimulator] and config [release]...
    Reading platform [iphonesimulator] and config [releaseltcg]...
    Reading platform [iphonesimulator] and config [debug]...
    Writing generated projects...

-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- ...s/jwither/projects/jamplus/bin/scripts/ide/xcode.lua:195: attempt to index global 'FolderTree' (a nil value):
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
stack traceback:
...s/jamplus/bin/macosx32/../scripts/JamToWorkspace.lua:121: in function <...s/jamplus/bin/macosx32/../scripts/JamToWorkspace.lua:97>
...s/jwither/projects/jamplus/bin/scripts/ide/xcode.lua:195: in function 'XcodeHelper_GetProjectExportInfo'
...s/jwither/projects/jamplus/bin/scripts/ide/xcode.lua:529: in function 'Write'
...s/jamplus/bin/macosx32/../scripts/JamToWorkspace.lua:492: in function 'DumpProject'
...s/jamplus/bin/macosx32/../scripts/JamToWorkspace.lua:602: in function 'DumpWorkspace'
...s/jamplus/bin/macosx32/../scripts/JamToWorkspace.lua:885: in function <...s/jamplus/bin/macosx32/../scripts/JamToWorkspace.lua:613>
[C]: in function 'xpcall'
...s/jamplus/bin/macosx32/../scripts/JamToWorkspace.lua:962: in main chunk
[C]: ?
ukknu03350:opengles jwither$ pwd
/Users/jwither/projects/jamplus/samples/iphone/opengles

Does anyone know the correct procedure to get the iphone sample working using XCode 4.6 iOS SDK?

Thanks,
Jamie.


Replies (2)

RE: Jamplus + MacOSX Lion (10.8.2) + XCode 4.6 (4H127) problems - Added by Joshua Jensen over 6 years ago

Jamie Wither wrote:

I'm trying to use the nextgen branch to build the samples/iphone/opengles sample but I'm having a problem. I follow this procedure:

git checkout origin/nextgen

This is better done as:

git checkout nextgen

This seems to create jam in jamplus/bin/macosx32/jam correctly. But if I put it in the path and try to build the sample it will complain about missing lua.

Lua is required for building the Xcode project.

This complains about some targets which couldn't be built - but I carry on regardless as I got an output directory

Yeah, I need to do some clean up in there of a few modules. I apologize.

cd bin.clang.macosx32
export LUA_BIN=`pwd`
cd ~/projects/jamplus/src
make macosx32

Which copies lua into the jamplus/bin/macosx directory (as best it can).

As best it can?

But then when attempting the sample I get this:

ukknu03350:opengles jwither$ ./CreateJamXcodeWorkspace.sh
Creating build environment...
Reading platform [*] and config [*]...
Reading platform [iphone] and config [release]...
don't know how to make <iphone!release:opengles|source>Entitlements.plist
  • skipped <iphone!release:opengles>Entitlements.plist for lack of <iphone!release:opengles|source>Entitlements.plist...

This one is new to me. I'll pull out the Mac soon and look at it.

-- ...s/jwither/projects/jamplus/bin/scripts/ide/xcode.lua:195: attempt to index global 'FolderTree' (a nil value):

I pushed a fix for this one.

Does anyone know the correct procedure to get the iphone sample working using XCode 4.6 iOS SDK?

I'll get the new Xcode downloading to get the proper bits added into JamPlus for it.

-Josh

RE: Jamplus + MacOSX Lion (10.8.2) + XCode 4.6 (4H127) problems - Added by Jamie Wither over 6 years ago

Thanks Josh. I eventually got the latest master binaries to build Xcode projects with XCode 4.6 by adding the appropriate paths and versions (6.1) to iphone-gcc.jam, but I will return to the nextgen branch in the future.

Unfortunately using the master binaries I get one of the issues described here: http://jamplus.org/boards/1/topics/313?r=314#message-314 (No. 4 relating to switching XCode schemes) - not that this is a show-stopper, it just makes the workflow a little clunky.

Finally. If I deploy to an iphone device (in XCode) it works fine the first time, but if I change a source file and re-deploy I get the error 'No code signature found'. This is fixed if I touch the Entitlements.plist file and re-deploy, or if I delete the project derived data in Xcode organiser. I'm not quite sure why this is, but again not a show stopper.

Thanks for all the work you do on JamPlus!

Cheers,
Jamie.

(1-2/2)