pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pan-users] Cross compiling pan


From: Emil Tomczyk
Subject: [Pan-users] Cross compiling pan
Date: Thu, 15 Aug 2024 13:22:50 +0200

Hello,

I'm trying to update Void's package to 0.160 and CMake. I have trobule
with cross compilation. 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
```

Those file (TryRunResults.cmake) contains:

```
# This file was generated by CMake because it detected try_run() commands
# in crosscompiling mode. It will be overwritten by the next CMake run.
# Copy it to a safe location, set the variables to appropriate values
# and use it then to preset the CMake cache (using -C).


# HAVE_LKSTRFTIME
#    indicates whether the executable would have been able to run on its
#    target platform. If so, set HAVE_LKSTRFTIME to
#    the exit code (in many cases 0 for success), otherwise enter 
"FAILED_TO_RUN".
# HAVE_LKSTRFTIME__TRYRUN_OUTPUT_STDOUT
#    contains the text the executable would have printed on stdout.
#    If the executable would not have been able to run, set 
HAVE_LKSTRFTIME__TRYRUN_OUTPUT_STDOUT empty.
#    Otherwise check if the output is evaluated by the calling CMake code. If 
so,
#    check what the source file would have printed when called with the given 
arguments.
# HAVE_LKSTRFTIME__TRYRUN_OUTPUT_STDERR
#    contains the text the executable would have printed on stderr.
#    If the executable would not have been able to run, set 
HAVE_LKSTRFTIME__TRYRUN_OUTPUT_STDERR empty.
#    Otherwise check if the output is evaluated by the calling CMake code. If 
so,
#    check what the source file would have printed when called with the given 
arguments.
# The COMPILED_LKSTRFTIME_TEST variable holds the build result for this 
try_run().
#
# Executable    : 
/builddir/pan-0.160/build/CMakeFiles/cmTC_170fc-HAVE_LKSTRFTIME
# Run arguments :
#    Called from: [1]   /builddir/pan-0.160/CMakeLists.txt

set( HAVE_LKSTRFTIME
     "PLEASE_FILL_OUT-FAILED_TO_RUN"
     CACHE STRING "Result from try_run" FORCE)
```

I don't know how should it be handled, I have no understanding how CMake
works. Is it lack of some stuff in pan's build system, or maybe I have
missed something?

Emil

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]