YosysHQ / apicula

Project Apicula 🐝: bitstream documentation for Gowin FPGAs
MIT License
487 stars 67 forks source link

MacOS, Qt5/QtOpenGL issue, no such file #268

Open ReubenkThomas opened 2 months ago

ReubenkThomas commented 2 months ago

I tried running make -f Makefile.himbaechel in the /examples/himbaechel/ directory, which produced the following error at the end. Any suggestions on this? I'm running this on MacOS with qt5 installed, but perhaps there's something incorrect that I did for install.

2.32. Executing JSON backend.

End of script. Logfile hash: aa017d52bd, CPU: user 0.34s system 0.02s
Yosys 0.43+22 (git sha1 118b2829d, c++ 14.0.3 -fPIC -Os)
Time spent: 30% 20x read_verilog (0 sec), 10% 4x proc_dff (0 sec), ...
nextpnr-himbaechel --json blinky-tangnano20k-synth.json --write blinky-tangnano20k.json --device GW2AR-LV18QN88C8/I7 --vopt family=GW2A-18C --vopt cst=tangnano20k.cst
dyld[29903]: Library not loaded: @rpath/QtOpenGL.framework/Versions/5/QtOpenGL
  Referenced from: <0E202A22-1C50-3D5A-9BE2-4DB14C46E944> /usr/local/bin/nextpnr-himbaechel
  Reason: tried: '/Library/Frameworks/QtOpenGL.framework/Versions/5/QtOpenGL' (no such file), '/System/Library/Frameworks/QtOpenGL.framework/Versions/5/QtOpenGL' (no such file, not in dyld cache)
make: *** [blinky-tangnano20k.json] Abort trap: 6
rm blinky-tangnano20k-synth.json
pepijndevos commented 2 months ago

You need to install Qt OpenGL or build nextpnr without GUI.

ReubenkThomas commented 2 months ago

Do you by chance know how to uninstall the current build of nextpnr (with GUI) so that i can rebuild it without GUI? There doesn't seem to be a command for make uninstall

pepijndevos commented 2 months ago

There isn't. You just make install the new one on top.