GithubHelp home page GithubHelp logo

Cross Compilation issue about mqtt-c HOT 2 CLOSED

liambindle avatar liambindle commented on May 26, 2024
Cross Compilation issue

from mqtt-c.

Comments (2)

BennyBread avatar BennyBread commented on May 26, 2024

the cross compilation worked for me. I'm using CMAKE.
I just added the files to my folder, set the include directory and compild it with my crosscompiler.

some extracts from my CMakeLists.txt:

set(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 4.4.19)
SET(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
SET(CMAKE_PREFIX_PATH /usr/local/ti-processor-sdk-linux-k2g-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ../../lib/k2g/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ../../lib/k2g-debug/lib)
add_definitions(-DSCANDIR_CORRECT)

include_directories(../include)
include_directories(SYSTEM ../libssl/openssl/include
                  mqtt-c/include                  
                  mqtt-c/examples/templates)
...

from mqtt-c.

syedumerbukhari avatar syedumerbukhari commented on May 26, 2024

thanks, Brother for your kind reply. :) :)
Issue Solved.

from mqtt-c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.