c++ - std::mutex missing when building Qt app with MXE gcc -


i'm attempting qt application build command line under linux targetted windows. i've used mxe build toolchain targetting windows build fails whinging various thread related bits. mxe built winpthreads , know qt project build on windows inside of creator, using pre-packaged mingw compiler. i'm building using arm linux cross compiler, want windows done same. i'm trying 1 line build on build server or jenkins targets.

i'm guessing i'm missing need pass mxe when doing cross toolchain build or alternatively missing need pass qmake build succeed.

the issue default mxe build of gcc using win32 threads opposed mingws pthreads implementation.

edit src/gcc.mk , ensure winpthreads added $(pkg)_deps list , change configure line --enable-threads=win32 becomes --enable-threads=posix.

then re-make winpthreads , gcc. note there circular dependency here, need build gcc win32 threads (the default) first remake winpthreads.

thanks andreia gaita - http://blog.worldofcoding.com/2014/05/cross-compiling-c11-without-going-madder.html


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -