chrisburel / perlqt4

Automatically exported from code.google.com/p/perlqt4
Other
0 stars 0 forks source link

compile failure (Alien-SmokeQt 4.6.0.4) #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. wget http://perlqt4.googlecode.com/files/Alien-SmokeQt-4.6.0.4.tar.gz
2. tar -xvf Alien-SmokeQt-4.6.0.4.tar.gz && cd Alien-SmokeQt-4.6.0.4
3. perl Makefile.PL
4. make

What is the expected output? What do you see instead?
Expecting compile to finish, but i see:

<... snip ...>

Scanning dependencies of target smokephonon
[ 79%] Building CXX object 
smoke/qt/phonon/CMakeFiles/smokephonon.dir/smokedata.cpp.o                      

[ 80%] Building CXX object smoke/qt/phonon/CMakeFiles/smokephonon.dir/x_1.cpp.o 

[ 80%] Building CXX object smoke/qt/phonon/CMakeFiles/smokephonon.dir/x_2.cpp.o 

[ 81%] Building CXX object smoke/qt/phonon/CMakeFiles/smokephonon.dir/x_3.cpp.o 

[ 81%] Building CXX object smoke/qt/phonon/CMakeFiles/smokephonon.dir/x_4.cpp.o 

[ 82%] Building CXX object smoke/qt/phonon/CMakeFiles/smokephonon.dir/x_5.cpp.o 

[ 82%] Building CXX object smoke/qt/phonon/CMakeFiles/smokephonon.dir/x_6.cpp.o 

[ 83%] Building CXX object smoke/qt/phonon/CMakeFiles/smokephonon.dir/x_7.cpp.o 

[ 83%] Building CXX object smoke/qt/phonon/CMakeFiles/smokephonon.dir/x_8.cpp.o 

[ 84%] Building CXX object smoke/qt/phonon/CMakeFiles/smokephonon.dir/x_9.cpp.o 

[ 85%] Building CXX object 
smoke/qt/phonon/CMakeFiles/smokephonon.dir/x_10.cpp.o    
/home/ricky/Devel/alien-smoke-qt/src/Alien-SmokeQt-4.6.0.4/smoke/qt/phonon/x_10.
cpp: In static member function ‘static void 
__smokephonon::x_Phonon::x_1(Smoke::StackItem*)’:
/home/ricky/Devel/alien-smoke-qt/src/Alien-SmokeQt-4.6.0.4/smoke/qt/phonon/x_10.
cpp:1430:58: warning: ‘void Phonon::registerMetaTypes()’ is deprecated 
(declared at /usr/include/phonon/objectdescription.h:349)
/home/ricky/Devel/alien-smoke-qt/src/Alien-SmokeQt-4.6.0.4/smoke/qt/phonon/x_10.
cpp:1430:76: warning: ‘void Phonon::registerMetaTypes()’ is deprecated 
(declared at /usr/include/phonon/objectdescription.h:349)
/home/ricky/Devel/alien-smoke-qt/src/Alien-SmokeQt-4.6.0.4/smoke/qt/phonon/x_10.
cpp:1430:76: error: conversion from ‘void’ to non-scalar type 
‘QList<QPair<QByteArray, QString> >’ requested
make[2]: *** [smoke/qt/phonon/CMakeFiles/smokephonon.dir/x_10.cpp.o] Error 1
make[1]: *** [smoke/qt/phonon/CMakeFiles/smokephonon.dir/all] Error 2
make: *** [all] Error 2

What version of PerlQt4 are you using? What version of Qt are you using? On
what operating system?

PerlQt4 version: 
0.96.0 (have not compiled this yet though)

Qt/Qmake version:
QMake version 2.01a
Using Qt version 4.7.2 in /usr/lib

Operating System:
Arch Linux (Linux 2.6.37-ARCH x86_64)

Please provide any additional information below.

At first i attempted to compile perlqt4 until i came across missing cmake 
(smoke related) files. I then assumed that Alien-SmokeQt would need to be 
installed for perlqt4 to compile, so i attempted to compile that until reaching 
a compilation failure at 85%.

Original issue reported on code.google.com by punkrock...@gmail.com on 2 Apr 2011 at 2:04

