Category : cmake

I am trying to run asan using a few compiler versions to catch problems for different targets. To do this I am using custom cmake toolchain files and, to start, the official GCC Docker containers. Using gcc:11 everything works as expected, but for gcc:10 and gcc:9 I cannot link pthread at all using this custom ..

Read more

I’m trying to use CMake to build a project with a Docker container. I’m pretty new to both Docker and CMake, so hopefully this is a simple error. My project requires Parallel NetCDF support (not PNetCDF, the parallel HDF5 version). My Dockerfile seems to be configured right and when entering the session I can find ..

Read more

I have a dockerfile I use to download images for my C++ code. I currently use a Makefile system but can use CMake in theory. root |-dockerFile |-Makefile |-dockerMakefile |-CMakeLists.txt ||-target1 |||-CMakeLists.txt |||-Makefile |||-src |||-inc ||-target2 |||-CMakeLists.txt |||-Makefile |||-src |||-inc The dockerMakefile is just shell script that builds and tags a docker build, then runs ..

Read more

I have a CMakeLists.txt file that is meant to find gstreamer using pkg_check_modules. This works well when on a shell but when I try to run CMake from a Docker RUN command the build fails with the linker not capable of finding the libraries. This is my RUN command: RUN export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/intel/openvino_2021.4.582/data_processing/gstreamer/lib/pkgconfig/ && rm -rf ..

Read more

I am trying to use Conan by installing it in a Docker and using that docker. For the same, I did like included these lines in Dockerfile RUN apt-get install -y python3-pip RUN sudo python3 -m pip install conan And after starting docker container I have these lines in my CMakeFile.txt conan_cmake_run( REQUIRES ${CONAN_PACKAGES}) The ..

Read more

Trying to run a python script inside gitlab ci, (docker container running ubuntu18:04). My script is working perfectly fine on host using the same directory structure. However, inside the docker container I’m getting CMake errors. + echo ‘cmake_flags: -DCMAKE_BUILD_TYPE=Release -DCS_TARGET_SYSTEM=amd64.linux -DCMAKE_TOOLCHAIN_FILE=************’ cmake_flags: -DCMAKE_BUILD_TYPE=Release -DCS_TARGET_SYSTEM=amd64.linux -DCMAKE_TOOLCHAIN_FILE=************ + mkdir -p build/amd64 + cmake -G ‘Unix Makefiles’ -H/tmp/app_dir ..

Read more