Command-line Compilation of Photoshop Panels
Hello,
I'm attempting to create a Photoshop Panel using the Flex SDK and the mxmlc compiler. I'd really love to avoid Flash Builder. Here is the compilation line and the resulting error:
~/dev/shared/flex/bin/mxmlc --show-actionscript-warnings=true --strict=true -include-libraries=CSXSLibrary-2.0-sdk-3.4.swc -load-config=config.xml gridpanel.mxml
Loading configuration file /Users/justin/dev/me/photoshop/gridpanel/config.xml
/Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.core:IWindow)
Error: Type was not found or was not a compile-time constant: NativeWindow.
/Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.events:FlexNativeMenuEvent)
Error: Type was not found or was not a compile-time constant: NativeMenu.
/Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.events:FlexNativeMenuEvent)
Error: Type was not found or was not a compile-time constant: NativeMenuItem.
/Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
Error: Type was not found or was not a compile-time constant: HTMLHistoryItem.
/Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
Error: Type was not found or was not a compile-time constant: HTMLUncaughtScriptExceptionEvent.
/Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
Error: Type was not found or was not a compile-time constant: HTMLHost.
/Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
Error: Type was not found or was not a compile-time constant: HTMLHost.
/Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.managers:NativeDragManagerImpl)
Error: Type was not found or was not a compile-time constant: NativeDragEvent.
I don't have too much experience with Flex, but I'm guessing the CSXS library is using mx.* components that I haven't linked against.
Here is the config file I'm using. My flex SDK is located at "/Users/justin/dev/shared/flex/", hence the absolute paths in the config file.
Out of desperation, I downloaded Flash Builder to see if I could inspect what compilation command it was running. I had it dump the config file it was generating, and attempted to use it (it looks almost identical) and I ended up with the same error when trying to compile from the command line.
For the sake of completness, I have a super basic MXML file.
<?xml version="1.0" encoding="UTF-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<!-- Copyright 2010 __MyCompanyName__. -->
</mx:Application>
Have any idea what I might be missing?
- Thanks
I had an HTML Class instantiated on my code, which is part of air framework. Removing it, all works.
Similar Messages
-
I'm using RH 9 and generating chm outputs on my Win 7 64-bit computer.
I have a core chm help file and several sub chm helps that get merged into it.
I have a batch file that regularly compiles our help files locally and then copies them into a common local directory. It then copies them up to a mapped network drive where they are picked up by the nightly build of our installer.
The problem I have, is that the command line compiler (rhcl.exe) is adding on a full pathway for all the sub helps listed in the [Merge Files] section of the core help's .hhp file, causing these problems:
1) First of all, the pathways are wrong. The pathway it puts on is from the location of my .xpj file of my core help project. The output directory for the compiler is actually sending all the helps to a different local directory.
2) These need to be relative, and should not have full pathways. The full pathways make it so that when I click on a subhelp TOC entry that subhelp's topic opens up in an entirely different window instead of merged into the core help's window. (See #13 on Peter's helpful site here about the problem with absolute paths: http://www.grainge.org/pages/authoring/rh9/using_rh9.htm)
Here' what I want it to look like (the good):
[MERGE FILES]
pcdmisportable.chm
pcdmistutor.chm
pcdmisvision.chm
pcdmislaser.chm
pcdmiscmm.chm
pcdmisUJB.chm
pcdbasic.chm
toolkitmodulesvwmp.chm
pcdmisdci.chm
toolkitmodules.chm
pcdmisnc.chm
pcdmisip.chm
toolkitmodulesblade.chm
pcdmisregistry.chm
pcdmisfixturing.chm
Here's what it looked like after the command line compile (the bad and the ugly):
[MERGE FILES]
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisportable.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmistutor.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisvision.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmislaser.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmiscmm.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisUJB.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdbasic.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\toolkitmodulesvwmp.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisdci.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\toolkitmodules.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisnc.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisip.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\toolkitmodulesblade.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisregistry.chm
d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisfixturing.chm
I've done the following ....
I've checked my .xpj file and they have relative paths only.
I've deleted my .cpd file.
I've removed chm references from my rhbag.apj.
... and the hhp file still gets modified with pathways to my core project
directory tacked on:
It's strange; because if I compile without the command line, by opening the project and running the generation inside of RH, I don't get the problem where it re-writes the [Merge Files] section with the pathnames.
Any ideas on where are these rogue full pathways coming from and how I can fix it? Or is it just a bug with the command line version of the compiler that Adobe will need to fix?I don't use command line generation but to the best of my knowledge, this has not been fixed.
Please follow this link.
http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
RoboHelp HTML Command-Line Compiler
Is there a command-line compiler for RoboHelp HTML?
Hi all
While that may be technically accurate, I don't believe you
will end up with any "RoboHelp Specific" features. Conditional
expressions, browse sequences, etc.
Cheers... Rick -
Pixel Bender command line compiler.
A blog post from kevin goldsmith http://blogs.adobe.com/kevin.goldsmith/2008/09/spilling_the_be.html says that adobe is soon going to release a command line compiler for pixel bender. has there been any progress on this as i'd really like to get my hands onto it.
is the compiler going to be open source, so we can have a look at the opcodes or atleast the EBNF grammar. if not open source is adobe going to release any technical specification as they have done for swf file format specification.
Regards,
Manoj.The command-line compiler was part of "pre-release 5" that was released several months ago. You can download it as part of the latest release of the Pixel Bender Toolkit on Labs. (see: http://labs.adobe.com/technologies/pixelbender/releasenotes.html)
We are discussing several options around opening up aspects of the Pixel Bender to Pixel Bender Bytecode compiler. Watch my blog (http://blogs.adobe.com/kevin.goldsmith) for more info. -
Okay, folks. We have TCS3. We have things set up so that the nightly software build inlcudes the online help using the RHCL command. After upgrading from RH7 to RH9 the WebHelp output (or any output) created from the command line appears to use only the basic default settings in RH. I've gotten around the problem with the skin by renaming our custom skin to Default. However, all other settings in the WebHelp wizard are still ignored (such as navigation buttons). Additionally, the TOC is missing. I've had the same problem using one of the Adobe-supplied sample projects. Has anyone else had issues with this? I've seen various posts about missing TOC, but nothing I've tried has resolved the problem here. Everything's peachy if we compile from inside the project but due to the project size, the fact that we keep it in RoboSource Control, network speeds, etc., it can take a couple of hours to complete a compile using that method. The current work-around is to compile through RH then zip the WebHelp output and put it in a shared network location for the developers to grab in the nightly build. It works, but it worked better using the command line compiler. If we could get it working, we'd all be relieved. Any help is appreciated!!!
Thanks a million!
MeghanI don't use command line generation but Bill Albing very kindly wrote an article that can be found on my site. Maybe something he has included in that will help you.
http://www.grainge.org/pages/authoring/command_line/command_line.htm
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
ERR file produced thru command line compile
I'm trying to compile Oracle6 and Oracle9i forms thru the command line. Fmx files are created but so are err files. Upon inspection of the err files, it just states that there are no compilation errors. So this means that the fmx files are created correctly.
Is there a way for the Oracle6 form compiler (ifcmp60.exe) and the Oracle9i form compiler (ifcmp90.exe) to suppress the creation of err files if there are no compilation errors ?
thanks.No they will always be created. To check if there is a error with the compile you should check the DOS %ERRORLEVEL% value and if that indicates a non zero value then look at the .err file.
-
Command line compiler wierdness
Have been compiling RoboHelp 7 HTML Help projects from the command line without issue, but suddenly no glossary text is displayed in the compiled chms. The .glo file is compiled, but the glossary tab is blank.
All required dlls are registered, and surprisingly, if I compile the project in the RoboHelp 7 GUI, the glossary text does show up in the compiled chm.
Using RoboHelp 7.0.3. I've uninstalled and reinstalled, and tried building on a different PC with the same results.
Very odd - anyone else come across this and know how to fix it?Hmmm... Thanks Jeff but I think that goes right back to the realm of a manual process.
Any other thoughts?
Thanks again! -
Is there an easy way to compile an application via the command line for a JSC application? What about generate the WAR. I am sure it can be done using Javac, but am wondering if there is a batch file or ANT script I could use.
ThanksDid you try to go into the <project> directory and do an 'ant dist' ? That should generate a war file for you.
You might have to set some additional properties for J2EE 1.3 compiant wars etc.
Thanks,
-- Marco -
Command Line Compile errors in RH6
We're evaluationg RH6. We can compile Webhelp from the
command line, but on one of our machines we get the following
template errors:
<Snip>___________________________________________
Applying WebHelp 5.50 Template...
Template Error: can not resolve macro: WH_LNG_LoadingData
..Template Error: can not resolve macro: WH_LNG_MergeError1
Template Error: can not resolve macro: WH_LNG_MergeError2
Template Error: can not resolve macro:
WH_LNG_JS_alert_ProjectLoadingFail
.Template Error: can not resolve macro: WH_LNG_PreTooltip in
c:\foo\whtopic.js
Template Error: can not resolve macro: WH_LNG_NextTooltip in
c:\foo\whtopic.js
Template Error: can not resolve macro:
WH_LNG_Show_Navigation_Component in c:\foo\whtopic.js
Template Error: can not resolve macro:
WH_LNG_Hide_Navigation_Component in c:\foo\whtopic.js
Template Error: can not resolve macro:
WH_LNG_Show_Navigation_Component in c:\foo\whtopic.js
Template Error: can not resolve macro:
WH_LNG_Hide_Navigation_Component in c:\foo\whtopic.js
Template Error: can not resolve macro: WH_LNG_SyncTocTooltip
in c:\foo\whtopic.js
.....Template Error: can not resolve macro:
WH_LNG_IndexSelectTopicTitle
Template Error: can not resolve macro:
WH_LNG_IndexSelectTopicLabel
.....Template Error: can not resolve macro:
WH_LNG_LoadingContentsData
Template Error: can not resolve macro: WH_LNG_Book
Template Error: can not resolve macro: WH_LNG_Page
Template Error: can not resolve macro: WH_LNG_Remote_Page
....Template Error: can not resolve macro:
WH_LNG_IndexBtnText
.Template Error: can not resolve macro: WH_LNG_CantSearch
Template Error: can not resolve macro: WH_LNG_LoadingData
..Template Error: can not resolve macro: WH_LNG_SearchPrompt
in c:\foo\whfform.htm
Template Error: can not resolve macro: WH_LNG_SearchPrompt in
c:\foo\whfform.htm
Template Error: can not resolve macro: WH_LNG_FtsBtnText
....Template Error: can not resolve macro:
WH_LNG_JS_alert_ErrorInLoading
.......................................Template Error: can
not resolve macro: WH_LNG_SearchPrompt in c:\foo\whtbar.js
Template Error: can not resolve macro:
WH_LNG_ToolBarSearchBtnText in c:\foo\whtbar.js
Template Error: can not resolve macro:
WH_LNG_Show_Navigation_Component in c:\foo\whtbar.js
Template Error: can not resolve macro:
WH_LNG_Hide_Navigation_Component in c:\foo\whtbar.js
Template Error: can not resolve macro:
WH_LNG_Hide_Navigation_Component in c:\foo\whtbar.js
Template Error: can not resolve macro: WH_LNG_SyncTocTooltip
in c:\foo\whtbar.js
Template Error: can not resolve macro: WH_LNG_NextTooltip in
c:\foo\whtbar.js
Template Error: can not resolve macro: WH_LNG_PreTooltip in
c:\foo\whtbar.js
<Snip>----------------------------------------------------------------------
The compile is successful, and we can view the output.
Note that the project is under SVN (Tortoise). It does not
generate the errors when compiled on the machine where it resides.
The errors come when compiling from the other machine.
Can anyone tell me the source of these errors?Hello Dan,
The phrase "Template Error: can not resolve macro:" tells me
that you are using a template, which means that you are likely
generating printed or PDF output. Is this correct?
Can you generate printed output from this computer manually?
Has Microsoft Word been launched on this computer?
Are the macros setup in MS Word set high? You may consider
lowering it some.
If these steps do not help narrow down the issue some, you
might consider renaming normal.dot. You can look on Microsoft's web
site for details on how to do this:
http://support.microsoft.com/kb/822005.
Thank you,
Bobby Walker
Adobe Technical Support -
I have downloaded the trial copy of RH6 and I'm trying to
generate WebHelp from the command line. This is a project imported
from X5. The project compiles properly from within RH, but from the
command line I get the error "Warning: No baggage file
description". The compile ends at that point.
Is there a solution to this or a workaround? This is
influencing whether we upgrade to RH6 or jump ship.Hello Dan,
I will contact you directly. I would like to gather your
project to see if I can repoduce this failure and see about working
on a resolution. Please check your Forum mail.
Thank you,
Bobby Walker
Adobe Technical Support -
Since flash became a complex environment and application are
often part of huge and hard to mantain projects is very very
important for us and many like us (as I see in hundreds forums) to
have an external command line .fla compiler. That because building,
testing automation could be simply realized if we have such a
command "exe" to call. We tried using macro recording system, but
it is a really disaster beacause compilation time is always
different.It seems that JSFL could help in automate compilation. It
opens ide and can launch build action according JSFL istructions.
It could be also done on a .fla fileset.
Some interesting posts about that:
http://www.mikechambers.com/blog/2003/09/11/executing-jsfl-files/
http://www.actionscript.org/forums/showthread.php3?t=148946
http://www.gskinner.com/blog/archives/2004/08/jsfl_fla_batch_1.html -
SWF and XML for Command line compiling for iOS
I need to compile an application for iOS using command line ADT. I need to pass the SWF and XML to the ADT command. But which ones do I need to pass as the ones available are in the debug folder and I don't think they are well optimized for mobile publishing. Also the XML has debug with id in it.
Hi,
Yes, Flash Builder, by default, doesn’t save release swfs. A simpler way to get them however be to go to Project->Properties->Flex Compiler and set
‘-debug=false’ in compiler arguments.
Now the swf generated in bin-debug will be a release swf.
Please let us know in case you face any issues.
Thanks,
Amish. -
Command Line Compilation of a Project with different packages
Hi,
I am trying to compile a project through command line, which has different packages with many classes in it. Now If I try to compile package by package It's complaining about other referenced classes of different packages. So I created .bat file, which includes all the packages, but it's complaining input line is too long.
D:\jdk1.3.1\bin>app.bat
My bat file is
javac -d d:\Application\build d:\Application\source\com\ibc\rules\login\*.java d:\Application\source\com\ibc\rules\lookup\*.java .................d:\Application\source\com\ibc\wid\events\*.java d:\Application\source\com\ibc\wid\frames\cust\*.java ...
and so on............
Is there any solution for this problem?
Thanks in advance....I think the prefered and more elegant way to compile project including packages should be writing makefiles including their compilation, installation, deploying - rules ..
Make is really powerful, the maybe only weak-point is that there are some distribution of them, gnu-make, microsoft nmake .. which are slightly different, that made porting among platforms difficult.
The jakarta-ant was a new approach to this which uses xml parser to proof the dependencies, etc ..
Because I'm not familiar yet with xml & ant and as a in-blooded unix user, "make" is still my prefered way to do roject.
The easiest way to get unix environment required for using make in Windows platforms is to download the "unxutils". It includes make, bzip2, diff, ... and other unix-tools. Refer to this (found from search by google) :
http://www.weihenstephan.de/~syring/win32/
http://www.weihenstephan.de/~syring/win32/UnxUtils.zip
http://sourceforge.net/projects/unxutils/
For more documentation on how to write makefile, use make -tool, see
http://www.gnu.org/manual/
http://www.gnu.org/manual/make-3.79.1/html_mono/make.html -
Mxmlc command line compiling under Linux
Trying to compile a large library of documents with my AIR app using commnad line and cannot get a runtime created due to
several warnings in the code - which I expected to be ignored.
Is there no way to compile and ignore warnings ?
I've tried editing the air-config.xml and using the following
amxmlc -strict=false -show-unused-type-selector-warnings=false [mySourceMXML]
neither will compile the app and displays the list of code warnings (primarily CSS)
Also it even reports an untyped variable warning for code that is //commented ????Hi,
You need to download the Adobe AIR SDK for Linux from http://www.adobe.com/cfusion/entitlement/index.cfm?e=airsdk&loc=en_us, extract it and use ADT(which you will get as part of this SDK) to package the application. You might want to see http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_5.html#1035876 for checking out the ADT options and usage.
Hope that helps.
Regards,
Sanika -
Command line install of Photoshop CS
We have a volume license of Photoshop CS, and I need to reload all my computers that have it installed. Is there a way I can make a batch file to install Photoshop CS with our serial number?
Check the support pages. It's called silent install/ deployment and the steps as to which installer script files need to be modified should be laid out there.
Mylenium
Maybe you are looking for
-
First of all, hello everybody! My hard disk is about to die (getting lots of CRC errors), so I was wondering does the 3000 C200 8922-BJG model support 250GB hard disks? On this site it says only up to 120GB, but I thought it could be a bit outdated o
-
hi friends i created a table control .but its giving syntax error like this . The field "AGE" is not assigned to a loop. "LOOP ... ENDLOOP" must appear in "PBO" and "PAI". please help me. please look at this code . tables : zpr_table. data
-
Can´t get logic to record audio
ok, i´m feelin´really stupid here - but it´s true - I can´t get logic to record audio in some songs. the only thing - as far as I´m concerned - that is changed while swaping between songs are the song settings. that´s where I´ve been looking for some
-
WebOS Cloud Services to end January 15, 2015 alternatives?
what happen with this "Cloud services support for webOS devices will be endingon January 15, 2015"
-
EBCC NPE, Web Flow not loaded
From time to time EBCC has problems loading webflows that it creates. I have twice now had EBCC create, manipulate and save a wf, only to fail to open it again later with the error "Could not open <wfname>. null". The app itself also prints a NPE and