Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to install for OS X 10.8.1
Qt 6.11 is out! See what's new in the release blog

How to install for OS X 10.8.1

Scheduled Pinned Locked Moved General and Desktop
11 Posts 2 Posters 4.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #2

    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.

    (Z(:^

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #3

      I installed with the package .dmg

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #4

        @#ifndef MAINWINDOW_H
        #define MAINWINDOW_H

        #include <QMainWindow>

        namespace Ui {
        class MainWindow;
        }

        class MainWindow : public QMainWindow
        {
        Q_OBJECT

        public:
        explicit MainWindow(QWidget *parent = 0);
        ~MainWindow();

        private:
        Ui::MainWindow *ui;
        };

        #endif // MAINWINDOW_H
        @

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #5

          @#include "mainwindow.h"
          #include "ui_mainwindow.h"

          MainWindow::MainWindow(QWidget *parent) :
          QMainWindow(parent),
          ui(new Ui::MainWindow)
          {
          ui->setupUi(this);
          }

          MainWindow::~MainWindow()
          {
          delete ui;
          }
          @

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #6

            @#include <QtGui/QApplication>
            #include "mainwindow.h"

            int main(int argc, char *argv[])
            {
            QApplication a(argc, argv);
            MainWindow w;
            w.show();

            return a.exec&#40;&#41;;
            

            }
            @

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #7

              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.

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #8

                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....

                (Z(:^

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #9

                  Okay thank you very much, you have tips for me to compile MySQL

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #10

                    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.

                    (Z(:^

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #11

                      Thank

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved