OpenGl as underlay to the Cascades project

Hey all,.

I am trying to use the OpenGl fusion and stunts to create a underlying opengl in a cascades of the user interface. The project compiles, but it throws segfault on the launch, and I'm not quite sure what I did wrong.

What is the app is essentially creates a foreign window control, and then a button click on starts a new thread to make an openGl application.

The openGL code is based on the sample standard proveded my blackberry as well as a few other examples that I have seen in these forums and it works well as a stand alone project.

I created a public github repository for the project. If someone wants to watch or contribute to the example that I would really appreciate it!

* USE IN RESPONSE TO THE PLACE GIT REPOSITORY. Created a new one.*

UPDATE: here's the exact error message I receive:

"

127029503 (ThreeDViewer) process ended the SIGSEGV = 1 fltno = 11 78ab813a = ip code (/ proc/boot/img_codec_png.so@png_validate+0x13) mapaddr = 0000113a. REF = 00000007

"

UPDATE 2: I think I figureed out!

Many people, seems to have got it working!

I don't really know what I did... but the original draft that I submitted a lot of errors related to libraries, dependencies, and I was using the pthreads incorrectly.

I created a new project from scratch, but also a new repository. The former one was... without the possibility of repair. Start a new project and the repository was faster.

https://github.com/joelghill/3D-view.git

Hope this helps other people when you try something similar!

Tags: BlackBerry Developers

Similar Questions

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

  • Locale in the Cascades Momentics model code is broken. Here is the solution...

    The Momentics application, it is easy to start new projects by basing your new application on a predefined model. The problem is that the regional settings, change the code in the application model Cascades do not work properly and developers who don't understand this will serve strings bad language to their users. The locale of the model code looks like this...

    void ApplicationUI::onSystemLanguageChanged() {    QCoreApplication::instance()->removeTranslator( this->_translator );
    
        // ---Initiate, load and install the application translation files.
        QString locale_string = QLocale().name();
        QString file_name = QString( "AppName_%1" ).arg( locale_string );
        if ( this->_translator->load( file_name, "app/native/qm" ) ) {
            QCoreApplication::instance()->installTranslator( this->_translator );
        }
    }
    

    The problem is that QLocale () .name () returns the region code by DEFAULT to the language setting of the user device, ignore the region on the device setting. For example, with the language set to English device and the region set to 'United States (English)', 'United Kingdom (English),' "(English) Canada" or "Australia (English)", QLocale () .name () will ALWAYS return en_US. Similarly, with the device language set to French, and the region, the value 'Canada (French)', QLocale () .name () will return en_US, not fr_CA as it should. It is behavior actually expected QLocale, not only in the Cascades, but in Qt ordinary too.

    The solution is simple. Rather than QLocale () .name () you use QLocale::system().name() instead, which fills a QLocale with the setting of the unit in the region, not only the language CORRECTLY. The code above should be...

    void ApplicationUI::onSystemLanguageChanged() {    QCoreApplication::instance()->removeTranslator( this->_translator );
    
        // ---Initiate, load and install the application translation files.
        QString locale_string = QLocale::system().name();
        QString file_name = QString( "AppName_%1" ).arg( locale_string );
        if ( this->_translator->load( file_name, "app/native/qm" ) ) {
            QCoreApplication::instance()->installTranslator( this->_translator );
        }
    }
    

    I suspect that there are hundreds of BB10 apps out there using the code of the default model where developers can't read the languages that they located, and so they do not realize that French Canadian users get the Parisian French translation, for example. It's not so bad with English, French, Spanish, etc., where variants are close enough to the base language, but the regional variants of Chinese are in fact completely different languages.

    In any case, type a few extra characters in a single line of your application code will solve this problem. Now if only we could get the Momentics model updated with the hotfix.

    After I posted the original explanation in this thread, I realized that handling locale of the waterfall model is still more broken that I realized the original. I noticed that, although incomplete, the model code would address changes for the system language settings, but he completely ignored changes in the region during the execution of the application. My original fix the problem repairs where the region has been completely ignored, but she does not answer that becomes the region while the application is running has no effect on the text displayed in the application.

    This means that if the user changes of American English in the English-speaking Canada, while the application is running the application will continue to display American English until it is restarted. It's particularly bad, if the system language is Chinese, as changing the region can result in a totally different language. It has proved to be more sensitive to this problem than I expected, but here's what you need to do to make your application respond to changes in the region put in too.

    The first thing to know is that there are two LocaleHandler classes in Cascades, and they perform different functions related though. One that is used in the model code is defined in , but one that we must manage changes in region is defined by . The fact that we have two classes with the same name in our application means that we explicitly specify that we speak and cannot if press "using namespace" condense our code.

    It's the language Manager changed the system (including the difficulty I described above)...

    void ApplicationUI::onSystemLanguageChanged()
    {
        QCoreApplication::instance()->removeTranslator(m_pTranslator);
    
        // Initiate, load and install the application translation files.
        QString locale_string = QLocale::system().name();
        QString file_name = QString("AppName_%1").arg(locale_string);
        if (m_pTranslator->load(file_name, "app/native/qm")) {
            QCoreApplication::instance()->installTranslator(m_pTranslator);
        }
    }
    

    Let's change this code to that...

    void ApplicationUI::onSystemLanguageChanged() {
        this->setLocale( QLocale::system().name() );
    }
    
    void ApplicationUI::onRegionChanged() {
        bb::system::LocaleHandler* localHandler = qobject_cast( sender() );
    
        this->setLocale( localHandler->locale().name() );
    }
    
    void ApplicationUI::setLocale( const QString& locale ) {
        QCoreApplication::instance()->removeTranslator( this->_translator );
    
        // ---Initiate, load and install the application translation files.
        QString file_name = QString( "AppName_%1" ).arg( locale );
        if ( this->_translator->load( file_name, "app/native/qm" ) ) {
            QCoreApplication::instance()->installTranslator( this->_translator );
        }
    }
    

    He must also change the code in the constructor of ApplicationUI of this...

    ApplicationUI::ApplicationUI() {
        // prepare the localization
        m_pTranslator = new QTranslator(this);
        m_pLocaleHandler = new LocaleHandler(this);
    
        bool res = QObject::connect(m_pLocaleHandler, SIGNAL(systemLanguageChanged()), this, SLOT(onSystemLanguageChanged()));    // This is only available in Debug builds    Q_ASSERT(res);
    }
    

    .. .for this...

    ApplicationUI::ApplicationUI() {
        // prepare the localization
        m_pTranslator = new QTranslator(this);
        m_pLocaleHandler = new bb::cascades::LocaleHandler(this);
    
        bool res = QObject::connect(m_pLocaleHandler, SIGNAL(systemLanguageChanged()), this, SLOT(onSystemLanguageChanged()));
        // This is only available in Debug builds
        Q_ASSERT(res);
    
        bb::system::LocaleHandler* systemLocaleHandler = new bb::system::LocaleHandler( LocaleType::Region, this );    success = QObject::connect( systemLocaleHandler, SIGNAL( changed() ), SLOT( onRegionChanged() ) );    Q_ASSERT( success );
    }
    

    Once you have made any changes your app will meet changes in the region and the language system changes. Note that I don't provide code so that changes to the ApplicationUI.hpp to support the changes above, but rather than leave it to the reader.

  • I can't transfer photos from iPhone to MacBook Air. When I opened the Photos on a Mac, there is no tab 'import' alongside the actions, projects, Albums. iTunes is up to date. File menu does not appear iPhone

    I can't transfer photos from iPhone to MacBook Air. When I opened the Photos on a Mac, there is no tab 'import' alongside the actions, projects, Albums. iTunes is up to date. File menu does not appear iPhone

    The "import" tab appears only when the iPhone is connected to the Mac via a USB port.

    ITunes detects your iPhone when it's connected?

    If iTunes does not recognize your iPhone, iPad or iPod - Apple Support

  • Combine the two projects into one

    I know it is a very popular question and I read many answers excellent previous answers.  The two most popular procedures seem to be simple copy - paste and use clips of compounds with copy / paste.  CPF has improved this process over the years and I ask the question again to get the benefit of current thinking.   I have an iMac (mid-2011) OS X 10.11.4 and FCP worm 10.2.2.  I have two separate events within the same library.  There is a completed project, with all the transitions, effects and music, located within each discipline.    Current ideas on how to combine these two projects into one would be greatly appreciated.

    Thank you.

    Copy and paste is the only method I know.

    Open the project in the timeline first.

    Open the second project in the timeline panel. Only one project appears at the same time.

    Select an item in the timeline and press command + A to select all, then control + C to copy.

    Use the project navigation arrows to return the first project:

    Move the playhead to where copied clips must be glued and press command + V.

    Al

  • Where is the iMovie projects folder on the new iMovie 10.1.1 App?

    I'm going through a project for a new Mac iMovie folder (with all the latest news app) on an external hard drive so that I can give it to a friend to change. I type in the iMovie projects in my search for spotlight on Finder and it does not appear. My old mac computer doesn't have this problem. It appears in the older Mac. My new Mac using iMovie version 10.1.1 and my old iMovie 10.0.5. Does anyone know of a solution on what I should look for or how to find it?

    -Justin

    iMovie 10 has more iMovie and records events iMovie projects.  Everything is inside a package with the .imovielibrary extension.  Its default location is the users / < username > / films.  For more information, see: http://help.apple.com/imovie/mac/10.1/#/mov3fa25bae7

    If want to use it on another computer, the computer must use the same version of iMovie.  If you are using media from another library (for example, Photos, iTunes, etc.), you will have to "consolidate the library first.  See: http://help.apple.com/imovie/mac/10.1/#/mov882dee351

    For more details.

    Geoff.

  • HP 7210 all in one - will not be printed on the fast project configuration

    For the last two weeks, my 7210 HP all-in-one has decided that he does not want to print on quick project more.  I have the default settings of the printer on quick project, and I even went and edited individual documents to ensure that they are on the quick project, but it still prints on quality.  I do a ton of printing on a daily basis, and that is to kill my ink, not to mention how long it takes.  My OS is Windows 7, 64-bit.

    Hey @kmh1883,

    Thanks for getting back to me on this subject "fast draft" with your HP Officejet 7210 all-in - One Printer. Even if printing HP and doctor Scan found no problem, it seems that you may have a driver conflict. I would like to try another driver at the moment to see if this clears up your printing problems.

    How to add another driver:

    1. Click on the Start menu
    2. Select the devices and printers
    3. In the devices and printers folder right click on your HP Officejet 7210 and left-click on properties of the printer
    4. Left click on the Advanced tab
    5. Left-click on new driver
    6. When the new driver window just press 'Next' until you see a list of manufacturers on the left and a list of Printers on the right.
    7. Select HP as the manufacturer on the left
    8. DeskJet 9800 select the printer on the right. If Deskjet 9800 is only select "Windows Update" at the bottom left and once the update has been completed, you will be able to select Deskjet 9800.
    9. After selecting Deskjet 9800 hit next complete the new driver Wizard
    10. Under the printer properties window, select 'Apply' but do not hit OK
    11. Select the general tab
    12. Rename your printer in HP Officejet 7210
    13. Click OK
    14. Finally, right click on your HP Officejet 7210 one more time and left-click on Printing Preferences
    15. Left click on the paper/quality tab
    16. Left click on the drop down menu 'Normal' for quality printing at the bottom right and change its project of Fast
    17. Press apply and OK

    Test print from the print driver Deskjet 9800 replacing to check if the setting "Fast Draft" remains.

    Please let me know if this solved your problem. Good luck!

  • How can I replace a source element without having to redo the iMovie project?

    When exporting an iMovie project, I detected that a source element had bad images and export could not comlete (error 10008). I fixed the file and replaced it within the overall project. But after that iMovie refuses to play this clip during the opening of the new project - it shows an exclamation point in the chronology and the message "the clip has changed."

    Is there a way to replace an element in the project?

    A few facts:

    • The clips are AVI containers
    • I used Yodot AVI repair to remove the bad images
    • The repaired file use the same as the original codecs
    • version of iMovie: 10.1.1

    Yes.  With the Finder, drag the clip fixed everywhere where it is saved until it is placed on the old item in project.  When a green plus sign appears next to the cursor let go of the mouse button and you will get a menu.  Click "replace".  The duration and all connected titles, glitches or audio should not be affected.

    Geoff.

  • Why a few recorded tracks "empty" when I opened the Garageband projects on another machine?

    Hey

    I have just updated my laptop to be able to run the same version of GarageBand on my iMac and MacBook (OS X El Capitan and GarageBand v.6.0.5) and work on projects of GB on what that machine is available.

    I just tried to open a few GB on my MacBook projects (both were created on my iMac) and the recorded vocal tracks are "empty", as below.  The track from the top (purple) is any wav. file and the blue trace below is the vocal track, although it says "file not found".

    I copied the root folder where I save all my records in GB on my iMac to Dropbox so I could open projects GB on my laptop, so all audio files must be in the same place.  Or I make a stupid mistake?  It's really quite likely, but any help is very welcome!

    Thank you

    Rich

    I copied the root folder where I save all my records in GB on my iMac to Dropbox so I could open projects GB on my laptop, so all audio files must be in the same place.

    The problem could be the DropBox synchronization. DropBox is ideal for simple documents, but your GarageBand projects are files with databases and multimedia files inside. Synchronization can break the connection between the media files and internal databases.

    If you want to transfer projects with Dropbox, it is safest to compress the projects and move to archive compressed to dropbox.

    But see, if the media are still inside the Garageband project. Perhaps the download was not complete.

    • CTRL-click the .band file and select "Show Package Contents".
    • In the Finder window that opens, select the "Media" folder
    • Copy the audio files in this folder to a folder on your desktop.
    • Try to identify the missing audio file.  If you can find it, drag it to the track where it is absent.
  • Bezier Motion 5.0.7 masks appear in the timeline panel, but in the column of layers only. This started happening yesterday. The query projects previously do not have this problem. I can't change if masks appear in the timeline panel.

    Motion 5.0.7 memory 8 GB, processor 2.93 GHz intel Core i7, ATI Radeon HD 5750 1024 MB graphics

    Bezier masks do not appear in the timeline, preventing me from editing. The masks appear in the column of layers only. The problem just started yesterday. The query projects previously do not seem to be performed.

    In the upper right corner of the canvas, there is a view menu. Check if the 'lines' are checked in the section view overlays.

  • No sound when you export the missing project like HD (AAC codec) video

    Hi there everyone!

    I am facing a problem when you try to export a finished project to iMovie as a HD video, no sound!

    Here's the scenario:

    MacBook Pro (mid 2010), OS X El Capitan free 10.11.2, around 90 GB of space on the hard disk, iMovie ' 09 (Version8.0.6)

    The project is finished in iMovie, ready for publication in HD, when I saw it there, no problem with the sound. However, as soon as I try to export and select HD output quality, the .mov file will open without playing a sound in Quicktime format. If I select "large" inferior quality, it gives me a sound .m4v file. Even when I select "export with quicktime" and manually select the audio options (AAC 256 Kbps) the final version will have all the sounds.

    A few months ago, I've been working on another project, it also exported in HD. When I check the first export view of the current project file information, it will say "Codec: H.264, AAC" size «1280 x 720, "when I export the current missing AAC while having the same dimensions.»

    I'm really not an expert on these matters, but I tried to look for some option in iMovie, no luck. Maybe someone had a similar problem or knows why it does not work. I would appreciate help.

    Thanks in advance!

    I was FINALLY able to get 1080 p with its new output using the following parameters:

    I also HAD to define the file manually to .m4v extension before hitting SAVE as iMovie he left .mov (and it has not yet worked the first time he encoding with the .mov file extension).

    I don't know what the latest update messed up in iMovie, but I've NEVER had a problem before the video release.  I hope that they get it fixed!

  • I have a project in iMovie HD6 and want export to Final Cut Pro.  I see that it is not possible from the previous questions, but is it possible that I could maybe create a dvd of the iMovie project and then who import in Final Cut?

    I have a project in iMovie HD6 and want export to Final Cut Pro.  I see that it is not possible from the previous questions, but is it possible that I could maybe create a dvd of the iMovie project and then who import in Final Cut?  I just want to make a new trailer for the project.

    What you suggest is possible but it takes software and third-party quality loss.

    Instead, export a QuickTIme movie. If you have a choice of codecs, choose Apple Intermediate Codec. You can save it where you want it-maybe in the movies.

    Then import the movie into FCP as a clip.

    Good luck.

    Russ

  • My wife has created a book of the best photos of the year project. How can I copy these photos in a standard album so I can use this set in the future?

    My wife has created a book of the best photos of the year project. How can I copy these photos in a standard album and the book so I can use this set in the future? All the commands I want to use are grayed.

    Using Photos of Apple.

  • Remove (without the appellants) project dependency

    The Labview project is not allowing me to remove a dependency file (driver instruments) who has no callers, even if I have relinked all my files from project in the instr.lib folder. I have a dependency file something like "Agilent MXA series...". "located on the C:\somefolder that persist in the project files. This driver file has no callers, I have relinked all the project files in the folder LV2015\instr.lib instead. I take more than a prior work, so I created a project to build a copy of existing VI files to a C:\somefolder\driver-folder. Rich J

    It will not be the only incorrect dependency. It is part of a project that is to load into the current project as a dependency.

    Drivers should never be included in a project. They should always be addictive.

    Mike...

  • Function documentation for the SignalExpress project

    I use the function 'project documentation' LabView SignalExpress 2009 in my application project.

    The draft measure a pressure signal permanently in different situations. I want to present my project document is a list of locations of the siganl of pressure taken under different situation, with a plot for each situation so that readers can easily compare the plots.

    For example, I want the document states:

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    At 10:00 at low flow:

    ground pressure siganl

    At 11:00 with increased flow

    the same pressure signal ground

    etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    What I did was flirting with the pressure signal in my documentation of the data acquisition phase in the project tree, but in doing so, I could only show the last parcel of this signal in my documentation, the plot is in real time, just like what shows in the display of the data.

    Is there a way to show the same siganl taken at different times in a documentation?

    Thank you!

    Hello

    You can totally do this by using a feature called "instant."

    Rather than drag the step signal directly in your project document, first create a snapshot of your data using the menu option "use > create snapshot...". (Ctrl + Shift + T) »

    A dialogue will appear asking you what signals you want to instant. After selecting / them and clicked on Ok, your new snapshots will appear in the section overview of the application (in the left corner below, by default).

    Drag these signals on your project document. When you are ready to create your next snapshots after changing the configuration, you can select "Operate > repeat the last Snapshot (Ctrl + T) ' to simplify your process.

    For more information about the snapshot, see using LabVIEW SignalExpress found under "Help > LabVIEW SignalExpress Help" and search on the keyword "snapshots."

    I hope this helps!

    Phil

Maybe you are looking for