Bug #2097

Cross compilation of rst-converters fails due to linking against installed x64 libraries

Added by T. Korthals over 9 years ago. Updated over 9 years ago.

Status:RejectedStart date:11/20/2014
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:cpp
Target version:-

Description

Platform

Ubuntu Trusty x64 with bitbake cross compilation environment

Programs and Programming Languages

C++

rst-converters Version

git/master

What did you do?

rst-converters cross compilation via bitbake

What did you expect to happen?

Normal compilation

What happened instead?

The provided CMakeLists.txt file found the rsc version installed on my computer, so the cross linker wanted to link against my x64 libraries

Additional information

Patch attached

0001-Added-RSC-to-the-environment-to-allow-compilation-on.patch Magnifier (855 Bytes) T. Korthals, 11/20/2014 10:52 AM

History

#1 Updated by J. Moringen over 9 years ago

  • Assignee changed from J. Moringen to J. Wienke

Johannes is more competent w.r.t. more complicated CMake problems

#2 Updated by J. Wienke over 9 years ago

Why is this patch necessary? The RSBConfig.cmake triggered by FIND_PACKAGE(RSB) already includes the FIND_PACKAGE(RSC) line. Does bitbake preprocess the CMake files to identify things it needs to set and cannot find this hidden FIND_PACKAGE call?

#3 Updated by T. Korthals over 9 years ago

Hi,

the FIND_PACKAGE(RSB) included the wrong FIND_PACKAGE(RSC) because of our own work-around for cross-compilation.
FIND_PACKAGE(RSC) accidentally included the x86 libraries from my own installation, because we edited the RSB cmake modules already for deployment before we compiled rst-converters.
So you can reject the bug!

#4 Updated by J. Moringen over 9 years ago

  • Status changed from New to Rejected
  • Assignee deleted (J. Wienke)

Also available in: Atom PDF