Creating a new build configuration

wants to create a new configuration in Momentics in this compiles differently my app (it will pass a few macros to the compiler C preprocessor when my project is built).

Let's say I want to base it on the release device, but I want to call device-release-test instead. I can see how to do this step through the IDE already: (project-> Build Configurations-> Manage)

This will (I assume) build my project on top of the arm/o-le.v7/ directory. What I want, is to have the project built in a new location, so that I can ensure that my binary output never get confused upward.

I want this configuration rather to be built under the arm-test /o - the .v7 / directory. I believe that this should be possible because the 'Device-profile' configuration made something similar, with builds end up under the arm-p.

My question is, how is the build in momentics configuration (stored in the .cproject configuration file) specifies this change? I can see the configuraiton of 'Device-profile' in the directory .cproject - but there is no reference to a 'arm-p' directory, and there is nothing in the file PRO of my app which gives an indication of a configuration of 'profile '.

I grep has my entire code base and I don't see how to do it - but it must be possible. What I'm missing here?

I figured out how to do this, in case anyone else is interested. The key is to understand that the compilation life cycle begins with the brand and not qmake / myapp.pro I first thought.

By default, a Makefile waterfalls looks like:

QMAKE_TARGET  =  myapp
PROJECT_DIR   := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
I18N_DIR      := $(PROJECT_DIR)/translations

include mk/cs-base.mk

The cs - base.mk (found in your NDK) contains everything you need to understand how the process works. In cs - base.mk you can see the built-in rules for unit-Debug, device-liberation, Simulator-Debug configurations. These are hard-coded in the build system.

You do not want to change cs - base.mk to add your own configurations, to fix this add the following lines at the end of the Makefile in the root of your application:

QMAKE_TARGET  = myapp
PROJECT_DIR   := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
I18N_DIR      := $(PROJECT_DIR)/translations

include mk/cs-base.mk

# add the following:
arm-test/Makefile: $(QMAKE_TARGET).pro

Device-Test-Release:
   $(info ***** This is my custom make target ***** )
   @mkdir -p arm-test
   cd arm-test && $(QMAKE) -spec blackberry-armv7le-qcc ../$(QMAKE_TARGET).pro CONFIG+=release CONFIG+=device CONFIG+=test
   $(MAKE) -C ./arm-test -f Makefile release

I wasn't the most appropriate copy rules of cs - base.mk and defined my own rule for the configuration of device-Test-version. The foregoing rules follow these steps:

  1. Creates the arm-test directory
  2. Adds 'test' to the variable CONFIG - this will be available in my PRO account

Now, you must create a new Configuration of build in the momentics IDE.

  1. Right click on your project in the project (myapp) Explorer. From the context menu, select:
  2. -> Manage the Build Configurations

In the dialog box handle Configurations, click 'new '.... "and create a new configuration called 'Device-Test-Release' (or whatever you wish to call your. Make sure that copy you the settings from a Configuration of 'existing '. Choose the most appropriate for your scenario. In my case, I started my new configuration of generation on 'Device-Release.

At this stage, you select the new build configuration when you build your project:

  1. Right click on your project in the Project Explorer
  2. Build - Configuraitons-> current value
  3. Select the new "device-Test-version" configuration.
  4. Build!

However, you will find that different nothing happens. This is because the device-Test-version is based on device-release, so exactly the same thing happens when build you. Therefore, change the device-Test-version so that our custom in our makefile rule is called, instead of the default peripheral release target

Bring up the project properties:

  1. Right click on your project in the Project Explorer
  2. Select Properties
  3. Goto the tab generating C/C++
  4. Select Device-Test-version in the Configuration drop-down list
  5. The behavior of Goto tab
  6. There is two-text fields ('Generation on resource save' and 'Building')
  7. Change the textfields that say "Device-liberation" for "Device-Test-Release.
  8. Click on apply

The procedure above "links" your configuraiton of build in the IDE, with the brand target in your Makefile. Now, when you build your project (in the configuration of the device-version-Test), it will be integrated in the arm-test / directory

There are still two other things you need to do if:

Edit your file of bar - descriptor.xml and add a new configuration, based on what you see for release device. Just copy the article release device that is already defined, as follows:


  Qnx/Cascades
  armle-v7
  myapp

You must make sure that the arm-test folder and of course change

Once you have done this, you can finally edit the myapp.pro file and specify some custom in there rules. I didn't add the following rule:

# put this in the myapp.pro file

