5

Regarding cross compiling an external library to ARM. Can I just copy the built libraries in ARM (e.g. raspberry pi) to Windows and link them in CMake in order to compile a source code to be deployed in ARM? Does sudo apt-get install (e.g. lib_boost-all-dev) just installs prebuilt libraries? How do I copy the headers, library, and binaries so to transfer them in Windows for cross-compilation process?

(EDIT)

What I really want is to be able to cross compile PCL to Raspberry Pi in Windows. I already have a working cross compiler running in Windows. The problem is I'm having a hard time finding a cmake-able boost that supports the PCL library. So I resort to downloading the library directly in Pi (e.g. sudo apt-get install libboost-all-dev). Does this download and installs prebuilt library for Boost? If so, I'm thinking that using this. Maybe I can transfer this to Windows instead. In order to complete the cross compilation process.

Xegara
  • 255
  • 3
  • 8

1 Answers1

1

Definitely maybe. In theory, there is nothing wrong with mixing cross compiled libraries and object files with native compiled, but, and this is a huge but, many complex projects will not work with different compilers. Your best chance for success is using the same compiler for both.

hildred
  • 916
  • 1
  • 6
  • 21