Problems with namespaces in e4x

Hi all

Don't know what is happening to this site - but when I searched previous discussions on xml or e4x, I got 0?

I am trying to generate a file styles.xml for a document to read Open Office open document formats. I added all the namespaces in an XML variable on the first line, and then added a child to the police statements. At this point, the XML looks like this:

<-styles of the document xmlns:style = "urn: oasis: names: tc: opendocument:xmlns:style:1.0" xmlns:text = "urn: oasis: names: tc: opendocument:xmlns:text:1.0" xmlns:table = "urn: oasis: names: tc: opendocument:xmlns:table:1.0" xmlns:draw = "urn: oasis: names: tc: opendocument:xmlns:drawing:1.0" xmlns:fo = "" urn: oasis: names: tc: opendocument:xmlns:xsl - fo-compatible: 1.0 "xmlns:xlink =" " http://www.w3.org/1999/xlink "xmlns =" " http://purl.org/DC/elements/1.1/ " " xmlns:meta = "urn: oasis: names: tc: opendocument:xmlns:meta:1.0" xmlns:number = "urn: oasis: names: tc: opendocument:xmlns:datastyle:1.0" xmlns:presentation = "urn: oasis: names: tc: opendocument:xmlns:presentation:1.0" xmlns:svg = "urn: oasis: names: tc: opendocument:xmlns:svg - compatible: 1.0" xmlns:chart = "urn: oasis: names: tc: opendocument:xmlns:chart:1.0" xmlns:dr3d = "urn: oasis: names: tc: opendocument:xmlns:dr3d:1.0" xmlns "" ": math ="http://www.w3.org/1998/Math/MathML"xmlns:script =" urn: oasis: names: tc: opendocument:xmlns:script:1.0 "xmlns:ooo ="http://openoffice.org/2004/office"xmlns:ooow ="http://openoffice.org/2004/writer"xmlns:oooc ="http://openoffice.org/2004/calc"xmlns:dom ="http://www.w3.org/2001/xml-events"xmlns:rpt ="http://openoffice.org/2005/report"xmlns: =" "urn: oasis: names: tc: opendocument:xmlns: of: 1.2 ' xmlns:xhtml ='http://www.w3.org/1999/xhtml" xmlns = "urn". : oasis: names: tc: opendocument:xmlns:office:1.0 "> "
< do-face-decls / >
< / styles of the document >

at this point in the code if I have this path:

trace (xmlBody.Child("font-face-decls").inScopeNamespaces ());

I get a table with the list of namespaces. If I draw this:

trace (xmlBody.Child("font-face-decls"). Namespace("style").prefix);

I get: style

But, if I try this:

xmlBody.child("font-face-decls").addChild (< police: style-face / >);

I get the prefix unbound - but obviously the prefix is bound as noted above (it can also be a problem with the hyphen, although perhaps?).

It works:

.styleNS xmlBody.child("font-face-decls") [0]: ['font-face'] = ' ';

But it does not work (I have a tern is undefined error)

.styleNS xmlBody.child("font-face-decls") [1]: ['font-face'] = ' ';

What I'm after, is something like this:

< do-face-decls >
< police: style-face style: name = "Arial" svg: do-family = "Arial" style: do-family-generic = "swiss" style: do-pitch = "variable" / >
< style: do-face style: name = "Arial Unicode MS" svg: do-family = "& apos; Arial Unicode MS & apos; "style: do-family-generic = 'system' style: do-pitch ="variable"/ >
< police: style-face style: name = "SimSun" svg: do-family = "SimSun" style: do-family-generic = 'system' style: do-pitch = "variable" / >
< police: style-face style: name = "Tahoma" svg: do-family = "Tahoma" style: do-family-generic = 'system' style: do-pitch = "variable" / >
< do-face-decls >

There, anyone know how it works?  I'm really at the end of my home!

See you soon!

In your code:

xmlBody.child("font-face-decls").addChild ();

You set a new piece of XML in:

What makes if all goes well more obvious style prefix is loosed in

This segment.

You can set the prefix in this segment, or try to use 'default xml

namespace.  See the doc for the use.

Tags: Flex

