On Wed, Feb 23, 2011 at 5:17 PM, Paul Smith <[email protected]> wrote:
>> Thanks, Brian, but I am not being successful. I am now attaching the
>> makefile that comes with Ipopt.
>
> I am doing some progress:
>
> ----------------------------------------------
> $ qmake-qt4 test_ipopt.pro
> Package ipopt was not found in the pkg-config search path.
> Perhaps you should add the directory containing `ipopt.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'ipopt' found
> ----------------------------------------------
>
> The file `ipopt.pc' is in directory:
>
> /home/psmith/Desktop/Ipopt-3.9.2/lib/pkgconfig
>
> Any ideas?
My pro file now is as follows:
--------------------------------------------------------
QT -= core \
gui
TARGET = teste
CONFIG += console
CONFIG -= app_bundle
CONFIG += static
CONFIG += O3
CONFIG += link_pkgconfig
PKGCONFIG += ipopt
PKGCONFIG += coinasl
PKGCONFIG += coinhsl
PKGCONFIG += coinmetis
PKGCONFIG += ipoptamplinterface
PKGCONFIG += coinblas
PKGCONFIG += coinlapack
PKGCONFIG += coinmumps
TEMPLATE = app
INCLUDEPATH += /home/psmith/Desktop/Ipopt-3.9.2/include/coin
INCLUDEPATH += /home/psmith/Desktop/Ipopt-3.9.2/include/coin/ThirdParty
INCLUDEPATH += /home/psmith/Desktop/Ipopt-3.9.2/lib/pkgconfig
SOURCES += \
main.cpp \
hs071_nlp.cpp
LIBS += /home/psmith/Desktop/Ipopt-3.9.2/lib/coin
LIBS += /home/psmith/Desktop/Ipopt-3.9.2/lib/coin/ThirdParty
QMAKE_CXXFLAGS += -O3 -pipe -DNDEBUG -pedantic-errors -Wimplicit
-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith \
-Wwrite-strings -Wconversion -Wno-unknown-pragmas
QMAKE_LFLAGS += -Wl,--rpath
-Wl,/home/psmith/Desktop/Ipopt-3.9.2/lib/coin -Wl,--rpath
-Wl,/home/psmith/Desktop/Ipopt-3.9.2/lib/coin/ThirdParty
HEADERS += \
hs071_nlp.h
--------------------------------------------------------
Paul
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator