Impossible to include the static library containing the QObject class in Cascades project

I'm working on the new platform BB10 based on Qt.

I have a static library project that defines a QObject class (essentially the class sends signals and a few locations). The project compiles fine and gives me a file libwhathever.a nice

When I try to include this library in my project of stunts I get these errors during construction:

  • undefined references to com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject
  • undefined reference to com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:newQRCodeDetected (QString)
  • location reference external com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject undefined: c:\Developer\bbndk\target_10_1_0_2342\qnx6\usr\include\qt4\QtCore\qobject.h
  • location reference external com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject undefined: c:\Developer\bbndk\target_10_1_0_2342\qnx6\usr\include\qt4\QtDeclarative\qdeclarative.h
  • location reference external com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject undefined: c:\Developer\bbndk\target_10_1_0_2342\qnx6\usr\include\qt4\QtDeclarative\qdeclarative.h
  • no reference to vtable for com::vasco:digipass:sdk:utils:qrcodescanner:MyClass
  • no reference to vtable for com::vasco:digipass:sdk:utils:qrcodescanner:MyClass

I think that I miss the compilation step where the Q_OBJECT macro is run. I'm on the right track? I've heard talk about moc and qmake, but I don't know how or when to use in my build process.

In fact, I solved my problem simply by running the moc on the header file defining the Q_OBJECT. It generated the file moc, that I needed. Then my ant script does the rest of the compilation with qcc and my indefinite references have disappeared.

Tags: BlackBerry Developers

