grx icon indicating copy to clipboard operation
grx copied to clipboard

Can't compile on window10 hover Dockfile

Open kamicoder opened this issue 6 years ago • 9 comments

Hello. I can't build dockerfile : I have an error during "apt-get install"

kamicoder avatar Sep 06 '19 15:09 kamicoder

Can you give more details? Are you using Docker for Windows or Docker Toolbox or Docker for Linux in WSL? What is the full error message?

dlech avatar Sep 06 '19 16:09 dlech

Hello sory for the lack of details. I use Docker for Windows. I launch this command : docker build --tag grx-armel --no-cache --file "D:\\Download\\grx\\docker\\armel.dockerfile" "D:\\Download\\grx\\docker\\" I have this error :

Step 2/2 : RUN sudo apt-get update &&     DEBIAN_FRONTEND=noninteractive sudo apt-get install --yes --no-install-recommends         cmake         gir1.2-glib-2.0         gobject-introspection         libfontconfig1-dev 
        libfreetype6-dev         libgirepository1.0-dev         libglib2.0-dev         libgudev-1.0-dev         libinput-dev         libjpeg-dev         libpng-dev         libudev-dev         libxkbcommon-dev         pkg-config         valac
 ---> Running in 2543a7192ba2
Unknown QEMU_IFLA_INFO_KIND ipip
Unknown QEMU_IFLA_INFO_KIND ip6tnl
Get:1 http://security.debian.org buster/updates InRelease [39.1 kB]
Get:2 http://ftp.debian.org/debian buster InRelease [118 kB]
Get:3 http://archive.ev3dev.org/debian buster InRelease [8395 B]
Reading package lists...
E: Repository 'http://security.debian.org buster/updates InRelease' changed its 'Suite' value from 'testing' to 'stable'
E: Repository 'http://ftp.debian.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'
E: Repository 'http://archive.ev3dev.org/debian buster InRelease' changed its 'Suite' value from 'testing' to ''

kamicoder avatar Sep 06 '19 18:09 kamicoder

I just pushed an updated ev3dev/debian-buster-armel-cross to Docker Hub, so it should work now.

dlech avatar Sep 06 '19 19:09 dlech

Hello, I can build my docker file, thanks. But I have another problem : This is my commands : docker build --tag grx-armel --no-cache --file "${PWD}\\src\\grx\\docker\\armel.dockerfile" "${PWD}\\src\\grx\\docker\\"

docker run --name grx --rm -it -v ${PWD}/build:/build -v ${PWD}/src/grx/src:/src --workdir /build --env DESTDIR=/build/dist grx-armel

cmake /src -DCMAKE_BUILD_TYPE=Debug -DGRX_PLUGIN_GTK3=No -DGRX_ENABLE_DOC=No

The result fail :

-- The C compiler identification is GNU 8.3.0 -- The CXX compiler identification is GNU 8.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:215 (find_package): By not providing "FindGLibGenMarshal.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by "GLibGenMarshal", but CMake did not find one. Could not find a package configuration file provided by "GLibGenMarshal" with any of the following names: GLibGenMarshalConfig.cmake glibgenmarshal-config.cmake Add the installation prefix of "GLibGenMarshal" to CMAKE_PREFIX_PATH or set "GLibGenMarshal_DIR" to a directory containing one of the above files. If "GLibGenMarshal" provides a separate development package or SDK, be sure it has been installed. CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.13) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring incomplete, errors occurred! See also "/build/CMakeFiles/CMakeOutput.log".`

kamicoder avatar Sep 15 '19 13:09 kamicoder

It sounds like maybe you didn't check out the git submodule.

git submodule update --init

dlech avatar Sep 15 '19 18:09 dlech

I already checkout submodules (and I retry the checkout) I have the cmake folder (with FindGLibGenMarshal.cmake) But I have the same error

kamicoder avatar Sep 16 '19 18:09 kamicoder

The C compiler identification is GNU 8.3.0

This tells me that cmake is not being run inside of the docker container. It should be 6.x.

dlech avatar Sep 16 '19 21:09 dlech

i am inside the container, I haven't cmake anywhere except in this container...

cmake /V cmake version 3.13.4 CMake suite maintained and supported by Kitware (kitware.com/cmake).`

kamicoder avatar Sep 17 '19 05:09 kamicoder

Hmm... I think I forgot that this is updated to Debian Buster in the docker container, so that would be gcc 8.x. My mistake.

I've never tried building this on Windows. I was able to build without error the other day using the docker/setup.sh script on Linux. Maybe I can find some time to try it to see if I can reproduce the problem.

dlech avatar Sep 17 '19 13:09 dlech