Fwd: Problem with cross- building libmodbus

54 views
Skip to first unread message

Δημητριος Παπαοικονόμου

unread,
Dec 27, 2021, 11:58:44 AM12/27/21
to libm...@googlegroups.com
Hello,

 

I am using conan and cmake to download and build libmodbus/3.1.6.

 

I am getting the following error while building:

 

[cmake] libmodbus/3.1.6: Applying build-requirement: automake/1.16.3

[cmake] libmodbus/3.1.6: Applying build-requirement: msys2/cci.latest

[cmake] libmodbus/3.1.6: Applying build-requirement: autoconf/2.71

[cmake] libmodbus/3.1.6: Applying build-requirement: m4/1.4.19

[cmake] libmodbus/3.1.6: WARN: Build folder is dirty, removing it: C:\Users\DPk\.conan\data\libmodbus\3.1.6\_\_\build\29d1f4003b3f7143826ef1988625574513d526ce

[cmake] libmodbus/3.1.6: Copying sources to build folder

[cmake] libmodbus/3.1.6: Building your package in C:\Users\DPk\.conan\data\libmodbus\3.1.6\_\_\build\29d1f4003b3f7143826ef1988625574513d526ce

[cmake] libmodbus/3.1.6: Generator txt created conanbuildinfo.txt

[cmake] libmodbus/3.1.6: Aggregating env generators

[cmake] libmodbus/3.1.6: Calling build()

[cmake] libmodbus/3.1.6: ERROR: Package '29d1f4003b3f7143826ef1988625574513d526ce' build failed

[cmake] libmodbus/3.1.6: WARN: Build folder C:\Users\DPk\.conan\data\libmodbus\3.1.6\_\_\build\29d1f4003b3f7143826ef1988625574513d526ce

[cmake] libmodbus/3.1.6: 

[cmake] ERROR: libmodbus/3.1.6: Error in build() method, line 101

[cmake]     with self._build_context():

[cmake]     ConanException: Error, Visual environment already set to 15

[cmake]  Current settings visual version: 16

[cmake] CMake Error at conan/conan.cmake:631 (message):

[cmake]   Conan install failed='1'

[cmake] Call Stack (most recent call first):

[cmake]   CMakeLists.txt:23 (conan_cmake_install)

 

My build profile is:

[settings]

arch=x86_64

arch_build=x86_64

build_type=Release

compiler=Visual Studio

compiler.runtime=MD

compiler.version=16

os = Windows

os_build=Windows

 

My host profile:

[settings]

arch=x86

arch_build=x86

build_type=Release

compiler=Visual Studio

compiler.runtime=MD

compiler.version=16

os = Windows

os_build=Windows

 

Can you maybe provide me the binaries for the library for my host profile? Or can you help me find out what is wrong? Do you need more information from my side?

Thank you in advance for your response.

 

Regards

Reply all
Reply to author
Forward
0 new messages