Open Apteryks opened 6 days ago
This is looking like mygui-next didn't find ogre-next at all. Are you building mygui-next on its own? Or using my script to build all? https://github.com/stuntrally/stuntrally3/blob/main/build-sr3-Linux.py Are you sure you have got the ogre3 branch and have the same folder tree as I wrote there: https://github.com/cryham/mygui-next/tree/ogre3 BTW. does the SR 3.2 Linux binary work on Guix?
I was using the master
branch; I'll retry using the ogre3
branch and keep you updated. I'm building mygui-next as its own package, not using the Python script, as this is how we try to package things in Guix (one package == one software, no bundled sources if possible, no network access during build, etc.).
I haven't tried the Linux binary yet; typically those do not work on Guix without setting up some kind of FHS (file hierarchy standard) container, which can be done with guix shell --emulate-fhs
.
Thanks for your answer!
OK, I'm now using the latest commit of the ogre3 branch, trying to build it against ogre-next 3.0.0, and this is what I now get:
[ 95%] Building CXX object Platforms/Ogre2/Ogre2Platform/CMakeFiles/MyGUI.Ogre2Platform.dir/src/MyGUI_Ogre2RenderManager.cpp.o
cd /tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/build/Platforms/Ogre2/Ogre2Platform && /gnu/store/86fc8bi3mciljxz7c79jx8zr4wsx7xw8-gcc-11.4.0/bin/c++ -I/tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/source/MyGUIEngine/include -I/tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/source/Platforms/Ogre2/Ogre2Platform/include -I/tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/Ogre/ogre-next/build/RelWithDebInfo/include -I/tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/Ogre/ogre-next/OgreMain/include -I/tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/Ogre/ogre-next/Components/Hlms/Unlit/include -I/tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/Ogre/ogre-next/Components/Hlms/Common/include -w -O2 -g -DNDEBUG -fPIC -MD -MT Platforms/Ogre2/Ogre2Platform/CMakeFiles/MyGUI.Ogre2Platform.dir/src/MyGUI_Ogre2RenderManager.cpp.o -MF CMakeFiles/MyGUI.Ogre2Platform.dir/src/MyGUI_Ogre2RenderManager.cpp.o.d -o CMakeFiles/MyGUI.Ogre2Platform.dir/src/MyGUI_Ogre2RenderManager.cpp.o -c /tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/source/Platforms/Ogre2/Ogre2Platform/src/MyGUI_Ogre2RenderManager.cpp
In file included from /tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/source/Platforms/Ogre2/Ogre2Platform/src/MyGUI_Ogre2RenderManager.cpp:9:
/tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/source/Platforms/Ogre2/Ogre2Platform/include/MyGUI_Ogre2Texture.h:24:10: fatal error: OgreHlmsUnlitDatablock.h: No such file or directory
24 | #include <OgreHlmsUnlitDatablock.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Platforms/Ogre2/Ogre2Platform/CMakeFiles/MyGUI.Ogre2Platform.dir/build.make:121: Platforms/Ogre2/Ogre2Platform/CMakeFiles/MyGUI.Ogre2Platform.dir/src/MyGUI_Ogre2RenderManager.cpp.o] Error 1
make[2]: Leaving directory '/tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:196: Platforms/Ogre2/Ogre2Platform/CMakeFiles/MyGUI.Ogre2Platform.dir/all] Error 2
make[1]: Leaving directory '/tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/build'
make: *** [Makefile:139: all] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "1") exit-status: 2 term-signal: #f stop-signal: #f>
phase `build' failed after 66.4 seconds
command "make" "-j" "1" failed with status 2
Any ideas?
Well, MyGUI can't find Ogre file OgreHlmsUnlitDatablock.h
. This one is needed.
I'd first check if it exist there, I got it here: ../Ogre/ogre-next/Components/Hlms/Unlit/include
.
If it does, then it means path is missing or wrong? In your command it is this:
-I/tmp/guix-build-mygui-next-3.2.3-0.a1490ff.drv-0/Ogre/ogre-next/Components/Hlms/Unlit/include
I'd expect that file there and if so this command should build.
Describe the issue
Working toward a
stuntrally
package in GNU Guix, I tried to package mygui-next using Ogre-Next 3.0.0 (that came out very recently). Sadly, it fails to build due to now-missing includes, it seems:Desktop (please complete the following information):