After upgrading from 1.5 to 1.8 alpha, I’m having troubles building Urho3D for iOS (I had it working for 1.5). First, should you be able to use the CMAKE gui to create the Xcode build projects, or is this still a WIP given that it is alpha code? I have a lot of experience on Windows, but not so much with Mac OS and CMAKE, so I always struggle to get the initial projects built (for me, getting the projects to build is the hardest part of using Urho3D).
When I run the CMAKE configure, I get some messages like below towards the end:
CMake Warning (dev) at /Applications/CMake.app/Contents/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
The package name passed to `find_package_handle_standard_args` (rt) does
not match the name of the calling package (RT). This can lead to problems
in calling code that expects `find_package` result variables (e.g.,
`_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
Source/ThirdParty/Assimp/cmake-modules/FindRT.cmake:19 (find_package_handle_standard_args)
Source/ThirdParty/Assimp/code/CMakeLists.txt:854 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
Could NOT find rt (missing: RT_LIBRARY)
RT-extension not found. glTF import/export will be built without Open3DGC-compression.
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Configuring done
Then, if I select the IOS option, and push Generate, I get:
Configuring incomplete, errors occurred!
See also “/Users/jpekarek/Dev/urho3d-1.8a1/CMakeFiles/CMakeOutput.log”.
See also “/Users/jpekarek/Dev/urho3d-1.8a1/CMakeFiles/CMakeError.log”.
The CMakeOutput.log looks pretty normal, but there is an error at the end of CMakeError.log. As I don’t really understand CMake so much, I don’t have any idea how to proceed. If this is something that just isn’t done yet because it is alpha code, I could wait to get iOS going, and continue developing on Windows for now. Note that I also tried running the command line version of CMake, with different, but equally confusing issues. Any suggestions would be greatly appreciated.
** BUILD FAILED **
The following build commands failed:
CompileC CMAKE_TRY_COMPILE.build/Debug/cmTC_21254.build/Objects-normal/x86_64/src.o src.cxx normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Source file was:
#include <stdio.h>
int main() {
char s[80];
int x = 1;
va_list args = {};
vsnprintf_s(s, 80, “Test:%d”, args);}