FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
04-29-2024 02:55 PM
Hello community,
so I wanted to check out the C++ samples (newest version) and install them on a virtual core (V2.4.0) however I can't seem to build any of those samples into an AMD64 snap as I always get an error message. But it works with the ARM64 builder for some reason.
Does anyone know what's going on? Am I doing something wrong? Heres the error message:
* Executing task: bash build-snap-amd64.sh
~/ctrlx-automation-sdk-2.4.0/samples-cpp/datalayer.sharedmemory/build ~/ctrlx-automation-sdk-2.4.0/samples-cpp/datalayer.sharedmemory
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Selected BuildKit: GCC x86_64-linux-gnu
-- ######################################
-- Option: BUILD_SNAP ON
-- ######################################
-- Configuring done
-- Generating done
-- Build files have been written to: /home/boschrexroth/ctrlx-automation-sdk-2.4.0/samples-cpp/datalayer.sharedmemory/build
[ 25%] Building CXX object CMakeFiles/shmOwner.dir/main_owner.cpp.o
In file included from /usr/include/comm/datalayer/datalayer_rt.h:3,
from /usr/include/comm/datalayer/datalayer.h:9,
from /home/boschrexroth/ctrlx-automation-sdk-2.4.0/samples-cpp/datalayer.sharedmemory/main_owner.cpp:12:
/usr/include/comm/datalayer/memory_generated.h:11:41: error: static assertion failed: Non-compatible flatbuffers version included
11 | static_assert(FLATBUFFERS_VERSION_MAJOR == 23 &&
| ^
In file included from /usr/include/comm/datalayer/datalayer_rt.h:4,
from /usr/include/comm/datalayer/datalayer.h:9,
from /home/boschrexroth/ctrlx-automation-sdk-2.4.0/samples-cpp/datalayer.sharedmemory/main_owner.cpp:12:
/usr/include/comm/datalayer/memory_map_generated.h:11:41: error: static assertion failed: Non-compatible flatbuffers version included
11 | static_assert(FLATBUFFERS_VERSION_MAJOR == 23 &&
| ^
In file included from /usr/include/comm/datalayer/memory_map_generated.h:16,
from /usr/include/comm/datalayer/datalayer_rt.h:4,
from /usr/include/comm/datalayer/datalayer.h:9,
from /home/boschrexroth/ctrlx-automation-sdk-2.4.0/samples-cpp/datalayer.sharedmemory/main_owner.cpp:12:
/usr/include/comm/datalayer/metadata_generated.h:11:41: error: static assertion failed: Non-compatible flatbuffers version included
11 | static_assert(FLATBUFFERS_VERSION_MAJOR == 23 &&
| ^
In file included from /usr/include/comm/datalayer/metadata_generated.h:16,
from /usr/include/comm/datalayer/memory_map_generated.h:16,
from /usr/include/comm/datalayer/datalayer_rt.h:4,
from /usr/include/comm/datalayer/datalayer.h:9,
from /home/boschrexroth/ctrlx-automation-sdk-2.4.0/samples-cpp/datalayer.sharedmemory/main_owner.cpp:12:
/usr/include/comm/datalayer/allowed_operations_generated.h:11:41: error: static assertion failed: Non-compatible flatbuffers version included
11 | static_assert(FLATBUFFERS_VERSION_MAJOR == 23 &&
| ^
make[2]: *** [CMakeFiles/shmOwner.dir/build.make:76: CMakeFiles/shmOwner.dir/main_owner.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/shmOwner.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Solved! Go to Solution.
04-29-2024 03:23 PM
Hi @DanielToGo
what kind of App Build Environment are you using? Do you use the ctrlX WORKS integrated App Build Environment?
Best regards,
Nick
04-29-2024 03:37 PM
Hey @nickH
thanks for the reply. Yeah I'm using the integrated Ctrlx works environment.
04-29-2024 03:58 PM
Hi @DanielToGo
I just tried to reproduce your error:
But I was able to build the snap and therefore I wasn't able to reproduce your error.
04-29-2024 04:22 PM
Oh wow I just reinstalled the app environment from scratch and it's working!
I could've sworn I did all these steps but I guess I missed something or something went wrong.
Anyway, thanks for the help Nick.