Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add qt and pyqt compile instructions

git-svn-id: http://projects.conceptive.be/camelot/svn/trunk@1524 8325946a-aa55-0410-8760-f0bc8c33efaa
  • Loading branch information...
commit 39f4153a7c44cf05cf4f3b02ca274d78f17254a5 1 parent 67ce76d
erikj authored
View
BIN  doc/sphinx/source/_static/schema.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
55 doc/sphinx/source/advanced/debug.rst
@@ -0,0 +1,55 @@
+==========================
+Debugging Camelot and PyQt
+==========================
+
+Buiding Qt
+==========
+
+Configure::
+
+ ./configure -prefix /home/tw55413/temp/nokia/qt_install/ -debug -opensource
+
+Standard make::
+
+ make
+ make install
+
+Building SIP
+============
+
+Prepare the build::
+
+ python2.6 build.py prepare
+
+Configure the debugging symbols::
+
+ python2.6 configure.py -b /home/tw55413/temp/riverbank/sip_install/ -d /home/tw55413/temp/riverbank/sip_install/ -e /home/tw55413/temp/riverbank/sip_install/ -v /home/tw55413/temp/riverbank/sip_install/ --debug
+
+Standard make::
+
+ make
+ make install
+
+Building PyQt
+=============
+
+Configure::
+
+ export PYTHONPATH=../sip_install/
+ python configure.py --debug --trace -b /home/tw55413/temp/riverbank/pyqt_install/ -d /home/tw55413/temp/riverbank/pyqt_install/ -p /home/tw55413/temp/riverbank/pyqt_install -q /home/tw55413/temp/nokia/qt_install/bin/qmake --confirm-license
+ make
+ make install
+
+Using the libraries
+===================
+
+set the environment variables::
+
+ export LD_LIBRARY_PATH=/home/tw55413/temp/nokia/qt_install/lib/
+ export PYTHONPATH=.:/home/tw55413/temp/riverbank/sip_install/:/home/tw55413/temp/riverbank/pyqt_install/
+
+launch the python application::
+
+ python main.py
+
+Then start Qt Creator, choose debug, and attach to the running process
View
1  doc/sphinx/source/advanced/index.rst
@@ -12,3 +12,4 @@ This is documentation for advanced usage of the Camelot library.
unittests.rst
deployment.rst
permissions.rst
+ debug.rst
View
25 faq.txt
@@ -1,12 +1,20 @@
-Camelot segfaults at exit
--------------------------
+Camelot segfaults at exit or when closing a window
+--------------------------------------------------
-this is indeed a known bug in a recent release of PyQt, it's supposed
-to be fixed in the PyQt trunk, but I'm not sure it's in a release yet.
-you can use an older release of PyQt to get around it, pyqt 4.7, qt 4.6.1
-seems to work fine.
+There are 2 known bugs that cause Camelot to segfault :
+ * A bug in PyQt causing a segfault when the mainwindow
+ is distructed
+
+ * A bug in Qt when table models are destructed (this
+ happens both when closing a table or a form view)
+
+These bugs are fixed in PyQt 4.7.x and Qt 4.7 rc1.
+
+As long as Qt 4.7 is not yet available, the only way to
+get around this is by compiling it. There are compilation
+instructions in the 'debug' part of the Camelot manual.
How to get rid of sqlalchemy warnings
-------------------------------------
@@ -17,3 +25,8 @@ add a filter to ignore them::
import warnings
from sqlalchemy.exc import SADeprecationWarning
warnings.simplefilter("ignore", SADeprecationWarning)
+
+Use Camelot without its default model
+-------------------------------------
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.