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. [Tutorial] How to set up Urho3D (Shared, MinGW) in Qt Creator IDE
Forum Updated to NodeBB v4.3 + New Features

[Tutorial] How to set up Urho3D (Shared, MinGW) in Qt Creator IDE

Scheduled Pinned Locked Moved Game Development
3 Posts 2 Posters 934 Views 1 Watching
  • 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.
  • 8Observer88 Offline
    8Observer88 Offline
    8Observer8
    wrote on last edited by 8Observer8
    #1

    It is so simple to set up Urho3D-1.7.1 in Qt Creator IDE on Windows 10:

    1. Download and install Open Source Qt MinGW: https://www.qt.io/download-open-source
    2. Download and unzip " Urho3D-1.7.1-MinGW-SHARED.zip", for example, to "E:/Libs" folder
    3. Run Qt Creator and create a new project: "File" > "New File or Project" > "Other Project" > "Empty qmake Project" > click the "Choose..." button > type a name of project, for example: Urho3D_QtCreator > click "Next" > "Next" > "Finish"
    4. Create a "main.cpp" file and copy this code to it:
    #include <Urho3D/Engine/Application.h>
    #include <iostream>
    
    class MyApp : public Urho3D::Application
    {
    public:
        MyApp(Urho3D::Context * context) : Urho3D::Application(context)
        {
        }
    
        virtual void Setup()
        {
            std::cout << "Setup" << std::endl;
        }
    };
    
    URHO3D_DEFINE_APPLICATION_MAIN(MyApp)
    
    1. Copy these settings to the .pro file:

    Urho3D_QtCreator.pro

    CONFIG += c++11
    
    INCLUDEPATH += "E:\Libs\Urho3D-1.7.1-MinGW-SHARED\include\Urho3D\ThirdParty"
    
    INCLUDEPATH += "E:\Libs\Urho3D-1.7.1-MinGW-SHARED\include"
    LIBS += -L"E:\Libs\Urho3D-1.7.1-MinGW-SHARED\lib\Urho3D"
    LIBS += -lUrho3D -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -lSetupapi -ladvapi32 -lwinmm -limm32 -lversion -lws2_32 -ldbghelp -lopengl32 -liphlpapi
    
    SOURCES += \
        main.cpp
    
    1. Run the project by pressing on the green triangle button in left bottom corner (or Ctrl + R). You will see this error:
      07c252b3-3fb8-4691-8701-6d8f38e9c600-image.png
    2. To solve this error you need to copy two folders "CoreData" and "Data" from here “E:\Libs\Urho3D-1.7.1-MinGW-SHARED\share\Urho3D\Resources” to the "debug" folder where your .exe is located
    3. Run the project again and it works.
    1 Reply Last reply
    1
    • 8Observer88 Offline
      8Observer88 Offline
      8Observer8
      wrote on last edited by 8Observer8
      #2

      The development of Urho3D has been discontinued. The official repository was archived by the owner on 01/25/2023. The official forum has been removed and moved to archive. In readme on the official repository it is written that two active forks were formed from Urho3D: Dviglo and Turso3D:

      Active work on the engine without maintaining backward compatibility is being done in the fork Dviglo.

      The founder of Urho3D (Lasse Öörni) is currently working on Turso3D.

      G 1 Reply Last reply
      0
      • 8Observer88 8Observer8

        The development of Urho3D has been discontinued. The official repository was archived by the owner on 01/25/2023. The official forum has been removed and moved to archive. In readme on the official repository it is written that two active forks were formed from Urho3D: Dviglo and Turso3D:

        Active work on the engine without maintaining backward compatibility is being done in the fork Dviglo.

        The founder of Urho3D (Lasse Öörni) is currently working on Turso3D.

        G Offline
        G Offline
        GurkLand
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0

        • Login

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