Skip to content

Unable to build the iceoryx2 c++ bindings for ARM architecture VxWorks #1146

@LoreleysMelody

Description

@LoreleysMelody

Required information

Operating system:

Rust version:
Output of: rustc --version: 1.82.0

Cargo version:
Output of: cargo --version: 1.82.0

iceoryx2 version:
https://github.com/ekxide/iceoryx2/tree/vxworks-mvp

Detailed log output:
target/ffi/build/generated/iceoryx_platform/include/iceoryx_platform/platform_settings.hpp:20:10: fatal error: 'linux/limits.h' file not found
#include <linux/limits.h>
1 error generated.

Observed result or behaviour:
Can not compile iceoryx2 c++ bindings

Expected result or behaviour:
The iceoryx2 c++ bindings can be compiled

Conditions where it occurred / Performed steps:
Create VSB and a VIP for the board. Create a custom sdkenv.sh.
Within the Wind River Workbench Development Terminal call the following commands:

  • source sdkenv.sh
  • cargo build --package iceoryx2
  • mkdir iceHoof
  • cd iceHoof
  • git clone --depth 1 --branch v2.95.5 https://github.com/eclipse-iceoryx/iceoryx.git target/iceoryx/src
  • cmake -S target/iceoryx/src/iceoryx_platform -B target/iceoryx/build/platform -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=target/install -DIOX_PLATFORM_MINIMAL_POSIX=ON -DCMAKE_SYSTEM_NAME=VxWorks
  • cmake --build target/iceoryx/build/platform
  • cmake --install target/iceoryx/build/platform
  • cmake -S target/iceoryx/src/iceoryx_hoofs -B target/iceoryx/build/hoofs -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=target/install -DCMAKE_PREFIX_PATH="$(pwd)/target/install" -DIOX_USE_HOOFS_SUBSET_ONLY=ON -DCMAKE_SYSTEM_NAME=VxWorks
  • cmake --build target/iceoryx/build/hoofs
  • cmake --install target/iceoryx/build/hoofs
  • cd ..
  • cargo build --release --package iceoryx2-ffi
  • cmake -S . -B target/ffi/build -DCMAKE_INSTALL_PREFIX=target/install -DCMAKE_PREFIX_PATH="$(pwd)/iceHoof/target/install" -DRUST_BUILD_ARTIFACT_PATH="$(pwd)/target/aarch64-wrs-vxworks/release"
  • cmake --build target/ffi/build

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions