从其它平台迁移而来
过了个十一,原本好好的电脑,突然鼠标不能用了,本着重启能解决80%的问题
的原则重启了下,结果就杯具
了,直接就蓝屏了,怎么折腾都进不了系统,BUG 10
果然是BUG 10
,绝对名不虚传!
无奈,只剩下重装系统这一条路了,装完系统之后还要装一堆软件,还要把软件配置成自己的习惯,还有其它一些细节工作……要把这些都做完才能大致恢复到原先的样子,想想就各种不爽。
虽然已经尽可能的使用免安装/重装
的软件了,但还是避免不了有一些软件必须要重装才能使用的情况,唉~
其中最令人头疼的就是开发环境了,几乎绝大部分都要重装,Lazarus
就是其中之一,先前已经尝试过了,离成功只差一步了,这次终于搞定了,记录下来。
免重装#
-
正常安装Lazarus
-
首次启动Lazarus
会弹出初始配置界面,关闭
-
打开Lazarus
的根安装目录,新建一个config
文件夹
-
打开C:\Users\xxx\AppData\Local\lazarus
文件夹(xxx
为用户名),复制里面所有内容到config
-
找到Lazarus
的快捷方式,右键属性,在目标
里原有内容后面添加 --pcp=.\config
(注意前面有空格),确定
-
把修改好的快捷方式复制到Lazarus
的根安装目录下,供以后使用
-
删除C:\Users\xxx\AppData\Local\lazarus
文件夹
-
使用刚才的快捷方式启动Lazarus
,进行个性化设置、安装组件等
-
以后重装系统了直接使用快捷方式启动Lazarus
即可
-
如果安装的组件全部都在Lazarus
的安装目录下,整个Lazarus
的安装目录即为一个便携式的IDE
了
-
为避免如果使用过程中出现莫名其妙的现象,建议把Lazarus
的安装目录下的ssleay32.dll
、libeay32.dll
、Qt5Pas1.dll
和Qt4Pas5.dll
复制到C:\Windows\System32
或C:\Windows\SysWOW64
下
本文参考了https://blog.csdn.net/love3s/article/details/7450339
在命令行进入Lazarus
的根安装目录,运行lazarus.exe -?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
lazarus [options] <project-filename>
IDE Options:
--help or -? this help message
-v or --version show version and exit
--quiet be less verbose, can be given multiple times
--verbose be more verbose, can be given multiple times
--setup
Show setup dialog for most important settings
--primary-config-path= <path>
or --pcp= <path>
primary config directory where Lazarus stores its
config files. Default is C:\Users\Administrator\AppData\Local\lazarus
--secondary-config-path= <path>
or --scp= <path>
secondary config directory where Lazarus searches
for config template files. Default is D:\lazarus
--debug-log= <file>
file where debug output is written to. If it is not
specified, debug output is written to the console.
--debug-enable= [[-]OptName][,[-]OptName][...]
Enable or Disable groups of debug output. Valid
Options are:
DBG_VERBOSE
DBG_WARNINGS
DBG_STATE
DBG_EVENTS
DBG_STATE_EVENT
DBG_DATA_MONITORS
DBG_DISASSEMBLER
DBG_LOCATION_INFO
SYNMOUSEEVENTS
SYNSYSTEMWIDTHCHARS
SRCED_LOCK
SRCED_OPEN
SRCED_CLOSE
SRCED_PAGES
DBG_CMD_ECHO
DBG_CMD_ECHO_FULL
DBGMI_TYPE_INFO
DBGMI_TIMEOUT_DEBUG
DBG_THREAD_AND_FRAME
DBGMI_QUEUE_DEBUG
DBGMI_STRUCT_PARSER
FPDBG_DWARF_ERRORS
FPDBG_DWARF_WARNINGS
FPDBG_DWARF_VERBOSE
FPDBG_DWARF_VERBOSE_LOAD
FPDBG_DWARF_SEARCH
FPDBG_DWARF_DATA_WARNINGS
DBG_ERRORS
--no-splash-screen
or --nsc
Do not show splash screen
--force-new-instance
Do not check if another IDE instance is already
running
--skip-last-project
Skip loading last project
--language=
Override language. For example --language=de. For
possible values see files in the languages directory.
--lazarusdir=<directory>
directory to be used as a basedirectory
LCL Interface specific options:
|
总感觉好像还有内容,但我这里始终出不来……