Giter Club home page Giter Club logo

Comments (9)

ruslo avatar ruslo commented on June 20, 2024

Looks similar to:

I guess you can start with:

To create linux-mingw64 toolchain.

from polly.

ruslo avatar ruslo commented on June 20, 2024
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

I think we don't need this if you're using Hunter. find_package should never return anything from system if Hunter used, see:

from polly.

NeroBurner avatar NeroBurner commented on June 20, 2024

where should I set the windres variable needed for cross-compiling to windows

set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)

Edit:
and more importantly, where is the following variable set?

set(CMAKE_SYSTEM_NAME Windows)

from polly.

ruslo avatar ruslo commented on June 20, 2024

set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)

I think it will not hurt if we will add it to the compiler/gcc-cross-compile.cmake.

set(CMAKE_SYSTEM_NAME Windows)

In top linux-mingw64.

from polly.

NeroBurner avatar NeroBurner commented on June 20, 2024

should we add emulator support?
https://cmake.org/cmake/help/v3.3/variable/CMAKE_CROSSCOMPILING_EMULATOR.html

with this we could run mingw-w64 cross compiled tests with wine64 or armhf targets with qemu

from polly.

ruslo avatar ruslo commented on June 20, 2024

should we add emulator support?

It will not hurt I guess. Is emulator a part of mingw-w64 package?

from polly.

NeroBurner avatar NeroBurner commented on June 20, 2024

no, it would need an extra emulator installed. And for mingw that would be wine (to run windows binaries)

from polly.

ruslo avatar ruslo commented on June 20, 2024

no, it would need an extra emulator installed

In this case we can add CMAKE_CROSSCOMPILING_EMULATOR variable but only if it will not return error if emulator not found.

from polly.

ruslo avatar ruslo commented on June 20, 2024

Closing inactive discussion.

from polly.

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.