Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
en:doc:macosx [25/09/2016 00:36]
scorpio810 [Compiler un programme C++ : XCode]
en:doc:macosx [25/09/2016 00:40] (Version actuelle)
scorpio810 [Compiler un programme C++/Qt : Qt 5.x]
Ligne 1: Ligne 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_
Imprimer/exporter