Similar Questions

  • Impossible to include the Spark components for my extension for CS 5

    Hi all

    I'm develpoing an extension for Illustrator CS5 and I want to be able to use the Spark DataGrid. I'm developing on Flash Builder 4.6. To do this, the compiler defines the sdk to builder extension 3.4. I'm not able to use the spark even after including the namespace xmlns:s = "library://ns.adobe.com/flex/spark".

    But, if I remove the socket support for CS5 and have an extension for CS6 and above and change the compiler settings to support the extension builder 4.5 sdk, then the spark components are recognized.

    Why can't include spark to my CS5 extension components?

    Sparx components were introduced with Flex SDK 4.0; This is the reason why you can not include in an extension of CS5. Extension Builder SDK 3.4 is based on the kit Flex SDK 3.x series

    I hope this might help.

    Best,

    Luca

  • publish the new class for other projects in a workspace

    HI, I have a workspace, which contains 4 different projects.

    I package all the project under the same path as the package com.xxx.app.version1;

    I made a new class, say DataStruct, it will be used in several projects.

    If I only set the DataStruct in a project, how the other projects can reference this class?

    I do not put the same class file in each project, because it causes problems of consistency.

    Thank you

    Jerry

    solved.

    My own solution:

    Add a new project name xxlib in this workspace.

    Add all the classes newly defined in this project. Pack them as com.xxx.lib;

    first build the jar of this xxxlib. then add this jar file into other projects that are in need of new classes.

    (for each project, the properties-> build-> add jar)

    in the project files that are in need of the new class, add "import com.xxx.lib;"

  • Add an external library of the .jar file to cascades project

    Hi people,

    I need to add a .jar file to my project of cascades. I had not gotten any document to use the cascading .jar files.

    Please suggest the addition of a library jar, or if it is not possible which all extensions for external libs is then valid.

    Help, please!

    Kind regards

    Sanjeev

    jar is a java library, and as there is no machine virtual JAVA on the java device cannot be performed.
    a library of c / c ++ would be a .so file.

  • Shared Library containing a static library

    Hello

    I was wondering if it is possible to integrate a static library, in a shared library project.

    I'm creating a shared library, which will be released, so other developers can integrate my shared library in their application. However, I need to use a static library in my shared library.

    I followed the instructions below, for the creation of a shared library and the static library, but also adding them to my projects. Everything compiles fine and I don't get any problems.

    However when a third party developer incorporates my shared library, the compiler complains about the header files that come from the static library?

    http://supportforums.BlackBerry.com/T5/Cascades-development-knowledge/how-to-use-a-third-party-share...

    I was wondering if someone at RIM, or anyone who has done this before can confirm if it is still possible to do?

    Thank you

    I was able successfully to achieve this. Thank you

  • Permission error - impossible to enumerate the objects in the container. Access is denied.

    I'm changing my library to my current user permissions and although some of my files are fine, a bunch of them throw the error message: "Permission error - impossible to enumerate the objects in the container. Access is denied. "When I try to change them. I can go in files and folders manually and edit them correctly, but it's a pain in the buttocks seen there are literally the * hundreds * of files that it is coming on.

    Any ideas on how to fix?

    I'm having the same problem, but try to include a file folder on a hard drive support separate than where I had installed windows 8. There are literally thousands of files. To your question:

    1 Yes

    2. Yes, and any other folder on the drive.

    3. to access the folder, I need permission!

    Thanks for your help, it is very frustrating.

    Here's how I solved my problem-
    1. on the root folder, right click, select Properties, select Security tab.
    2. click on advanced
    3. the window that opens should indicate to the current owner. Click on 'change '. Him "select user or group" pop up box appears.
    4. in the text box, type your user name (you should be an admin) and click the button "check names". Your name is replaced by the name of 'official' system (i.e., preceded by the name of the computer and the backslash).
    5. click on OK
    6. the box disappears, sending you back to the advanced security settings window.
    7. a new box appears under ownership, with the text 'Replace the owner of subcontainers and objects' check this box.
    8. I also selected the checkbox "Replace all entries authorization child object with entries permissions inheritable from this object", but I think that I had to run this twice - once with this checked and one without.
    9. make sure that 'everyone' appears in the Permission entries, if not, click Add. The same box that is displayed in step 4 appears again. Type everyone, click on "Check names", then "OK".
    9 valve apply

    I see also folder property can be changed to "everyone" - I have not tried to change all owners of my file to this, but doing so may eliminate the problem altogether if the drive is moved to another computer.

    I hope this helps someone, this problem and the lack of documentation has been quite aggravating.

  • include the library project

    Hello

    Please excuse if this is a stupid question, but all this stuff of C++ is really new for my java developer experiences.

    I created a project C++ Library of BB mylibproject

    with a public folder inside

    then I copied in the public record of this project: my_lib_test.h

    Then I have another mytestproject of normal C++ BB project

    ricght-click-Configure-add-library: added the public record of mylibproject

    then in my main.cpp I've included

    #include

    I could use the library with content injection and open declaration jumps inside the my_lib_test.h inside main() {}

    If everything seems to work

    then the two selected projects and-> Build Project...

    all compiles without error, but I get an error:

    / Developer/SDKs/bbndk-10.0.4-beta/host/macosx/x86/usr/bin/ntoarm-ld: could not find lmylibproject.

    no idea what could be the problem?

    MyTestProject is a project to mylibproject reference

    THX

    uuups... was my fault

    within my library project, there were 2 files of CBC:

    / SRC

    / public

    / SRC was empty and / public contains xxx.h

    creating a class dummi Interior/SRC fixed - now the library has been recognized.

    .. good lessons to learn new environments ;-)

  • Problem using the Qt library in static library

    I created a static library with SDK 10.1 10.2 Momentics. Any time I get the qt classes, the compiler complains that it cannot find a file any.

    for example:

    #include

    the error is:

    The path location type Resource Description
    Fatal error: QtCore/qchar.h: no such file or directory MyStaticLibrary line 45, external location: /Applications/Momentics.app/target_10_1_0_4828/qnx6/usr/include/qt4/QtCore/qstring.h C/C++ problem

    Help, please.

    I have a simular problem solved by adding a variable include

    ${QNX_TARGET} / usr/include/qt4 in

    Project / Properties / C/C++ Build / Settings /Tool settings /QCC compiler / preprocessor / Include directories (- I).

  • How can I specify the file types to be included in a library in Windows 7?

    How can I specify the file types to be included in a library?  For some reason any overall my library it shows ALL files and not only the documents in the document library, the music in the music library and the pictures in the picture library.  In other words in my document library, it is also show all my music and my photos, in my music library, that is to show all my documents as well as all my photos etc.  I know I have to do something wrong but does not know what it is.  Can someone help me please?

    * original title - libraries and some type of file

    Hello

    Libraries should show only the files that are contained in the files that you add to this library.

    Example:

    In Windows Explorer, select the Document library.

    In the window display on the right, click the link x sites in the top/left of the window.

    This will open a dialog box displays all the folders that have been added to this library.

    By default, the Library of Documents should show the folders My Documents and public records .

    If there is other records showing that you don't want in this library, Select the folder and click on the Remove button.

    You can also right click the documentslibrary, in the Part of Navigation and select Properties. At the bottom of the Properties dialog box, click on the button by default is restore to remove all additional files have been added.

    Tell us what you find.

    Concerning

  • Impossible to copy the text to clipboard error - I had tried everything include uninstall firefox and re install. I tried to disable all plugins and addons. I have to c

    Impossible to copy the text to clipboard error - I had tried everything include uninstall firefox and re install. I tried to disable all plugins and addons. I have to click 20 times on text to paste in all websites. What should I do about it? I use FF 22.0 worm, win 8 and the problem just a few weeks. Thank you

    You have zonealarm, if if this is the problem.

  • How to include the shared library of BlackBerry in a native extension WebWorks

    I developed a native extension WebWorks that works very well on Simulator and devices when included in a webworks app.

    I also have a sample of waterfalls project with the same code base that I use to test the WebWorks extension code.

    Since a large part of the code is reusable, I decided to create a shared library of BlackBerry, so I can reuse in other projects. When I include the NEW shared library in the waterfalls and then everything works well, as before.

    When I include it in the extension WebWorks it draws very well. The .so file size was much smaller and that worried me (I suspected that the shared library was not included in there). But since its construction very well I went trying to run my application webworks. When it came to hitting the extension I got a ' need of error. Cannot find the library of blah/blah/...so'.

    I had this before and found out that it was because the dependent QT libraries have not been correctly referenced. It so that the shared library is not properly referenced/copied /-thing... This event is supported? For example, by using a custom in a WebWorks extension shared library?

    It worked

    Version 2 is almost right

    In the library paths pane Add...

    ${workspace_loc: / / extlibs/device$ {ProjName}}

    for peripheral and do Simulator

    ${workspace_loc: / / extlibs/Simulator of ${ProjName}}

    Always with libname in libraries

    I just linked to unrar successfully like this library

    Whew - they do this hard work of stuff

  • Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    My main.js resembles

    xmlDataSource var = {}
     
    URL: 'dcds. - symbianxml.aspx", etc. (sample).
     
    init: function() {}
    URL, successful reminder, the reminder of failure
    This.Connect (this.) (URL, this.responseHandler, this.failureHandler);
    },
     
    /**
    * Analyzes the XML document in an array of JS objects
    @param xmlDoc XML Document
    * @returns {table} array of objects of the device
    */
    parseResponse: {function (xmlDoc)}
        
    var chElements = xmlDoc.getElementsByTagName ("channel");
       
    channels of var = [];
      
    Console.log (chElements.Length);
      
    for (var i = 0; i)< chelements.length;="">
        
    var channel = {};
       
    for (var j = 0; j)< chelements[i].childnodes.length;="">
        
    var node = Sublst.ChildNodes(1).ChildNodes(0) chElements [i] [j];
                
    If (node.nodeType! = 1) {//not an element node}
    continue;
    }
           
    Channel [node. TagName] = node.textContent;
    }
       
    Channels.push (Channel);
    }
    Console.log (Channels.Length);
    return the strings;
    },
     
    /**
    Manages the response and displays the data from device web app
    @param xmlDoc
    */
    responseHandler: {function (xmlDoc)}
      
    var channel = this.parseResponse (xmlDoc);
    var markup = "";
       
    for (i = 0; i< channels.length;="">
       
    markup += this.generateHTMLMarkup (i, channels [i]);
    }
    document.getElementById("accordian").innerHTML = mark-up;
    },
     
    /**
    Generates HTML tags to insert in to the DOM Web App.
    * @index i, index of the device
    @param device, device object
    */
    /*
    generateHTMLMarkup: function (i, channel) {}
      
    var str ="";
    "Str += '.


    ' onclick =-"mwl.setGroupTarget ('#accordian ',' #items_" + i + "', 'ui-show ',' ui - hide');" + ".
    "mwl.setGroupTarget ('#accordian ',' item_title_ #" + i + "', 'ui-open', 'ui-farm'); Returns false; \ » > » ;
    "" Str += "" + channel ['name'] + ' ";
    "Str += '.
    ";
    "Str += '.
    ";
    "Str += '.
    "+" id: "+ channel ['id'] +" ' "
    ";
    "Str += '.
    "+" type: "+ channel ['type'] +" ' "
    ";
    "Str += '.
    "+" language: "+ channel ['language'] +" ' "
    ";
    "Str += '.
    «+ "bandwidth:" + "fast" channel + "»»
    ";
    "Str += '.
    "+" cellnapid: "+ channel ["cellnapid"] +". "
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
    "Str += '.
    ";
    return str;
    },*/
    generateHTMLMarkup: function (i, channel) {}
       
    var str ="";
    "Str += '.
    ";
    str +=  "" +
    "" + channel ['name'] + ""+""
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
         
    return str;

    },
     
    failureHandler: {function (reason)}
    document.getElementById("accordian").innerHTML = "could not get XML document.
    '+ reason;
    },
     
    /**
    Retrieves a resource XML in the given URL using XMLHttpRequest.
    @param url URL of the XML resource to retrieve
    @param called successCb, in the XML resourece is recovered successfully. Retrieved XML document is passed as an argument.
    @param failCb called, if something goes wrong. Reasons, in text format, is passed as an argument.
    */

    Connect: {function (url, successCb, failCb)
      
    var XMLHTTP = new XMLHttpRequest();
      
    XMLHTTP. Open ("GET", url, true);

    xmlhttp.setRequestHeader("Accept","text/xml,application/xml");
    xmlhttp.setRequestHeader ("Cache-Control", "non-cache");
    xmlhttp.setRequestHeader ("Pragma", "non-cache" "");
      
    var that = this;
    XMLHTTP.onreadystatechange = function() {}
       
    If (xmlhttp.readyState == 4) {}
        
    If (XMLHTTP. Status == 200) {}
         
    {if (!) XMLHTTP.responseXML)}
    try {}
    If server has not responded with good an XML MIME type.
    var domParser = new DOMParser();
    var xmlDoc = domParser.parseFromString(xmlhttp.responseText,"text/xml");
           
    successCb.call (that, xmlDoc);
           
    } catch (e) {}
    failCb.call (, "answer was not in an XML format.");
    }
              
    } else {}
    successCb.call (that, xmlhttp.responseXML);
    }
    } else {}
    failCb.call (this, "connection failed: status"+ xmlhttp.status ");
    }
    }
    };
    XMLHTTP. Send();
    }
    };

    Please see the content in main.js is fully analyzed.

    Forward for the solution to my request all members of the community...

  • Does not include the network folder in the document library

    I'm a network administrator.  I created a %username\documents for all users folder and apply the necessary security.  For most users, I make this folder available offline, and I'm able to include in their document library.

    For the last two users I did this, but failed to include the folder in the Documents, the error that it is not indexed.  On the server, the drive and the subfolders are all able to be indexed in the settings.  The file is properly sync to the computer.  But I still get the error that the file is not indexed.
    I have disabled the sync on the computer, has added the formatdatabase reg key to restart the computer, turned on files offline, set the folder resynchronization, complete synchronization, still cannot add to the document library.
    Then, in case there was a kind of corruption of the files on the server, I deleted the network folder, disabled the files offline on your PC, erased the cache of offline files, created a new documents folder on the server with the correct permissions, activated files offline, synchronize the empty file to the PC and tried to add the new folder of network document to the document library on the PC.  Failed because the empty folder is not indexed.  Once again.
    Any ideas?

    The fixed.

    I needed to turn on the Windows search function to make it work.  You can synchronize files without it, but needs apparently indexing Windows Search to work.  Which is weird, because the Windows Search service can be disabled and it still works.
    I rode on a group policy to disable windows search service because people are complaining about their PC slows down during the reindex operation.  This did not affect the ability to synchronize the network drives or to include them in the libraries.
    On both machines on which I had the problem Windows search had been uninstalled programs and features (which is not really uninstall it, only it hides in Windows features.)
    Conclusion: OK to disable windows search service, do not uninstall or disable the function.
  • Publication parameters to create a single folder, including the CreateJS library.

    I need all the published files in a folder (no subfolders) and also to include the CreateJS library rather than pulling them from a host online. What parameters of publication I need please?

    all the paths of the oblique point-bar value. /

  • Including the quota a shared library account by report?

    I have a premium account which comes with unlimited storage.  If I share a library and someone else without a paid account downloads photos, including the quota is effective against?  My space of unlimited storage, or a quota of 2 GB to the other person?  Thank you.

    Hello. My name is Glenyse and I am an employee at Adobe.

    To answer your question, uploads are based on the owner of the status of the subscription of the shared library. If you as a paying user share a library with another user with a limited account, that user account will remain UNCHANGED by uploading to YOUR library.

    I hope this helps!

    Glenyse

