lib file is empty on fresh install
Hello! I've spent a little while trying to install qwt and I've run into something strange.
I am running OSX mavericks, Qt 5.5, trying to install qwt 6.1.2
Every time I try and compile through Qt creator, I get a "framework not found qwt". I know I linked correctly,
following the format as set out by the Qt Documentation.
Code:
QMAKE_LFLAGS += -F/usr/local/qwt-6.1.1/lib/
LIBS += -framework qwt
The strange part is, when I go to usr/local/qwt-6.1.2/lib/ , it is empty. There was a .framework file there and now there is not.
Here is my .pro file
Code:
QT += core gui
QT += widgets
CONFIG += c++11
CONFIG += qwt
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = myAPP
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
INCLUDEPATH += /usr/local/qwt-6.1.1/src/
include(/usr/local/qwt-6.1.1/qwt.prf)
QMAKE_LFLAGS += -F/usr/local/qwt-6.1.1/lib/
LIBS += -framework qwt
Any help would be greatly appreciated.
Re: lib file is empty on fresh install
I'm building qwt-6.1.4, exactly the same issue as yours...
Re: lib file is empty on fresh install
I don't have a Mac myself and have no clue what this is about. But when you don't have CONFIG += silent in your project file you can check the commands being executed by your Makefile.
Note, that in the project File from the original posting 3 of the last 4 lines are pointless/wrong: when including the prf file ( CONFIG += qwt would do the same ) everything should be set up properly. Setting QMAKE_LFLAGS is pointless and setting the INCLUDEPATH to a directory, that does not exist in a proper install, might indicate, that the installation was not correct at all.
So please do a proper build of Qwt first. Check if QwtFramework gets enabled in qwtconfig.pri and do: qmake + make + make install. Then build your application including qwt.prf without adding any extra line beside this include.
Then check the commands processed by the Makefile, where things are going wrong.
Uwe
PS: note, that some Linux distros do not install the qmake feature files properly - if yours has been build somewhere else it is worth to check it too.