the Build and install instructions in
https://qt.gitorious.org/pyside/buildscripts/blobs/master/README
state:
    If you want to build PySide against the Qt SDK, you have to set the
    environment variable QT_SDK_HOME - this variable needs to be set before
    "environment.sh" is sourced, and before "build_and_install" is run.

the environment.sh has:
# If you want to use Qt SDK, uncomment the following line, or set the
# environment variable $QT_SDK_HOME in something like your ~/.profile

#QT_SDK_HOME="$HOME/qtsdk-2010.05"

if [ "$QT_SDK_HOME" != "" ]; then
  export PATH=$QT_SDK_HOME/bin:$QT_SDK_HOME/qt/bin:$PATH
  export LD_LIBRARY_PATH=$QT_SDK_HOME/lib:$LD_LIBRARY_PATH
  export QTDIR=$QT_SDK_HOME/qt:$QTDIR
fi

the older(?) instructions shown directly on the bottom of the wiki page
http://developer.qt.nokia.com/wiki/Building_PySide_on_Linux
make no mention of building pyside against the sdk?


but, in any case, a current install of QtSDK:
Qt Creator 2.3.0

Based on Qt 4.7.4 (32 bit)

Built on Aug 25 2011 at 15:22:39

From revision 4b96d7d867


shows a directory structure that doesn't fit the PATH or LD_LIBRARY_PATH or
QTDIR (no bin nor lib nor qt subdir in QT_SDK_HOME), so none of these env
vars would appear to expose the anything in the qt sdk to the build process
(build_and_install.sh sources environment.sh) or to the "Working with the
build" (see README) process.


$ ls ~/QtSDK
Changelog.txt Licenses SDKMaintenanceTool.dat
components.xml Madde SDKMaintenanceTool.ini
Desktop pythongdb Simulator
Documentation QtCreator Symbian
Examples readme


for example, bin:


$ find ~/QtSDK -name bin -type d
/home/d/QtSDK/Desktop/Qt/474/gcc/bin
/home/d/QtSDK/Madde/bin
/home/d/QtSDK/Madde/toolchains/arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu/arm-2009q3-67/bin
/home/d/QtSDK/Madde/toolchains/arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu/arm-2009q3-67/arm-none-linux-gnueabi/bin
/home/d/QtSDK/Madde/sysroots/harmattan-nokia-meego-arm-sysroot-1122-slim/usr/lib/AccountSetup/bin
/home/d/QtSDK/Madde/sysroots/harmattan-nokia-meego-arm-sysroot-1122-slim/usr/share/qt4/bin
/home/d/QtSDK/Madde/tools/qt-tools_linux_2011-05-18_i686_qt4.7.4_mt0.21.14/bin
/home/d/QtSDK/Madde/targets/harmattan-nokia-meego-api/bin
/home/d/QtSDK/Simulator/Qt/gcc/bin
/home/d/QtSDK/Simulator/QtMobility/gcc/bin
/home/d/QtSDK/QtCreator/bin


to successfully "build_and_install.sh" pyside, pyside-mobility, and
pyside-tools against the QtSDK (simulator), should  PATH (and
LD_LIBRARY_PATH) reference the Madde/toolchains/... path that exposes gcc
(as opposed to path that exposes the cross-compiler form
arm-none-linux-gnueabi-gcc)? (this assumes that the whole
build_and_install.sh process is basically cross-compiler-safe or otherwise
agnostic) (CMAKE_TOOLCHAIN_FILE?)


also, maybe QTDIR is only for symbian? or obsolete? or is intended to
instead to point to Qt lib/ or include/ dirs (which ones)?


$ find ~/QtSDK -name qt -type d
/home/d/QtSDK/Desktop/Qt/474/gcc/mkspecs/symbian-sbsv2/flm/qt
/home/d/QtSDK/Madde/sysroots/harmattan-nokia-meego-arm-sysroot-1122-slim/usr/share/qt4/mkspecs/symbian-sbsv2/flm/qt
/home/d/QtSDK/Simulator/Qt/gcc/mkspecs/symbian-sbsv2/flm/qt

i assume that if i want to use a desktop to do any development of python
mobile apps that use pyside-mobility features, i have to do it via the qtsdk
(and pyside-mobility built against the sdk, not against my system qt).  but
if there is another method, short of manually writing mocks or stubs for
every class (as documented in http://www.pyside.org/docs/pyside-mobility/)
that i'd use, please let me know.

i haven't found any documentation besides the build script comments and the
ancient blog post
https://lizardo.wordpress.com/2010/08/26/running-pyside-applications-on-qt-simulator/that
suggests anyone ever attempts this build procedure, much less
succeeds?

thanks

Did you, or did anyone else, figure this out? I would like to try running Harmattan PySide apps on an Ubuntu desktop using the Qt Simulator, but have had trouble getting it working. Is anyone doing this successfully, and if so, can they share the recipe?

Cheers,

John
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to