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

MacOS 经验分享 #5

Open
Yufeng98 opened this issue Jul 17, 2021 · 1 comment
Open

MacOS 经验分享 #5

Yufeng98 opened this issue Jul 17, 2021 · 1 comment
Labels
#GTK_Wave GTK Wave 相关问题 #Verilator Verilator 相关问题 知识分享 该issue的主题是信息、知识分享

Comments

@Yufeng98
Copy link

Fix Issues on MacOS

Verilator

Fail to compile from source code in GitHub Repositary. Use brew install verilator to install 4.200 version, slightly behind the latest 4.204 version, but also works well.

GTKWave

Avoid Security Check

Add --no-quarantine to avoid security protection on MacOS. Use brew install gtkwave --no-quarantine to install GTKWave.

Strange Error

/usr/local/bin/gtkwave: line 122: test: too many arguments
/usr/local/bin/gtkwave: line 149: test: ==: unary operator expected
find: /share/locale: No such file or directory
/usr/local/bin/gtkwave: line 215: /usr/local/bin/../../../Contents/Resources/bin/: No such file or directory
/usr/local/bin/gtkwave: line 215: exec: /usr/local/bin/../../../Contents/Resources/bin/: cannot execute: No such file or directory

GTKWave on macOS gives a good solution.

TL;DR

Use Perl’s package manager to install Switch and run binary with full path.

cpan install Switch
perl -V:'installsitelib'
/Applications/gtkwave.app/Contents/Resources/bin/gtkwave

Adjust Build Script

In build.sh, some commands only works in Linux.

  1. There is no -f option with readlink in MacOS. Use SHELL_PATH=$(pwd) to show current directory.

  2. There is no hostnamectl command in MacOX. Use hostname instead.

  3. Substitute gtkwave with full path /Applications/gtkwave.app/Contents/Resources/bin/gtkwave

@zhangyx1998 zhangyx1998 added #GTK_Wave GTK Wave 相关问题 #Verilator Verilator 相关问题 交流讨论 该issue的主题是对某个话题进行讨论交流 知识分享 该issue的主题是信息、知识分享 and removed 交流讨论 该issue的主题是对某个话题进行讨论交流 labels Jul 19, 2021
@hamster-shy
Copy link

hamster-shy commented Nov 4, 2024

关于macos15的分享:

  • nemu找不到.so文件:关注macOS上的动态库格式。
  • homebrew的gtkwave弃用:去该代码仓库的相关issues的找找。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#GTK_Wave GTK Wave 相关问题 #Verilator Verilator 相关问题 知识分享 该issue的主题是信息、知识分享
Projects
None yet
Development

No branches or pull requests

3 participants