Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Qt Simulator to Symbian Device Porting Problems
Forum Update on Monday, May 27th 2025

Qt Simulator to Symbian Device Porting Problems

Scheduled Pinned Locked Moved Game Development
3 Posts 1 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Reptile
    wrote on 26 Dec 2011, 02:29 last edited by
    #1

    Hello, like my other post, I'm having a different problem with porting to my Nokia N8. Basically, I've gone through the code and replaced all my other draw calls and opengl stuff with shaders and gotten it to work in the Qt Simulator using what I believe to be just OpenGL ES calls (since the compiler isn't complaining about any of the code any more when I select Symbian Anna as the build target. So again, I'm able to play the game perfectly fine in the simulator, but when I use Symbian Anna as the build target, problems arise.

    There are no compilation problems when I start to run it, then it'll do some stuff: Begin constructing QMainWindow, construct the QGLWidget entirely (seems to be ok), the continue through constructing the QMainWindow and when it's finished that (i.e. BEFORE it's gotten to the initializeGL() stuff, I get this error:

    Thread has crashed: A data abort exception has occurred accessing 0x10.

    I don't know what things are run between the completion of the constructors and the initializeGL(). Has anyone else had this problem before and know the remedy?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Reptile
      wrote on 26 Dec 2011, 22:25 last edited by
      #2

      I removed about 99% of the code and am still getting the error...

      Here's my main:

      @int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);

      MainWindow mainWindow;
      mainWindow.setOrientation(MainWindow::ScreenOrientationLockLandscape);
      mainWindow.showFullScreen();
      
      
      return app.exec();
      

      }
      @

      From main, mainWindow is called:

      @MainWindow::MainWindow(QWidget *parent)
      : QMainWindow(parent)
      {
      //ui->setupUi(this);
      GLWidget * glwidget = new GLWidget(this);
      //qDebug() << "Done constructing glwidget. setting layout.";

      QGridLayout * layout = new QGridLayout();
      layout->addWidget(glwidget);
      this->setLayout(layout);
      
      //qDebug() << "Constructing timer.";
      QTimer *timer = new QTimer(this);
      //qDebug() << "Connecting timer signal";
      QObject::connect(timer, SIGNAL(timeout()), glwidget, SLOT(updateGL()));
      //qDebug() << "Starting timer.";
      timer->start(50);
      

      }@

      Then from there, GLWidget is created:

      @GLWidget::GLWidget(QWidget * parent)
      : QGLWidget(QGLFormat(QGL::SampleBuffers), parent)
      {

      setAutoBufferSwap(false);
      
      setFixedSize(640,360);
      makeCurrent();
      

      }@

      I've commented almost everything out, initializeGL(), paintGL(), and resizeGL() are now just empty methods. I don't know what else I can do to track down this error/bug. Any suggestions?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Reptile
        wrote on 26 Dec 2011, 23:35 last edited by
        #3

        I've somehow gotten it to work by creating an entirely new project with just a symbian target and copying all my stuff over (unchanged). Is there a known issue regarding projects with both the qt simulator target and the symbian device target?

        1 Reply Last reply
        0

        1/3

        26 Dec 2011, 02:29

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved