Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
- qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
- sudo apt-get --no-install-recommends install mingw-w64 qt4-qmake nsis
- git clone git://cmake.org/cmake.git
- cd cmake
- ./bootstrap
- ---------------------------------------------
- CMake has bootstrapped. Now run make.
- make
- $ bin/cmake --version
- cmake version 3.3.0
- CMake suite maintained and supported by Kitware (kitware.com/cmake).
- cd ..
- git clone cmake cmake-windows
- cd cmake-windows
- git checkout v3.3.0
- # the name of the target operating system
- SET(CMAKE_SYSTEM_NAME Windows)
- # which compilers to use for C and C++
- SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
- SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
- SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
- # here is the target environment located
- SET(CMAKE_FIND_ROOT_PATH /usr/share/mingw-w64 /usr/i686-w64-mingw32/ )
- # adjust the default behaviour of the FIND_XXX() commands:
- # search headers and libraries in the target environment, search
- # programs in the host environment
- set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
- set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
- set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
- ~/cmake/bin/cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-toolchain.cmake
- SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++ -static-libgcc -static -lwinpthread" )
- rm -rf bin/*.exe _CPack_Packages/win32-x86/NSIS
- make
- make package
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement