QT 学习笔记

  1. The Q_OBJECT macro at the beginning of the class definition is necessary for all classes that define signals or slots.
  2. Classes that use the Q_OBJECT macro must have moc run on them. This isn’t a problem because qmake automatically adds the necessary rules to the makefile. But if you forget to regenerate your makefile using qmake and moc isn’t run, the linker will complain that some functions are declared but not implemented.



<Location /XXX>
  AuthType Basic
  AuthName "AUTH NAME"
  AuthUserFile /etc/auth-file
  Require valid-user

auth-file可以通过htpasswd生成, 也可以通过这个命令增加用户:

htpasswd -cm /etc/svn-auth-file gene

htpasswd -m /etc/svn-auth-file pgj


<Location /svn>
  DAV svn
  SVNPath /var/svn
  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile /etc/svn-auth-file
  Require valid-user

启动apache出错 undefined symbol:sqlite3_open_v2

# service httpd start
Starting httpd: httpd: Syntax error on line 206 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/httpd/modules/mod_dav_svn.so into server: /usr/local/svn/lib/libsvn_subr-1.so.0: undefined symbol: sqlite3_open_v2


在网上找好久没找到答案,后来把 sqlite lib的路径加入到ld.so.config就行了,

# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf





# service httpd start
Starting httpd:                                            [  OK  ]