1. 安装wine:https://tipsonubuntu.com/2019/02/01/install-wine-4-0-ubuntu-18-10-16-04-14-04/

1)enable 32 bit architecture:

sudo dpkg –add-architecture i386

2)download and add the repository key

wget -nc https://dl.winehq.org/wine-builds/winehq.key

sudo apt-key add winehq.key

3)add the repository, for ubuntu 18.04

sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main’

For other releases, replace bionic in the code with:

cosmic for Ubuntu 18.10.
xenial for Ubuntu 16.04, and Linux Mint 18.x.
trusty for Ubuntu 14.04.

4)check system package cache and install wine

sudo apt-get update

sudo apt-get install –install-recommends winehq-stable

5) generate configuration

winecfg

6) uninstall,卸载的时候用

sudo apt-get remove  wine-stable winehq-stable

dpkg -l |grep -i wine 查看安装的wine相关的包

2. 安装sourceinsight,破解:https://www.jianshu.com/p/a4735cf9f334

1)官网下载安装包,右键setup.exe文件,用wine打开,安装。

2)下载wxHexEditor,16进制编辑器

sudo apt-get install wxhexeditor

wxHexEditor sourceinsight4.exe

搜索c800 0000 742a 83bc 2408,修改第二段中的74为eb。

3)修改si4.lic中的Expiration时间

cd .wine/drive_c

find . -name “si4.lic”

去指定位置修改。

ubuntu 安装wine和sourceinsight,及souceinsight导入源代码-冯金伟博客园

3. sourceinsight导入源代码:https://blog.csdn.net/MyLinChi/article/details/78459373

在./.wine/drive_c里新建一个mydata文件夹,存放sourceinsight项目,并将源代码复制到该文件夹中;

打开sourceinsight,new一个新的project,新建完成后,点击project->Add and Remove Project Files,选择源文件的文件夹(./.wine/drive_c/mydata/xxx)进行导入。