Creating a static library in Momentics IDE

Hello all, I am very new to development Playbook, I'm trying to add a project in my workspace that would compile the c code ++ for a .a that could be connected to my App Playbook existing a few questions:

(1) what type of project right to choose in the list when I go on File > New ?

(2) is there a way for it to work without makefiles? (IE managed by momentics juice tlike that my app playbook is)

(3) because my cpp/h files already exist on the disk for this lib, what is the best method to add them to this static lib project?

Thank you all for the support.

File-> New-> project BlackBerry C / C++-> {the Set project name}-> {build select C or C++, managed or Makefile and Archives (static library)}->...

Tags: BlackBerry Developers

Similar Questions

  • How to create a static library

    Anyone know how to create a static library using QNX Momentics 10.2?

    Is it possible to create a static library which contains the qml file?

    I found this obsolete article: https://supportforums.blackberry.com/t5/Native-Development-Knowledge/How-to-create-a-shared-or-stati...

    Thank you

    File > New > BlackBerry Project and you get the following window:

    You also like the Fund of this model of library by @IsaacGordezky https://github.com/blackberry/Cascades-Community-Samples/tree/master/Cascades-Library-Template.

  • How to create a static library to Blackberry?

    Hi friends,

    I want to create a static library.can someone explain to me?

    It is urgent

    What do you mean by 'static '?

  • How can I use Make to build a static library to use in my application BB10?

    I need to use the mark in the terminal (OSX) to create a static library that can be used in a native application of BB10, but when I try to add the .a file generated as an external library, Momentics says "Library is not compiled to the correct architecture". How can I solve this?

    This problem seems to have something to do with the construction on OSX. I am now building in a CentOS VM and it works fine. It is more of a workaround than a solution, but it solved my problem for now.

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

  • Beta 4 - Momentics IDE seized semiautomatic does not work for Qt classes in the newly created projects?

    After you have uninstalled the Beta 3 Momentics IDE und install the new beta 4, I noticed that the autocompletion of the IDE not working anymore for Qt classes when I create a new project from a template (empty or non-empty). It seems that the IDE cannot find the Qt header files:

    But I can compile the project without problems.

    When I import my old projects created with the Beta 3 of the autocompletion also works for Qt classes. When I compared to them, I noticed that the Makefiles have changed completely.

    Of course I could stay with my old project structure, but the Release Notes for the Beta 4 mention something about the changes in the Qt libraries, pre-compiled headers and so on who might require changes in Beta 3 projects. To avoid problems, I thought I could just create new projects in Beta 4 and re-import my source files for my Beta 3 projects. But I want to keep the autocompletition for Qt classes.

    I guess it's just a problem in files created automatically from the project. Is there a way to remedy?

    Thanks for your replies. The trick to rebuild the index was useful, but does not solve the problem in itself.

    But comparing all files in some of my old projects of Cascades generated in Beta 3 and newly generated in Beta 4, I found that in the Beta 4 project files .cproject, missing several tags that setting the include path for Qt for the IDE headers. Note, I'm not referring to the railways include the settings of the compiler here. Just autocompletion and also the analysis of the code in the IDE has not worked.

    In any case, to solve this problem, I found the following solution:

    There are four instances of these tags in the file .cproject of a Cascades (beta 4) project:

    
    

    Where NNNNN is a number randomly. When I change all these 4 cases to:

    
    

    .. .then they review as they did in the Beta 3 and then refresh the project or restart the IDE autocompletion all started working again for new projects of Beta 4. When I then invoke Index-> reconstruction such as recommended in the other thread also the analysis of the C++ code for the work of syntax errors and semantics again (if you have enabled in the IDE).

    I suppose that these lines could also be included in the model files somewhere in the NDK of BB installation folder, but I didn't fix files it.

    I have submitted a new question here:
    https://www.BlackBerry.com/jira/browse/BBTEN-466

  • Need help to add the libcurl library in QNX momentics IDE

    Hello

    I am new to the native SDK development for Tablet OS, I'm working on an application that were a part of the user interface, we need to manage the HTTP connections and also need to run in the background.

    I tried, but was unable to download the library libcurl to handle HTTP connections. Can someone give me the link to download the file to library for QNX momentics IDE and a source code example of the use of this library for manipulation of HTTP requests analysis JSON ?

    Also, I need to find a way to run my application in the background. So I'm looking for something to do.

    Thanks in advance .

    libcurl is integrated in the NDK. Simply import the headers in the file "curl" such as . Be sure to refer to the library (curl) in your project.

  • How to create a project that connects in a static library?

    I am trying to create an OpenGL project that depends on a static library which I create in the same workspace in the NDK.  I created two projects (static library and OpenGL app) connects them in the NDK and tried, but I must be missing something because my OpenGL project is not able to see the functions in my static library, even if it is able to find my static library?

    Is there documentation describing step by step how to create two projects and how to relate?

    I found a similar post on the forums and I have solved my problem.

    I used project > add library > library of the project in the workspace but something is broken with this command, because it did not work.

    If you use project > add library > external library, then everything works fine.

  • Problems of creating a Native Extension, referring to a static library

    Hello

    I am trying to create my own Extension Native for iOs using another static library.

    My problem occurs when I try to pack my application with ADT: after a lot of "ld WARNING: unexpected srelocation type 9", I get a final error: "ld: inch bl/blx out of reach (max-4468380 is + / 4 M).

    This may be caused by the fact that the static library, I use needs CCG affecting "compile for thumb" turns off. I did this in XCode to get my file has to generate my .ane, but how could I tell ADT to take into account?

    Thank you very much for your help!

    You are compiling for ARMv6 and ARMv7?

    With armv7, you don't need to turn off the "compile for thumb" anyway.

    Also, I assume you are using a greater than 4.3 iOS version to compile your native library. In this case, using platformsdk - adt switch, while the packaging of your app could solve just of your question. (You will see some warnings 4-byte alignment ld, but it's ok)

    Neha-

  • How to open cordova 6 blackberry10 project in Momentics IDE

    I am new to develop 10 Blackberry Cordova

    How open created Cordova balckberry10 native Momentics IDE project

    Even now, I see no pages or videos as cordova andriod

    Please help me if you know links.

    BlackBerry Momentics does not support HTML5 or Cordova development.  It can be used to develop applications using C/C++ and QML Qt or stunts.  It is not an IDE for creating HTML content.

    You can use it to create a native extension for use in application of Cordova, but I don't think that's what you're looking for here.

  • Order of the Momentics IDE links

    Hi all

    I have faced the problem of link order while strengthening the application with 2 static libraries.

    I have 1 request and 2 static library projects in the workspace. A library is dependent on the other.

    To get the app connected successfully, it is important to link the libraries in the order you want.

    How can I specify the order of the libraries that would be used to link the application? I tried to change the order in the file .pro without a bit of luck.

    I am using Momentics version 2.1 Build id: 201406041640 on Mac OS X 10.9.4.

    Thank you

    Anton

    There is a work around for this problem.  After you add libraries, assign the property "automatically generate the config.pri" to "Never automatically generate" or "Prompt" on the properties (context menu) > QML > QML properties page, and then change the libraries order in the config.pri by replacing manually.

  • Bad installation file for Momentics IDE 2.1.1

    Hello

    I just downloaded Momentics IDE for Linux 32 b 2.1.1 and I got this message after you run the binary file:

    cz7asm@cz7asm-Z97-D3h $./momentics-2.1.1-201411071638.linux.x86.run ~/Downloads
    Please enter accept, n otherwise: y
    Create the directory bbndk
    Check the integrity of archive... Error in MD5 checksums: b6b5bd01544bdc98dd85bed1156758d3 is different from 592d0acf58e00adc38048da163a1d9a3

    Now, it's very strange because I have donwloaded the file twice and the checksum remains the same. I suspect that there is a bug in the installation process. Also list of MD5 checksum on the website (http://downloads.blackberry.com/upr/developers/downloads/momentics-2.1.1-201411071638.cksum) does not show the MD5 sums:

    361730190 417369444./momentics-2.1.1-201411071638.linux.x86.run
    3117348421 401787406./momentics-2.1.1-201411071638.linux.x86_64.run
    1678733117 400627721./momentics-2.1.1-201411071638.macosx.x86_64.dmg
    4011323815 402781301./momentics-2.1.1-201411071638.win32.x86.setup.exe
    3082028438 387674552./momentics-2.1.1-201411071638.win32.x86_64.setup.exe

    Of course, there is only the sizes of different generations.

    Could someone give me some comments on this? I couldn't find any contact for people behind releasing Momentics IDE using this forum was the only option I could think.

    Thanks for any help.

    Petr

    The question of the checksum must also be fixed right now as well.  Give him another try and let me know if you still have problems.

  • Trouble with application sining in momentics ide

    Hello! I develop 10.2 native sdk application. When I try to create the Release version and sign with my certificate of momentics ide shows me the following errors:

    "Error: Code signing request failed because [access_shared] entry-Point-System-equity is not allowed."

    and

    "Error: Code signing request failed because [access_internet] entry-Point-System-equity is not allowed."

    But it is part of the official documentation of development BB:

    Element value prompted limited since

    access_shared Yes NO. BlackBerry 10.0.0

    Element value prompted limited since

    access_internet NO. NO. BlackBerry 10.0.0

    This means that permissions app 'access_shared' and 'access_internet' are available from 10.0.0 API level and above.

    My bar file permissions - descriptor.xml:

    run_native
        access_shared
        access_internet

    How can I fix this error?

    Thank you.

    Hoc is in votis.

    The current syntax for the authorization of the app should be without the system attribute, that is to say:

    access_shared
        access_internet

    is a good way.

  • Clean install QNX Momentics IDE but no. SDK can be found.

    I unstall the old version, delete the folder and install the QNX Momentics IDE in the default directory;

    When I try to create a workspce, it appears without SDK is located. Install a software development kit to enable the QNX Momentics features.

    Anyone has the same problem?

    Found the problem

    in the windows--> the Blackberry SDK native short cut tap

    C:\bbndk\ide\win32\x86\eclipse\qde.exe

    To take

    C:\bbndk\bbndk.bat (bbndk_admin.bat)

    Then the problem is resolved.

  • Momentics IDE installation problems

    I tried today to use QNX Momentics IDE 10.2.0.115 on OS X 10.9 and I get FMV related issues.

    Here is this that java-version on my machine says:

    java version "1.7.0_45"
    Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
    Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
    

    And here's what error I get when I run qde:

    2013-10-29 20:53:31.941 qde[2082:507] Error loading /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/MacOS/libjli.dylib:  dlopen(/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/MacOS/libjli.dylib, 265): no suitable image found.  Did find:
    /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/MacOS/libjli.dylib: mach-o, but wrong architecture
    

    It looks like so there is an inconsistency that the IDE expects 32-bit JVM so that my computer is the 64 bit one.

    We should expect the IDE to run on a 64-bit JVM?

    After more frustrating google search I came to the conclusion that my JVM was strictly 64 bit and that the IDE runs only on 32-bit.

    Initially, I downloaded the Oracle's JVM and apparently it comes in 64-bit only. I then installed the Apple Java from http://support.apple.com/kb/DL1572 and now I am running

Maybe you are looking for

  • Satellite C660-24F: win 10 BSOD - system thread exception unhandled

    I upgraded my Toshiba Satellite C660-24F to windows 10 pro. After the upgrade it restarts again and again showing the dead blue screen with the messageSYSTEM_THREAD_EXCEPTION_NOT_HANDLED. (athwbx.sys). How can I get rid of this error?

  • HP 2055dn Printer Laser software for windows 7 does not work

    Have tried several times to install the software for Windows 7 64 bit on my HP 2055dn printer.  Used called download: P2050-full-solution-AM-EMEA1-v6.1.exe.  Still doesn't give me the software, even if the window "uploaded successfully" appeared.  Pr

  • How to turn on automatic updates in Windows XP

    Original title: my computer will not allow the update to service pack 3 windows xp, how to fix this? How can I activate the automatic updates?

  • HP Photosmart C4640: HP Photosmart

    How can I print 2 photos 5 x 7 on a sheet of paper 8 x 10? I want to print the same photo twice on a single sheet. I use the software that came with the printer and although it has a 2 each model sheet 5 x 7, you cannot print the same image. When I t

  • Leak in Envy 100 ink

    It is black ink everywhere inside the printer on the side of rt. What is malfunction of the cartridge or print head?