Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Apr 1998 23:26:05 +0200
From:      Gary Jennejohn <garyj@peedub.muc.de>
To:        tarkhil@asteroid.svib.ru
Cc:        hackers@FreeBSD.ORG, mozilla@FreeBSD.ORG
Subject:   Re: Building current qt with shared library 
Message-ID:  <199804162126.XAA00706@peedub.muc.de>
In-Reply-To: Your message of "Thu, 16 Apr 1998 23:13:50 %2B0400." <199804161913.XAA16353@minas-tirith.pol.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
Alex Povolotsky writes:
>Hello!
>
>Did anyone build current snapshot of QT on current FreeBSD? It doesn't build 
>out-of-the-box, and I don't know internals of dynamic lincing enough :-(
>

I made it a few days ago. Try using this freebsd-gcc-shared instead of the
one in the distribution.

# Compiling
SYSCONF_CC		= c++ -pipe

# Compiling with support libraries
SYSCONF_CFLAGS_X11	= -I/usr/X11R6/include
SYSCONF_CFLAGS_QT	= -I$(QTDIR)/include -I/usr/X11R6/include
SYSCONF_CFLAGS_OPENGL	= -I/usr/X11R6/include

# Linking with support libraries
# X11
SYSCONF_LFLAGS_X11	= -L/usr/X11R6/lib
SYSCONF_LIBS_X11	= -lX11
# Qt, Qt+OpenGL
SYSCONF_LFLAGS_QT	= -L$(QTDIR)/lib
SYSCONF_LIBS_QT		= -lqt
SYSCONF_LIBS_QT_OPENGL	= -lqgl
# OpenGL
SYSCONF_LFLAGS_OPENGL	= -L/usr/X11R6/lib
SYSCONF_LIBS_OPENGL	= -lMesaGL -lMesaGLU -lXmu -lXext -lm

# Linking applications
SYSCONF_LINK		= gcc
SYSCONF_LFLAGS		= 
SYSCONF_LIBS		= 

# Meta-object compiler
SYSCONF_MOC		= moc
# Compiling application source
SYSCONF_CFLAGS		= -O2 -fno-strength-reduce
# Compiling library source
SYSCONF_CFLAGS_LIB	= -O2 -fno-strength-reduce -fPIC
# Compiling shared-object source
SYSCONF_CFLAGS_SHOBJ	= -O2 -fno-strength-reduce -fPIC
# Linking libraries
#   - Build the $(TARGET) library, eg. lib$(TARGET).a
#   - Place target in $(DESTDIR) - which has a trailing /
#   - May need to incorporate $(VER_MAJ) and $(VER_MIN) for shared libraries.
#
SYSCONF_LINK_SHLIB	= ld -Bshareable
SYSCONF_LINK_TARGET	= lib$(TARGET).so.$(VER_MAJ).$(VER_MIN)

SYSCONF_LINK_LIB	=  $(SYSCONF_LINK_SHLIB) $(LFLAGS) -o $(SYSCONF_LINK_TARGET) `lorder /usr/lib/c++rt0.o $(OBJECTS) $(OBJMOC) | 
tsort` $(LIBS);  \
				 mv $(SYSCONF_LINK_TARGET) $(DESTDIR); \
				 cd $(DESTDIR); \
				 rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ); \
				 ln -s $(SYSCONF_LINK_TARGET) lib$(TARGET).so; \
				 ln -s $(SYSCONF_LINK_TARGET) lib$(TARGET).so.$(VER_MAJ)

---
Gary Jennejohn
Home - garyj@muc.de
Work - garyj@fkr.dec.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804162126.XAA00706>