how to link the openssl library with the arm-cross compiler

后端 未结 1 1796
抹茶落季
抹茶落季 2021-01-24 07:09

I have application test.c which by using gcc on host(on ubuntu) machine i have succeed in compilation and successfully ran the application program on host.

now I would l

相关标签:
1条回答
  • 2021-01-24 08:02

    You cannot use your host libraries when compiling for a different architecture. First, you need to cross compile all non-standard libraries (libxml, libopenssl) for your target machine (i.e. ARM).

    Basically, you need to download the source code for these libraries and configure it with

    --host=arm-uclinuxeabi --prefix=SOME_HOST_DIR
    

    (or something similar - you might check the README files) assuming, that you have your cross compiler in PATH.

    These libraries might also require more libraries to be cross compiled.

    When compiling your application you should use these cross compiled libraries.

    0 讨论(0)
提交回复
热议问题