Error with ListItemProvider - undefined reference to build

I'm tying to add a ListItemProvider for my project, but without success.

If I add the following class extends from ListItemProvider to my project, it fails to build - this from the log from the console:

"o-g/.obj/TripListItemProvider.o.rodata._ZTV20TripListItemProvider [_ZTV20TripListItemProvider](+0x3c): refers to 'TripListItemProvider::updateItem(bb::cascades::ListView*, bb::cascades::VisualNode*, QString const&, QList const&, QVariant const&)' the undefined".

I tried recreating it from scratch and comment on different things.  I can build OK, if I comment out the function updateItem call, but that's really what I want to use, that kind of defeats the purpose of the ListitemProvider.

I tried to recreate a number of times and also different levels of SDK.  If I drop the class in a sample as Battambang, island generation fails in a similar way.  But if I have him drop it into C++ Cookbook sample, it compiles OK.  I compared to the building, in particular the included libraries and can not see the difference.  I don't know there is a, only I don't know where to look.

Any help gratefully received.

TIA.

/*
 * TripListItemProvider.cpp
 *
 */

#include "TripListItemProvider.h"

using namespace bb::cascades;

TripListItemProvider::TripListItemProvider() {
    // TODO Auto-generated constructor stub

}

TripListItemProvider::~TripListItemProvider() {
    // TODO Auto-generated destructor stub
}

bb::cascades::VisualNode * TripListItemProvider::createItem(ListView* list, const QString &type) {
    return NULL;
}

void updateItem(ListView* list, VisualNode *listItem, const QString &type, const QVariantList &indexPath, const QVariant &data) {
}
/*
 * TripListItemProvider.h
 *
 */

#ifndef TRIPLISTITEMPROVIDER_H_
#define TRIPLISTITEMPROVIDER_H_

#include 
// #include 
// #include 
// #include 
// #include 

using namespace bb::cascades;

class TripListItemProvider: public ListItemProvider {
public:
    TripListItemProvider();
    virtual ~TripListItemProvider();

    bb::cascades::VisualNode * createItem(bb::cascades::ListView* list, const QString &type);
    void updateItem(ListView* list, VisualNode *listItem, const QString &type, const QVariantList &indexPath, const QVariant &data);

};

#endif /* TRIPLISTITEMPROVIDER_H_ */

Hey there...

My guess would be

/*
 * TripListItemProvider.cpp
 *
 */

void TripListItemProvider::updateItem(ListView* list, VisualNode *listItem, const QString &type, const QVariantList &indexPath, const QVariant &data) {
}

Tags: BlackBerry Developers

