question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conan appears to ignore options. sdl:iconv=false is ignored when building with MiniGW64 on Windows.

See original GitHub issue

I am using mingw64 on windows with cmake and conan.

The build for libiconv fails with mingw64 on Windows 10. SDL has an option to compile SDL without libiconv support but this fails.

I am using the following CMakeLists.txt

cmake_minimum_required(VERSION 3.10)

project(HelloSDL VERSION 0.1 DESCRIPTION "Hello SDL" LANGUAGES CXX)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()

add_executable(HelloSDL src/01_hello_sdl.cpp)

target_link_libraries(HelloSDL ${CONAN_LIBS})

my conanfile.txt

[requires]
sdl/2.0.16

[options]
sdl2:iconv=False

[generators]
cmake

I am using the following profile to build

[build_requires]
[settings]
    os=Windows
    os_build=Windows
    arch=x86_64
    arch_build=x86_64
    compiler=gcc
    compiler.version=11.1
    compiler.libcxx=libstdc++11
    build_type=Debug
[options]
[env]

I am compiling using the following command in bash

$ conan  install .. --build=missing --profile=../profiles/mingw64

Is there anything specific I am doing wrong?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
silktown-softwarecommented, Nov 23, 2021

Tried that. Works. 😄

Feel pretty dumb. Thanks for the help.

0reactions
memshardedcommented, Nov 23, 2021

Feel pretty dumb. Thanks for the help.

Glad to help, those things happen 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get Started with C++ and Mingw-w64 in Visual Studio Code
In this tutorial, you configure Visual Studio Code to use the GCC C++ compiler (g++) and GDB debugger from mingw-w64 to create programs...
Read more >
Tutorial: Configure CLion on Windows - JetBrains
Configure a MinGW toolchain. Go to File | Settings | Build, Execution, Deployment | Toolchains.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found