freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] Compilation errors


From: Bérenger DALLE-CORT
Subject: [ft-devel] Compilation errors
Date: Thu, 18 Apr 2013 13:39:56 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

Hello,

First, excuse me if my question is a little bit idiot. It can be possible because i'm a beginner in C++ application development.
I try to use FreeType library on a qt project. I have several errors on compilation with the code bellow.
Could you help me ? an advise, an article to read...

Thanks,

Bérenger

The .pro file:

#-------------------------------------------------
#
# Project created by QtCreator 2013-04-17T21:48:53
#
#-------------------------------------------------
QT       += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = AtlasFontMaker2
TEMPLATE = app
SOURCES += main.cpp\
        mainwindow.cpp
HEADERS  += mainwindow.h
FORMS    += mainwindow.ui
INCLUDEPATH +=    ./freeType


The main c++ file:

#include "mainwindow.h"
#include <QApplication>
#include "ft2build.h"
#include <iostream>
#include FT_FREETYPE_H
FT_Library library;
using namespace std;
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    FT_Init_FreeType( &library );
    return a.exec();
}



Errors in compilation:

I../../../QtSDK/Desktop/Qt/4.8.1/gcc/lib/QtCore.framework/Versions/4/Headers -I../../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore -I../../../QtSDK/Desktop/Qt/4.8.1/gcc/lib/QtGui.framework/Versions/4/Headers -I../../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui -I../../../QtSDK/Desktop/Qt/4.8.1/gcc/include -I../AtlasFontMaker2/freeType -I. -I. -I../AtlasFontMaker2 -I. -F/Users/berengerdalle-cort/QtSDK/Desktop/Qt/4.8.1/gcc/lib -o main.o ../AtlasFontMaker2/main.cpp

In file included from ../../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qnamespace.h:45,

from ../../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qobjectdefs.h:45,

from ../../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qwindowdefs.h:45,

from ../../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qwidget.h:45,

from ../../../QtSDK/Desktop/Qt/4.8.1/gcc/lib/QtGui.framework/Versions/4/Headers/qmainwindow.h:45,

from ../../../QtSDK/Desktop/Qt/4.8.1/gcc/lib/QtGui.framework/Versions/4/Headers/QMainWindow:1,

from ../AtlasFontMaker2/mainwindow.h:4,

from ../AtlasFontMaker2/main.cpp:1:

../../../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 AtlasFontMaker2.app/Contents/MacOS/AtlasFontMaker2 main.o mainwindow.o moc_mainwindow.o -F/Users/berengerdalle-cort/QtSDK/Desktop/Qt/4.8.1/gcc/lib -L/Users/berengerdalle-cort/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'

Undefined symbols for architecture x86_64:

"_FT_Init_FreeType", referenced from:

_main in main.o

ld: symbol(s) not found for architecture x86_64

collect2: ld returned 1 exit status

make: *** [AtlasFontMaker2.app/Contents/MacOS/AtlasFontMaker2] Error 1

make: Leaving directory `/Users/berengerdalle-cort/Desktop/TRAVAIL/AtlasFontMaker2-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Debug'

13:36:54: Le processus "/usr/bin/make" s'est terminé avec le code 2.

Erreur à la compilation du projet AtlasFontMaker2 (cible : Desktop)

Lors de l'exécution de l'étape "Make"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]