Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized device type #150

Open
Toexplore opened this issue Jul 3, 2021 · 1 comment
Open

Unrecognized device type #150

Toexplore opened this issue Jul 3, 2021 · 1 comment

Comments

@Toexplore
Copy link

Toexplore commented Jul 3, 2021

Hi
I have installed PRESTO, but the following error always occur (exploredat & explorefft)

%PGPLOT, Unrecognized device type
%PGPLOT, Invalid device specification: /XWIN

PS: No matter what the value of $PGPLOT_DEV is, the error is the same

The following code( in exploredat.c & explorefft.c) is confusing to me. If we fail to open /XWIN, then exit without opening other devices which specified in the $env files?

 /* Prep the XWIN device for PGPLOT */

    xid = cpgopen("/XWIN");
    if (xid <= 0) {
        free_datapart(lodp);
#ifdef USEMMAP
        close(mmap_file);
#else
        fclose(datfile);
#endif
        free(dv);
        exit(EXIT_FAILURE);
    }

There is also a similar issue:#48

@scottransom
Copy link
Owner

So as mentioned at the end of issue #48, this seems like your PGPLOT library isn't compiled with x-windows support. That is required for exporedat and explorefft since those are interactive programs. So the two things to check are: is the PGPLOT_DIR environment variable pointing to the directory where, for example grfont.dat and rgb.txt can be found? And second, especially if you compiled PGPLOT on your own, did you enable the XWIN driver in the configuration file? I'd highly recommend that you install a pre-built package for PGPLOT, as compiling it properly can be tricky!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants