[RQt-devel] qtbase supports (and requires) Qt5
Tomas Sieger
tomas.sieger at seznam.cz
Tue Dec 3 21:22:05 CET 2013
Hi Michael,
I've tried installing qtbase on Fedora 17 having
qt-linux-opensource-5.2.0-beta1-x86 installed (using default settings), and
encountered a problem in the generated x_1.cpp:
qtbase/kdebindings-build/smoke/qt/x_1.cpp: In static member function
'static void __smokeqt::x_QAccelerometer::x_18(Smoke::Stack)':
qtbase/kdebindings-build/smoke/qt/x_1.cpp:14610:50: error: assignment of
read-only variable 'QAccelerometer::type'
qtbase/kdebindings-build/smoke/qt/x_1.cpp: In static member function
'static void __smokeqt::x_QAltimeter::x_15(Smoke::Stack)':
qtbase/kdebindings-build/smoke/qt/x_1.cpp:16039:46: error: assignment of
read-only variable 'QAltimeter::type'
qtbase/kdebindings-build/smoke/qt/x_1.cpp: In static member function
'static void __smokeqt::x_QAmbientLightSensor::x_15(Smoke::Stack)':
qtbase/kdebindings-build/smoke/qt/x_1.cpp:16751:55: error: assignment of
read-only variable 'QAmbientLightSensor::type'
I'm attaching my build log and the generated x_1.cpp.
I'll happily provide you with some more details / do more testing.
thanks,
Tomas
On Tue, Dec 3, 2013 at 12:02 AM, Michael Lawrence <lawrence.michael at gene.com
> wrote:
> Has anyone managed to test this independently?
> Maybe test cranvas?
>
> I'd like to push it out to CRAN, because they want some stuff fixed
> anyway. Could always release off a Qt4 branch, but it would be good to get
> this out.
>
> Thanks,
> Michael
>
>
>
>
> On Mon, Nov 11, 2013 at 8:38 AM, Michael Lawrence <michafla at gene.com>wrote:
>
>> I should have mentioned that I merged Kaiser's pull request for the event
>> loop on Windows.
>>
>>
>> On Mon, Nov 11, 2013 at 8:02 AM, Michael Lawrence <michafla at gene.com>wrote:
>>
>>> Just pushed some changes to qtbase that tie us to Qt5, specifically Qt
>>> 5.2 beta 1 (we rely on some bug fixes). There are no MinGW win64 binaries
>>> available for betas apparently, so we'll need to wait (release currently
>>> scheduled for early December) to get that working, unless someone is brave
>>> enough to make custom binaries.
>>>
>>> I had to rewrite the MOC support, because the implementation completely
>>> changed for Qt5. I've tested custom signals and they seem to work. Still
>>> need to test slots and properties.
>>>
>>> The qtpaint package will probably require some major changes, since the
>>> Qt OpenGL API has changed dramatically.
>>>
>>> Michael
>>>
>>
>>
>
> _______________________________________________
> Qtinterfaces-devel mailing list
> Qtinterfaces-devel at lists.r-forge.r-project.org
>
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/qtinterfaces-devel/attachments/20131203/68967f81/attachment-0001.html>
-------------- next part --------------
$ R CMD INSTALL qtbase
* installing to library '/home/user/R/i686-redhat-linux-gnu-library/2.15'
* installing *source* package 'qtbase' ...
** libs
** arch -
mkdir -p ../kdebindings-build;
cd ../kdebindings-build; \
cmake ../kdebindings -DR_CXX="g++" -DCMAKE_CXX_FLAGS="-m32 " -DCMAKE_SHARED_LINKER_FLAGS="-m32 -Wl,-z,relro -shared" \
-DCMAKE_INSTALL_PREFIX=../inst/local \
-DCMAKE_EXE_LINKER_FLAGS="-m32 -Wl,-z,relro" \
-DCMAKE_MODULE_LINKER_FLAGS="-m32 -Wl,-z,relro"; \
LD_LIBRARY_PATH=../../generator/bin make install
-- Found Qt module: Multimedia
-- Found Qt module: MultimediaWidgets
-- Found Qt module: Network
-- Found Qt module: Qml
-- Found Qt module: Quick
-- Found Qt module: Sql
-- Found Qt module: Test
-- Found Qt module: WebKitWidgets
-- Found Qt module: DBus
-- Found Qt module: Svg
-- Found Qt module: XmlPatterns
-- Found Qt module: PrintSupport
-- Found Qt module: Help
-- Found Qt module: UiTools
-- Found Qt module: SerialPort
-- Found Qt module: Sensors
-- Found Qt module: Bluetooth
-- Found Qt module: Positioning
-- Build Smoke... yes - Qt
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/src/R/qtbase/kdebindings-build
make[1]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
make[2]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
Scanning dependencies of target cppparser
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
[ 1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/ast.cpp.o
[ 3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/default_visitor.cpp.o
[ 4%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/memorypool.cpp.o
[ 6%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/visitor.cpp.o
[ 8%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/control.cpp.o
[ 9%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/lexer.cpp.o
[ 11%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/parser.cpp.o
[ 12%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/listnode.cpp.o
[ 14%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/tokens.cpp.o
[ 16%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/dumptree.cpp.o
[ 17%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/parsesession.cpp.o
/home/user/src/R/qtbase/kdebindings/generator/parser/parsesession.cpp: In destructor 'ParseSession::~ParseSession()':
/home/user/src/R/qtbase/kdebindings/generator/parser/parsesession.cpp:42:10: warning: possible problem detected in invocation of delete operator: [enabled by default]
/home/user/src/R/qtbase/kdebindings/generator/parser/parsesession.cpp:42:10: warning: invalid use of incomplete type 'class rpp::MacroBlock' [enabled by default]
In file included from /home/user/src/R/qtbase/kdebindings/generator/parser/parsesession.cpp:19:0:
/home/user/src/R/qtbase/kdebindings/generator/parser/parsesession.h:43:23: warning: forward declaration of 'class rpp::MacroBlock' [enabled by default]
/home/user/src/R/qtbase/kdebindings/generator/parser/parsesession.cpp:42:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
[ 19%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/commentparser.cpp.o
[ 20%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/commentformatter.cpp.o
[ 22%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/codegenerator.cpp.o
[ 24%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/indexedstring.cpp.o
[ 25%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/stringhelpers.cpp.o
[ 27%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-stream.cpp.o
[ 29%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-macro-expander.cpp.o
[ 30%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-scanner.cpp.o
[ 32%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-macro.cpp.o
[ 33%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-engine.cpp.o
[ 35%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-internal.cpp.o
[ 37%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-environment.cpp.o
[ 38%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-location.cpp.o
[ 40%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/preprocessor.cpp.o
[ 41%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/chartools.cpp.o
Linking CXX shared library ../bin/libcppparser.so
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
[ 41%] Built target cppparser
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
Scanning dependencies of target smokegen
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
[ 43%] Building CXX object generator/CMakeFiles/smokegen.dir/main.cpp.o
[ 45%] Building CXX object generator/CMakeFiles/smokegen.dir/generatorenvironment.cpp.o
[ 46%] Building CXX object generator/CMakeFiles/smokegen.dir/generatorvisitor.cpp.o
[ 48%] Building CXX object generator/CMakeFiles/smokegen.dir/generatorpreprocessor.cpp.o
[ 50%] Building CXX object generator/CMakeFiles/smokegen.dir/options.cpp.o
[ 51%] Building CXX object generator/CMakeFiles/smokegen.dir/type_compiler.cpp.o
[ 53%] Building CXX object generator/CMakeFiles/smokegen.dir/name_compiler.cpp.o
[ 54%] Building CXX object generator/CMakeFiles/smokegen.dir/type.cpp.o
Linking CXX executable bin/smokegen
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
[ 54%] Built target smokegen
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
Scanning dependencies of target smokebase
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
[ 56%] Building CXX object generator/smokebase/CMakeFiles/smokebase.dir/smokebase.cpp.o
Linking CXX shared library ../bin/libsmokebase.so
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
[ 56%] Built target smokebase
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
Scanning dependencies of target generator_smoke
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
[ 58%] Building CXX object generator/generators/smoke/CMakeFiles/generator_smoke.dir/generator_smoke.cpp.o
[ 59%] Building CXX object generator/generators/smoke/CMakeFiles/generator_smoke.dir/writeClasses.cpp.o
[ 61%] Building CXX object generator/generators/smoke/CMakeFiles/generator_smoke.dir/writeSmokeDataFile.cpp.o
[ 62%] Building CXX object generator/generators/smoke/CMakeFiles/generator_smoke.dir/helpers.cpp.o
Linking CXX shared module ../../bin/generator_smoke.so
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
[ 62%] Built target generator_smoke
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
Scanning dependencies of target generator_dump
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
[ 64%] Building CXX object generator/generators/dump/CMakeFiles/generator_dump.dir/generator_dump.cpp.o
Linking CXX shared module ../../bin/generator_dump.so
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
[ 64%] Built target generator_dump
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
[ 66%] Generating smokedata.cpp, x_1.cpp, x_2.cpp, x_3.cpp, x_4.cpp, x_5.cpp, x_6.cpp, x_7.cpp, x_8.cpp, x_9.cpp, x_10.cpp, x_11.cpp, x_12.cpp, x_13.cpp, x_14.cpp, x_15.cpp, x_16.cpp, x_17.cpp, x_18.cpp, x_19.cpp, x_20.cpp
using generator "/home/user/src/R/qtbase/kdebindings-build/generator/bin/generator_smoke.so"
parsing "/home/user/src/R/qtbase/kdebindings/smoke/qt/qt_includes.h"
QIODevice::read: device not open
Generating SMOKE sources...
preparing SMOKE data [qt]
writing out smokedata.cpp [qt]
writing out x_*.cpp [qt]
Done.
Scanning dependencies of target smokeqt
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
make[3]: Entering directory `/home/user/src/R/qtbase/kdebindings-build'
[ 67%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/smokedata.cpp.o
[ 69%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_1.cpp.o
/home/user/src/R/qtbase/kdebindings-build/smoke/qt/x_1.cpp: In static member function 'static void __smokeqt::x_QAccelerometer::x_18(Smoke::Stack)':
/home/user/src/R/qtbase/kdebindings-build/smoke/qt/x_1.cpp:14610:50: error: assignment of read-only variable 'QAccelerometer::type'
/home/user/src/R/qtbase/kdebindings-build/smoke/qt/x_1.cpp: In static member function 'static void __smokeqt::x_QAltimeter::x_15(Smoke::Stack)':
/home/user/src/R/qtbase/kdebindings-build/smoke/qt/x_1.cpp:16039:46: error: assignment of read-only variable 'QAltimeter::type'
/home/user/src/R/qtbase/kdebindings-build/smoke/qt/x_1.cpp: In static member function 'static void __smokeqt::x_QAmbientLightSensor::x_15(Smoke::Stack)':
/home/user/src/R/qtbase/kdebindings-build/smoke/qt/x_1.cpp:16751:55: error: assignment of read-only variable 'QAmbientLightSensor::type'
make[3]: *** [smoke/qt/CMakeFiles/smokeqt.dir/x_1.cpp.o] Error 1
make[3]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
make[2]: *** [smoke/qt/CMakeFiles/smokeqt.dir/all] Error 2
make[2]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/user/src/R/qtbase/kdebindings-build'
make: *** [all] Error 2
ERROR: compilation failed for package 'qtbase'
* removing '/home/user/R/i686-redhat-linux-gnu-library/2.15/qtbase'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x_1.cpp
Type: text/x-c++src
Size: 747002 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/qtinterfaces-devel/attachments/20131203/68967f81/attachment-0001.cpp>
More information about the Qtinterfaces-devel
mailing list