Closed robbmcleod closed 5 years ago
referencing PR should get you going. Also see https://forums.ogre3d.org/viewtopic.php?f=11&t=94696&p=543783#p543783
Thanks for the quick response. Now getting an Access violation when building libOgre
for C# on the file Bites/include/OgreBites.i
. I thought it might be a Windows issue so I did a reboot but hit the same error.
Here's the excerpt from the build log:
1>Swig compile ../Bites/include/OgreBites.i for csharp
1>Access violation
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1.
1>Done building project "libOgre.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========
If I turn off the CSharp target in CMake, it builds without trouble and I have the assorted .py
and .pyd
files.
On the ogre-meshviewer
, it looks like a useful sample code, but it has some trouble loading the Zip files:
Creating resource group OgreMeshViewer
Traceback (most recent call last):
File "ogre_mesh_viewer.py", line 357, in <module>
app.initApp()
File "ogre_mesh_viewer.py", line 279, in setup
OgreBites.ApplicationContext.setup(self)
File "ogre_mesh_viewer.py", line 264, in locateResources
rgm.addResourceLocation(trays_loc, "Zip", RGN_MESHVIEWER)
RuntimeError: Ogre::InternalErrorException::InternalErrorException:
C:/workspace/ogre/build/sdk/Media/packs/SdkTrays.zip - error whilst opening archive: Unable to read
zip file. in ZipArchive::checkZzipError at c:\workspace\ogre\ogremain\src\ogrezip.cpp (line 416)
Unzipping manually didn't work as a workaround.
Now getting an Access violation when building libOgre for C#
you probably have to add /bigobj
there as well. Note that the C# component is quite fresh: https://www.ogre3d.org/2018/12/20/ogre-1-11-final-release
but it has some trouble loading the Zip files:
I have seen this error on our VS2013 builds, but could not yet reproduce it locally.
Unzipping manually didn't work as a workaround.
you will also have to change the resources.cfg
accordingly
you will also have to change the resources.cfg accordingly
Ok, thanks, I'll take a look.
System Information
Detailed description
On configuring with CMake I do get some warnings:
Which is then repeated 4 times. Then when building:
I thought the unresolved external symbols could be due to the include/library paths not being correct, but when updating the include and lib paths to
C:\Anaconda3\envs\env_fd\include
andC:\Anaconda3\envs\env_fd\lib
andC:\Anaconda3\envs\env_fd\libs
respectively I still get the same errors. And CMake definitely finds these directories without trouble.I also get a bunch of these warnings:
I also looked at your
appveyor.yml
but apparently the CI service doesn't build the Python bindings, so no insight there. I also tried the 1.11.5 stable release source but ran into the same trouble.Ogre.log
Not applicable.