Archive 17/01/2023.

Compile Urho3D With LLVM-MINGW

ChunFengTsin

I want to give notes to you all,

When you compile the source of urho3d with CLion and LLVM-MINGW under Windows.

You should set the Generator to “MinGW Makefiles”, in CMake panel.

NOT DEFAULT Ninja!

ChunFengTsin

and comments out like this:
-fno-keep-inline-dllexport

elseif (MINGW)
            # MinGW-specific setup
            set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static -static-libgcc")# -fno-keep-inline-dllexport")
            set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static -static-libgcc")# -static-libstdc++ -fno-keep-inline-dllexport")
type or paste code here

llvm-mingw 20220323 with LLVM 14.0.0

If you use default ninja, will have link error!

Victor

Thanks for the info! I also was having this same issue with CLion and the main Urho3D branch.