On Wednesday 31 August 2011 23:37:25 Thiago Macieira wrote:
> I see that V8 is imported into QtBase now. However, this means that many
> platforms will no longer build now.
> 
> I see that V8 has MIPS support, but that isn't enabled on the v8.pro file.
> It's an easy fix. But even then, V8 won't compile on MIPS -- apparently
> commit 9365e5fb54f3c6fdd07cab1743056a4df0403372 introduced changes which
> aren't reflected on that platform.
> 
> Since there was no announcement of platform support dropping, can I assume
> that the people who imported V8 will make sure QtBase at least compiles,
> even if some functionality is disabled, on Sparc, MIPS and IA-64? By the
> time of the feature freeze.

Welcome to the new "cross-platform" definition according to nokia, that 
basically mean "Ubuntu 10.4" (slightly sarcastic :-))


I also get this error while compiling v8 on my Archlinux:


Traceback (most recent call last):
  File "/mnt/sda7/qtsrc/qt-5-src/qtbase/src/v8/../3rdparty/v8/tools/js2c.py", 
line 380, in <module>
    main()
  File "/mnt/sda7/qtsrc/qt-5-src/qtbase/src/v8/../3rdparty/v8/tools/js2c.py", 
line 377, in main
    JS2C(source_files, [natives, natives_empty], { 'TYPE': type })
  File "/mnt/sda7/qtsrc/qt-5-src/qtbase/src/v8/../3rdparty/v8/tools/js2c.py", 
line 282, in JS2C
    (consts, macros) = ReadMacros(ReadLines(str(s)))
  File "/mnt/sda7/qtsrc/qt-5-src/qtbase/src/v8/../3rdparty/v8/tools/js2c.py", 
line 190, in ReadMacros
    args = map(string.strip, macro_match.group(2).split(','))
AttributeError: 'module' object has no attribute 'strip'
make[1]: *** [generated/libraries.cpp] Error 1


This is because the python program is hardcoded in the v8.pri file, and the 
script js2c.py is not compatible with python 3 
(on Archlinux, the version 2 of python is in /usr/bin/python2)

2 solutions:
 - using configure to detect the right path to python2 (and warn if python2 
was not found.), or
 - port the script to the common subset of python 2 and python 3


_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to