Similar Questions

  • Copy of lists and problems with namespaces

    I have the following diagrams:

    http://pastebin.com/MmKnh91Y

    And

    http://pastebin.com/gdQp1wHm

    When I try to copy clients using an entitlement-> copy forward operation this list to another service without using some time, the namespaces of origin are also copied and this cause me problems trying to use items on the destination.

    How to avoid this?

    Hello
    Try to use the transformation at the duty station. It should work.

  • Problem with TextConverter.importToFlow

    Hello!

    I am better thanks to Richard's first response on my first post. And now format and applying the format is no longer a problem for me !

    But now I have a little problem with the TextConverter.importToFlow

    The goal: a user create his own text editing and pasting and changing the style. Can he save it. I have therefore to convert my textflow into an xml file and save an XML file.

    Then open this file. So I have to convert the xml into a TextFlow type to display it in my AIR application.

    My XML: (details)

    < Note >
    " < TextFlow columnCount ="inherit"columnGap ="inherit"columnWidth ="inherit"lineBreak ="inherit"paddingBottom ="inherit"paddingLeft ="inherit"paddingRight ="inherit"paddingTop ="inherit"verticalAlign ="inherit"whiteSpaceCollapse ="preserve"xmlns =" http://ns.Adobe.com/TextLayout/2008 ">
    < p >

    < span > any animal (including human) who just ate expense in the hours following a </span > energy
    < span textDecoration = "highlight" > important dedicated </span >
    < span > a stomach digestion. </span >
    < /p >
    < / TextFlow >
    < / note >

    My problem is:

    I don't know why, but I can't do

    myXML.TextFlow

    or

    myXML.child ("TextFlow").

    A mix of error appears (null reference).

    ' After a few tries, I found that xmlns = " http://ns.Adobe.com/TextLayout/2008 "Argument of TextFlow is the source of the error of compil. "

    But I must give only the < TextFlow > tag to the importToFlow of the method without the note <>. What am I supposed to do? I can't access the tag < TextFlow >...

    public void updateDetails (details: XML): void
    {
    If (details! = null)
    {
    var loadTextFlow:TextFlow is TextConverter.importToFlow (details.toString (), TextConverter.TEXT_LAYOUT_FORMAT);.
    _textFlow = loadTextFlow;
    _textFlow.interactionManager = new EditManager (new UndoManager());
    _textFlow.interactionManager.selectRange (0,0);
    _textFlow.flowComposer.updateAllControllers ();
    _textFlow.interactionManager.SetFocus ();
    }
    }

    Thank you for your help

    It works:

    static public const = noteXML:XML
          http://ns.Adobe.com/TextLayout/2008">
           

    Any animal (including human) who just ate expense in the hours following an energy
              important dedicated
              a stomach digestion.
           


         
      
               
    private void importIt (): TextFlow
    {
    var textFlowXML:XML = noteXML... *: TextFlow [0];
    var textFlow:TextFlow = TextConverter.importToFlow (textFlowXML, TextConverter.TEXT_LAYOUT_FORMAT);
    return textFlow;
    }

    Can read the E4X docs if you plan do a lot of handling XML. Here is a good starting point:

    http://help.Adobe.com/en_US/AS3LCR/Flash_10.0/XML.html

    Could be added - it is a matter of namespace - it seems it should be simpler that what I wrote above, but I was not able to simplify.

    Hope that helps,

    Richard

  • Problem with the loading of XML and xmlns

    I'm having a problem with loading an XML file that was created by Filemaker.  FileMaker will display an XML file by using one of two different grammars.  A poster of a standard form for the most that I can use with a glitch.  Flash CS4 AS3 seems to have a problem with the xmlns in one of the nodes.

    More precisely:

    " < FMPDSORESULT xmlns =" http://www.FileMaker.com/fmpdsoresult "> "

    ' If I remove the xmlns = " http://www.FileMaker.com/fmpdsoresult 'the file is loaded properly and I can access the different fields without problem.  However, when I go the xmlns =..., it will trace the XML properly but I can't access the fields by using the code below.  It drives me crazy!

    With part xmlns in the XML file, I get the following error when attempting to load the thumbnails files:

    TypeError: Error #1010: a term is undefined and has no properties.

    I need it so that the user can enter/change the data and simply output the XML file of Filemaker and then the Flash load the XML file not corrupted and displays the information requested by the user.  That is to say I might have the user open the XML file in a word processing application and have remove them the xmlns..., but it is rather heavy and not very user-friendly.

    I tried all the xml.ignore functions I could find, but it does not help.  I hope someone out there can help you

    Thank you

    -Brand-

    _____________________________________________________________________________________

    Partial XML:

    XML to export Filemaker:

    <? XML version = "1.0" encoding = "UTF-8"? >
    <! - this grammar has been deprecated - use the FMPXMLRESULT instead.
    " < FMPDSORESULT xmlns =" http://www.FileMaker.com/fmpdsoresult "> "
    < ERRORCODE > 0 < / ERRORCODE >
    Sport.FP7 < DATABASE > < / DATA >
    < LAYOUT > < / PAGE layout >
    < LINE MODID = '1' RECORDID = "1" >
    Brand of < FirstName > < / name >
    Fowle < name > < / LastName >
    Veil of < sport > < / Sport >
    Medal of <>no < / medal >
    Design of < CourseOfStudy > < / CourseOfStudy >
    < year > 1976-1978 < / year >
    California < HomeState > < / HomeState >
    < ImageName > 93 < / ImageName >
    < / ROW >

    ...

    < / FMPDSORESULT >

    __________________________________________________________________________________

    AS3 code:

    Import fl.containers.UILoader;
    var aPhoto: Array = new Array(ldPhoto_0,ldPhoto_1,ldPhoto_2,ldPhoto_3,ldPhoto_4,ldPhoto_5);
    var toSet:int = 10; time to time delay
    var toTime:int = place;
    var photoPerPage:int = 6;
    var fromPos:int = photoPerPage;
    var imgNum:Number;

    var subjectURL:URLRequest = new URLRequest ("testData_FM8.xml");
    var subjectURL:URLRequest = new URLRequest ("Sports.xml");
    var xmlLoader:URLLoader = new URLLoader (subjectURL);
    xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);
    var subjectXML:XML = new XML();
    subjectXML.ignoreWhitespace = true;
    subjectXML.ignoreComments = true;
    subjectXML.ignoreProcessingInstructions = true;

    function xmlLoaded(evt:Event):void {}
    subjectXML = XML (xmlLoader.data);

    If {(root.loaderInfo.bytesTotal is root.loaderInfo.bytesLoaded)
    removeEventListener (Event.ENTER_FRAME, xmlLoaded);
    trace ("data XML file loaded");
    trace (subjectXML);
    } else {}
    trace ("file not found");
    }
    imgNum=2;//subjectXML.ROW.length;
    trace (subjectXML);
    loadThumb (0);
    }
    function loadThumb(startPos:int):void {}
    var count:Number = aPhoto.length;
    trace (subjectXML.Database);
    for (var i = 0; i < count; i ++) {}
    try {}
    aPhoto[i].source="images/"+subjectXML.ROW[startPos+i]. ImageName + "_main.jpg";
    } catch (error) {}
    trace (e);
    }
    aPhoto [i] .mouseChildren = false;
    aPhoto [i] .addEventListener (MouseEvent.MOUSE_DOWN, onThumbClick);
    }
    trace ("current mem:" + System.totalMemory);
    ldAttract.visible = false;

    }
    function unloadThumb (): void {}
    var count:Number = aPhoto.length;
    for (var i = 0; i < count; i ++) {}
    aPhoto [i] .unload ();
    aPhoto [i] .removeEventListener (MouseEvent.MOUSE_DOWN, onThumbClick);
    }
    trace ("current mem:" + System.totalMemory);

    }

    function onThumbClick(evt:MouseEvent) {}
    var i: Number;
    trace ("Thumbnail clicked" + evt.target.name);
    i = findPos (evt. Target.Name);
    ldLrgPhoto.source="images/"+subjectXML.ROW[i+fromPos]. LOCAL_OBJECT_ID + "_main.jpg";
    ldLrgPhoto.visible = true;
    btnPrev.visible = false;
    btnNext.visible = false;

    gotoAndStop ("showPhoto");
    }
    function findPos(thumb:String):Number {}
    var pos:Number;
    var count:Number = aPhoto.length;
    for (var i: Number = 0; i < count; i ++) {}
    If (thumb == aPhoto [i] .name) {}
    POS = i;
    }
    }
    return pos;
    }

    Mark,

    The ':' is what we call a scope resolution operator. Using namespace allows you to potentially have two or more nodes that have the same name but a namespace 'different '. "These are normally specified in xml in the form xmlns:mynamespace ="http://myuniqueURI.com/etc"

    Normally, you would use the mynamespace:node by naming your xml nodes that are specific to this namespace.

    But the best is that namespace by default, when there is no real Prefixeespacenom: in the name of node as:

    That's how it is specified in your xml file, that is to say all the nodes without a prefix belong to the filemaker namespace.

    In actionscript, you navigate by using the scope-resolution operator and the variable that represents the namespace does not necessarily resemble the part "mynamespace" above. In your case the namespace used was the one by default (no), but a value has been assigned.

    To the question of the length, you must use the length() method, otherwise the e4x filtering seeks nodes named 'length' and creating a XMLList with no entry in there (because it's not). It is a common thing with other "Properties" that are expressed in the form of methods like children() and often take me when I started with the model XML as3.

  • Problems with windows update, run sfc/scannow and boot into safe mode. (Vista Home Premium)

    Hi all

    Please bear with me here that I try to explain all the questions I have with my computer right now. I'll try to explain everything that self-organization as possible, but if you need more information or file papers to provide a solution more precise, do it me know.

    To start, I use a HP Pavilion dv6000 series (dv6748us to be exact) with Windows Vista Home Premium (32 bit) installed. (Service pack 2). About 6 months ago I got this laptop from what I believe was the conflicker virus (kept forwarding pages, arrested updates and antivirus programs, etc.) and I managed to get Windows Update works again. My help and Support did not work well, it only worked in Mode without failure, so I did some research and tried a bunch of suggested corrections (update the registry, etc.) and got it work yet once again. I don't know if one of the tools that I used all by setting the Help & Support could have caused problems that I now (as I literally tried everything under the Sun until I got to work), but my Windows Update does not work properly again.

    A few weeks ago, I installed some updates and restarted the computer, but updates did not finish install on reboot. He said the usual "Configuring Updates, do not turn off your computer", but never showed percentage complete or whatever it is. It restarted, and when I open Windows Update, he said the last time I checked the updates has never been (obviously not true), and when I tried to check the updates, it jumped right to the message telling me I have to restart my computer to complete the installation of updates. She continues to do everytime I open Windows Update. From time to time, I try to restart it, just to see if it will work, and he never does.

    I spent hours trying all the solutions I could find in Google. I tried to run system update readiness tool, which seemed to run correctly (but does not solve the problem). I then tried the difficulty it for Windows Update, and it does not solve the problem. (It might be important for me to mention that I also have problems with the difficulty It Center itself, too. Individual tools like that for Windows Update is running, but the difficulty It Center program keeps giving me the error message that "a problem is preventing the troubleshooting tool to start.") I also tried to rename the pending.xml file, and then later I deleted it, after reading in another forum that you rename the file could cause system instabillity or something like that.

    Unfortunately, I can't use system restore to solve all my problems, because all my previous restore points have disappeared (I don't know if the virus wiped out them, or if the computer removed on its own) but restore points only I checked are those that have been created recently, during the time I had these problems.

    I tried running sfc/scannow nothing helped, as he continues to tell me that there is a pending repair, but repair pending never ends. I tried to use the command of /revertpendingactions of dism.exe/image:C\/cleanup-image in the command prompt of recovery center to stop it pending repairs, and that has not worked because it claims that dism.exe that does not exist / is not a valid command. No matter what I try, I can't have this pending repair or my updates to complete pending.

    I tried to boot mode safe several times as well and he hung up on crcdisk.sys when starting every time.

    Being that I can't use sfc/scannow, System Restore, or get into Safe Mode, I'm really lost as to what I should do next. I'm honestly not sure if the problems are related, but I just thought it would make sense to list them all in one place.

    Please note that I don't want to re - install Windows Vista, or don't I think I need, because the computer works very well for most. (I use it for typing this right now). I had much rather bring all the features on mine, which I believe can be achieved with the help of the right person.

    If someone could provide me with suggestions/solutions, it would be greatly appreciated! Certainly, it would relieve a lot of stress for me!

    DISM is a thing of Windows 7. First test the hardware.

    Standard hardware troubleshooting
     
     
    First to test we can the material. Material defects can appear as many software defects, that's why we need to test the material first...
     

    Follow these steps in order. Defects of memory can cause disk corruption, disk failures can cause corruption of the disk. Damaged disc causes corrupted files (which SFC may be able to fix). If you get a stop error and after return. Do not run chkdsk with faulty memory.

     
    Diagnosis of memory
    If you have not run a diagnosis of memory, please do. Click on Start - Control Panel - choose Classic view in the left pane - choose Administrative Tools - then memory diagnostic tool.
     

    S.M.A.R.T
    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).
     
    Disk in Windows drives monitor for impending failure. The function is called S.M.A.R.T. It detects an imminent failure, 30% of the time. In a type elevated command prompt (it's a single line)
     
    WMIC PATH MSStorageDriver_FailurePredictStatus /namespace:\\root\wmi get active, predictfailure, reason List
     
    If it is on will be true, otherwise on enable in the BIOS of the computer.
     
    Predict the failure must be False if everything is ok.
     
    In Vista and later if SMART failure predicted Windows prompts the user to run the backup.
     
    Run chkdsk
    In computer all your drives right click and choose Properties, then the Tools tab, and then click check now. Check the TWO boxes and then start. Reset. This will take from one day to the next.

     
    SFC
    Check the alteration of the file by clicking on Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).
     
    sfc/scannow
     
    Heat
    Heat can lead to problems of this kind, and sudden restarts without crashing. Make sure that your fans are not clogged with dust.
     
    For memory diagnostic results
    Click on Start - Control Panel (and select Classic view in the left pane), select Administrative Tools and then Event Viewer , and then look in the event (Local) - Applications and Services - Microsoft - Windows - MemoryDiagnostic-results Viewer entered.
     
    Look for EventID is 1201 or 1101 and Source is MemoryDiagnostic-results

     
    Double-click the entry for more details on this entry.

    For results of Chkdsk

    Click on Start - Control Panel (and select Classic view in the left pane) choose Administrative Tools and then Event Viewer , and then look at the Application and the System will connect (under Windows logs) for entries.
     
    Look for EventID is 7 and Source disk
    Look for EventID is 11 and the Source disk
    Look for EventID is 50 , and the Source is disk
    Look for EventID is 51 and Source disk

    Look for EventID is 52 and Source disk
    Look for EventID 55 and Source is NTFS
    Look for EventID is 130 and Source is NTFS
    Look for EventID is 134 and Source is NTFS
    Look for EventID is 137 and Source is NTFS
    Look for EventID 1001 and Source is Autochk
    Look for EventID 1001 and Source is Winlogon
    Look for EventID 1001 and Source is WinInit
    Look for EventID 1001 and Source is Chkdsk
    Look for EventID is 26212 and Source is Chkdsk
    Look for EventID 26213 and Source is Chkdsk
    Look for EventID 26214 and Source is Chkdsk
    Double-click the entry for more details on this entry.
     
    PS 7 and 55 are auto repair codes where windows repair disk errors silently on the fly. 52 is the SMART warning.

     
    For the results of the SFC
    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).
     
    findstr/c: "[SR] cannot" %windir%\logs\cbs\cbs.log|more "
     
    It will be able to see which files are corrupted.
     
    To see if there
     
    findstr/c: "[SR] repair" %windir%\logs\cbs\cbs.log|more

     
    There are often false positives for small text files that Windows uses like settings.ini and desktop.ini. Ignore these.
  • problem with qmlRegisterType

    Hi I have a problem with qmlRegister for the use of an onFarenheitChanged signal for my weather app, when I build and run, has no problem except that when the application starts, the accident with a message like this

    Process 2016309487 (WeatherNow) terminated SIGSEGV code=2 fltno=11 ip=7844f196(/base/usr/lib/qt4/lib/libQtDeclarative.so.4.8.5@_ZN36QDeclarativePropertyValueInterceptorC1Ev+0x711) mapaddr=0014f196. ref=07a4f2f8 bdslot=1
    

    and this is the code

    CPP

    WeatherNowApp::WeatherNowApp()
    {
        QCoreApplication::setOrganizationName("conias media");
        QCoreApplication::setApplicationName("WeatherNow");
    
         qmlRegisterUncreatableType("bb.device", 1, 0, "BatteryChargingState", "");
         qmlRegisterType("My.Library", 1, 0, "QTimer");
         qmlRegisterType("Network.ExternalIP", 1, 0, "ExternalIP");
         qmlRegisterType("Weather.Now", 1, 0, "WeatherNowApp");
         //! [0]
    

    HPP

    #ifndef WEATHERNOWAPP_HPP_
    #define WEATHERNOWAPP_HPP_
    
    #include 
    #include 
    using namespace bb::cascades;
    
    namespace bb
    {
        namespace cascades
        {
            class Application;
        }
    }
    
    class WeatherNowApp : public QObject {
        Q_OBJECT
    
        Q_PROPERTY(bool useFarenheit READ useFarenheit WRITE setUseFarenheit NOTIFY useFarenheitChanged)
    
    public:
    
        WeatherNowApp();
        Q_INVOKABLE void showPhotoInCard(const QString fileName);
    
    Q_SIGNALS:
        void useFarenheitChanged();
    

    and the qml

    import Weather.Now 1.0
    
    attachedObjects: [
    WeatherNowApp {
                onUseFarenheitChanged: {
    
                }
            }
    ]
    

    the qml missing changes to the label and that, but it does not even withouth code in there, so this isn't a problem on the internal code, suggestions?

    SIGSEGV error basically tells you that your application's RAM that does not belong to her or trying to run a class via an invalid pointer method.

    Do I have reason to assume that the WeatherNowApp class is the UI of your main application class? If Yes, I am confused why you would be save with QML, then by attaching to a page in QML. It is not normal to save the UI class main QML in the constructor of this class even with qmlRegisterType().

    I think that maybe what you really do is pass the instance of the main application to QML as a context property. If you try to respond to a signal of your main UI in QML class, then you should do so with the connect() function. Something like this instead:

    WeatherNowApp::WeatherNowApp()
    {
        QCoreApplication::setOrganizationName("conias media");
        QCoreApplication::setApplicationName("WeatherNow");
    
        qmlRegisterUncreatableType("bb.device", 1, 0, "BatteryChargingState", "");
        qmlRegisterType("My.Library", 1, 0, "QTimer");
        qmlRegisterType("Network.ExternalIP", 1, 0, "ExternalIP");
    
        QmlDocument *qml = QmlDocument::create( "asset:///main.qml" ).parent( this );
    
        // ---Make this app object available in QML
        qml->setContextProperty( "app", this );
    }
    
    Page {
       id: myPage
       function onUseFarenheitChanged() {
          if (_WeatherNow.useFarenheit == true)
             weatherDataTemperature.text = Math.round((jsonweather.temp)*1.8+32);
          else {
             weatherDataTemperature.text = Math.round(jsonweather.temp);
          }
       }
       onCreationCompleted: {
          app.useFarenheitChanged.connect(myPage.onUseFarenheitChanged);
       }
    }
    

    BTW, it makes no difference to the code, but you poorly spelled fahrenheit.

  • Problem with compiling QT application

    Hi people,

    Palybook is in general a nice tab, my wife a QA test lead on our society and she's like to test the new application and material, but after 1.5 hours of research, I look at and test drive android is crashes WOW... real QA. QNX works very well.

    But, I'm a developer, and I have a strange problem with QT env for Simulator playbook.

    I use manual http://wiki.qt-project.org/QNX to build qt for qnx env.

    Any compilation fine and installed in the directory prefix as well.

    Then I prepare simple program ' Hello world ' to test whether anything can build successfully.

    My system is gentoo with kernel 3.2.12

    my project as:

    /home/miha/playbook_simulator_2_0/qt/x86/bin/qmake -project
    
    which qcc
    /home/miha/playbook_simulator_2_0/bbndk-2.0/host/linux/x86/usr/bin/qcc
    
    which make
    /home/miha/playbook_simulator_2_0/bbndk-2.0/host/linux/x86/usr/bin/make
    

    chain of QCC

    qcc -Vgcc_ntox86 -c -fstack-protector -fstack-protector-all -Wno-psabi -O2 -Wall -W -D_REENTRANT -DQ_OS_BLACKBERRY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../x86/mkspecs/unsupported/blackberry-x86-qcc -I. -I../../x86/include/QtCore -I../../x86/include/QtGui -I../../x86/include -I. -I. -I../../../bbndk-2.0/target/qnx6/usr/include -I../../../bbndk-2.0/target/qnx6/usr/include/freetype2 -o main.o main.c
    

    QNX variable:

    QNX_CONFIGURATION=/home/miha/.rim/bbndk
    QNX_TARGET=/home/miha/playbook_simulator_2_0/bbndk-2.0/target/qnx6
    QNX_HOST=/home/miha/playbook_simulator_2_0/bbndk-2.0/host/linux/x86
    

    and have a strange output in the console: (~ 2700 output lines)

    In file included from ../../x86/include/QtCore/qobjectdefs.h:45,                 from ../../x86/include/QtCore/qobject.h:47,                 from ../../x86/include/QtCore/qcoreapplication.h:45,                 from ../../x86/include/QtGui/qapplication.h:45,                 from ../../x86/include/QtGui/QApplication:1,                 from main.c:1:../../x86/include/QtCore/qnamespace.h:54: warning: return type defaults to 'int'../../x86/include/QtCore/qnamespace.h: In function 'QT_MODULE':../../x86/include/QtCore/qnamespace.h:54: error: expected declaration specifiers before 'namespace'../../x86/include/QtCore/qnamespace.h:1799: error: expected declaration specifiers before 'Q_DECLARE_OPERATORS_FOR_FLAGS'../../x86/include/QtCore/qnamespace.h:1820: error: expected declaration specifiers before 'class'../../x86/include/QtCore/qnamespace.h:1875: error: expected declaration specifiers before ';' tokenIn file included from ../../x86/include/QtCore/qobject.h:47,                 from ../../x86/include/QtCore/qcoreapplication.h:45,                 from ../../x86/include/QtGui/qapplication.h:45,                 from ../../x86/include/QtGui/QApplication:1,                 from main.c:1:../../x86/include/QtCore/qobjectdefs.h:51: error: expected declaration specifiers before 'QT_MODULE'../../x86/include/QtCore/qobjectdefs.h:55: error: expected declaration specifiers before 'class'../../x86/include/QtCore/qobjectdefs.h:143: error: expected declaration specifiers before 'template'../../x86/include/QtCore/qobjectdefs.h:146: error: expected declaration specifiers before 'template'../../x86/include/QtCore/qobjectdefs.h:217: error: expected declaration specifiers before 'Q_CORE_EXPORT'
    
    . . . . . . . . . .
    

    Can someone help me with this? or someone knows what is happening and how to fix this strange situation?

    Mike.

    Have you tried to compile it in Qt Creator?

    And did you use Qt download on: http://openbbnews.wordpress.com/2012/03/29/qt-update-2/

    There is no real need to compile by yourself

    SRY, I could not help you directly, cause I use Windows XP to compile for Playbook. The Linux installer does not work with my 32-bit Kubuntu.

    [edit]

    found this:

    http://StackOverflow.com/questions/7512433/error-expected-declaration-specifiers-before-namespace

    [/ Edit]

  • Problem with custom jobs 11.1.1.5

    Hello experts!

    I have a problem with the import of my tasks to the new env. I had previously worked with 11.1.1.3, and my fine imported tasks. But I have problems in 11.1.1.5.
    My steps:
    (1) modify the weblogic.properties and add dirs I need.
    (2) OIM_ORACLE_HOME game
    (3) place my jars in SheduleTask dir and dir location metadata xml files
    (4) run weblogicImportmetadata.sh

    What's wrong? Or should I change smth in xml?

    Thank you.

    Excuse me, import ofc.

    Published by: VarlamAnd on February 9, 2012 02:56

    Published by: VarlamAnd on February 9, 2012 02:59

    You must change the namespace here in 11.1.1.5


    **
    Published by: Zaba Nayan on February 9, 2012 03:30

    Published by: Zaba Nayan on February 9, 2012 03:31

  • Problems with FXML (fx: include + fx:id)

    Hello, I have a little problem with FXML. ;)
    I have a .fxml file with < fx: include source = "menu.fxml" / > and in my menu.fxml following:

    <? import javafx.scene.layout. *? >
    <? import javafx.scene.control. *? >
    <? import javafx.scene. *? >
    <? import javafx.scene.shape. *? >
    <? import path.to.my.custom.class. *? >
    < GridPane alignment = "top_center" >
    < children >
    < MyCustomClass alignment = "top_center" GridPane.rowIndex = "0" / >
    < label fx:id = "window" text = "% initMenuText" alignment = "center" style = "text - fx - fill: #00ff00;" "fonts - fx -:"BOLD"Tahoma 20" GridPane.rowIndex = "1" minWidth = "360" / > "
    < / children >
    < / GridPane >

    ... and I get a heavy error because of the fx:id = 'showcase' in the label. Any suggestions?
    Welcome them

    It seems like there might be a few problems here. But one thing I notice, is that you declare namespace "fx". You'll want to add the following attribute to your root element:

    xmlns:FX = "http://javafx.com/fxml".

    This could be the cause of your error analysis.

  • Problem with the upgrade to Flex 3

    I've recently updated for Flex 3 and an app I wrote with the beta 3 version, which worked very well does not work with the release candidate version. Most of the stuff has been cosmetic which I expected but a major problem is that the TileList info is not displayed.

    Code

    < mx:HTTPService id = "tempXML" resultFormat = "e4x" result = "onResult (event)" url =" http://rbdev.mysite.net/info_wrapper.php?url=https: / / {customer.text}.mysite.net/interface. php? action = showopen & amp; operation = showassets & amp; format = xml & amp; opstatus = crit & amp; name of user = {username.text} & amp; password = {password.text} ' / >}"

    < mx:TileList dataProvider = labelField "{_xlcMyListData}" = "fleet" left = "35" right = "15".
    width = "350" backgroundColor = "#000000" color = "#ff0000" fontSize = "27" borderColor = "#000000" columnWidth = rowHeight "315" = "50" themeColor = "#808080" fontWeight = "bold" allowMultipleSelection = "true" id = "TileList1" height = "0" y = "202" x = "178" / >

    < mx:Script >
    <! [CDATA]
    Setting the display of the TileList component
    Import mx.collections.XMLListCollection;

    [Bindable]
    private var _xlcMyListData:XMLListCollection;

    private void onResult(Event:ResultEvent):void {}
    var xmlResult:XML = XML (Event.result);
    _xlcMyListData = new XMLListCollection (xmlResult.. asset);
    }

    []] >
    < / mx:Script >


    As stated before the app displayed data before with flex2 and the beta of flex 3. Is there something I'm missing now?

    My call to the server was wrong. It wasn't a problem with flex.

  • problems with, phone, 6, Bluetooth kit, Nissan, after update, for, Rios, 1.0.2

    After the update to ios 10.0.2 - trying to use bluetooth to call my vehicle, it says: "this article is not in your phone book." How can I solve this problem?

    Greetings, joybelino1!

    Thank you for joining the communities Support from Apple! I can't wait to see that you are having problems with your Bluetooth in your car! The good news is that Apple has a great article that will help you with measures to try to resolve the problem. Read this article to gethelp to connect your iPhone, iPad, or iPod touch with your car radio. Even though he talks about problems with the connection, it also has the steps for other questions you may have once connected.

    If you use Bluetooth

    1. Consult the user manual of your car stereo to get the procedure to a Bluetooth device.
    2. On your iOS device, drag up to open Control Center, then press ontwice to turn on Bluetooth and turn it back on.
    3. Restart your iOS device.
    4. On your iOS device, Cancel the twinning of your car radio. On the screen of your car désapparier your iOS device and any other device. Restart your car and your iOS device, then pair and connect again.
    5. Update your iOS device.
    6. Install the updates to the firmware of your car radio.
    7. If you still not connect, contact Apple technical support.

    Have a great day!

  • Anyone having problems with WiFi connectivity after upgrade to Sierra?

    I was wondering if anyone else knows issues with WiFi connectivity since the upgrade to Sierra 10.12? I have not had any problems with connectivity WiFi previously on El Capitan. Now I have regular randomly loose connectivity. My internet is cable and when it is connected I have a 100% connection. My details of iMac and I have used only 10% of my storage.

    No problem with my iphone 6.

    Hello AspDesigns,

    I understand that, since the upgrade to Mac OS Sierra, your Mac seems to have trouble staying connected to Wi - Fi. Fortunately the diagnosis built-in wireless can help identify the source of so much trouble.

    Search for Wi - Fi using your Mac problems

    See you soon!

  • Problems with mail after switching to macOS Sierra

    Hey all

    After having recently upgraded to macOS Sierra, I am unable to read my mail.

    I get the following error every time I check on "Get Mail".

    There may be a problem with the mail server or the network. Check the account settings "*" or try again.

    The server returned the error: Mail could not connect to the server 'pop1.tribcsp.com' using SSL on the default ports. Verify that this server supports SSL and that your account settings are correct.

    What does this error message mean and how can I solve this problem.

    Thank you

    Hi Michael,

    I see your message that you get an error in the mail indicating that there is a problem with the mail server or the network.  To help get this problem resolved, I suggest that you follow the steps below:

    If mail refers to a problem with the mail server, or the network

    Mail will say that it is impossible to connect due to a problem with the mail server or the network. For example, the message may refer to a connection that has expired, or too many simultaneous connections:

    If you are connected to the Internet, but the connection has expired, your email provider might be affected by a discontinuance of service. Contact them or see their status Web page to ensure that their e-mail service is online. Examples of status pages:

    If the message indicates the number of simultaneous connections, too many of your devices is check your e-mail account at the same time. Quit Mail on one or more of your other devices.

    If you are still unable to send or receive e-mails

    1. Make sure that you have installed latest version of the Mac software updates, especially if the problem occurred immediately after the installation of a previous update.
    2. In OS X El Capitan or later version, you can see a status icon and the short error message in the upper right of the Mail window, under the search box. The message may indicate 'Network offline' or 'Connection failed', for example. Click the message to see more details on the issue.
    3. Check your connection to the Mail connection doctor. It might be able to say more on the issue.

    If you cannot send or receive e-mail on your Mac.

    Take care.

  • iMac 27 "mid-2011 - Intermittent problem with CPU fan running at full speed and sleep mode.

    Hello!

    My iMac 27 "has an intermittent problem with the CPU fan runs at full speed. Sometimes it happens at the time when I start it, sometimes only in my session, and sometimes only after a certain time. So does seem to be a problem of "heating".

    Second issue is with the mode 'sleep'. It may occur also at any time, at the start of the iMac, session, or after a certain time. But once he starts to go in mode 'sleep', when I wake up, it goes right back in mode after a few seconds and that it will continue indefinitely until I restart the computer.

    What could be?

    Please help me!

    4ntoine

    Here is my model of iMac:

    iMac 27 "mid-2011 model 12.2

    Intel Core i7 3.4 GHz

    AMD Radeon HD 6970M 1024 MB

    OS X El Capitan 10.11.6
    SMC 1.72f2

    Boot ROM IM121.0047.B23

    reset the SMC

    Reset the management system (SCM) controller on your Mac - Apple Support

  • problem with playing the clash of clans

    I'm having some problems while playing the clash of clans on my 2 mini ipad screen does not seem to meet sometimes as if it was some sort of delay so I have to tap several times in order to use a filter or throw the troops on the battlefield.

    Hi Trinitygr,

    Thanks for posting in the Community Support from Apple! I understand that you are having problems with your iPad screen while playing a game. I like to play games on my iPad and I don't see how this could be a nuisance. I'm happy to offer assistance.

    Are you only had this problem when using the app clash of Clans, or does it happen in all applications? I recommend to start by following the steps described in this article:
    If an application you have installed unexpectedly closes, unresponsive, or does not open

    Take care!

Maybe you are looking for

  • iPhone 5 s - screen look bad - could not open the phone

    We cannot unlock iPhone 5 s my son - the screen just flashes blue and striped and then dies.  How can save us her videos before restoring if we cannot even open the phone? We are anxious to plug it into my Macbook, where there is a virus on it. Can a

  • Accessibility to the Internet

    A 2004 powerbook can efficiently access the internet?

  • N:\$bitmap ' data has been lost...» »

    running windows xp home edition recently added an external drive to backup_ "n Drive". while booting, get the above error message. I seem to be able to use the drive now to store files. Now try different backup software. Any ideas what this error mes

  • CCC connect restart router.

    Disconnection / connection to the CCC will restart router. After that some use it remains stable. Here again, reconnect causes device to restart. As I wrote earlier (http://homecommunity.cisco.com/t5/Cisco-Connect/Is-external-connection-to-CCC-unsecu

  • Upgrade process ACS

    Hello friends, I want to spend an ACS 5.0 to 5.1 and 5.2 version but in the upgrade instructions, there is a command line that I don't understand, is: Install patch ACS patch-name. tar.GPG repository repository-name I Don t know what is the name of t