Horde3D icon indicating copy to clipboard operation
Horde3D copied to clipboard

building the scene editor on windows.

Open gwald opened this issue 3 years ago • 8 comments

Hi, I can build the scene editor in linux, no problem, apt install all the qt5 libs and cmake just work. But in windows (win7/win10), I can't... which is where most of the 3D art content tools are, so having a windows scene editor is important.

From my testing the old version (v0.8.0 2009 from archive.org) isn't compatible with the current engine.

I followed: http://horde3d.org/wiki/index.php?title=Horde3D_Scene_Editor

I've tried with VS15, mingw, with different qt5's, from: https://download.qt.io/archive/qt/ (I used the .exe downloads)

Does anyone have any tips/guide on compiling it for windows? VS version?, QT5 version?

Or can share a windows build? Ideally, it would be nice if each release also included a windows scene editor.

gwald avatar Mar 09 '23 22:03 gwald

Hello. I'll look into it today. Does the build fail during cmake stage or during building? Please post an error log, it will help to solve the issue faster.

Also, from the readme:

As the editor needs Lua as a dependency you can either make sure the Lua development files can be found by cmake, or Lua will be automatically downloaded by CMake.

algts avatar Mar 10 '23 07:03 algts

For now I can say that Horde3D editor should work with Qt 5 (including 5.15), it is not adapted to Qt 6. I'll post my actions if I successfully compile editor on my machine. Stay tuned :)

I've confirmed that editor builds correctly (and launches) with Visual Studio 2019, Qt 5.15.2, 64 bit, in debug mode, master branch, Windows 10. Please do not use ALL_BUILD when building editor, it seems that it does not correctly handle library dependencies. You may have to build Horde3DEditor manually and not via "Build Solution".

If your Qt installation is not visible in PATH or QTDIR is not configured, you may have to copy some Qt libraries to the folder where compiled Horde3DEditor executable is located. Required libraries are: QtCore, QtGui, QtWidgets, QtGL, QtXML (all with d for debug at the end of the library name), all plugins/platform and plugins/imageformats folders.

algts avatar Mar 10 '23 20:03 algts

I tried a few time in win7/win10 VM's. I couldn't get QT to register in cmake and tried using the binary v.0.8.0 code base with replaced the new src files, which I couldn't build... just a hacky mess!

I will try and replicate your instructions :)

Thanks

gwald avatar Mar 11 '23 05:03 gwald

For Qt to register in Cmake, you should click on QT5Dir_NOT_FOUND and select the folder with Qt cmake modules - it is likely <Qt installation directory>/libs/cmake/Qt5.

I'll update the README with this information a bit later.

algts avatar Mar 11 '23 07:03 algts

Thanks that helped! But it couldn't find glu32... it was an old version I downloaded 5.1, apparently that was a common thing, found the patch, but it didnt fix it :/

I've download older stuff just to avoid downloading 20GB of MSVS and QT :/

If you could package your build and share it? that would be great! I really don't want to deal with QT or MS VS, just for the editor.

I'd rather figure out how to import the editor's scene group file, which I couldn't find an example of :/

gwald avatar Mar 11 '23 13:03 gwald

Here is the compiled version: https://www.sendspace.com/file/l2ampg Built from master branch for windows 10 and qt 5.15.2. Uses MSVS 2019 runtime. You should probably first setup repository in the File->Settings menu (where all the resources are collected). When we have a new release I'll prepare the editor binaries for Windows as well.

As for importing scene file, you should load it like other models (like in Knight or Chicago examples).

Edit: reuploaded file (forgot style dll before)

algts avatar Mar 11 '23 15:03 algts

Very much appreciated :)

In my windows 10, it loads and runs perfectly! (without VS runtime). Thank you heaps!

gwald avatar Mar 12 '23 08:03 gwald

I hope you don't mind, I've reuploaded your build here: https://archive.org/details/algts-horde3d-editor-win-x64-march-2023 If anyone else is interested.

gwald avatar May 11 '23 12:05 gwald

I didn't release I had this open, or I would have bumped it. Close it to avoid confusion.

gwald avatar Sep 04 '24 01:09 gwald