You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Harbs <ha...@gmail.com> on 2013/09/01 12:29:41 UTC
Building the SDK
It's been a while since I tried to build the SDK from source and I don't remember the details.
Assuming I have the git repository on my machine, what's the recommended process for building the SDK while retaining the ability to debug the source? (without messing up the git directories…)
I tried looking around the wiki, but did not see instructions (sorry if I missed it). Any pointers would be very much appreciated!
Harbs
Re: Building the SDK
Posted by Harbs <ha...@gmail.com>.
Nope. Escaping the paths does not help. (The variable cannot be set at all.)
I guess I'll remove the space in the paths…
On Sep 1, 2013, at 4:00 PM, Harbs wrote:
> Okay. Getting somewhere…
>
> It looks like it's splitting the space into two separate paths:
> ls: /Users/harbs/Apache: No such file or directory
> ls: Flex/Dependencies/player/: No such file or directory
>
> Does the build script not support vars with spaces? Do I need to double escape the variable?
>
> I'm setting it like this:
> PLAYERGLOBAL_HOME=/Users/harbs/Apache\ Flex/Dependencies/player/
>
> I'll try to double escape the spaces and see if that helps…
>
> On Sep 1, 2013, at 3:54 PM, Justin Mclean wrote:
>
>> Hi,
>>
>>> The variable is set:
>>> echo $PLAYERGLOBAL_HOME
>>> /Users/harbs/Apache Flex/Dependencies/player/
>>>
>>> And the file structure looks like this:
>>> /Users/harbs/Apache Flex/Dependencies/player/11.1/playerglobal.swc
>>> (I only added 11.1)
>>
>> Looks OK to me but try this:
>> ls $PLAYERGLOBAL_HOME
>>
>> I get:
>> 10.0 10.1 10.2 10.3 11.0 11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8
>>
>> And in each directory is a playerglobal.swc. eg
>> ls $PLAYERGLOBAL_HOME/11.5
>> gives:
>> playerglobal.swc
>>
>> You might want to check frameworks/flex-config.xml and see what that target-player is set to 11.1 like so " <target-player>11.1</target-player>".
>>
>> Justin
>>
>
Re: Building the SDK
Posted by Harbs <ha...@gmail.com>.
Okay. Getting somewhere…
It looks like it's splitting the space into two separate paths:
ls: /Users/harbs/Apache: No such file or directory
ls: Flex/Dependencies/player/: No such file or directory
Does the build script not support vars with spaces? Do I need to double escape the variable?
I'm setting it like this:
PLAYERGLOBAL_HOME=/Users/harbs/Apache\ Flex/Dependencies/player/
I'll try to double escape the spaces and see if that helps…
On Sep 1, 2013, at 3:54 PM, Justin Mclean wrote:
> Hi,
>
>> The variable is set:
>> echo $PLAYERGLOBAL_HOME
>> /Users/harbs/Apache Flex/Dependencies/player/
>>
>> And the file structure looks like this:
>> /Users/harbs/Apache Flex/Dependencies/player/11.1/playerglobal.swc
>> (I only added 11.1)
>
> Looks OK to me but try this:
> ls $PLAYERGLOBAL_HOME
>
> I get:
> 10.0 10.1 10.2 10.3 11.0 11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8
>
> And in each directory is a playerglobal.swc. eg
> ls $PLAYERGLOBAL_HOME/11.5
> gives:
> playerglobal.swc
>
> You might want to check frameworks/flex-config.xml and see what that target-player is set to 11.1 like so " <target-player>11.1</target-player>".
>
> Justin
>
Re: Building the SDK
Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,
> The variable is set:
> echo $PLAYERGLOBAL_HOME
> /Users/harbs/Apache Flex/Dependencies/player/
>
> And the file structure looks like this:
> /Users/harbs/Apache Flex/Dependencies/player/11.1/playerglobal.swc
> (I only added 11.1)
Looks OK to me but try this:
ls $PLAYERGLOBAL_HOME
I get:
10.0 10.1 10.2 10.3 11.0 11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8
And in each directory is a playerglobal.swc. eg
ls $PLAYERGLOBAL_HOME/11.5
gives:
playerglobal.swc
You might want to check frameworks/flex-config.xml and see what that target-player is set to 11.1 like so " <target-player>11.1</target-player>".
Justin
Re: Building the SDK
Posted by Harbs <ha...@gmail.com>.
I'm getting this error:
heck-playerglobal-home:
[echo] PLAYERGLOBAL_HOME is ${env.PLAYERGLOBAL_HOME}
[echo] playerglobal.version is 11.1
BUILD FAILED
/Users/harbs/Documents/Apache Flex/git/Flex SDK/build.xml:168: The environment variable PLAYERGLOBAL_HOME is not set to a directory
The variable is set:
echo $PLAYERGLOBAL_HOME
/Users/harbs/Apache Flex/Dependencies/player/
And the file structure looks like this:
/Users/harbs/Apache Flex/Dependencies/player/11.1/playerglobal.swc
(I only added 11.1)
Any suggestions on what I'm doing wrong?
On Sep 1, 2013, at 3:03 PM, Justin Mclean wrote:
> Hi,
>
> BTW building the SDK and even making it a usable SDK leaves git reasonably clean. That way you don't always need to do a full build but just build the project you need (taking under a minute compared to 7-8 minutes for a full build).
>
> Thanks,
> Justin
Re: Building the SDK
Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,
BTW building the SDK and even making it a usable SDK leaves git reasonably clean. That way you don't always need to do a full build but just build the project you need (taking under a minute compared to 7-8 minutes for a full build).
Thanks,
Justin
Re: Building the SDK
Posted by Mark Kessler <ke...@gmail.com>.
I run such a different setup then the majority here, not sure how much
config I can give... but as for keeping your Git Repositories clean, I use
one way file syncing. Meaning I sync the files from Git to my SDK build
folder. The only downside is having to rebuild the SDK (6-7 mins) after
you do that. It does keep your environment clean though.
-Mark
On Sun, Sep 1, 2013 at 6:29 AM, Harbs <ha...@gmail.com> wrote:
> It's been a while since I tried to build the SDK from source and I don't
> remember the details.
>
> Assuming I have the git repository on my machine, what's the recommended
> process for building the SDK while retaining the ability to debug the
> source? (without messing up the git directories…)
>
> I tried looking around the wiki, but did not see instructions (sorry if I
> missed it). Any pointers would be very much appreciated!
>
> Harbs
Re: Building the SDK
Posted by Harbs <ha...@gmail.com>.
Still no go:
Buildfile: /Users/harbs/Documents/ApacheFlex/git/FlexSDK/build.xml
check-playerglobal-home:
[echo] PLAYERGLOBAL_HOME is ${env.PLAYERGLOBAL_HOME}
[echo] playerglobal.version is 11.1
BUILD FAILED
/Users/harbs/Documents/ApacheFlex/git/FlexSDK/build.xml:168: The environment variable PLAYERGLOBAL_HOME is not set to a directory
Total time: 0 seconds
It's been a while since I felt like such an idiot… ;-)
Maybe I'll try to restart my machine a bit later…
On Sep 1, 2013, at 4:27 PM, Justin Mclean wrote:
> Hi,
>
> There's still a space in the path - try removing that? I know it was an issue early on but thought it had been fixed - perhaps not.
>
>> /Users/harbs/Documents/ApacheFlex/git/Flex SDK/build.xml
>
> Thanks,
> Justin
>
>
Re: Building the SDK
Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,
There's still a space in the path - try removing that? I know it was an issue early on but thought it had been fixed - perhaps not.
> /Users/harbs/Documents/ApacheFlex/git/Flex SDK/build.xml
Thanks,
Justin
Re: Building the SDK
Posted by Harbs <ha...@gmail.com>.
Never mind. I was missing Documents from the path. Removing the space helps, but it is still not working:
check-playerglobal-home:
[echo] PLAYERGLOBAL_HOME is ${env.PLAYERGLOBAL_HOME}
[echo] playerglobal.version is 11.1
BUILD FAILED
/Users/harbs/Documents/ApacheFlex/git/Flex SDK/build.xml:168: The environment variable PLAYERGLOBAL_HOME is not set to a directory
Total time: 0 seconds
Gavriels-MacBook-Air:Flex SDK harbs$ ls $PLAYERGLOBAL_HOME
11.1
Gavriels-MacBook-Air:Flex SDK harbs$ ls $PLAYERGLOBAL_HOME/11.1
playerglobal.swc
On Sep 1, 2013, at 4:08 PM, Harbs wrote:
> Bah. Removing the space did not help:
>
> check-playerglobal-home:
> [echo] PLAYERGLOBAL_HOME is ${env.PLAYERGLOBAL_HOME}
> [echo] playerglobal.version is 11.1
>
> BUILD FAILED
> /Users/harbs/Documents/ApacheFlex/git/Flex SDK/build.xml:168: The environment variable PLAYERGLOBAL_HOME is not set to a directory
>
> Total time: 0 seconds
>
> Gavriels-MacBook-Air:Flex SDK harbs$ echo $PLAYERGLOBAL_HOME
> /Users/harbs/ApacheFlex/Dependencies/player/
>
> I have other work I need to do. I'll come back to this later…
>
> On Sep 1, 2013, at 4:00 PM, Justin Mclean wrote:
>
>> Hi,
>>
>> Your structure looks fine, double check the env variable are full paths not relative, otherwise it may be that there's still an issue with spaces in paths in the build files.
>>
>> Justin
>
Re: Building the SDK
Posted by Harbs <ha...@gmail.com>.
Bah. Removing the space did not help:
check-playerglobal-home:
[echo] PLAYERGLOBAL_HOME is ${env.PLAYERGLOBAL_HOME}
[echo] playerglobal.version is 11.1
BUILD FAILED
/Users/harbs/Documents/ApacheFlex/git/Flex SDK/build.xml:168: The environment variable PLAYERGLOBAL_HOME is not set to a directory
Total time: 0 seconds
Gavriels-MacBook-Air:Flex SDK harbs$ echo $PLAYERGLOBAL_HOME
/Users/harbs/ApacheFlex/Dependencies/player/
I have other work I need to do. I'll come back to this later…
On Sep 1, 2013, at 4:00 PM, Justin Mclean wrote:
> Hi,
>
> Your structure looks fine, double check the env variable are full paths not relative, otherwise it may be that there's still an issue with spaces in paths in the build files.
>
> Justin
Re: Building the SDK
Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,
Your structure looks fine, double check the env variable are full paths not relative, otherwise it may be that there's still an issue with spaces in paths in the build files.
Justin
Re: Building the SDK
Posted by Harbs <ha...@gmail.com>.
I'm really not having a lot of luck today…
I tried building TLF separately just to see what happens and it seems to be looking for "flex-sdk" one level up from TLF:
Buildfile: /Users/harbs/Documents/Apache Flex/git/TLF/build.xml
[echo] FLEX_HOME is /Users/harbs/Documents/Apache Flex/git/TLF/../flex-sdk
BUILD FAILED
/Users/harbs/Documents/Apache Flex/git/TLF/build.xml:65: /Users/harbs/Documents/Apache Flex/git/flex-sdk does not exist.
My structure looks like this:
Documents
Apache Flex
git
Flex SDK
(the full sdk repro)
TLF
Is this wrong?
On Sep 1, 2013, at 2:50 PM, Justin Mclean wrote:
> Hi,
>
>> It's been a while since I tried to build the SDK from source and I don't remember the details.
>
> Just follow the README, basically check out the sdk and tlf repos and then set up the required environment vars and do an "ant main".
>
> Example environment vars on OSX
> ANT_HOME=/usr/share/ant
> AIR_HOME=/Users/justinmclean/Documents/air/mac/AdobeAIRSDK/
> PLAYERGLOBAL_HOME=/Users/justinmclean/Documents/player/
> PIXELBENDER_HOME=/Applications/Utilities/Adobe Utilities-CS5.localized/Pixel Bender Toolkit 2/
> TLF_HOME=/Users/justinmclean/Documents/ApacheFlexTLFGit/
>
> May also need this if doing a full release.
> ADOBE_EXTENSION_MANAGER=/Applications/Adobe Extension Manager CS5/Adobe Extension Manager CS5.app/Contents/MacOS/Adobe Extension Manager CS5
>
> Hope that helps,
> Justin
>
Re: Building the SDK
Posted by Harbs <ha...@gmail.com>.
Ah. The readme… :-X
Thanks for the list of envoronment vars. That was helpful.
Thanks!
Harbs
On Sep 1, 2013, at 2:50 PM, Justin Mclean wrote:
> Hi,
>
>> It's been a while since I tried to build the SDK from source and I don't remember the details.
>
> Just follow the README, basically check out the sdk and tlf repos and then set up the required environment vars and do an "ant main".
>
> Example environment vars on OSX
> ANT_HOME=/usr/share/ant
> AIR_HOME=/Users/justinmclean/Documents/air/mac/AdobeAIRSDK/
> PLAYERGLOBAL_HOME=/Users/justinmclean/Documents/player/
> PIXELBENDER_HOME=/Applications/Utilities/Adobe Utilities-CS5.localized/Pixel Bender Toolkit 2/
> TLF_HOME=/Users/justinmclean/Documents/ApacheFlexTLFGit/
>
> May also need this if doing a full release.
> ADOBE_EXTENSION_MANAGER=/Applications/Adobe Extension Manager CS5/Adobe Extension Manager CS5.app/Contents/MacOS/Adobe Extension Manager CS5
>
> Hope that helps,
> Justin
>
Re: Building the SDK
Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,
> It's been a while since I tried to build the SDK from source and I don't remember the details.
Just follow the README, basically check out the sdk and tlf repos and then set up the required environment vars and do an "ant main".
Example environment vars on OSX
ANT_HOME=/usr/share/ant
AIR_HOME=/Users/justinmclean/Documents/air/mac/AdobeAIRSDK/
PLAYERGLOBAL_HOME=/Users/justinmclean/Documents/player/
PIXELBENDER_HOME=/Applications/Utilities/Adobe Utilities-CS5.localized/Pixel Bender Toolkit 2/
TLF_HOME=/Users/justinmclean/Documents/ApacheFlexTLFGit/
May also need this if doing a full release.
ADOBE_EXTENSION_MANAGER=/Applications/Adobe Extension Manager CS5/Adobe Extension Manager CS5.app/Contents/MacOS/Adobe Extension Manager CS5
Hope that helps,
Justin