Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
  2. qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
  3.  
  4. sudo apt-get --no-install-recommends install mingw-w64 qt4-qmake nsis
  5.  
  6. git clone git://cmake.org/cmake.git
  7.  
  8. cd cmake
  9.  
  10. ./bootstrap
  11.  
  12. ---------------------------------------------
  13. CMake has bootstrapped. Now run make.
  14.  
  15. make
  16.  
  17. $ bin/cmake --version
  18. cmake version 3.3.0
  19.  
  20. CMake suite maintained and supported by Kitware (kitware.com/cmake).
  21.  
  22. cd ..
  23.  
  24. git clone cmake cmake-windows
  25.  
  26. cd cmake-windows
  27. git checkout v3.3.0
  28.  
  29. # the name of the target operating system
  30. SET(CMAKE_SYSTEM_NAME Windows)
  31.  
  32. # which compilers to use for C and C++
  33. SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
  34. SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
  35. SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
  36.  
  37. # here is the target environment located
  38. SET(CMAKE_FIND_ROOT_PATH /usr/share/mingw-w64 /usr/i686-w64-mingw32/ )
  39.  
  40. # adjust the default behaviour of the FIND_XXX() commands:
  41. # search headers and libraries in the target environment, search
  42. # programs in the host environment
  43. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  44. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  45. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
  46.  
  47. ~/cmake/bin/cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-toolchain.cmake
  48.  
  49. SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++ -static-libgcc -static -lwinpthread" )
  50.  
  51. rm -rf bin/*.exe _CPack_Packages/win32-x86/NSIS
  52.  
  53. make
  54.  
  55. make package
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement