Hi Tim <@U016EM8L91B> , just a quick question rega...
# sky130-pv-workshop
c
Hi Tim @Tim Edwards , just a quick question regarding launching magic with cairo graphics (magic -d XR). I encountered the issue where the magic and command window just pop up and disappear immediately. Any idea on this (I am running on my local PC)? I am running Ubuntu 22.04 and my magic is with version 8.3.326. Thanks a lot!
t
Sounds like a segfault. Does it only occur when you do
-d XR
? If you don't use a
-d
option, will it come up and run with X11 graphics?
Actually, less likely a segfault and more likely the X11 server throwing a fatal error.
Hint: Run with the
-noconsole
option so that output goes directly to the terminal and doesn't get obliterated when the application closes.
c
Hi Tim, yes when I just do normal
magic
everything works fine. As a matter of fact, it looks like with magic -d only the following display types are available for this version of magic (which makes me wonder the workshop video with
magic -d XR
is outdated?):
These display types are available in this version of Magic:
XWIND
X11
8BIT
16BIT
24BIT
OPEN_GL
OGL
OPENGL
NULL
Use '-d NULL' if you don't need graphics.
t
Looks like magic wasn't compiled with cairo graphics support.
Lack of cairo support may also mean that you get a failure if you try to run with OpenGL. Many video cards do not support off-screen rendering. One workaround is to let cairo do the off-screen rendering, even in the OpenGL mode. (Compile-time configuration option
--enable-cairo-offscreen
)
Try installing the
libcairo2-dev
(or maybe
libcairo-devel
for Ubuntu variants?) package, do a
make clean
in the magic source, and reconfigure/recompile.
👍 1
c
Thats exactly what I just did and yes now it works with cairo! Thanks!