简体   繁体   English

如何在源洞察中打开交流项目?

[英]How to open a c project in source insight?

Someone recommends me to use SI to read the c source of PHP ,a great open source project. 有人建议我使用SI来阅读PHP的c源代码,这是一个很棒的开源项目。

I've already downloaded the source. 我已经下载了源代码。

But I don't know how to import it,can anyone help? 但我不知道如何导入它,任何人都可以帮忙吗?

Open the Project menu and create a new project (or push Alt+Shift+N). 打开“项目”菜单并创建一个新项目(或按Alt + Shift + N)。 In the upcoming dialog window, enter PHP as the project's name and select a folder to store the project data. 在即将出现的对话框窗口中,输入PHP作为项目名称,然后选择用于存储项目数据的文件夹。 Click OK to configure the project, eg activate storing function-local symbols in the project DB etc. Click OK again. 单击“确定”以配置项目,例如,激活在项目数据库中存储功能 - 本地符号等。再次单击“确定”。

The next dialog lets you actually import files to the project. 下一个对话框允许您实际将文件导入项目。 Select your source folder and click "Add Tree" to add the whole directory structure to the project. 选择源文件夹,然后单击“添加树”将整个目录结构添加到项目中。 Click Close. 单击关闭。 You can now start browsing the source code. 您现在可以开始浏览源代码了。

Make sure you configure SourceInsight so that it knows where your local library folders are, ie the C headers & runtime. 确保配置SourceInsight以便它知道本地库文件夹的位置,即C头和运行时。 This is usually done when installing SourceInsight. 这通常在安装SourceInsight时完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM