Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile on window10 hover Dockfile #15

Open
kamicoder opened this issue Sep 6, 2019 · 9 comments
Open

Can't compile on window10 hover Dockfile #15

kamicoder opened this issue Sep 6, 2019 · 9 comments

Comments

@kamicoder
Copy link

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

@dlech
Copy link
Member

dlech commented Sep 6, 2019

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?

@kamicoder
Copy link
Author

kamicoder commented Sep 6, 2019

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 ''

@dlech
Copy link
Member

dlech commented Sep 6, 2019

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

@kamicoder
Copy link
Author

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".`

@dlech
Copy link
Member

dlech commented Sep 15, 2019

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

git submodule update --init

@kamicoder
Copy link
Author

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

@dlech
Copy link
Member

dlech commented Sep 16, 2019

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.

@kamicoder
Copy link
Author

kamicoder commented Sep 17, 2019

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).`

@dlech
Copy link
Member

dlech commented Sep 17, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants