Date: Tue, 4 Mar 2003 11:49:51 +0100 From: Christoph Moench-Tegeder <cmt@rz.uni-karlsruhe.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/48913: vtk build error with nvidia-driver installed Message-ID: <20030304104946.GA1100@rz-ewok.rz.uni-karlsruhe.de>
next in thread | raw e-mail | index | archive | help
>Number: 48913 >Category: ports >Synopsis: vtk does not compile with nvidia-drivers installed >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 04 02:50:07 PST 2003 >Closed-Date: >Last-Modified: >Originator: Christoph Moench-Tegeder >Release: FreeBSD 4.8-PRERELEASE i386 >Organization: <organization of PR author (multiple lines)> >Environment: System: FreeBSD elch.hun23.local 4.8-PRERELEASE FreeBSD 4.8-PRERELEASE #2: Mon Feb 24 21:56:52 CET 2003 root@elch.hun23.local:/usr/obj/usr/src/sys/CMT i386 >Description: The Makefile for match/vtk ($FreeBSD: ports/math/vtk/Makefile,v 1.20 2003/02/20 18:42:24 knu Exp $) configures vtk with --with-mesa. If x11/nvidia-drivers is installed, vtk does not compile/link because of unresolved symbols in libOSMesa. >How-To-Repeat: "make install" in match/vtk when x11/nvidia-driver is installed. >Fix: Configuring vtk with --with-opengl instead of --with-mesa solved the problem for me. Patch for the Makefile is included below. --- Makefile.orig Tue Mar 4 11:13:10 2003 +++ Makefile Tue Mar 4 11:29:25 2003 @@ -18,12 +18,22 @@ LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83 USE_REINPLACE= yes -USE_MESA= yes WRKSRC= ${WRKDIR}/vtk${PORTVERSION} INSTALLS_SHLIB= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-mesa --with-shared --with-tcl --with-bsdmake +CONFIGURE_ARGS= --with-shared --with-tcl --with-bsdmake CONFIGURE_ARGS+= --with-contrib --with-tkwidget + +.if exists(/usr/X11R6/lib/libXvMCNVIDIA.a) +USE_OPENGL= yes +.endif + +.if defined(USE_OPENGL) +CONFIGURE_ARGS+= --with-opengl +.else +USE_MESA= yes +CONFIGURE_ARGS+= --with-mesa +.endif # Support for Python is compiled in by default. .if !defined(WITHOUT_PYTHON) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030304104946.GA1100>