test {
  DEFINES += TEST_BUILD_WHOOP
}

Don't forget the ' test of += CONFIG "that we put into the Makefile project? In the PRO file above, we leverage this by creating a test rule {}, which applies only when we build the configuration of device-Test-version. Whenever the rule of test runs, we can add a TEST_BUILD_WHOOP preprocessor definition. Now every time our source files are compiled (in the test configuration), the TEST_BUILD_WHOOP macro is defined, and we can put custom code that gets compiled only when we test.

for example in your myapp.cpp file:

#ifdef TEST_BUILD_WHOOP

/* whoohoo! building for test */

#endif

Tags: BlackBerry Developers

Similar Questions

  • Could not create a new partition or locate an existing journal of one.see configuration file

    Separated from this thread.

    I get the same error 'could not create a new partition or locate an existing configuration one.see file log', but I install windows server 2012 R2, datacenter edition. I tried the steps above and it has not changed anything. Help please!

    Salvation of demonstration,

    We have a dedicated team working on Windows Server 2012. I suggest you ask your question in the below link:

    https://social.technet.Microsoft.com/forums/en-us/home

    Hope this information is useful.

    Thank you.

  • How can I create a new database without table using database configuration

    How can I create a new database without table using database configuration

    You can search for your "DBA 2 days" version oracle documentation for your version.  You should also read the manual of the concepts.  Create your own schema is pretty basic, all you have to do is to create a user.  Don't use dba or system for your own objects.

  • How to create the new Custom XML report without the use of the form builder

    Hello

    What are the steps to create the new Custom XML report without using the Report Builder?

    Thank you and best regards,
    Aerts

    Aerts,
    Can you clarify your question more away!

    -bifacts
    http://www.obinotes.com

  • Creating a new system Module

    Hi all

    There is probably a really simple answer to this one, so I apologize in advance for my ignorance!

    If I create a new system module (i.e. to select 'definitions' of the group 'Configuration' under 'Dashboard'.  In the upper left pane of the split window that appears, you will find a green button '+' at the bottom of the list. Click this button to create a new system module). I followed using http://en.community.dell.com/techcenter/performance-monitoring/foglight-administrators/w/admins-wiki/6156.custom-script-agent-2-build-a-wcf-dashboard-to-view-the-custom-agent-data and others, the module does not appear in the list of dashboards in the left menu.

    The user I use got a role of Dashboard Designer.  I have already created a system module this is displayed here:

    However, my other doesn't work.  Both have obtained the relevant administrator and authorized roles:

    I created the original a bit back and don't think that I made a trick to get it to show up under the dashboard.  Can you get it someone please let me know what I forgot to do?

    Thank you

    Brian

    Modules only appear in the list when they contain a view that is reported as a dashboard.

  • Multi folio in DPS App Builder configuration problems

    Hi all

    I apologize for my bad English.

    I'll put a folio Multi App for my client.

    I insert the Adobe ID and it does not work, as you can see in the screen "error 1".

    Administrator with the same Adobe Id, I jump on the dashboard to create a new account as requested, but the Adobe ID is denied, you can see in "Error 2".

    The Adobe ID is correct because I use it to log on to both the table edge and in the DPS App Builder.

    Why is - that it is rejected?

    I also tried with another Adobe (mine) ID to create an administrator account, but does not work too.

    Please can you help me understand what I am doing wrong?

    I thank in advance for the answer.

    Michela

    Error 1.pngError 2.png

    You should have three Adobe ID configured to make it work:

    (1) Adobe ID of the master account buy DPS Pro or business

    (2) a second Adobe ID, that you create in the Dashboard Administration accounts, that is set up as an account Application. That's what you put in the App Builder screen you posted above and are the account you must publish the folios to

    (3) a third Adobe ID which has rights App Builder and is used to connect to the App Builder. It is not strictly necessary (it can be the same as that of the other two accounts), but it is advisable to have separate him.

    You can't add an account in the Administration of DPS page if it has already been used with DPS. You can only add the Adobe ID who did not used/signed for DPS before.

    Make sure that when you create the account #2 and #3 you to open in the DPS dashboard with these accounts and that you agree to the terms and conditions of the screen that is displayed, otherwise the accounts do not work. Also, make sure that you check e-mail through the verification email addresses, you will receive, otherwise the accounts won't work.

    Neil

  • I created a new library of more new playlists but cannot find the Library.xml file

    Hello

    I'm going to re - build my iTunes files from scratch, a kind of decennial event 'spring clean '. I have created a new library by using the command, click on application startup, and then began to rebuild new reading lists in the application. I can see the folder newly created the library that contains the new "iTunes Library.itl" file BUT I don't see that the iTunes Music Library.xml file. " There certainly must be one to save the data of the playlist, and probably "Get Info" should reflect today date' today... I don't see older versions.

    Although everything seems to work perfectly I don't want to have to re - visit the construction of Playlists from scratch for the next ten years! Can anyone suggest what happened to the .xml file?

    Thanks and greetings

    You can create an .xml on iTunes/file/library/Export library file and gives you the opportunity to put the Library.xml file in your iTunes Media folder - or anywhere you like.

    If you need to rebuild your playlists, you can go to iTunes, file, library, import playlist and select the .xml file.

    Normally, you do not see the .xml file in your iTunes folder.

  • How to create a new profile on a MacBook?

    How to create a new user or COMP

    OS X Yosemite: Configure users on your Mac Try this.

  • I downloaded and installed it and TB preconfigured mailbox of my wife rather than create a new one for me. Whats up with that?

    I downloaded and installed it and TB preconfigured mailbox of my wife rather than create a new one for me.
    The first time I ran it, there was his box mailbox and all the msg I whatever it either has no entry for a server, the login or password. IOt just configured everything to his mailbox! He did this IP address or what?

    Network, what type of network? you have a server?

  • Send button is grayed out when I create a new message, but not when I answer.

    Send button and the spell check button is grayed out - as are the format and insert menus - when I create a new message. When I reply to a message, all the buttons and menus work. If I start to answer, but change the beneficiary, subject to line and insert a completely new message, I can send it.
    TBird worm 31.4.0 (installed recently. The question could have started with this installation, but I'm not sure.)
    Windows 7 Pro, Version 6.1, Service Pack 1
    Gmail configured according to the instructions from google.

    and the Send button becomes active when you actually address your mail (you can not send mail without address)

    The spell check button has no content to check, so it does not work until you start to type in the body of the mail.

    Even with the insertion, and menu format if you insertion point is not in the body of the email that they do not have a destination to work with.

  • recovery system after creating a new partition

    Product number: A6Y43UAR #ABA

    Name: HP Pavilion g6-1d38dx Notebook PC

    OS: Windows 7 64-bit

    My hard drive is shipped with a factory setting of 4 primary partitions. I would like to remove one of the partitions in order to create a new primary partition using this guide (jump to option I content):

    http://h30434.www3.HP.com/T5/other-notebook-PC-questions/how-to-REPARTITION-HDD-of-HP-notebook-with-...

    My goal is to create a new partition D where I store all my data so that something happened to my operating system that is on the C drive (viruses, etc.), all my data will be safe in the drive D. I hope that running the system recovery HP (using the f11 key) will not remove the user created the D partition and the data in it , but that's where my confusion. The guide above says the following on this subject:

    "Remember that if you decide to use the recovery discs or the F11 option to restore the PC to its original state, all partitions that have been created by you will be lost and will also lose all data that was stored on them."


    However, another document which is the HP system recovery guide, says the following

    Your computer can have three types of available system recovery, or he might have only two. Use the type of recovery in order to solve your problem without making further changes as necessary.

    If you don't have 3 options in the recovery then Yes, System Recovery Manager will delete all partitions and restore the original configuration.

    To better protect your files an external USB hdd is a good investment of backup. You can also use it to make a System Image of your hard drive that can be used to restore windows and all software/drivers if you need to reinstall. 1 > guide 2 > guide

  • Photosmart 6520 - establishment of eFax with greyed the button "create a new account.

    I just bought a Photosmart 6520 new and am setting up eFax service. While he was trying to set up eFax "create a new account" button is grayed out, do not allow me to create an account. I found a HP support document for my printer which helps with the implementation of eFax. On the document it says:

    NOTE: If the button create account is unavailable or greyed out, the printer is already registered with eFax.

    I didn't record the printer with eFax, but just to check that it was wrong, I clicked on "login to eFax and clicked 'forgot number?' when you are prompted for an eFax number I never was affected. I put my email address and the message verified, as I expected, that the account was not in their database. I then did a search on the forum where I found a topic 'Registration of EFAX' that said, it has been resolved. The solution to say

    "I'm sorry to hear that you have a gray button to create an eFax account for your Photosmart 6520.

    The questions that you have, please call HP Cloud Services at 1-885-785-2777 if you are in the USA/Canada region. »

    I tried to call this number and it is an invalid number. I searched other corrections and I see not a published solution, but see that there is a problem with high frequency. Help, please.

    Thank you

    gf_printer

    Here is the solution, if you do not have to hunt around with invalid documents, phone numbers, etc... as if I had to.

    If you configure a printer offering eFax free, but when you create an account, eFax, the 'Create new account' button is gray, then here's what you do:

    1. Call eFax @ 1-800-287-3499 and select "Sales". Do not select "Customer Support" because it prompts you to enter your fax number, you do not. Tell the sales person the question and ask to be transferred to a customer support agent.

    2. Customer support agent will take information from you such as your zip code, your email, your hpeprint email address, type of printer and then open a ticket with a representative from hp for the configuration of the fax number.

    3. You should then receive a fax of test from the person who took your eFax number. You will get also an email with the information you need for eFax, including your fax number and your PIN.

    Good luck!

  • Setup could not create a new partition, new z510 non-OS and windows 7

    Hello, I have a huge problem with windows install. Clean all the partition using windows install to create two partitions: 100 GB and GB 890. When I try to install windows I see:

    Setup was unable to create a new partition or system to locate a system partition. See logs of installation for more information"

    I put:

    Configuration: Controller-> Compatible Sata Mode

    Start mode: Legacy Supprt

    Boot priority: first Legacy

    Need help, help me.

    SOLVED... I tried to install the USB drive... there couse a problem.

  • I install windows xp on a sony laptop. I created a new formatted partition but I get a fatal error message: "syntax error:"D:\I386\asms\10\MSFT\WINDOWS\GDIPLUS\GDIPLUS. " MAN. "

    I install windows xp on a sony laptop. I created a new formatted partition but I get a fatal error message.  one of the components that windows needs to continue Setup could not be installed. Manifest Parse Error: an invalid character was found in text content. Connect the system configuration error: SXS. DLL:syntax error in manifest or policy file "D:\I386\asms\10\MSFT\WINDOWS\GDIPLUS\GDIPLUS. MAN 'at line 0. I bought the oem software installation disc. I bought the computer used and did not get any disk with it. Help, please

    1 person got this response
    Shawn thought it was bad media so I'm a new disc and received the same error does anyone have an idea what might cause this error?

    original title: install windows xp

    Hi sptusch,

    Thanks for posting. Is it a burned disc? If this is you please redownload the image. Also, try the following.

    1. place your Windows XP installation CD and start to her...
    2. Press any button to start the Windows installation (don't worry... we do not actually use the installer at this point)
    3. wait a few moments for the installation program starts, when you see repair an installation of Windows XP using the Recovery Console, and then press the R key
    4. wait until you see this screen, enter the number of your master installation. (Typically 1 to C:\Windows)
    5. press ENTER.
    6. If you are prompted to do so, enter your administrator password. If you don't have one, leave the field blank and press to enter.
    7. from the command prompt, type: chkdsk/r (note the space between chkdsk and / r)
    Allow it to complete undisturbed.
    8. remove the disc, then restart.

    I hope this helps!
    Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • I seem to be stuck in bed in administors account, I create a new, but disappears after reboot

    I had a lot of trouble to install programs, change, etc.

    the installation seems to work very well, but when the computer reboots, it comes down to old configuration

    When I create a new user, he is there until I do a restart and then it disappears and the only left account administrator

    If I make changes in office they work until you do a reboot and then it's back to the old configuration

    I had problems downloading and installation of visual studio 2010 express, it hangs to the installation of .NET framework 4.

    If I download and install .NET by itself, it appears on the list of programs on Add/Remove Programs Control Panel.

    but when you do a reboot it disappears and the older versions are back

    I'm running a legacy Windows xp pro, and these problems exist since I first put under tension it

    I can't do a system restore and the utility does not work well, no restore points have been

    You cannot change the date or anything like that,

    I can't change the time, even though I'm an administrator

    There are other restrictions, too many to mention here

    any help would be appreciated, my e-mail address ir as follows

    E-mail address is removed from the privacy *.

    You can send me it please, I can't solve these problems by myself

    Hi daniel frances mccarthy III,.
     
    -Remember to make changes to your computer before this problem?
    -You have any third-party software cleanup on your computer?
     
    If so, the same turn off and check.
     
    Scan your computer by using the Microsoft security scanner and check if it helps fix the problem.

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

Maybe you are looking for