ExternalsEnvironment update for desktop?

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, LCMark

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

ExternalsEnvironment update for desktop?

Post by Janschenkel » Mon Jun 24, 2013 9:33 pm

Hi all,
My attempts to build desktop externals with Xcode 4.6 are proving futile and I no longer have an Intel computer running MacOS X 10.4 Tiger with an older Xcode version (so that I can build universal externals). Is there any chance of getting an update to ExternalsEnvironmentV3 for Desktop, or some sort of recipe to get it working?
TIA,
Jan Schenkel.
Last edited by Janschenkel on Tue Jun 25, 2013 7:51 am, edited 1 time in total.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1561
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: ExternalsEnvironment update for desktop?

Post by monte » Mon Jun 24, 2013 9:43 pm

Hi Jan

Download mergJSON or mergMarkdown from http://github.com/montegoulding to see how I do it. I don't bother with the externals environment thing... Just create a bundle project and add external.c and external.h

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

Re: ExternalsEnvironment update for desktop?

Post by Janschenkel » Tue Jun 25, 2013 6:45 am

Hi Monte,

I'm guessing that means you're not providing ppc/universal builds of those externals then? Actually, if I can convince my iMac G5 to crank out i386/universal builds, then I'll use that machine as it's still running MacOS X 10.4.11 Tiger with Xcode 2.3 - fingers crossed!

Jan Schenkel.
Last edited by Janschenkel on Tue Jun 25, 2013 7:52 am, edited 1 time in total.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1561
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: ExternalsEnvironment update for desktop?

Post by monte » Tue Jun 25, 2013 7:28 am

No I'm not... If you get setup on that old iMac could you try those projects... should just be a matter of setting the architectures up...
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1033
Joined: Thu Apr 11, 2013 11:27 am

Re: ExternalsEnvironment update for desktop?

Post by LCMark » Tue Jun 25, 2013 8:26 am

Trevor posted a lesson on getting Xcode 4.6 to play nice with the Mac 10.4 SDK and compilers - http://trevordevore.clarify-it.com/d/j9fxqj - this should mean you can build universal desktop externals on your current machine.

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1561
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: ExternalsEnvironment update for desktop?

Post by monte » Tue Jun 25, 2013 8:49 am

Nice... Would also be good for LC because I'm over having to change global.config every time I branch..
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

Re: ExternalsEnvironment update for desktop?

Post by Janschenkel » Tue Jun 25, 2013 10:23 am

@runrevmark: I did use that lesson to extract the older SDK's and compilers and add them to Xcode (otherwise I couldn't have tested any of my contributions), but Xcode steadfastly refuses to build my external's project.
Then again, I could just be exceptionally thick when it comes to build configurations - don't have to deal with those in the other environments that I use daily... That's why I was hoping for a good recipe to follow :-)

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1033
Joined: Thu Apr 11, 2013 11:27 am

Re: ExternalsEnvironment update for desktop?

Post by LCMark » Tue Jun 25, 2013 10:47 am

@Janschenkel: What errors are you getting from Xcode? Modifying an existing (new) external project from the livecode repo might be an easier solution than trying to get the old ones to work...

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

Re: ExternalsEnvironment update for desktop?

Post by Janschenkel » Tue Jun 25, 2013 4:54 pm

@runrevmark: I'll give it another go when I get home this evening and report my findings.
And I will definitely check out the build settings for the rev externals to see what information I can extract from that to get my own external project running.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1561
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: ExternalsEnvironment update for desktop?

Post by monte » Tue Jun 25, 2013 9:53 pm

well... I'm getting broken pipe errors so it looks like the ppc assembler is still missing for me... maybe my hacking to get it to work originally is breaking things... so I'm downloading a vanilla Xcode to try XcodeLegacy on that.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

Re: ExternalsEnvironment update for desktop?

Post by Janschenkel » Wed Jun 26, 2013 7:26 pm

@monte: I could build for i386 but not ppc - also due to a broken pipe. Did you get it running after a re-install?

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1561
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: ExternalsEnvironment update for desktop?

Post by monte » Wed Jun 26, 2013 9:24 pm

Er.. Shut my laptop and the download stopped... I'll leave it running today ;-)
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1561
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: ExternalsEnvironment update for desktop?

Post by monte » Thu Jun 27, 2013 10:12 am

OK... installed Xcode 4.6.3.. ran XcodeLegacy... same broken pipe issues...


CompileC build/mergJSON.build/Release/mergJSON.build/Objects-normal/ppc/error.o mergJSON/jansson/src/error.c normal ppc c com.apple.compilers.gcc.4_0
cd /Users/montegoulding/Dropbox/mergJSON
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc-4.0 -x c -arch ppc -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -Wuninitialized -Wshorten-64-to-32 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.4u.sdk -mtune=G4 -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/montegoulding/Dropbox/mergJSON/build/mergJSON.build/Release/mergJSON.build/mergJSON.hmap -I/Users/montegoulding/Dropbox/mergJSON/build/Release/include -I/Users/montegoulding/jansson/src -I/Users/montegoulding/Dropbox/mergJSON/build/mergJSON.build/Release/mergJSON.build/DerivedSources/ppc -I/Users/montegoulding/Dropbox/mergJSON/build/mergJSON.build/Release/mergJSON.build/DerivedSources -F/Users/montegoulding/Dropbox/mergJSON/build/Release -c /Users/montegoulding/Dropbox/mergJSON/mergJSON/jansson/src/error.c -o /Users/montegoulding/Dropbox/mergJSON/build/mergJSON.build/Release/mergJSON.build/Objects-normal/ppc/error.o

/usr/libexec/gcc/powerpc-apple-darwin10/4.0.1/as: assembler (/usr/bin/../libexec/as/ppc/as or /usr/bin/../local/libexec/as/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/as/x86_64/as for architecture x86_64
/usr/bin/../libexec/as/i386/as for architecture i386
/usr/bin/../libexec/as/arm/as for architecture arm
/Users/montegoulding/Dropbox/mergJSON/mergJSON/jansson/src/error.c:63: fatal error: error writing to -: Broken pipe
compilation terminated.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1561
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: ExternalsEnvironment update for desktop?

Post by monte » Thu Jun 27, 2013 10:23 am

one step closer... decompress XcodePPCas.tar.gz and copy the ppc folder to /usr/libexec/as and the broken pipe errors go away... must not have been installing to the right location...

now:

Ld build/mergJSON.build/Release/mergJSON.build/Objects-normal/ppc/mergJSON normal ppc
cd /Users/montegoulding/Dropbox/mergJSON
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc-4.0 -arch ppc -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.4u.sdk -L/Users/montegoulding/Dropbox/mergJSON/build/Release -F/Users/montegoulding/Dropbox/mergJSON/build/Release -filelist /Users/montegoulding/Dropbox/mergJSON/build/mergJSON.build/Release/mergJSON.build/Objects-normal/ppc/mergJSON.LinkFileList -mmacosx-version-min=10.4 -o /Users/montegoulding/Dropbox/mergJSON/build/mergJSON.build/Release/mergJSON.build/Objects-normal/ppc/mergJSON

ld: unknown/unsupported architecture name for: -arch ppc
collect2: ld returned 1 exit status
Command /Applications/Xcode.app/Contents/Developer/usr/bin/gcc-4.0 failed with exit code 1
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1561
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: ExternalsEnvironment update for desktop?

Post by monte » Thu Jun 27, 2013 11:06 am

well... can't figure out what I need to do to get ld to recognise ppc as an architecture... there's half a dozen of those as folders and I've dropped ppc in all of them
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “Engine Contributors”