palaceuf.blogg.se

How to compile qt for mac on linux
How to compile qt for mac on linux





Graphicsitems/qdeclarativetextinput.cpp: In member function ‘void QDeclarativeTextInput::setCursorVisible(bool)’: Without ‘./init-repository –branch -f’ there was compiler error: Prior to reconfiguration, make sure you remove any leftovers from Qt will be installed into '/home/dmitry/examples/libs/qt591'. Once everything is built, you must run 'make install'. Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing. Note: Dropped compiler flags '-pthread' when detecting library 'glib'. Note: Also available for Linux: linux-clang linux-icc configure -prefix /home/dmitry/examples/libs/qt591 -debug -confirm-license -opensource -nomake examples -nomake tests -skip qtquick1 -platform linux-g++ĭesktop OpenGL.

how to compile qt for mac on linux

Sudo update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-7 10 -slave /usr/bin/g++ g++ /usr/bin/g++-7 Sudo add-apt-repository ppa:ubuntu-toolchain-r/test There is alternative way how to clone and build QT that I used on Ubuntu with GCC 5.4.1 and CMake 2.8.12.2 (there is no branch 5.9.1 but only 5.9, so the tag is used): Set PATH=%PATH% "C:\Program Files (x86)\Portable\ruby-2.3.0-i386-mingw32\bin" C:\Perl\bin C:\Python27Ĭonfigure -prefix %CD%\qtbase -debug -confirm-license -opensource -nomake examples -nomake tests I built QT 5.9 a bit differently: in Developer Command Prompt for VS2015 I run the following commands: git clone -recursive -branch 5.9 Go to File->New->Project and select Templates->Visual C++->Qt5 Projects->Qt Application:Ĭlick OK, and select modules you want to include in your project: Restart VS2015, Go to QT5->Qt Options and specify the path to QT binaries: To create your first QT project in VS2015 go to Tools->Extensions and Updates and install Qt5Package: If everything went right run nmake and wait a few hours.

how to compile qt for mac on linux

Open VS2015 Command Prompt x86 and run configureqt.bat. Probably the following can help to switch QT branch: git checkout 5.9

how to compile qt for mac on linux

It compiles QT with all the examples and does not ask to accept the license. Set PATH=%_ROOT%\qtbase\bin %_ROOT%\gnuwin32\bin %PATH%Ĭonfigure -debug -nomake examples -opensourceĪnother alternative configuration (last line in the bat file) is: configure -debug -confirm-license -opensource To get QT 5.7 sources open Git Bash and run the following command (the repository has some submodules, so “recursive” option is required), see the list of possible clone here at the bottom of the page: git clone -recursive -branch 5.7Ĭreate a bat file called configureqt.bat with the following content: set PATH=%PATH% "C:\Program Files (x86)\Portable\ruby-2.3.0-i386-mingw32\bin" C:\Perl\bin C:\Python27 Below I provided a simple step by step instruction on how to compile QT 5.7 with VS2015 assuming you already have VS2015 and Git client installed on your Windows machine.







How to compile qt for mac on linux