Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:doc:macosx [25/09/2016 02:32] – [QElectroTech sous MacOSX] scorpio810en:doc:macosx [25/09/2016 02:40] (current) – [Compiler un programme C++/Qt : Qt 5.x] scorpio810
Line 1: Line 1:
 +~~NOCACHE~~
 +====== QElectroTech MacOSX ======
  
 +
 +
 +This page includes all the team knowledge on compiling and executing QElectroTech MacOS X. The developer does not have an Apple computer, we do absolutely nothing as guarantee the proper functioning of QElectroTech MacOS X .
 +
 +Tested on El Capitan (10.11).
 +
 +===== Preparing the environment =====
 +==== Compiling a C ++ program: XCode ====
 +To have a C ++ compiler and the make tool, you must install
 +[[https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12|Xcode]] (launch the app at least once to complete the installation). 
 +
 +{{:doc:mac_xcode.png|}}
 +
 +Vérifications : <code>
 +# Open a console; make utility must be present :
 +NameOfMachine:~ your_user$ make
 +make: *** No targets specified and no makefile found.  Stop.
 +</code>
 +==== Compiling a C ++ program / Qt: Qt5.x ====
 +
 +Download and install Qt for Mac OS:
 +  * Go to [[http://www.qt.io/download/|Qt project]]
 +  * Answer the questions :
 +     - Is your application or device being developed for : Open source distribution under a LGPL or GPL licence
 +     - Are you prepared to make your application source code publicly available : Yes
 +     - Are you able to comply with the obligations of the LGPL (or GPL) and/or does your corporation allow open source usage ? Yes
 +     - Get Started
 +     - Download now (Le QT Online installer for OS X)
 +  * Download and install Qt5.x sdk
 +
 +PS : If you have this error message:
 +
 +{{:doc:mac_devnonidentifier.png|}}
 +
 +Go to / System Preferences / Security & Privacy / General.
 +
 +And select "Anywhere"
 +
 +{{:doc:mac_securite.png?300|}}
 +
 +______________________________
 +Indicate the Qt environment variables bash:
 +  - Show hidden files (using Onyx for example)
 +  - Open file: /Users/Yoann/.bash_profile
 +  - add (adapting the version number):
 +<code>
 +# Setting PATH for Qt5.5
 +PATH="/Users/Yoann/Qt/5.5/clang_
Print/export