Build Urho3D for special chipset

I had the problem that I tried to run urho3d-headless on our server for a small game-instance-server-test but got some 'illegal chipset' core dump-mayham. Our server is quite of age. Good that Urho has some options for this out of the box.

There is a cmake-option: URHO3D_DEPLOYMENT_TARGET

So, using here the 'generic' option might be the trick. And if that doesn't help:

  • go the the system you want it to run on
  • gcc -march=native -Q --help=target
  • see what is set for march and use this as your URHO3D_DEPLOYMENT_TARGET

Refs: https://urho3d.io/documentation/HEAD/_building.html