I've been using the bazel generator without issues. I want to integrate dear-imgui with a GLFW/GLEW backend but it keeps failing. I've attached a simple conanfile with the configuration I'm using:
Environment Details (include every applicable attribute)
- Operating System+version: Fedora release 34 (Thirty Four)
- Compiler+version: gcc (GCC) 11.0.1 20210324 (Red Hat 11.0.1-0)
- Conan version: Conan version 1.44.1
- Python version: Python 3.9.2
Steps to reproduce (Include if Applicable)
from conans import ConanFile
from conan.tools.google import BazelToolchain, BazelDeps
class ExampleConanIntegration(ConanFile):
name = "example"
version = "0.0.1"
generators = ['BazelDeps', 'BazelToolchain']
requires = [
'glew/2.2.0'
]
def configure(self):
pass
def imports(self):
pass
Then run:
conan install . --build=missing -s compiler=gcc -s compiler.version=11 -s compiler.libcxx=libstdc++11 -s build_type=Debug
Logs (Executed commands with output) (Include/Attach if Applicable)
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
conanfile.py (tijara-conan-integration/0.0.1): Installing package
Requirements
glew/2.2.0 from 'conancenter' - Cache
glu/system from 'conancenter' - Cache
opengl/system from 'conancenter' - Cache
Packages
glew/2.2.0:44741af961cbe3bae7bd261b66459e5b6dc65693 - Cache
glu/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
opengl/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
Installing (downloading, building) binaries...
opengl/system: Already installed!
glu/system: Already installed!
glew/2.2.0: Already installed!
conanfile.py (tijara-conan-integration/0.0.1): Generator txt created conanbuildinfo.txt
conanfile.py (tijara-conan-integration/0.0.1): WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
conanfile.py (tijara-conan-integration/0.0.1): Generator 'BazelDeps' calling 'generate()'
ERROR: Error in generator 'BazelDeps': encoding without a string argument
I've been using the bazel generator without issues. I want to integrate dear-imgui with a GLFW/GLEW backend but it keeps failing. I've attached a simple conanfile with the configuration I'm using:
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
Then run:
Logs (Executed commands with output) (Include/Attach if Applicable)