PDA

View Full Version : Help with wwwidgets on Mac OSX Lion



prchakal
13th April 2012, 20:32
Hi

How i can use the library in Qt with MacOSX Lion?

My steps:

1 - compile:

qmake
sudo make install

2- sample app:

#include <QtGui/QApplication>
#include "mainwindow.h"
#include <qwwrichtextbutton/QwwRichTextButton>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QwwRichTextButton b;
b.setText("<B>Hello</B> <font color='red'>world</font>");
b.show();
MainWindow w;
w.show();
return a.exec();
}

3 - my .pro file:

QT += core gui
CONFIG += wwwidgets4
TARGET = teste-ui
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui

4 - when build i got error:

:-1: error: symbol(s) not found for architecture x86_64
:-1: error: collect2: ld returned 1 exit status

5 - list of libraries in qt sdk path:

> cd ~/QtSDK/Desktop/Qt/4.8.1/gcc/lib/wwwidgets4.framework/
> ls
Contents Versions wwwidgets4 wwwidgets4_debug

Can anyone help me?