GoogleCodeExporter commented 9 years ago
Also i get the same error when trying to compile with:
  cmake -DENABLE_SMOKE=on \
    -DENABLE_SMOKEKDE=off

Assuming phonon is kde related, shouldn't that stop it from compiling phonon 
objects?

Original comment by punkrock...@gmail.com on 2 Apr 2011 at 2:45

GoogleCodeExporter commented 9 years ago
Phonon is actually shipped with Qt: 
http://doc.qt.nokia.com/latest/phonon-module.html

You can disable the build of the phonon bindings with
perl Makefile.PL -DWITH_Phonon=OFF
or
cmake -DWITH_Phonon=OFF

This is definitely a problem upstream, as others are experiencing the same 
issue.  A Google search for "Phonon::registerMetaTypes()" returns this: 
https://bugs.launchpad.net/ubuntu/+source/kdebindings/+bug/746424

I was also able to reproduce the error while compiling the kdebindings-4.6.1 
release.  If you want to use Phonon with PerlQt, I can give instructions on how 
to patch the auto-generated phonon/x_10.cpp file.  We generally try to avoid 
that though, because it doesn't really solve the root of the problem.

Original comment by chrisbu...@gmail.com on 2 Apr 2011 at 5:23

GoogleCodeExporter commented 9 years ago
Looks like this has been fixed:
https://bugs.kde.org/show_bug.cgi?id=269943

So that will be included in the next Alien-SmokeQt release.

Original comment by chrisbu...@gmail.com on 2 Apr 2011 at 4:46

GoogleCodeExporter commented 9 years ago
Thanks for the help and explanation!
However, now stuck at 99% (typical i know ;X) with this one:

< ... snip ... >

[ 98%] Built target smokeqwt
[ 99%] Building CXX object 
smoke/qt/qimageblitz/CMakeFiles/smokeqimageblitz.dir/smokedata.cpp.o            

/home/ricky/Devel/alien-smoke-qt/src/Alien-SmokeQt-4.6.0.4/smoke/qt/qimageblitz/
smokedata.cpp:1:34: fatal error: qimageblitz_includes.h: No such file or 
directory
compilation terminated.
make[2]: *** 
[smoke/qt/qimageblitz/CMakeFiles/smokeqimageblitz.dir/smokedata.cpp.o] Error 1
make[1]: *** [smoke/qt/qimageblitz/CMakeFiles/smokeqimageblitz.dir/all] Error 2
make: *** [all] Error 2

Having trouble working out what's going on there, the file definitely exists as 
far as i can tell.

 % ls -l smoke/qt/qimageblitz/qimageblitz_includes.h 
-rw-r--r-- 1 ricky users 126 Mar 19 00:56 
smoke/qt/qimageblitz/qimageblitz_includes.h

Any idea? Thanks

Original comment by punkrock...@gmail.com on 3 Apr 2011 at 3:49

GoogleCodeExporter commented 9 years ago
The qimageblitz module didn't have the correct include search path set.  I've 
attached a patch to fix it.

You could disable QImageBlitz in the same way you disabled the Phonon build:
perl Makefile.PL -DWITH_Phonon=OFF -DWITH_QImageBlitz=OFF
cmake . -DWITH_Phonon=OFF -DWITH_QImageBlitz=OFF

Original comment by chrisbu...@gmail.com on 5 Apr 2011 at 5:04

Attachments:

GoogleCodeExporter commented 9 years ago
Is this fixed now?

Original comment by chrisbu...@gmail.com on 2 Jun 2011 at 6:22

GoogleCodeExporter commented 9 years ago
Yes this is fixed, thanks for the help.

If interested, i have created some PKGBUILDs for archlinux, they build 
correctly and have been working perfectly so far. I will probably update them 
with your patch later today.

http://aur.archlinux.org/packages.php?ID=49108
http://aur.archlinux.org/packages.php?ID=49109

cheers.

Original comment by punkrock...@gmail.com on 3 Jun 2011 at 6:38

GoogleCodeExporter commented 9 years ago

Original comment by chrisbu...@gmail.com on 15 Feb 2012 at 1:59