Problem using the gesture library

Hello people, I am new on the platform of the Playbook. I read the source code for the most basic of apps sample available on the internet. I am facing some issues now that I am using the gestures library.

I get an error saying undefined reference to gestures_set_alloc and swipe_gesture_alloc of the IDE, even if I have included the relevant header (gestures/set.h, gestures/swipe.h) files. After this i went ahead and downloaded the GestureSample from github (https://github.com/blackberry/NDK-Samples/blob/master/GestureSample/main.c) and tried to compile it, but I couldn't.

Can someone help me understand what I am doing wrong?

Looks like you don't have the library of action specified in your list of libraries.

If you download the entire GestureSample on github, it has a configuration of a Makefile project which relies completely.  If you want to fix your current project, look at https://github.com/blackberry/NDK-Samples/blob/master/GestureSample/common.mk and make sure that all equivalent settings in your project are defined.

Tags: BlackBerry Developers

Similar Questions

  • 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).

  • I use the MODBUS library and can receive data, but I can send it very well?

    Hello

    I use the Modbus Library to communicate with a VFD to control a fan. I use the master write and read vi. I can write data to the drive mechanism and get the fan to do what I want. The VFD is supposed to send a package of confirmation after I told him to do something and I can also read its records. When debugging the VI it shows that the problem is that the buffer always reads zero and the VI timesout. If I look at the USB adapter lights to RS 485, I use to interface with the drive mechanism, I see that the flashes of light RX immediately after I send a message. So I should have something in the buffer. Does anyone have any suggestions?

    Aaron

    OK, here's what has happened to those who have this problem. In the series Receive.vi MB The bytes to the Port of property node has been reading 0 even if there was something in the buffer. Executing the program was then stuck in a loop until it expired and never went to read anything of serial port buffer. I didn't spend too much time wondering why that VI has not worked and created my own. Within a period appropriate after writing to the serial port, I used the same bytes to the Port property node and was able to get the exact number of bytes to the stream and then VISA vi the number of bytes to read. I received the message of the right answer and everything seemed good. But of course that NO! Then I experimented with different speeds of writing to the drive mechanism to get the fan to operate at different speeds. I found a small range of speeds where I get no response to the VFD, either in operation or by sending me a response packet. After a while, I found that there is a mistake in the LRC-8 code in the MODBUS library OR. It does not prescribe that the LRC will be a two-character value. So if your LRC is proving to be a single character such as F value (which should be 0F) you get an incomplete MODBUS message. This has been easily corrected in the vi LRC8 saying "number in hexadecimal string" vi to produce output with a minimum width of two. Then everything worked fine. Moral of the story, it's the MODBUS library is awkward.

  • OR PCI-6542: Creation of dynamic waveforms using the HSDIO library

    Hello!

    I have problems to understand how to create waveforms using the HSDIO library to run on a card PCI-6542. I need to create a program that activates a channel for 12.5 microseconds, waiting for a while (i.e. 100 samples) and activates another channel to 12.5 microseconds.

    This program must be used in a Multielement ultrasound system.

    Here the example of dynamic generation program that transforms the channels 0-2 on 1024 samples.

    /************************************************************************
    *
    * Example program:
    * DynamicGeneration.c
    *
    * Description:
    * Generates a simple model on the specified channel.
    *
    * Pin connection information:
    * None.
    *
    ************************************************************************/

    / * Includes * /.


    #include "niHSDIO.h".

    / * Sets * /.
    #define WAVEFORM_SIZE 1024

    int main (void)
    {
    ViRsrc deviceID = 'Dev1 ';
    ViConstString channelList = "0-2";
    ViReal64 sampleClockRate = 50.0e6;
    DataWidth ViInt32 = 4;

    ViUInt32 waveformDataU32 [WAVEFORM_SIZE];
    ViConstString waveformName = "myWfm";
    ViInt32 timeout = 10000; / * milliseconds * /.

    ViSession vi = VI_NULL;
    Error ViStatus = VI_SUCCESS;
    Bruno errDesc [1024];
    ViInt32 i;

    / * Initialize generation session * /.
    checkErr (niHSDIO_InitGenerationSession)
    Deviceid, VI_FALSE, VI_FALSE, VI_NULL, &vi));

    / * Assign channels for dynamic generation * /.
    checkErr (niHSDIO_AssignDynamicChannels (vi, channelList));

    / * Set up the clock sample parameters * /.
    checkErr (niHSDIO_ConfigureSampleClock)
    VI, NIHSDIO_VAL_ON_BOARD_CLOCK_STR, sampleClockRate));

    / * Query the data Width attribute * /.
    checkErr (niHSDIO_GetAttributeViInt32)
    VI, VI_NULL, NIHSDIO_ATTR_DATA_WIDTH, & dataWidth));

    / * Fill the waveform with ramp data * /.
    < waveform_size;="">
    {
    waveformDataU32 [i] = i;
    }

    checkErr (niHSDIO_WriteNamedWaveformU32)
    VI, waveformName, WAVEFORM_SIZE, waveformDataU32));

    / * Start the generation * /.
    checkErr (niHSDIO_Initiate (vi));

    / * Wait for all the generation * /.
    checkErr (niHSDIO_WaitUntilDone (vi, timeout));

    Error:

    If (error is VI_SUCCESS)
    {
    / * Print result * /.
    printf ("made without error. \n") ;
    }
    on the other
    {
    / * Get the description of the error and print * /.
    niHSDIO_GetError (vi, & error, sizeof (errDesc) /sizeof (petitioner), errDesc);

    printf ("\nError encountered\n===\n%s\n", errDesc);
    }

    / * log * /.
    niHSDIO_close (vi);

    / * prompt to go out (for the popup console windows) * /.
    to continue...\n");
    GetChar ();

    error return;
    }

    Issues related to the:

    How can I change the values in waveformDataU32 to create market reports (instead of just always on)?

    How to select the channel waveformDataU32 is applied to the?

    Thank you!

    Zachary Geier

    The waveformDataU32 table is an array of 32-bit integers. Each bit corresponds to a line on the device.  On the first clock cycle, this program outputs:

    0000 0000 0000 0000 0000 0000 0000 0000

    Then it displays the following, changing at each clock Pulse:

    0000 0000 0000 0000 0000 0000 0000 0001,

    0000 0000 0000 0000 0000 0000 0000 0010,

    ...

    and so on all the way up to 1023:

    0000 0000 0000 0000 00000011 1111 1111

    In the example that you include at the bottom, you set the least significant bit (LSB) to zero and one, actually only change one line on the output. To change all the lines, you must instead use 4 294 967 295 or 0xFFFFFFFF:

    < waveform_size;="">
    < 200){="" if="" sample="" number="" is="" less="" than="">
    waveformDataU32 [i] = 0; Disable channels 0-2
    }
    else {}
    waveformDataU32 [i] = 4 294 967 295; Otherwise turn on all channels to 800 samples
    }
    }

  • Using the bookmark Library, I can locate specific bookmarks, but there is no way of knowing which of my cases, it is in. Is it possible to do this?

    Using the bookmark Library, I can locate specific bookmarks, but there is no way of knowing which of my cases, it is in. Is it possible to do this? I have about 15 cases of bookmarks with a total of about 150 bookmarks. The research of the Library bookmark gives good results insofar as find the specific bookmark, but I IN. WANT to KNOW WHO MY RECORDS THE SPECIFIC BOOKMARK IS how can I do this?

    Take a look on these modules:

    https://addons.Mozilla.org/en-us/Firefox/addon/7372/
    https://addons.Mozilla.org/en-us/Firefox/addon/7377/

  • Native extension using the shared library

    Hello

    IAM trying to create an extension which will be used in cordova, well the work of foundations... but what I have to do is add a shared library from another company for my project.

    They have a folder with all the files of all and a .so file, how can I add to my project and use it in the extension?

    Thank you.

    You start with the model BB10-Cordova?

    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/template

    You should be able to add the library to the project using the Add Library Wizard in project-> generation properties C / C++-> the settings-> the tool parameters

    Note: It is recommended that you back up your project first.

  • problems using the snap have amd, playback of Jpeg files

    Original title: I'm having problems using the component feature snap-in.

    Sometimes a single document disappears. When this happens while the document program is managed by then will not work. The document seems to be flying around the office. The last time this happened I had a doc JPEG upward and now I can't see what is JPEG. I don't know why the document wants to fly around, and I don't know how to get my use of the JPEG back.

    Hey Graham,.

    To view all jpeg images in the Viewer Windows photo or any other photo software visualization, you must configure this software as a default value in the default programs.

    Check out the link that allows you to configure the program as default.

    http://Windows.Microsoft.com/en-in/Windows7/change-which-programs-Windows-uses-by-default

    You can try to run the Aero Troubleshooter and see if that makes a difference.

    http://Windows.Microsoft.com/en-in/Windows7/open-the-Aero-Troubleshooter

    If the problem persists, provide us newspapers observer of events, as well as the error message if you receive a message.

    http://Windows.Microsoft.com/en-in/Windows7/open-Event-Viewer

  • I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I had created a slideshow of practice and the background image was not displayed as an image in itself. How to

    I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I have created a slideshow of practice and the background image was not displayed as an image in itself. How to make it behave?

    Another approach, perhaps a little more elegant (?). Create a collection that includes images for the slideshow. Include the background image in the collection. Drag the background image in the Panel to designate. Then, remove this image from the collection and create the slide show. I just tried and it works, too.

  • Is it possible to use the GESTURE and TOUCH_POINT together?

    Hello!

    I wonder if there is a way to use the GESTURE and TOUCH_POINT together in a flash mobile app (Android).

    I want a specific graphic object to respond to the TOUCH_POINT (i.e.: type on and drag) and specific gestures (i.e.: two fingers to Zoom).

    but notice that each one requires a different configuration to the global variable Multitouch.inputMode setting:

    TOUCH_TAP faucet requires:

    Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

    where GESTURE_ZOOM requires:

    Multitouch.inputMode = MultitouchInputMode.GESTURE;

    I know it's possible in mobile applications, for example see GoogleMaps.

    But I wonder is it possible using Flash and Adobe Air...

    Thank you

    Koby

    I found a solution!

    Instead of TOUCH_TAP use MouseEvent.CLICK and then you can use the GESTURE to the Multitouch.inputMode.

    p.s.: For the long pressure feature: instead of TouchEvent.TOUCH_BEGIN use MouseEvent.MOUSE_DOWN

    and instead of TouchEvent.TOUCH_END / TouchEvent.TOUCH_OUT / TouchEvent.TOUCH_ROLL_OUT use MouseEvent.MOUSE_UP)

    For all those who may need this...

    Koby

  • How to extract information from tree logical structure using the PDF Library?

    How to extract information from tree logical structure using the PDF Library?

    Adobe's PDF Library has PDSEdit APIs to extract information of the logical structure of a tagged PDF file.

    But I couldn't find any example code to demonstrate the C API on PDSEdit layer.

    I google search using different keywords, find none.

    I contact datalogics (which gives me the evaluation of adobe PDF library copy), no code sample on APIs PDSEdit yet.

    Everyone knows any code example can demonstrate extract structure logic tree information PDSEdit APIs (in C/C++ or Java)

    from a tagged PDF file? And is there any sample to demonstrate that connects a tagged logical tree contained in the content stream?

    I thank very you much in advance!

    logicaltree

    Did you look at the code snippets in the SDK?  There are a bunch of samples to work with PDSEdit and structure/marking.

  • Problem using the Overdrive Media Console software program

    When I try to download audio files using the Overdrive Media Console program (used by the public library in my area) I get the error message "error) xC)) D2781: problem occurred in the identification of rights management digital retriving.»   What is the reference for this?

    Hello

    • What is the format of audio file you were trying to play?
    • What version of Windows are you using?

    You can follow below link that can help you to solve your problem:

    http://www.Microsoft.com/windows/windowsmedia/player/Webhelp/default.aspx?&mpver=11.0.5721.5145&ID=C00D11E2&ContextId=71&OriginalID=C00D2781

  • Compilation error when you use the NDK library

    Hello

    I am developing an application of cascades that uses a static library NDK to communicate with a bluetooth device. The NDK library compiles without problems, but when I then compile the application stunts I get errors with all bluetooth NDK functions:

    myBB10Lib.a(BluetoothDevice.o): In function `MyBB10Lib::BluetoothDevice::getAddress()':
    \src\Driver/BluetoothDevice.cpp:33: undefined reference to `bt_rdev_get_address'
    
    myBB10Lib.a(BluetoothDevice.o): In function `MyBB10Lib::BluetoothDevice::getName()':
    \src\Driver/BluetoothDevice.cpp:53: undefined reference to `bt_rdev_get_friendly_name'
    
    make[2]: *** [o.le-v7-g/MyCascadesProject] Error 1
    make[1]: *** [debug] Error 2
    make: *** [Device-Debug] Error 2
    

    (I create a static library as it will act as a driver for the bluetooth device in other applications of stunts in the future).

    I have good include (#include ) in the BluetoothDevice .cpp file, but the application of Cascades always gives me this error. It is one of the functions in question:

    /*!
     * Returns the MAC address of the remote device, terminated by a null character (\0).
     */
    char* BluetoothDevice::getAddress() {
    
        // Holder for results
        char address[18];
    
        // Perform the check
        int res = bt_rdev_get_address(mDevice, address);
        if(res != 0) {
    
            //TODO  Query failed, pass up error
        }
    
        return address;
    }
    

    Any suggestions?

    Hello!
    I suspect that the NDK functions can be linked only dynamically. Only the .so files are available.

    Try adding
    LIBS +=-lbtapi
    the file .pro of application using the library.

  • Problem with the music library...

    Can someone tell me why my media player don't copy my songs automatically from my music library in my Player library?
    Please help me! :)

    Hello

    Have you tried to add songs to the library and check?

    Method 1: Run the Troubleshooter:

    Open the troubleshooter in the Windows Media Player library

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-library-Troubleshooter

    Method 2: If the problem persists, then clear the database of Windows Media Player. To do this, follow these steps:

    a. exit Windows Media Player.

    b. for Windows 7: click Start, click run, type %LOCALAPPDATA%\Microsoft\Media Player, and then click OK.

    c. Select all files in the folder and then click Deleyou in the file menu.

    Note: You don't have to remove the folders that are in this folder.

    d. restart Windows Media Player.

    Note:  Windows Media Player automatically rebuilds the database.

    Method 3: If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:

    a. exit Windows Media Player.

    b. If you run Windows 7, click Start, click Run, type %LOCALAPPDATA%\Microsoftand then click on OK.

    c. Select the folder Media Player and then click delete on the file menu.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    For addition al information, see this article:

    Add items to the Windows Media Player library

    http://Windows.Microsoft.com/en-us/Windows7/add-items-to-the-Windows-Media-Player-library

    Hope this information is useful.

  • Need of XLSX files tested to see if there is a problem with the content library

    Hello

    I have a file which causes an error when you use the library of Stellent. The file is a file XLSX and when we open and then save the file again, then does not cause the error. This leads me to believe that the file has been successfully created or something wrong with the library. More than likely it is the file. Is there any tool that I can use to test the file that will tell me what exactly is the problem? The file is automatically generated by a survey company. And so if we can show a problem with the file itself, then they will have to solve the problem in their autogenerator.

    Thank you
    Larry

    Published by: 1000345 on April 16, 2013 06:44

    Published by: 1000345 on April 16, 2013 06:45

    Published by: 1000345 on April 16, 2013 07:00

    Published by: 1000345 on April 16, 2013 07:00

    Which, in my view, that we use it for is to get out of text or metadata files to create an index on the data.

    Yes, it's also OutsideIn. I believe you can use the SDK to export research.

    If I were you, I'd do some testing base of the new version and it doesn't help, create a service request in Metalink so that management can take a peek inside.

  • Problems using the deployJava.js with Java 7

    I found problems, which vary according to the browser for the following script in an HTML page on Windows 7:

    < html >
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 ">"
    < / head >
    < body >
    Me launch!
    < script src = "http://www.java.com/js/deployJava.js" > < / script >
    < script >
    deployJava.setInstallerType ("kernel");
    deployJava.createWebStartLaunchButton ("yourAppHere.jnlp", "1.7.0");
    < /script >
    < / body >
    < / html >

    The problem occurs when Java 7 is not yet installed. Note: There is no need to have a real 'yourAppHere.jnlp', given that the problems of front surface to be a requirement.

    Firefox 8.0:
    ------------
    When the user clicks the launch on Firefox button, a brief dialogue with a progress bar appears showing a small download. In the end, a security warning dialog box appears:
    «This installation of Java program didn't Sun...» ». The Editor appears under Oracle America, Inc..

    Installation proceeds as normal if the user overides the warning (if lack finally a true jnlp will catch up with you). I don't know about you, but think that the problem is with deployJava.js. You solve this might also want to consider the implications of MacOSX port when it is up and ready.

    THAT IS TO SAY 9.0.3:
    ------------
    This browser is a total failure. The initial report download progress dialog at the end, then rest & the session hangs. The dialog box is modal, so other than the power button one flight is killed via the Task Manager.

    I'm sure these are bugs, but thought would see if others can replicate just to save html to a file on the desktop and double-click. Have they already been reported? There are other tests that are not good? It has been years since I reported a Java bug, are there indications?

    Published by: user3055980 on November 13, 2011 11:36

    deployJava.js is supported by the native library which is part of the JRE you have or had installed.
    Everything preceding the first Setup dialog (detection, safety message, download dialog boxes, etc.) is from this library.

    According to me, the behavior of FF is planned. You have the 'old' JRE installed (the one that was released prior to the acquisition by Oracle, or before the update of JRE to deal with Oracle as 'owner' JRE) and then editor of the new JRE is not deemed be pretrusted. This problem will disappear once users migrate to JRE "taking support Oracle.

    Check the version of the dll from deployJava1.dll and npDeployJava1.dll loaded by the browser process (e.g. to use Process Explorer tool FRO sysinternals.com) to find out which version you are using. Report a bug, follow the instructions here - http://bugreport.sun.com/bugreport/.

Maybe you are looking for

  • Cannot log on to Windows XP to remove some registry

    I use Malwarebytes Antimalware http://www.malwarebytes.org/mbam.php regularly and did not have an infection found.In about a year. Yesterday I scanned after about a month and I saw 12 infections! MBAM said he couldn't clean up some infections: Malwar

  • Using s-video output on my Satellite L300D-13Y

    Hello I plugged the laptop with my TV using an s-video cable (4metres) and a s - vhs to SCART adapter.I chose the s - vhs input on the tv but when I choose "extend the desktop to this monitor", I get the confirmation message 'you want to keep this se

  • LabVIEW block in serial communication!

    Hello. I use pl2303HXA (usb to UART converter) in my design data and sending of microphone for pc in LabVIEW 2013 x 86. When I tried in a terminal CODEVISION, everything is OK and each microphone send to a PC, Hypertermial or Terminal CODEVISION is r

  • BlackBerry Smartphones blackberry email setup

    Hello, I recently changed networks and when I try to re activate my email that I always get the error message "Update failed" and I don't know how to unravel the problem coz all my email details are correct. Help, please.

  • Copied page always directed to the original page

    Hello, ppI have original page 20, then I created page30 copied from page 20.  It works well when rendering a page of the report (page30) form (page31) except when when page31 is closed by clicking on the button and supposed to be directed to page 30