[bt-devel] qt static errors

Brook Humphrey bt-devel@crosswire.org
Tue, 22 May 2001 20:43:19 -0700


On Tuesday 22 May 2001 11:16 am, you wrote:
> > Ok, this is the current qt line in the makefile.
> > LIB_QT = -lqt $(LIBPNG) $(LIBJPEG) -lXext $(LIB_X11) $(LIBSM)
> >
> > I change it to this with a patch
> > LIB_QT = -static -lqt $(LIBPNG) $(LIBJPEG) -static -lXext $(LIB_X11)
> > $(LIBSM)
>
> Shouldn't it rather be
>
> LIB_QT = -Wl,-Bstatic -lqt $(LIBPNG) $(LIBJPEG) -Wl,-Bdynamic -lXext
> $(LIB_X11) $(LIBSM)
> ?

Thanks I'll try this a I've run out of any other options.

Also I will say that a simple -static in front of the kde libs does compile 
kde static.


>
> As I have understood the -Wl argument to g++ will pass the argument
> following to the linker. See man gcc and man ld.
>
> X should be linked dynamically, right?
> Qt should not be build with X statically linked in, too.
> I'm just guessing.  ;)
>
> Martin

-- 

-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-
                                       Brook Humphrey		
        Mobile PC Medic, 420 1st, Cheney, WA 99004, 509-235-9107        
  http://www.webmedic.net, bah@webmedic.net, bah@linux-mandrake.com   
-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-
  My posting or sending this is NOT an invitation for spammers to say that
                          I've asked to be put on a mailing list.
               You are not permitted to send unsolicited bulk email 
                             (commonly referred to as spam) 
            to this address, or to sell this address to people who do. 
                      By extracting the address from this page, 
     you agree to pay a fee of $10,000.00 per UBE message you send 
              and $100,000.00 per instance you sold this address.
 
                     _______________-~-_______________
                                 Holliness unto the Lord
                       He must increase but I must decrease.
                          *****************-~-*****************