Configuring dehydra in ubuntu 12.04
./configure –js-name=mozjs185 –js-libs=/usr/lib –js-headers=/usr/include/js
I forgot the required packages.
Use
apt-file update
apt-file search libmozjs185
./configure –js-name=mozjs185 –js-libs=/usr/lib –js-headers=/usr/include/js
I forgot the required packages.
Use
apt-file update
apt-file search libmozjs185
Did a lot of digging around to figure this one out.
download qt-solutions
change the common.pri file of the property grid this line
QTPROPERTYBROWSER_LIBNAME = $$qtLibraryTarget(QtSolutions_PropertyBrowser-2.5)
made a qtpropertybroser folder in my user/local/ folder
2396 sudo mkdir /usr/local/include/qtpropertybrowser
2397 sudo cp *.h /usr/local/include/qtpropertybrowser/
also copied the librarys to the /usr/local/lib
2455 chmod 644 libQtSolutions_PropertyBrowser-2.5.so*
2456 sudo cp libQtSolutions_PropertyBrowser-2.5.so* /usr/local/lib/
luckly someone made a sip file and I got to avoid figuring out that mess….
svn co https://booggie.svn.sourceforge.net/svnroot/booggie/projects/Booggie/QtPropertyBrowserBindings/trunk QtPropertyBrowserBindings
I had to install some ubuntu python-qt-dev files for the next part, can’t remeber the exact packages sorry, let me know if you know what they were.
python configure.py –qtpropertybrowser-lib-path=/usr/local/lib –qtpropertybrowser-include-path=/usr/local/include/qtpropertybrowser/
make
sudo make install
I now was able to run the example.
if __name__ == “__main__”:
import sys
from PyQt4 import QtCore, QtGui
app = QtGui.QApplication(sys.argv)
ui = MainWindow()
ui.show()
sys.exit(app.exec_())
define c_print
set $size = sizeof($arg0)
set $point = (char*) &$arg0
printf “char data[%d] = { “, $size
set $index = 0
while $index < ($size-2)
printf “0x%x, “, (char)$point[$index]
set $index = $index + 1
end
printf “0x%x };\n”, (char)$point[($size-1)]
end
diff -rupNw -I \$Id old_folder new_folder > mypatch.patch
mv mypatch.patch old_folder
cd old_folder
patch -p1 < mypatch.patch
When starting a project a good way to select an epoch would be to select the closest year in the past that is divisible by 400.
This will simplify time conversions to / from days since epoch to years as
Years that are evenly divisible by 100 are not leap years, unless they are also evenly divisible by 400, in which case they are leap years.
export CFLAGS = -Wall -g -Wa,-a,-ad,-ahls=$@.lst