Results 1 to 6 of 6

Thread: qt opengl tree

  1. #1
    Join Date
    Jun 2015
    Posts
    4
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default qt opengl tree

    I am working on the qt opengl application for drawing a tree and getting the following error.
    Any idea would be appreciated.
    :-1: error: No rule to make target 'debugwidgetbase.ui', needed by 'ui_debugwidgetbase.h'. Stop.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: qt opengl tree

    This is the result of a missing make / nmake rule for invoking the Qt moc compiler, which converts a .ui file into the .h and .cpp files needed to create the UI at runtime.

    Are you using Visual Studio? If so, then you should download and install the Qt plugin for Visual Studio, which adds the appropriate rules to the Visual Studio tool chain.

    If you are using Qt Creator, then this should be built in already.

    If you are simply running make / nmake from the command line or are using some other IDE, then you need to define the make conversion rule yourself. It's been so long since I've had to tinker with make at that level that I don't remember how to do it. Google will, though.

  3. #3
    Join Date
    Jun 2015
    Posts
    4
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: qt opengl tree

    Qt Creator 2.8.1
    Based on Qt 5.1.1 (MSVC 2010, 32 bit)

    Built on Aug 26 2013 at 13:35:01

    From revision c3ed746c24

    Copyright 2008-2013 Digia Plc. All rights reserved.

    The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.


    Added after 18 minutes:


    kindly tell your hint like here or something else.
    http://doc.qt.io/qt-4.8/moc.html
    Last edited by adnan_shahid89; 21st June 2015 at 17:28.

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: qt opengl tree

    kindly tell your hint like here or something else.
    Did you run qmake after changing / adding the .ui file? It's on the Qt Creator "Build" menu.

  5. #5
    Join Date
    Jun 2015
    Posts
    4
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: qt opengl tree

    Quote Originally Posted by d_stranz View Post
    Did you run qmake after changing / adding the .ui file? It's on the Qt Creator "Build" menu.
    sorry I am not adding any gui and working on the existing one. The complete project code is here.
    http://wikisend.com/download/978076/mainwindow.zip

  6. #6
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: qt opengl tree

    Sorry, but I don;t have the time to do your work and mine. I ask again:

    Did you run qmake?

Similar Threads

  1. Replies: 2
    Last Post: 5th July 2017, 13:28
  2. Conversion from opengl to opengl es2 (Shapefile rendering)?
    By swapan_gh in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 5th December 2013, 06:59
  3. Adding a small tree to an existing tree in QTreeview.
    By salcin in forum Qt Programming
    Replies: 0
    Last Post: 25th September 2013, 17:27
  4. converting GLUT/OpenGL to Qt/OpenGL - displaying issue
    By yoti13 in forum Qt Programming
    Replies: 1
    Last Post: 25th November 2012, 00:45
  5. Qt with OpenGL ES for ARM9 - All OpenGL ES tests have failed!
    By vinpa in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd December 2009, 10:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.