Hi On Thursday, 15 August 2024 13:22:50 CEST Emil Tomczyk wrote: > I'm trying to update Void's package to 0.160 and CMake. I have trobule > with cross compilation.
Huh... On Debian, package are built on target system, thus we avoid cross compilation issues. No matter, I'll try to help you there. > When I compile on x86_64 for e.g. armv7l I > receive following error: > > ``` > CMake Error: try_run() invoked in cross-compiling mode, please set the > following cache variables appropriately: HAVE_LKSTRFTIME (advanced) > For details see /builddir/pan-0.160/build/TryRunResults.cmake > ``` ok, try_run is setup there [1] to see if strftime supports the use of %l and %k. This produces a small executable that is run to test this features. If this small executable is built for armv7, you may have some issue on this test. cmake's try_run has some hints about cross compilation [2]. I have not tried cross compilation so I don't know how this is supposed to work. Another way out is to set beforehand the variable that should be computed by try_run. I.e set HAVE_LKSTRFTIME when calling cmake as suggested by the message above. HTH Dod [1] https://gitlab.gnome.org/GNOME/pan/-/blob/master/CMakeLists.txt?ref_type=heads#L175 [2] https://cmake.org/cmake/help/latest/command/try_run.html#id5 _______________________________________________ Pan-users mailing list Pan-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/pan-users