Similar Questions

  • Error with layers of reference effect in AE2015?

    My apologies, I'm not sure what to call it. Why can I not select a layer of texture in CC Particle World?

    Capture.JPG

    The drop down menu is disabled somehow.

    I had a similar problem with the displacement effect, unable to choose my moving layer.

    But then I restarted AE and started a new project and it's OK.

    Is this a bug to do with compatibility effect in AE2015, or have I done something to disable it somehow?

    Any ideas appreciated,

    Thank you


    Chris.

    I think that it is with the effects not being able to recover some info due to the render method has changed. Yes, I would call it a bug. How does CC 2015? 50 years or even more?

    Mylenium

  • Error: async story undefined reference?

    When I type in the search... it cuts my search and said... ReferenceError: asyncHistory is not defined.

    It has aged after the 1st 100 times. It happens on that computer.

    Here is a screenshot:

    http://i.imgur.com/9ObFUep.PNG

    Hello!

    I would recommend to clear the cache and cookies in the browser! Please use the information below to help explain how to do this. If this does not work, let me know because I have some other thoughts as well!
    Thank you

    Many issues of the site can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Click the menu button

      , choose historic, then "Claire recent history...". ».

    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click on the "Clear now" button

    More information can be found in the article remove the navigation, search and download history on Firefox .

    This solve your problems? Please report to us!

    Thank you.

  • undefined reference to the symbol "_ZN2bb9ImageDataaSERKS0_".

    Has copied my Beta4 code in a new project of gold.  And got the following error message:

    undefined reference to the symbol "_ZN2bb9ImageDataaSERKS0_".

    Someone has just conclude what could be the cause?

    Looks like required libraries have changed into gold. Necessary to connect

    LIBS +=-lbb

    to make it work

  • BB10 NDK error undefined reference to 'init_JSON_config '.

    Hi all

    I'm trying to integrate json parser in my native project BB10. The codes are derived from here

    https://github.com/BlackBerry/JSON_parser/

    I copied the file JSON_parser.h and JSON_parser.c in the source directory. In the HelloCascadesApp.cpp, I have included the header file.

    Now, when you compile the project, I get error like

    no reference to 'init_JSON_config '.

    This is the output of the compiler

    **** Build of configuration Simulator-Debug for project another ****
    
    make Simulator-Debug
    d:/bbndk-10.0.4-beta/host/win32/x86/usr/bin/qmake -spec unsupported/blackberry-armv7le-g++ -o arm/Makefile another.pro CONFIG+=device
    d:/bbndk-10.0.4-beta/host/win32/x86/usr/bin/qmake -spec unsupported/blackberry-x86-g++ -o x86/Makefile another.pro CONFIG+=simulator
    make -C ./translations -f Makefile update release
    make[1]: Entering directory `C:/ndk-10.0.4-workspace/another/translations'
    d:/bbndk-10.0.4-beta/host/win32/x86/usr/bin/lupdate another.pro
    Updating 'another_en_GB.ts'...
        Found 0 source text(s) (0 new and 0 already existing)
    Updating 'another_fr.ts'...
        Found 0 source text(s) (0 new and 0 already existing)
    Updating 'another_it.ts'...
        Found 0 source text(s) (0 new and 0 already existing)
    Updating 'another_de.ts'...
        Found 0 source text(s) (0 new and 0 already existing)
    Updating 'another_es.ts'...
        Found 0 source text(s) (0 new and 0 already existing)
    Updating 'another.ts'...
        Found 0 source text(s) (0 new and 0 already existing)
    d:/bbndk-10.0.4-beta/host/win32/x86/usr/bin/lrelease another.pro
    Could not find qmake configuration directoryCould not read qmake configuration file D:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/qmake.confUsing OS scope before setting MAKEFILE_GENERATORD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/debug_and_release.prf(1): Using OS scope before setting MAKEFILE_GENERATORD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/qt.prf(4): Using OS scope before setting MAKEFILE_GENERATORD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/qt.prf(36): Using OS scope before setting MAKEFILE_GENERATORD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/qt.prf(197): 'qtAddLibrary' is not a recognized test functionD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/qt.prf(213): Using OS scope before setting MAKEFILE_GENERATORD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/moc.prf(3): 'qtPrepareTool' is not a recognized test functionD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/moc.prf(12): Using OS scope before setting MAKEFILE_GENERATORD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/moc.prf(97): Using OS scope before setting MAKEFILE_GENERATORD:/bbndk-10.0.4-beta/target/qnx6/usr/share/qt4/mkspecs/features/uic.prf(108): Using OS scope before setting MAKEFILE_GENERATORThe directory name is invalid.
    Updating 'C:/ndk-10.0.4-workspace/another/translations/another_en_GB.qm'...
        Generated 0 translation(s) (0 finished and 0 unfinished)
    Updating 'C:/ndk-10.0.4-workspace/another/translations/another_fr.qm'...
        Generated 0 translation(s) (0 finished and 0 unfinished)
    Updating 'C:/ndk-10.0.4-workspace/another/translations/another_it.qm'...
        Generated 0 translation(s) (0 finished and 0 unfinished)
    Updating 'C:/ndk-10.0.4-workspace/another/translations/another_de.qm'...
        Generated 0 translation(s) (0 finished and 0 unfinished)
    Updating 'C:/ndk-10.0.4-workspace/another/translations/another_es.qm'...
        Generated 0 translation(s) (0 finished and 0 unfinished)
    Updating 'C:/ndk-10.0.4-workspace/another/translations/another.qm'...
        Generated 0 translation(s) (0 finished and 0 unfinished)
    make[1]: Leaving directory `C:/ndk-10.0.4-workspace/another/translations'
    make -C ./x86 -f Makefile debug
    make[1]: Entering directory `C:/ndk-10.0.4-workspace/another/x86'
    make -f Makefile.Debug
    make[2]: Entering directory `C:/ndk-10.0.4-workspace/another/x86'
    qcc -Vgcc_ntox86 -lang-c++ -Wl,-rpath-link,d:/bbndk-10.0.4-beta/target/qnx6/x86/lib -Wl,-rpath-link,d:/bbndk-10.0.4-beta/target/qnx6/x86/usr/lib -o o-g/another o-g/.obj/hellocascades.o o-g/.obj/HelloCascadesApp.o o-g/.obj/moc_HelloCascadesApp.o  -lcurl  -Ld:/bbndk-10.0.4-beta/target/qnx6/x86/lib -Ld:/bbndk-10.0.4-beta/target/qnx6/x86/usr/lib -Ld:/bbndk-10.0.4-beta/target/qnx6/x86/usr/lib/qt4/lib -LD:/bbndk-10.0.4-beta/target/qnx6/x86/usr/lib/qt4/lib -lm -lbps -lbb -lQtCascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lQtXmlPatterns -lQtXml -lQtGui -lQtNetwork -lQtCore
    Could not find qmake configuration directoryCould not find qmake configuration fileUsing OS scope before setting MAKEFILE_GENERATORo-g/.obj/HelloCascadesApp.o: In function `parse_JSON':
    C:\ndk-10.0.4-workspace\another\x86/../src/HelloCascadesApp.cpp:216: undefined reference to `init_JSON_config' C:\ndk-10.0.4-workspace\another\x86/../src/HelloCascadesApp.cpp:224: undefined reference to `new_JSON_parser'
    cc: d:/bbndk-10.0.4-beta/host/win32/x86/usr/bin/ntox86-ld caught signal 1
    make[2]: *** [o-g/another] Error 1
    make[2]: Leaving directory `C:/ndk-10.0.4-workspace/another/x86'
    make[1]: Leaving directory `C:/ndk-10.0.4-workspace/another/x86'
    make[1]: *** [debug] Error 2
    make: *** [Simulator-Debug] Error 2
    
    **** Build Finished ****
    

    I used this parser json beginning of NDK 2.0 BB with no problems.

    Can someone help me?

    concerning

    by default, the c files are ignored, add, change your {appname} .pro

    and add the singel file:

    SOURCES += ../src/*.cpp ../src/JSON_parser.c
    

    or all the *.c files:

    SOURCES += ../src/*.cpp ../src/*.c
    
  • Compiler - undefined reference to QMYSQLDriver error

    Hi all

    I'm writing C++ connection code to a remote database in a BB10 application using a third party library C++ de MySQL. However trying to create an object of QMYSQLDriver (QMYSQLDriver * driver = new QMYSQLDriver()) I get an error "undefined reference to"QMYSQLDriver::QMYSQLDriver(QObject*) '" I'm including and my .pro file looks like this:

    QT += sql
    CONFIG += qt warn_on cascades10
    INCLUDEPATH += /Users/crrd/mysql-connector-c-6.1.1-winx64/mysql-connector-c-6.1.1-winx64/include
    LIBS+= -L/Users/crrd/mysql-connector-c-6.1.1-winx64/mysql-connector-c-6.1.1-winx64/lib/mysqlclient.lib -L/Users/crrd/mysql-connector-c-6.1.1-winx64/mysql-connector-c-6.1.1-winx64/lib/libmysql.lib
    

    I think it's just a problem of the linker, but I don't know exactly what needs to be linked or included. Concerning the documents I found are not (enough for me) clear on that. I also found similar problems on other forums messages, but the responses were not helpful. Any ideas would be appreciated.

    Thank you

    OK, we get there one step at a time. So you have got a copy of interfaces for MYSQL from this site http://www.mysql.com/products/connector in the form of a 'mysql.h' header file to resolve compile time references and, likely, a library (.so or .a static shared object) to resolve external references time of the link to the.

    I do not see a build pre-made for a version of BlackBerry 10 of this library, so I think that you have taken the version generic Linux and creeated a version of this library yourself using a library of 10 BlackBerry in the NDK project?  You can check that you have built a dynamic or static libraries (libFoo.so or libFoo.a) successsfuly?

  • Just as a reference: how to FIX the annoying 'White Screen Of Death"with Silverlight and"Access denied"error with computer management.

    Well, I just hope that someone who has met these two mistakes will find my dose. It might save a lot of pointless research on the net.

    SYMPTOMS:
    -When you try to open a Silverlight application in your browser (Firefox, Chrome, IE, etc), your browser displays only a white area. When you right click on the white area, you can click on the Silverlight properties.
    -If you try to start "Computer management" by clicking on the 'My Computer' icon and select 'Manage', you get the following error: 'access denied '.

    CAUSE:
    The following errors are usually the result of a bad environment variable. In this case the "windir" environment variable does not work correctly. You can try running the management of the computer to start > run and entering:
    %windir%\system32\mmc.exe/s %windir%\system32\compmgmt.msc

    Notice the between the characters of percentage windir environment variable. If you run the above code, you will probably get an error saying that MMC cannot open the file. Look closely at the path, it's back!
    You will probably find any % somewhere.

    What actually happened here is the variable windir made reference to another variable: systemroot
    Why this creates problems, I'm not sure. Also, I don't understand what made then variable windir change.

    SOLUTION:
    -From your desktop or Explorer: right-click on "My computer" and select "Properties".
    -Click on the "Advanced" tab and then click "Environment Variables".

    http://pcauthorities.com/images/advanced-system-properties-XP.jpg

    -Did the windir variable. Together to "C:\Windows" do not think that it is already set to "C:\Windows", because windows then tells you. Double-click it to know for sure.

    http://www.adminxp.com/windowsvista/envvariabl.PNG

    -See, I told you! Change this to "C:\Windows".

    http://www.adminxp.com/windowsvista/editenvvar.PNG

    Hi Jooch,
     
    Thanks for posting such a detailed response, including symptoms, Cause, and resolution to "White Screen Of Death" with Silverlight and "Access denied" error with computer management"issues.
     
    I appreciate your time and effort to do the same. This could help other users of the forum as well.
  • I have Production Premium with Encore CS6.  I created my first HD project, tested and received no error but when I went to 'Building' my project still on a BluRay disc, I got the error message "ERROR CORE 03".  How do I get this project on a B

    I have Production Premium with Encore CS6.  I created my first HD project, tested and received no error but when I went to 'Building' my project still on a BluRay disc, I got the error message "ERROR CORE 03".  What should I do to get this project on a BluRay disc?

    In response to both Richard & Stan.  I received the error message ""device error", Code '3' notes Create Sequence of STC: cannot write file M25.»  Or something very similar to this, but I think it was exactly that.  It was my first HD project but used several times to make projects sustainable development without problems that were not of my own creation.  So it was a shock and cost me money and the failure to meet a deadline.  What I did: on-screen 'Build '.

    Format: Blu - ray,

    Output: Blu - ray Image,

    Source: Currrent project,

    Destination: I Browse... d a location appropriate.  He managed a Blu - ray image.

    Using reminder once again, step 2 - on-screen 'Build '.

    Format: Blu - ray,

    Released: Blu - ray Disc,

    Source: Disk Image,

    Destination: my disc drive that holds a blank Blu - ray disc.  He managed a Blu - ray disc.

    Then I found a job step 2 autour for the problem.  My question is this: I pay $70.00 / month ca to the people Adobe cloud to keep their software up to date and work as advertised.  I do not think I should spend a few hours and lose money looking for a problem created Adobe not yet keeping cs6, updated and works as promised.  I submit my first bug report.  My suspicion is that adobe considers that Blu - ray is out of style, and they do not care to correct this bug in still cs6.

    I'd love to know the thoughts of others on this.

  • Error: Unable to get the 'platform' of undefined reference property or null

    I am updating a Web site on a computer that had Dreamweaver Cs4 installed as a transfer file from another computer. I get an error (unable to get the 'platform' of undefined reference property or null). The current computer has Windows7. How to upgrade to the operation of the platform within the program? What is the problem?

    What are you trying to do exactly?

    Files created in DW are not specific platform (they are just .html, .css, .js, etc.), but the program itself is when it's one of the older versions of perpetual license / disc.

    Adobe does not swap the platform for something else that current versions, however the current version (PCOC 2014) is not really specific platform more since you can have it installed on two machines, regardless of the platform. So, basically, ranking/cross-platform interchange is not permitted more.

    Product order | Platform, language Exchange

  • Error with title i.d. and password in the app Builder

    Salvation;

    Ive just subscribing to edition Pro DPS and begins to build my Viewer application, however im getting an error with the title i.d. and password in the app Builder

    It says niether the id of title or password are valid, but they are the same that I used for the two newspapers in builder app and download my Folio to folio producer.

    What I'm missing here?

    Scott

    Yes, the account management stuff is confusing when you place a 'creative' account to a Pro account. As said the updated guide on the road when you configure your Pro account, you must use dedicated Adobe ID such as [email protected] and [email protected], not [email protected]. The Folio copy command makes it easy to transfer the folios from one account to another, especially if you do it on the same machine that you used to create the folios. All right.

    Yet once again, do not use your 'master' account to create and publish folios. Use it only for the administration of accounts.

  • The linker error: undefined reference to the mmr_

    The IDE is shredded beyond ,.

    How can I add an additional library in the linker?

    Is the library - lmmrndclient?

    Help?

    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:46: undefined reference to `mmr_error_info'
    src\main.o: In function `main':
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:164: undefined reference to `mmr_connect'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:166: undefined reference to `mmr_context_create'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:168: undefined reference to `mmr_output_attach'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:170: undefined reference to `mmr_output_parameters'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:172: undefined reference to `mmr_input_attach'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:174: undefined reference to `mmr_play'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:235: undefined reference to `mmr_stop'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:236: undefined reference to `mmr_input_detach'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:237: undefined reference to `mmr_context_destroy'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:238: undefined reference to `mmr_disconnect'
    

    Resolved: Should link against:

    \bbndk-1.0\target\qnx6\armle-v7\lib\libmmrndclient.so

    In the project settings, under the paths and symbols-> libraries

  • NOR-DAQmx 8.0.1 undefined reference

    Hello

    I'm new with NOR-DAQmx on Linux. After reading the posts in this forum, I was able to successfully install OR-DAQmx 8.0.1 on OpenSUSE 11.0. When you run "nilsdev", I get the following list of features:

    OR PXI-6255: "Dev4.
    OR PXI-6733: "Dev3.
    OR PXI-6733: "Dev2.
    OR PXI-6713: "Dev1".

    What is correct. However, when you try to compile the following program example, using "gcc main.c:

    #include "NIDAQmx.h".
    #include
    #define DAQmxErrChk (functionCall) if (DAQmxFailed (error = (functionCall))) goto error; on the other
    int main (void) {}
    error int = 0;
    TaskHandle taskHandle = 0;
    char errBuff [2048] = {'\0'};
    float64 data [3] = {1.0,2.0,3.0};
    /*********************************************/
    DAQmx Configure Code
    /*********************************************/
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"PXI1Slot4/ao0:2","",-10.0,10.0,DAQmx_Val_Volts,""));)
    /*********************************************/
    Starting code DAQmx
    /*********************************************/
    DAQmxErrChk (DAQmxStartTask (taskHandle));
    /*********************************************/
    DAQmx write code
    /*********************************************/
    DAQmxErrChk (DAQmxWriteAnalogF64(taskHandle,1,1,10.0,DAQmx_Val_GroupByScanNumber,data,,));
    Error:
    If (DAQmxFailed (error))
    DAQmxGetExtendedErrorInfo (errBuff, 2048);
    If (taskHandle! = 0) {}
    /*********************************************/
    Stop DAQmx code
    /*********************************************/
    DAQmxStopTask (taskHandle);
    DAQmxClearTask (taskHandle);
    }
    If (DAQmxFailed (error))
    printf ("Error");
    GetChar ();
    return 0;
    }

    I get several errors about undefined references:

    main.c.text + 0 x 90): refers to 'DAQmxCreateTask' the undefined
    main.c.text + 0xdc): refers to 'DAQmxCreateAOVoltageChan' the undefined
    main.c.text + 0xf0): refers to 'DAQmxStartTask' the undefined
    main.c.text + 0 x 140): refers to 'DAQmxWriteAnalogF64' the undefined
    main.c.text + 0x15f): refers to 'DAQmxGetExtendedErrorInfo' the undefined
    main.c.text + 0 x 171): refers to 'DAQmxStopTask' the undefined
    main.c.text + 0x17c): refers to 'DAQmxClearTask' the undefined

    I have already installed OR DAQmx on a Windows XP computer and got the same errors, but could (using this post) to create the libraries needed to link against. However, I have found no information similar to that in Linux (this message seemed to understand this problem, but unfortunately, the author does not share its solution). So far, I tried various options of connection with no success '-ldl ' etc. Obviously, I'm not bind properly.

    Any help would be greatly appreciated.

    Thank you

    Grine

    I solved step connects. (Why answers always come when you almost gave up? )

    As I suspected, a liaison simple number. Compilation with 'gcc /usr/local/lib/libnidaqmx.so o main main.c', did the trick.

    I have still some errors during execution of the program, but I can probably solve these on my own.

  • undefined reference to camera_api.h for BB10

    Hello

    I am trying to use the features of the camera BB10 for playbook (camera_api.h). The problem is that when I build, I get an undefined reference for example error "undefined reference to"camera_open '" The functionalitly to the camera is activated in the bb10 sdk beta? If so, what libraries should I link to?

    More generally, there is a sample application he uses camera_api.h for bb10 playbook?

    Thank you.

    He has no public sample code again.  I hope to publish it soon.

    Looks like you're builgind an application without linking it to the library of camera (libcamapi.so).

    You will need to add 'camapi' to your list of libraries, or through project-> build settings settings c / c ++-> linker settings (I think), or if you are using stunts, I think you need to add

    LIBS +=-lcamapi

    To your .pro file.

    See you soon,.

    Sean

  • undefined reference to bb::cascades:multimedia: Camera

    Hello

    IAM trying to use the camera, but even with this simple example, I get the "undefined" reference

    I hope someone can point me in the right dirrection.

    copy of the error:

    undefined reference to ' bb::cascades:multimedia: Camera: Camera(bb::cascades::Container*).

    App.Pro

    LIBS += -lcamapi -lscreen
    

    App.HPP

    #ifndef APP_HPP_
    #define APP_HPP_
    
    #include 
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    using namespace bb::cascades;
    using namespace bb::cascades::multimedia;
    
    class App: public QObject {
    Q_OBJECT
    public:
        App(bb::cascades::Application *app);
        virtual ~App() {
        }
    
    private:
        Camera *mCamera;
    };
    
    #endif /* APP */
    

    App.cpp

    #include "app.hpp"
    
    App::App(bb::cascades::Application *app) :
            QObject(app) {
    
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
        AbstractPane *root = qml->createRootObject();
    
        mCamera = new Camera();
    
        app->setScene(root);
    }
    

    Hello! You must add - lbbcascadesmultimedia to the .pro file

  • undefined reference to the own class constructor

    I have some material in my project subfolders and use include it with the full path to add:

    #include 
    

    It compiles fine, but when I try to create the object I get this error:

    undefined reference to `DataServiceConfig::DataServiceConfig(QObject*)'
    

    what I am doing wrong?

    Usually, this happens when you have this in your include file:

    class MyClass

    {

    public:

    MyClass(MyThing*);

    private:

    MyThing * m_thing;

    };

    but this isn't in your MyClass.cpp:

    MyClass::MyClass (MyThing * thing):

    m_thing (Thing)

    {

    }

    In other words, you have the statement - so things that use your class compile - but you do not have the implementation, the linker complains that it can't find it.

    Stuart

Maybe you are looking for