[Qt-interest] Help: How to add additional libs to makefile

Chandru... sekarwagmare at gmail.com
Fri May 22 11:18:03 CEST 2009


if ur library is libacci.a

just qmake your .pro file ..

before giving make
in *Makefile  add -lcci at the end *
    * LIBS          = $(SUBLIBS)  -L/usr/local/Trolltech/Qt-4.4.3/lib
-lQtGui -L/usr/local/Trolltech/Qt-4.4.3/lib -L/usr/X11R6/lib -pthread -lpng
-lSM -lICE -pthread -pthread -lXi -lXrender -lXrandr -lfreetype -lfontconfig
-lXext -lX11 -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl
-lpthread* -*lacci

enough ...
*
On Fri, May 22, 2009 at 2:43 PM, Joe Liu <passer.by007gg at gmail.com> wrote:

> Hi,
>
> I started to use Qt4.3.4 recently under Linux Fedora 9 platform.
>
> I can compile simple Qt applications by using qmake to generate a project
> file and then the Makefile.
>
> However, the Makefile seems quite complex for me.
>
> So,
>
> 1) What if I want to add additional lib to my project? how can i do that?
> Shall I write another makefile manually and include the qmake-generated one?
>
> 2) How does qmake work with other makefile tools, like cmake? Will qmake
> handle everything for me?
>
> I tried to google these questions, but received no valuable information.
>
> Thanks. Your help will be appreciated~~
>
>
> Joe
> VisGroup,
> Peking Univ. China
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090522/d2dcad59/attachment.html 


More information about the Qt-interest-old mailing list