Embed img using mxmlc, Linux/gij

Hi,
I'm trying to embed an image into a .swf. I am compiling from
a .as file using mxmlc on Linux using gij 4.1.1. The compile step
always generates the following fatal error:
MyTest.as(60): col: 3: Error: exception during transcoding:
Failed to grab pixels for image /files/test.png
It fails likewise for GIF, JPG, etc. Fails regardless of
filetype.
Source code is just a simple embed directive:
[Embed(source='./test.png')]
private var MyPhoto:Class;
Anyone else seen this?

I'm also having this issue on linux. Same build works
flawlessly on windows and mac.
Anyone have more information?

Similar Messages

  • How to solve "Error: Invalid Embed directive in stylesheet - can't resolve source" while building using mxmlc.exe on command prompt

    Hi,
    Currently, I am developing a powershell script for Flex build automation.
    I found some problem and have been trying to search any references and tried any ways to fix it but It did not work.
    I am using compc.exe for compiling the libraries and it works fine.
    I compiled css files into swf files using mxmlc.exe and it works fine.
    However, I have a problem while building my main application (mxml file).
    It complains about embedded resources.
    I run this command, it works fine:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\styleLang.css" -output "C:\{somePath}\FlashClient_deploy\styleLang.swf"
    However, when I tried to run these command on cmd for testing:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\FlashClient.mxml" -load-config "C:\{somePath}\FlashClient\src\dump_config_temp.xml" -output "C:\{somePath}\FlashClient_deploy\flashclient_test.swf"
    I got a lot of this error message:
    this is my folder structure:
      FlashClient
      |
      |---assets
      |---src
          |
          |---FlashClient.mxml
          |---FlashClient.as
          |---FlashClientStyleLoopup.css
          |---styleLang
    Already tried to add / at the beginning of the relative paths but It did not work.
    Also tried to compile one of the image to a swc file and include it on the dump_config, but also did not work. something similar with Tech Diary: Flex : Solution to Error: unable to resolve '/assets/icons/icon.png' for transcoding using Embed tag
    Does anyone know how flex builder resolve the relative path to make the embedded resources work? or how to fix this?
    I've been trying to work on it for days but haven't had any luck.
    Will be really appreciate it if someone could help me with this.
    Many Thanks.

    Hi,
    make sure you are using 32 bit Java JDK. Check that your systems variables CLASSPATH, JAVA_HOME are pointing to correct 32 bit Java JDK folder (e.g. CLASSPATH=C:\Program Files (x86)\Java\jdk1.8.0_25 and JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_25). Also make sure you have 32 bit Java JDK's "bin" folder in your system's variable PATH.

  • Error in linking by using arm-linux-g++

    Hi
    I use arm-linux-g++ to link my program, and get the following error message:
    "/usr/local/BerkeleyDB.4.5b/bdb-4.5.so: could not read symbols: ?????"
    The question marks is post by system, I don't know what it is on earth.
    But it was no problem using gcc/g++ to compile and link the program for PC version. I generated the MAKEFILE by qmake.
    And the configuration in it showed below:
    INCPATH = -I/qt/qt-embedded-arm-3.3.6/mkspecs/qws nux-arm-g++ -I. -I. -I../..
    /include -I.moc/release-shared-mt-emb-arm/ -I /usr/local/BerkeleyDB.4.5/include
    LIBS = $(SUBLIBS) -L/qt/qt-embedded-arm-3.3.6 b -lqte-mt -ldl -lpthread -L/usr/local/BerkeleyDB.4.5 b -ldb-4.5 -g
    My arm-linux-gcc/ arm-linux-g++ version is 2.95.3, my system is Red Hat Enterprise 4.2. And I am using C++.
    I think that it should be the problem linking configuration, but I do not know how to make it correct.

    I found the answer!!
    1.Modify the configure file of Berkeley DB
    #tar zxfv db-4.x.tgz
    #cd db-4.x/build_unix
    #vi /dist/configure
    Insert the following lines to configure file
    CC=/opt/host/armv4l/bin/armv4l-unknown-linux-gcc
    AR=/opt/host/armv4l/bin/armv4l-unknown-linux-ar
    RANLIB=/opt/host/armv4l/bin/armv4l-unknown-linux-ranlib
    STRIP=/opt/host/armv4l/bin/armv4l-unknown-linux-strip
    #../dist/configure prefix=/opt/db host=arm41-unknown-linux
    (Then, lib and include directories will be installed into /opt/db)
    OR
    #env CC=/opt/host/armv4l/bin/armv4l-unknown-linux-gcc \
    AR=/opt/host/armv4l/bin/armv4l-unknown-linux-ar \
    RANLIB=/opt/host/armv4l/bin/armv4l-unknown-linux-ranlib \
    STRIP=/opt/host/armv4l/bin/armv4l-unknown-linux-strip \
    ../dist/configure prefix=/opt/db host=arm41-unknown-linux
    2.Install with this configuration
    #make
    #make install
    #vi /etc/ld.so.conf
    3.Append the lib path of BDB into this file, now the path is /opt/db/lib
    #ldconfig
    4.Compile and link my program again, everything is OK!!! :)

  • Installing/using Arch linux in Parallels on Mac OS X Lion MBP Retina

    I am having a problem where I can't install or use Arch Linux as the same error always crops up at some point or another.
    loading user-specifide modules [busy]
    pc_ich: RCBA is disabled by hardware/BIOS, device disabled
    pc_ich [some random numbers]: I/O space for GPIO uninitialized
    BUG: soft lockup -- CPU#0 stuck for 22s [kworker/u:0:5]
    Thanks for any ideas.

    I am pretty sure that Linux has some known serious issues with thre retina Macbook as well as some of the new Airs.
    See this thread, it may help: https://bbs.archlinux.org/viewtopic.php?id=144255&p=1
    Edit: Sorry i didn't read the "Parallels" in the title.  Though I am not familiar with parallels, so I am not sure what kind of system it is actually trying to emulate.  What happens if you use something else like virtualbox or some other free virtual machine software.
    Last edited by WonderWoofy (2012-09-27 03:18:07)

  • I am using Mandriva Linux now and I have installed Firefox 6 but I could not install Java plugin with it. Can anyone please help me how to install it?

    I am using Mandriva Linux now.
    But I am using Firefox 3.6.8, but I cannot install java plugin in it.
    Can anyone please help me how to install it?

    The plugins folder in the Firefox installation folder doesn't exist by default. There is no default plugin in Firefox 4, so that folder would be empty and in thus not included. If you want to use that location then you need to create a plugins folder.
    Did you try /usr/lib/mozilla/plugins ?

  • [SOLVED]Is there anybody using arch linux in coLinux?

    Hei,guys!
    I'm using arch linux in coLinux.I got the image file from sf and I successfully booted it on my machine,em,everything seemed to be OK.But when I tried to do this:
    pacman -Syu
    I got this message :
    checking package integrity...
    error: error while reading package /var/cache/pacman/pkg/gdbm-1.8.3-7-i686.pkg.tar.xz: Unrecognized archive format: Invalid or incomplete multibyte or wide character
    error: failed to commit transaction (libarchive error)
    Errors occurred, no packages were upgraded.
    I think the pacman(maybe just libarchive) is too old to recognize the .pkg.tar.xz files. So dose someone have an idea to work out it?
    Last edited by Cristie (2011-05-28 16:03:35)

    @twilight0:yeah,I acknowledge that,but it didn't work at all. I guess you didn't understand my problem. You know, the pacman coudn't upgrade (in fact I was unable to install any packages) just because the libarchive package was out of date (it meant that I could do nothing with the .tar.xz files downloaded from the mirrors).So I solved the problem by doing like this(Stupid it is, but it really works):
    1.Download libarchive from any of the mirrors around the world.
    2.Find a way to access to the files you just downloaded.
    3.Replace the original libarchive files.
    4.Mofify the local db.It is OK to do this:go to /var/lib/pacman/local,rename the libarchive-VERSION to current version.
    Then I found that depences need openssl >= 1.0.0, so try the same proccess with it.
    So,now everything is running very well.
    Last edited by Cristie (2011-05-28 16:20:03)

  • Use Oracle Linux packages to fix GHOST: glibc vulnerability on RHEL4

    Dear All,
    It is the first time I use the discussion function. Hope someone from Oracle supprot team can help me.
    P.S.  I have Oracle support CSI for DB but I don't find whhich category I should submit my question.
    Here is the our case.
    Our user is still running RHEL 4.8(9) on some servers. For some reason, they don't want to upgrade them at the moment. As you know, GHOST: glibc vulnerability has been announced recently. For RHEL4, they have to purchase ELS subscription to download the packages even though they have the license. Our user doesn't want to pay for that. Meanwhile, we find Oracle Linux provides a package to fix the problem. We told them this finding and they would like to use Oracle Linux patch.
    But to better explain the situation to them, we want confirm with Oracle about several points.
    1. The patch can be downloaded and used for free but there is no support from Oracle,right?
    2. Is it possbile to have the support from Oracle in such case - The OS is RHEL4.8(9) and some patches are provided by Oracle?
    My understanding is that there is no supprot. Please help to confirm.
    Thanks and regards,
    Alpha

    Please note that this is a user forum. You may find responses from Oracle here, but not necessarily.
    To assume that Oracle would provide support for RHEL, just because you install a OL package, is a pretty wild assumption. I'm not aware that any vendor would provide support for another vendor. Nevertheless, OL and RHEL are 100 % user space and binary compatible, and so are the packages, unless you install anything that requires the Oracle UEK kernel or any other vendor specific product that is not GPL.
    If you want to stay with Red Hat you will have to pay for support to Red Hat, or convert your system to Oracle Linux and you can install and download patches and errata for free. See Switching from Red Hat Network to Unbreakable Linux Network (ULN) . OL provides patches and errata for free through Oracle Public YUM. If you need support for Oracle Linux from Oracle technical support, you will also need to buy a subscription to ULN.

  • Where can I download firefox for windows whils using a linux CD?

    My current version of Firefox has become corrupt. When I try to download a new version with Internet Explorer or my current version of firefox it goes to 53% unpacked and then it comes up with file corrupt. I have had the same issue before and have solved it by using a linux CD to download a windows version and it unpacks and installs great. I now cannot find a place where I can specify which version I want and it insists on using the download for Linux which is useless for me.

    Thank you for your quick reply. I have downloaded it using UBUNTU Put it onto a different partician and have burnt it to a CD and installed it. Its now working perfectly.

  • What version of Oracle it's free use for linux

    Hi I want to know what version of Oracle Database it's free to use with linux OS, and how the licencing for more than two procesors is aply or it's a user licencing??
    Thanks for all...!!!

    I don't believe any edition of Oracle is free for a production application. For development purposes, you should be able to download any edition or Oracle for free.
    Of course, I'm neither a lawyer nor a representative of Oracle, so I'd suggest reading the exact license when you download the software.
    Justin

  • Using (free) Linux gives me the money to pay for a Photoshop CC subscription.... I have the money

    Using (free) Linux gives me the money to pay for a Photoshop CC subscription.... I have the money, Adobe Air works on Linux, why not Photoshop CC???
    I have the money, I'm willing to pay.

    How much does a PC operating system (i.e., Windows) cost?  About what a month of Creative Cloud subscription costs, assuming you took advantage of the Windows 8 initial offer.  If not, just a few months worth.  How is the price of the OS a factor?
    People who expect to get real work done use a Mac or PC.  Probably just a Mac in the future.
    -Noel

  • Flashing Tool Use with Linux and DOS

    OK, I am convinced that I should use the MSI Forum HQ USB Flashing Tool on my recently-RMA'd FM2-A75MA-E35.  After reading the documentation repeatedly, I still have questions. 
    I agree that the way to go is to flash from DOS, and I do in fact boot and run FreeDOS from a USB flash drive for video BIOS updates.  But my new msi board runs Linux, not Windows, so I cannot execute and install the Flashing Tool the expected way. 
    1.  So I installed the Flashing Tool on my Win7 system, which runs on a Biostar board.  Can that cause problems?
    2.  Can I put the resulting flashing system on my existing FreeDOS boot USB? 
    3.  As I understand it, the Tool will first read and save the existing BIOS code.  Is there an easy way to archive all of those saves and not overwrite earlier versions?  Is there a way to easily change the filenames in the Tool? 
    4.  On this new board I have on-chip video.  Is the video BIOS automatically updated when burning the MB BIOS?  Is it updated separately? 
    Thanks for your help!

    The forum flash tool can be run from any computer.
    What it does is prepare a bootable use stick. It also places the required flash exectable etc onto the drive and bios. So all you need to do is download whatever bios you wish from msi:
    >>MSI Downloads<<
    Place it on the desktop of the biostar computer, run the flash tool, point it at the bios then to your flash drive. Then put the flash drive in the other computer, hit f11 at boot and boot to the prepared usb stick.
    Then follow the directions.

  • Error while trying to export a report into PDF using JRC (Linux env)

    Hi all,
    I have my web app installed on a Linux environment. When trying to export a CR report into PDF using JRC
    PrintOutputController controller = reportClientDoc.getPrintOutputController();
              ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream) controller.export(ReportExportFormat.PDF);
    I got this error message:
    19/02/2009     10:21:37     b     INFO     PdfExporter: PdfDocumentModeller.modelPage (page 1)
    19/02/2009     10:21:37     b     INFO     PdfExporter: Modelling page
    19/02/2009     10:21:37     b     INFO     PdfExporter: Creating document manager, text modeller and image modeller.
    19/02/2009     10:21:37     b     ERROR     PdfExporter: Exception caught in PDFFormatter.formatPage (from PdfDocumentModeller.modelPage); aborting export
    java.lang.IllegalArgumentException: Data type is not supported.
         at java.awt.image.Raster.createInterleavedRaster(Raster.java:212)
         at java.awt.image.Raster.createInterleavedRaster(Raster.java:178)
         at java.awt.image.ComponentColorModel.createCompatibleWritableRaster(ComponentColorModel.java:2826)
         at java.awt.image.BufferedImage.<init>(BufferedImage.java:439)
         at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.u.<init>(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.d(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
    On my Windows environment the JRC export into PDF work perfectly. I know that there are some known issues regarding the usage of JRC on Linux environments. Could this be one of those?
    Any solution (or workaround) would be highly appreciated!
    Thank you!
    PS Maybe this is relevant: I use a MySQL database!
    Edited by: Sandila Catalin on Feb 19, 2009 10:01 AM

    What kind of image do you have in the report?
    Do you have -Djava.awt.headless=true specified for the Java JVM option?
    Sincerely,
    Ted Ueda

  • [SOLVED] Encrypting an external HDD for use on Linux and Windows

    I want to encrypt an external HDD. I will normally use it on Linux, but there is a chance I might need to decrypt it on a windows machine, one day.
    After searching this forum, the wiki and Wikipedia, it seems that TrueCrypt would be the best solution, but it is, unfortunately, deprecated.
    I am not very familiar with encryption, and I've only used cryptsetup, which I think is not compatible with windows.
    I would like the option to decrypt on a windows machine without the need to install any software on it, even if the disk will be mounted as read-only.
    Thanks in advance.
    Last edited by Sudowoodo (2014-11-21 16:03:20)

    MoonSwan wrote:
    You may want to read the comments under that package on SourceForge.  One of the comments says:
    t-d-k
    This does not currently work on windows 7 and above without an extra step after installing to enable windows 'test mode'. The project has been relaunched/forked as 'DoxBox', which runs on Windows 7 and above. To find it google 'doxbox encryption'.
    The doxbox web site is here  DoxBox
    I see. I will use this once it exits beta, thank you.

  • Building an Application in Windows to be used in Linux (with the Run-Time Engine)

    Hi All,
    I have an LabVIEW project I have developed in a Windows environment.  I can create an Application (.exe) using the Build Specification -> Application Builder which works fine on the development platform.
    I now want to distribute the application to a Linux Environment.  The OS is openSUSE v10.3 (with GNOME).  I have downloaded the two rpm files needed for the run-time engine and installed them, as per here:http://digital.ni.com/softlib.nsf/websearch/97E14BA3E0C14A89862572C300567733?opendocument&node=13207...
    Now, the question is; how do I create an Application in Windows which can be used on the Linux Box?  According to the Application Builder instructions, it's simply a case of removing the .exe extension in the Target File Name options, however, this gives an error "Invalid Extension."
    If I do create an exe and manually remove the extention is doesn't work on the Linux enviroment (typing ./application).
    Has anyone had experiance of this?
    Many Thanks for Any Help,
    Oliver
    Windows XP SP 2
    Labview 8.2.1
    openSUSE v10.3 (with GNOME)
    LabVIEW Run-time Engine Version 8.2.1 for Linux

    The cross-platform nature of LabVIEW refers more to the code than to the executable.
    LV (given the appropriate development version) can compile the same source code into a Windows (using LV for Windows), Linux (using LV for Linux) or Mac (using LV for Mac) program.
    This means you will still have three versions of your program, one for each platform.
    If you want to distribute VIs (without block diagrams), you will also need different versions of these as without the block diagram, they cannot be re-compiled for a new platform.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • How to integrate a .abc file into swf by using mxmlc?

    Enviroment: CrossBridge1.0.1, Flex SDK 4.6
    I use g++ to compile 2 .cc files (the c2as wrapper) & a .a file (the logic)  into a .swc file; then use this .swc as a library for mxmlc to compile the main .as file.
    The Makefile is as follows:
    "$(FLASCC)/usr/bin/g++" $(BASE_CFLAGS) -O4 -L. main.cc test_as3.cc -lmytest -emit-swc=sample.mytest -o mytest.swc
    "$(FLEX)/bin/mxmlc" -static-link-runtime-shared-libraries -library-path=mytest.swc -debug=false MainView.as -o test.swf
    everything is ok.
    But when I add some function calls in .as file, it uses the CModule package:
    in MainView.as:
    import com.adobe.flascc.CModule;
    CModule.malloc
    CModule.writeBytes
    CModule.free
    the mxmlc complains that
    Access of undefined property, CModule.malloc,
    Access of undefined property, CModule.writeBytes,
    Access of undefined property, CModule.free
    Definition com.adobe.flascc:CModule could not be found.
    I found the CModule.abc in sdk/usr/lib folder, and I explored that it do have those functions. but how to import this .abc package into .swf ?
    the follow command doesn't work:
    "$(FLEX)/bin/mxmlc" -static-link-runtime-shared-libraries -library-path=mytest.swc  -import CModule.abc -debug=false MainView.as -o test.swf

    First, you should check out the new version at CrossBridge — CrossBridge
    1.0.1 is quite old.
    For your problem, you don't need to compile Cmodule.abc into your swf, it is already present into your SWC file. Here is the reason why your import is not working.
    When you compile directly to SWF with crossbridge, the compiler put all the crossbridge stuff (CModule included) into the com.adobe.flascc namespace.
    The problem is that, when you build a SWC, there is no garantee that your end application won't include multiple SWC compiled by crossbridge. To prevent namespace clashing, (having multiple Cmodule under the same namespace), all the stuff in the SWC is namespace with the namespace you gave after the -emit-swc command. In this particular case "-emit-swc=sample.mytest"  your namespace is "sample.mytest".
    So you need yo change the import from :
    import com.adobe.flascc.CModule;
    to
    import sample.mytest.CModule;
    and it should work.
    More detail in the documentation : http://crossbridge.io/docs/Reference.html#section_gcc
    Building SWCs
    A SWC is the Flash Runtime equivalent of a shared library. You can link a SWC into a pure ActionScript project either with an IDE (Flash Builder, for example), or via the command-line ActionScript compiler (named mxmlc). A SWC contains the compiled ActionScript bytecode, along with an API catalog so that Flash Builder can perform code hinting while a developer writes ActionScript that uses the API exposed by a SWC.
    When you generate a SWC you must specify an AS3 package name to contain the generated code, and the internal Crossbridge boilerplate code. This lets you link multiple Crossbridge-generated SWCs into one SWF without any function or class collisions. Anywhere you would have previously seen a name starting with com.adobe.flascc this namespace will be replaced with the string passed in the gcc/g++ -emit-swc=... argument.
    -emit-swc=
    Emits a SWC that can be linked into a Flash Builder project or distributed for others to link into their own projects. You must specify the namespace that you want to use to replace the default com.adobe.flascc namespace, this lets you link multiple Crossbridge-generated SWCs into a single project.

Maybe you are looking for