Maybe you are looking for

  • Names of relay USB-6526

    I am trying to manipulate the SSRs on a USB-6525 using the driver DAQmx ANSI C. I use DAQmxSwitchCloseRelays and DAQmxSwitchOpenRelays, but I get the error "Relay not in the list. I feel like I'm missing or adding a "/" somewhere, but I could use hel

  • XP systems cannot connect to internet after updates applied over the weekend (10/29 - 10/31)

    Systems: Dell Optiplex 740 Operating system: XP Pro, SP3.  Connected to the AD network. Antivirus: Symantec Endpoint Protection : Systems imaged with Symantec Solution Suite 2.5, running ghost console client, run office 2007, LotusNotes email client,

  • DUAL MONITOR HELP!

    System information: HP P6210Y Win 7 NVIDIA GeForce 9100 Above is my information system. I use a HP P6210Y with a GeForce 9100 graphics card. I have two [2] IN2030M of Dell monitors. I bought a VGA splitter and it worked, but now how I wanted it to wo

  • 512 MB SDRAM memory upgrade

    HP Pavilion a1106N with original 2 x 256 MB 240 pin DDR2 SDram PC2 3200 mb/s I need to move to full capacity 4x1Go My question is: is this memory ECC or NON ECC is it important? Support site HP does not say ANYTHING aboutIf I buy ECC is compatible or

  • Beginner with custom Agents

    Just read a few posts on Custom Agents and got all excited! I need to be able to monitor a specific folder and count the number of files with it. If I have used a script like strComputer = "."Set objWMIService = GetObject ("winmgmts: \"& strComputer