Details Ticket 5151


Comment | Reply | Take | Open


Serial Number 5151
Subject NVIZ doesn't build in 6.2.0b3 in opengl=aqua
Area grass6
Queue grass
Requestors lorenzo.moretti@bologna.enea.it
Owner none
Status resolved
Last User Contact Wed Sep 20 15:12:03 2006 (2 yr ago)
Current Priority 70
Final Priority 70
Due No date assigned
Last Action Wed Sep 20 15:12:03 2006 (2 yr ago)
Created Tue Sep 19 16:00:14 2006 (2 yr ago)

Transaction History Ticket 5151


Tue, Sep 19 2006 16:00:14    Request created by guest  
Subject: NVIZ doesn't build in 6.2.0b3 in opengl=aqua 

Platform: Mac OSX
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 6.2.0beta3

Error in nviz grass 6.2b3 in OS X environment (not X11) --with-opengl=aqua

....
        include   -I/usr/local/grasslib/include     -DPACKAGE=\""grassmods"\"
-I/src/
grass-6.2.0beta3/dist.powerpc-apple-darwin8.7.0/include \
        -o OBJ.powerpc-apple-darwin8.7.0/do_zoom.o -c do_zoom.c
do_zoom.c: In function 'Destroy_OS_Ctx':
do_zoom.c:395: error: 'dpy' undeclared (first use in this function)
do_zoom.c:395: error: (Each undeclared identifier is reported only once
do_zoom.c:395: error: for each function it appears in.)
make[3]: *** [OBJ.powerpc-apple-darwin8.7.0/do_zoom.o] Error 1
make[2]: *** [nvwish] Error 2

The error is only in NVIZ outside X11 environment.

These rows (file "visualization/nviz/src/do_zoom.c" rows 393-399) have problems
in opengl=aqua

-------
#endif
#endif /* OPENGL_X11 */
    XCloseDisplay(dpy);
    dpy = NULL;

    return (1);
}
-------

Tue, Sep 19 2006 17:03:01    Status changed to resolved by hcho  
Tue, Sep 19 2006 17:03:26    Comments added by hcho  
Fixed in CVS
Tue, Sep 19 2006 19:11:26    Mail sent by glynn@gclements.plus.com  
Return-Path <glynn@gclements.plus.com>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn@gclements.plus.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <17680.9400.281813.471238@cerise.gclements.plus.com>
Date Tue, 19 Sep 2006 18:11:20 +0100
To Request Tracker <grass-bugs@intevation.de>
Cc grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #5151] (grass) NVIZ doesn't build in 6.2.0b3 in opengl=aqua
In-Reply-To <20060919140015.079C91005CE@lists.intevation.de>
References <20060919140015.079C91005CE@lists.intevation.de>
X-Mailer VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
X-Spam-Level
Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=5151
> -------------------------------------------------------------------------
> 
> Subject: NVIZ doesn't build in 6.2.0b3 in opengl=aqua 
> 
> Platform: Mac OSX
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> GRASS Version: 6.2.0beta3
> 
> Error in nviz grass 6.2b3 in OS X environment (not X11) --with-opengl=aqua
> 
> ....
>         include   -I/usr/local/grasslib/include     -DPACKAGE=\""grassmods"\"
-I/src/
> grass-6.2.0beta3/dist.powerpc-apple-darwin8.7.0/include \
>         -o OBJ.powerpc-apple-darwin8.7.0/do_zoom.o -c do_zoom.c
> do_zoom.c: In function 'Destroy_OS_Ctx':
> do_zoom.c:395: error: 'dpy' undeclared (first use in this function)
> do_zoom.c:395: error: (Each undeclared identifier is reported only once
> do_zoom.c:395: error: for each function it appears in.)
> make[3]: *** [OBJ.powerpc-apple-darwin8.7.0/do_zoom.o] Error 1
> make[2]: *** [nvwish] Error 2
> 
> The error is only in NVIZ outside X11 environment.
> 
> These rows (file "visualization/nviz/src/do_zoom.c" rows 393-399) have problems
in opengl=aqua
> 
> -------
> #endif
> #endif /* OPENGL_X11 */
>     XCloseDisplay(dpy);
>     dpy = NULL;
> 
>     return (1);
> }
> -------

This has since been fixed in CVS; Destroy_OS_Ctx() currently looks
like this:

int Destroy_OS_Ctx(void)
{
#ifdef OPENGL_X11
#ifdef HAVE_PBUFFERS
    if (pbuffer)
    {
	fprintf(stderr, "GLX -- destroy pbuffer\n");
	glXMakeCurrent(dpy, None, NULL);
	glXDestroyPbuffer(dpy, pbuffer);
	pbuffer = None;
	GS_set_swap_func(swap_togl);
	show_togl_win();
	return (1);
    }
#endif
#ifdef HAVE_PIXMAPS
    if (glxpixmap)
    {
	fprintf(stderr, "Destroy Pixmap and GLXPixmap\n");
	glXMakeCurrent(dpy, None, NULL);
	glXDestroyGLXPixmap(dpy, glxpixmap);
	glxpixmap = None;
	XFreePixmap(dpy, pixmap);
	pixmap = None;
	GS_set_swap_func(swap_togl);
	show_togl_win();
	return (1);
    }

#endif
    XCloseDisplay(dpy);
    dpy = NULL;
#endif /* OPENGL_X11 */

    return (1);
}

-- 
Glynn Clements <glynn@gclements.plus.com>


Tue, Sep 19 2006 19:11:26    Status changed to open by _rt_system  
Wed, Sep 20 2006 10:59:02    Status changed to resolved by msieczka  
Wed, Sep 20 2006 15:12:03    Mail sent by guest  
NVIZ now is compiled.

THANKS !

Lorenzo
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request