Skip to content

Cross compile failed using OpenWRT, have to change CMakefiles.txt #1018

@jannson

Description

@jannson

Describe the bug

I can build package from source in OpenWRT SDK.

To Reproduce
Steps to reproduce the behavior:

  1. Use 'I wrote a makefile for Openwrt: https://gist.github.com/jannson/d0bc34ce9319c0c217343fccb820e720'
  2. Run 'build in OpenWRT SDK, using command: make package/example/themis/{clean,prepare,compile} V=s'
  3. See the following error:
make[5]: Entering directory '/xxx/openwrt-sdk-21.02.3-realtek-rtd129x_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/themis-1.0'
[  0%] Building C object CMakeFiles/soter.dir/src/soter/ed25519/fe_0.c.o
In file included from /xxx/openwrt-sdk-21.02.3-realtek-rtd129x_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/themis-1.0/src/soter/ed25519/fe_0.c:1:0:
/xxx/openwrt-sdk-21.02.3-realtek-rtd129x_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/themis-1.0/src/soter/ed25519/fe.h:7:10: fatal error: soter/soter_api.h: No such file or directory
 #include <soter/soter_api.h>
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [CMakeFiles/soter.dir/build.make:82: CMakeFiles/soter.dir/src/soter/ed25519/fe_0.c.o] Error 1

Expected behavior
Should build OK using cmake

Environment (please complete the following information):

  • OS: [OS name and version, e.g. iOS 13]
  • Hardware: [32-bit/64-bit, or mobile device name and version]
  • Themis version: [e.g. 0.12.0]
  • Installation way:
    • via package manager
    • built from source

Additional context

Add a new line after https://github.com/cossacklabs/themis/blob/master/CMakeLists.txt#L3, which is:

include_directories(include)

Then we can passthough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions