Ogre-next with Visual Studio 2019, SDL Memset, CL.exe error
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Ogre-next with Visual Studio 2019, SDL Memset, CL.exe error,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1926字,纯文字阅读大概需要3分钟。
内容图文
![Ogre-next with Visual Studio 2019, SDL Memset, CL.exe error](/upload/InfoBanner/zyjiaocheng/1274/147f9f31755c4035a6ecdb4b9890fcac.jpg)
Follw the instructions from:
https://ogrecave.github.io/ogre-next/api/2.1/_setting_up_ogre_windows.html
Btw, the screenshots and the instructions dont‘ really match, it is a little bit confusing.
So before we can build ogre,we need to build dependencies. For me, SL2 complained missing memset and some stuff,it‘s actually a missing dll, found this on the forum which solved my problem.
2.SDL2
And then SDL2 throws some external symbol not found errors at link time for debug builds.
I am sure there is a better way to this but i solved it by adding the lines below in ogredeps_repo_dir\src\SDL2\CMakeLists.txt
CODE: SELECT ALL
if(MSVC)
list(APPEND EXTRA_LIBS vcruntimed ucrtd msvcrtd)
endif()
At around line 1250 in if(SDL_SHARED) block right before
CODE: SELECT ALL
set(_INSTALL_LIBS "SDL2" ${_INSTALL_LIBS})
target_link_libraries(SDL2 ${EXTRA_LIBS} ${EXTRA_LDFLAGS})
lines.
Depedencies are fine now.
Then i generated the ogre solution.
When i compile, got this issue
1>INTERNAL COMPILER ERROR in ‘C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\CL.exe‘
1> Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
1>OgreMemoryNedPooling.cpp
1>cl : command line error D8040: error creating or communicating with child process
1>Done building project "OgreMain.vcxproj" -- FAILED.
Something to do with the compiler.
If we disable the precompiled header, it can compile.
- Open your project, then select “Project” > “appname Properties…“.
- Expand “Configuration Properties” > “C/C++” > “Precompiled Headers“.
- Set “Precompiled Header” to “Not Using Precompiled Headers“.
Seems okay now;)
========== Build: 16 succeeded, 0 failed, 4 up-to-date, 2 skipped ==========
原文:https://www.cnblogs.com/antai/p/12825128.html
内容总结
以上是互联网集市为您收集整理的Ogre-next with Visual Studio 2019, SDL Memset, CL.exe error全部内容,希望文章能够帮你解决Ogre-next with Visual Studio 2019, SDL Memset, CL.exe error所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。