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

AmazonLinux 2 build errors #58

Open
chadbrewbaker opened this issue Mar 1, 2021 · 9 comments · Fixed by conan-io/conan#8612
Open

AmazonLinux 2 build errors #58

chadbrewbaker opened this issue Mar 1, 2021 · 9 comments · Fixed by conan-io/conan#8612

Comments

@chadbrewbaker
Copy link

CMake doesn't know how to download missing dependencies. WIP on a dependency installer so it builds as expected under CMake for Fedora/Redhat/AmazonLinux distros.

mkdir build; cd build; cmake ../

-- The CXX compiler identification is GNU 7.3.1
-- 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
-- Downloading conan.cmake from https://github.com/conan-io/cmake-conan
-- Conan: checking conan executable
CMake Error at build/conan.cmake:531 (message):
  Conan executable not found!
Call Stack (most recent call first):
  build/conan.cmake:565 (conan_check)
  src/CMakeLists.txt:28 (conan_add_remote)
@chadbrewbaker
Copy link
Author

#pip3 install conan; mkdir build; cd build; cmake ../

-- The CXX compiler identification is GNU 7.3.1
-- 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
-- Downloading conan.cmake from https://github.com/conan-io/cmake-conan
-- Conan: checking conan executable
-- Conan: Found program /usr/local/bin/conan
-- Conan: Version found Conan version 1.34.0

-- Conan: Adding bincrafters remote repository (https://api.bintray.com/conan/bincrafters/public-conan)
WARN: Remotes registry file missing, creating default one in /root/.conan/remotes.json
-- Conan: Automatic detection of conan settings from cmake
CMake Error at build/conan.cmake:82 (message):
  Please specify in command line CMAKE_BUILD_TYPE
  (-DCMAKE_BUILD_TYPE=Release)
Call Stack (most recent call first):
  build/conan.cmake:496 (conan_cmake_settings)
  src/CMakeLists.txt:33 (conan_cmake_run)


-- Configuring incomplete, errors occurred!
See also "/root/github/turtlebrowser/build/CMakeFiles/CMakeOutput.log".

@chadbrewbaker
Copy link
Author

chadbrewbaker commented Mar 1, 2021

Stackoverflow says this https://stackoverflow.com/questions/51736326/build-qt-source-with-openssl-and-msvc2017

AWS recommends this for OpenSSL https://docs.aws.amazon.com/cli/latest/userguide/cli-security-enforcing-tls.html

# pip3 install conan; mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=Debug ../

Downloading conan_package.tgz
fontconfig/2.13.92: Package installed 1e8fcc6b58b09849d3e76b7562f37bcf44864cdf
fontconfig/2.13.92: Downloaded package revision 0
bzip2/1.0.8: Appending PATH environment variable: /root/.conan/data/bzip2/1.0.8/_/_/package/0e2fc6376534b5b3953a4974cf0901b008b17f2f/bin
ERROR: Not able to automatically detect '/usr/bin/c++' version
ERROR: Unable to find a working compiler
WARN: libmysqlclient/8.0.17: requirement openssl/1.1.1i overridden by qt/5.15.2@bincrafters/stable to openssl/1.1.1h
egl/system: WARN: Don't know how to install EGL for your distro.
ERROR: egl/system: Error in package_info() method, line 75
        self._fill_cppinfo_from_pkgconfig('egl')
while calling '_fill_cppinfo_from_pkgconfig', line 24
        if not pkg_config.provides:
        ConanException: pkg-config command ['pkg-config', '--print-provides', 'egl', '--print-errors'] failed with error: Command 'pkg-config --print-provides egl --print-errors' returned non-zero exit status 1.
Package egl was not found in the pkg-config search path.
Perhaps you should add the directory containing `egl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'egl' found

CMake Error at build/conan.cmake:402 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  build/conan.cmake:497 (conan_cmake_install)
  src/CMakeLists.txt:33 (conan_cmake_run)

@chadbrewbaker
Copy link
Author

I've got a /usr/lib64/pkgconfig/wayland-egl.pc and /usr/lib64/libwayland-egl.so if those work from yum install wayland-devel?

@ericLemanissier
Copy link

Unfortunately it won't help. What you need here is a package providing egl.pc . Does amazon linux provide one ?

@ericLemanissier
Copy link

@chadbrewbaker running yum whatprovides */egl.pc shows that you need to install mesa-libEGL-devel

@patricia-gallardo
Copy link

Is there a way for me to test this? Maybe in WSL2?

@ericLemanissier
Copy link

@patricia-gallardo
Copy link

Nice! I’ve barely started with testing doing builds for Ubuntu 18.04 and 20.04 in WSL2, so I can try to add this aswell.

@chadbrewbaker
Copy link
Author

From what I understand, the WSL2 backup format is just an OSI container. Thus you can turn any docker image into a WSL2 image. https://polach.me/transform-any-linux-docker-image-to-wsl2-distribution-by-powershell-easily/

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

Successfully merging a pull request may close this issue.

3 participants