Am 2010-08-05 um 14:40 schrieb Renato Araujo Oliveira Filho:

> If you are using a sandbox and do no install libraries in default path I 
> recommend to you export DYLD_LIBRARY_PATH. to directory where you are 
> installing the new libs. Try this and give me a feed back.

I failed. ;-)
With DYLD_LIBRARY_PATH exported, shiboken built successfully.

But now I have a problem with pyside. It seems that it can’t find some of Qt’s 
source files. In a first try, I used my manually compiled Qt 4.6.2. For the 
second one I removed it and installed Qt 4.6.3 with the OSX-Installer. I also 
checked that the headers are available in 
/Library/Frameworks/Qt*.framework/Headers. Cmake also said that it found Qt 
4.6.3 using /usr/bin/qmake.

When make runs the generatorrunner, it outputs a set of paths for each QtCore, 
QtGui, … that do not exist, e.g.:

 ./QtCore.framework/Headers/QtCore
 /Users/stefan/Code/PySide/pyside/PySide/QtCore.framework/Headers/QtCore
 
/usr/include/Library/Frameworks/QtCore.framework/QtCore.framework/Headers/QtCore
 /usr/include/QtCore.framework/Headers/QtCore

Next is:

 Generating class model...                    [OK]
 Fixing class inheritance...                  [OK]
 Detecting inconsistencies in class model...  [OK]
 Detecting inconsistencies in typesystem...   [WARNING]
        type 'QUrl' is specified in typesystem, but not defined. This could 
potentially lead to compilation errors.
        type 'QPoint' is specified in typesystem, but not defined. This could 
potentially lead to compilation errors.
        Global function 'qsrand(uint)' is specified in typesystem, but not 
defined. This could potentially lead to compilation errors.
 […]

Finally make exists with:

 Done, 131 warnings (0 known issues)
 [  2%] Building CXX object 
PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp.o
 i686-apple-darwin10-g++-4.2.1: 
/Users/stefan/Code/PySide/pyside/PySide/QtCore/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp:
 No such file or directory
 i686-apple-darwin10-g++-4.2.1: no input files
 make[2]: *** 
[PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp.o]
 Error 1
 make[1]: *** [PySide/QtCore/CMakeFiles/QtCore.dir/all] Error 2
 make: *** [all] Error 2


I tried exporting QT_INCLUDE_DIR=/Library/Frameworks/, but it din’t help.

I attached the complete logs for cmake and make.

Best regards,
Stefan

Attachment: cmake_make_logs.7z
Description: Binary data


> 
> 
> Thanks 
> 
> 
> 
> On Thu, Aug 5, 2010 at 6:41 AM, Stefan Scherfke 
> <[email protected]> wrote:
> Hello,
> 
> I’m trying to compile PySide 0.4.0 on Mac OS X 10.6, but there seems to be a
> problem with Generatorrunner.
> 
> It seems to search for libgenrunner.0.6.dylib only in the current
> directory (../sandbox/lib in my case), so you can only execute it from the
> diretory containging that library.
> 
> Generatorruner itself builds and installs sucessfully, but building Shiboken
> will fail when it tries to test generatorrunner:
> 
>    $ /Users/stefan/Code/PySide/sandbox/bin/generatorrunner
> --generatorSet=/Users/stefan/Code/PySide/shiboken/shiboken_generator
> --enable-parent-ctor-heuristic
> /Users/stefan/Code/PySide/shiboken/tests/samplebinding/global.h
> --include-paths=/Users/stefan/Code/PySide/shiboken/tests/libsample
> --typesystem-paths=/Users/stefan/Code/PySide/shiboken/tests/samplebinding
> --output-directory=/Users/stefan/Code/PySide/shiboken/tests/samplebinding
> /Users/stefan/Code/PySide/shiboken/tests/samplebinding/typesystem_sample.xml
>    dyld: Library not loaded: libgenrunner.0.6.dylib
>      Referenced from: /Users/stefan/Code/PySide/sandbox/bin/generatorrunner
>      Reason: image not found
>    Trace/BPT trap
> 
> 
> When I execute the same commando from within my sandbox’ lib-dir I only get 11
> warnings (3 known issues):
> 
>    $ generatorrunner [...]
>    ./sys.framework/Headers/_types.h
> 
> /Users/stefan/Code/PySide/shiboken/tests/libsample/sys.framework/Headers/_types.h
>    ./sys.framework/Headers/cdefs.h
> 
> /Users/stefan/Code/PySide/shiboken/tests/libsample/sys.framework/Headers/cdefs.h
>    ./machine.framework/Headers/_types.h
> 
> /Users/stefan/Code/PySide/shiboken/tests/libsample/machine.framework/Headers/_types.h
>    Generating class model...                    [WARNING]
>    File for inject code not exist: simplefile_glue.cpp
>    File containing conversion code for std::map type does not exist or is not
> redable: map_conversions.h
>    File containing conversion code for OddBool type does not exist or is not
> redable: oddbool_conversions.h
>    File containing conversion code for Complex type does not exist or is not
> redable: complex_conversions.h
>    File containing conversion code for std::list type does not exist or is not
> redable: list_conversions.h
>    File containing conversion code for std::pair type does not exist or is not
> redable: pair_conversions.h
> 
> 
>    Generating enum model...                     [OK]
>    Generating namespace model...                [OK]
>    Resolving typedefs...                        [OK]
>    Fixing class inheritance...                  [OK]
>    Detecting inconsistencies in class model...  [WARNING]
>    hiding of function 'takeChild' in class 'ObjectType'
>    visibility of function 'publicMethod' modified in class 'SonOfMDerived1'
>    hiding of function 'takeChild' in class 'Bucket'
>    visibility of function 'publicMethod' modified in class 'MDerived1'
>    hiding of function 'takeChild' in class 'ObjectView'
> 
> 
>    Detecting inconsistencies in typesystem...   [OK]
> 
>    Done, 11 warnings (3 known issues)
> 
> 
> I installed every thing using:
> 
>    $ cmake -DCMAKE_INSTALL_PREFIX=../sandbox/ CMakeLists.txt
>    $ make
>    $ make install
> 
> Unfortunately I haven’t used cmake before, so I was not able to trace and
> fix the error myself.
> 
> Best regards,
> Stefan
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.openbossa.org/listinfo/pyside
> 
> 
> 
> -- 
> Renato Araujo Oliveira Filho
> Instituto Nokia de Tecnologia - INdT
> Mobile: +55 (81) 8704-2144

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

Reply via email to