How to install for OS X 10.8.1
-
Hi,
I can not install Qt on my mac and when I try to install anything there are many errors. -
Actually providing us those errors can make helping you much easier. Also, specifying whether you are installing the .dmg package, or making "make install" would help, too.
-
I installed with the package .dmg
-
@#ifndef MAINWINDOW_H
#define MAINWINDOW_H#include <QMainWindow>
namespace Ui {
class MainWindow;
}class MainWindow : public QMainWindow
{
Q_OBJECTpublic:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();private:
Ui::MainWindow *ui;
};#endif // MAINWINDOW_H
@ -
@#include "mainwindow.h"
#include "ui_mainwindow.h"MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}MainWindow::~MainWindow()
{
delete ui;
}
@ -
@#include <QtGui/QApplication>
#include "mainwindow.h"int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();return a.exec();
}
@ -
This error
10:41:11: Exécution des étapes de compilation pour le projet test...
10:41:11: Configuration inchangée, étape QMake sautée.
10:41:11: Débute : "/usr/bin/make" -w
make: Entering directory/Users/BorisBker/Documents/Qt/test-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Debug' g++ -c -pipe -g -gdwarf-2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/Developer/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/macx-g++ -I../test -I/Developer/QtSDK/Desktop/Qt/4.8.1/gcc/lib/QtCore.framework/Versions/4/Headers -I/Developer/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore -I/Developer/QtSDK/Desktop/Qt/4.8.1/gcc/lib/QtGui.framework/Versions/4/Headers -I/Developer/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui -I/Developer/QtSDK/Desktop/Qt/4.8.1/gcc/include -I. -I. -I../test -I. -F/Developer/QtSDK/Desktop/Qt/4.8.1/gcc/lib -o main.o ../test/main.cpp In file included from /Developer/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qnamespace.h:45, from /Developer/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qobjectdefs.h:45, from /Developer/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qobject.h:47, from /Developer/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qcoreapplication.h:45, from /Developer/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qapplication.h:45, from /Developer/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/QApplication:1, from ../test/main.cpp:1: /Developer/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qglobal.h:328:6: warning: #warning "This version of Mac OS X is unsupported" g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -o test.app/Contents/MacOS/test main.o mainwindow.o moc_mainwindow.o -F/Developer/QtSDK/Desktop/Qt/4.8.1/gcc/lib -L/Developer/QtSDK/Desktop/Qt/4.8.1/gcc/lib -framework QtGui -L/usr/local/pgsql/lib -L/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib -F/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib -framework QtCore ld: warning: directory not found for option '-L/usr/local/pgsql/lib' ld: warning: directory not found for option '-L/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib' ld: warning: directory not found for option '-F/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib' make: Leaving directory
/Users/BorisBker/Documents/Qt/test-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Debug'
10:41:14: Le processus "/usr/bin/make" s'est terminé normalement. -
So your Qt installation was successful after all? Then your initial post is very misleading.
I should probably draw your attention to one line in your output:
@
warning: #warning “This version of Mac OS X is unsupported”
@Compilation seems to be successful, but linker raises warnings for missing libraries.
EDIT: typos....
-
Okay thank you very much, you have tips for me to compile MySQL
-
Do I? I never did that myself, so I don't think so. Check Qt docs + there were numerous topics about it on this forum.
-
Thank