vilkov / phonon-vlc-mplayer

Automatically exported from code.google.com/p/phonon-vlc-mplayer
GNU Lesser General Public License v3.0
2 stars 0 forks source link

64bits support (was: Backend.cpp:93: error: ‘run’ is not a member of ‘QtConcurrent’) #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run make

What is the expected output? What do you see instead?
I get this
[ 34%] Building CXX object
vlc-mplayer/vlc/CMakeFiles/phonon_vlc.dir/__/Backend.o                    

cd /root/phonon-vlc-mplayer-read-only/build/vlc-mplayer/vlc && /usr/bin/c++
  -D_BSD_SOURCE -DQT_DLL -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_GNU_SOURCE
-DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS
-DKDE4_FOUND -DPHONON_VLC -Dphonon_vlc_EXPORTS  -Wnon-virtual-dtor
-Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W
-Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new
-fno-common -Woverloaded-virtual -fvisibility=hidden
-fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC
-I/root/phonon-vlc-mplayer-read-only/build/vlc-mplayer/vlc
-I/root/phonon-vlc-mplayer-read-only/vlc-mplayer/vlc
-I/root/phonon-vlc-mplayer-read-only
-I/root/phonon-vlc-mplayer-read-only/build -I/usr/kde/svn/include
-I/usr/kde/svn/include/KDE -I/usr/include/qt4/phonon
-I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtWebKit
-I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtAssistant
-I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtTest
-I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtScript
-I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtDesigner -I/usr/include/qt4/Qt3Support
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt4   -Wall
-Wstrict-aliasing -Wno-unused-parameter -Wextra -fmessage-length=0 -o
CMakeFiles/phonon_vlc.dir/__/Backend.o -c
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp                

/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp: In constructor
‘Phonon::VLC_MPlayer::Backend::Backend(QObject*, const QVariantList&)’:
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:93: error: ‘run’
is not a member of ‘QtConcurrent’
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp: At global scope:
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:76: warning:
unused parameter ‘args’
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp: In member
function ‘virtual QObject*
Phonon::VLC_MPlayer::Backend::createObject(Phonon::BackendInterface::Class,
QObject*, const QList<QVariant>&)’:
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:116: warning:
enumeration value ‘VolumeFaderEffectClass’ not handled in switch
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:116: warning:
enumeration value ‘AudioDataOutputClass’ not handled in switch
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:116: warning:
enumeration value ‘VisualizationClass’ not handled in switch
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:116: warning:
enumeration value ‘VideoDataOutputClass’ not handled in switch
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp: At global scope:
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:156: warning:
unused parameter ‘fourcc’
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp: In member
function ‘virtual QList<int>
Phonon::VLC_MPlayer::Backend::objectDescriptionIndexes(Phonon::ObjectDescription
Type)
const’:
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:246: warning:
enumeration value ‘AudioChannelType’ not handled in switch
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:246: warning:
enumeration value ‘SubtitleType’ not handled in switch
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:246: warning:
enumeration value ‘ChapterType’ not handled in switch
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:246: warning:
enumeration value ‘TitleType’ not handled in switch
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:246: warning:
enumeration value ‘AudioCaptureDeviceType’ not handled in switch
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp: In member
function ‘virtual bool Phonon::VLC_MPlayer::Backend::connectNodes(QObject*,
QObject*)’:
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:371: warning:
unused variable ‘effect’
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp: In member
function ‘virtual bool
Phonon::VLC_MPlayer::Backend::disconnectNodes(QObject*, QObject*)’:
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/Backend.cpp:393: warning:
unused variable ‘effect’
make[2]: *** [vlc-mplayer/vlc/CMakeFiles/phonon_vlc.dir/__/Backend.o] Error 1
make[2]: Leaving directory `/root/phonon-vlc-mplayer-read-only/build'
make[1]: *** [vlc-mplayer/vlc/CMakeFiles/phonon_vlc.dir/all] Error 2
make[1]: Leaving directory `/root/phonon-vlc-mplayer-read-only/build'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
Just updated from svn. I'm running 64bit linux

Original issue reported on code.google.com by patrik.o...@gmail.com on 2 Jun 2008 at 6:14

GoogleCodeExporter commented 8 years ago
> Backend.cpp:93: error: ‘run’ is not a member of ‘QtConcurrent’

This is typical of a Qt version < 4.4.0
You need at least Qt version 4.4.0 in order to compile phonon-vlc-mplayer.
Please update you Qt version.

I modified CMakeLists.txt with set(QT_MIN_VERSION 4.4.0) for not getting errors 
like
this anymore.

Original comment by tkrotoff on 3 Jun 2008 at 11:28

GoogleCodeExporter commented 8 years ago

Original comment by tkrotoff on 3 Jun 2008 at 11:30

GoogleCodeExporter commented 8 years ago
well... I have qt 4.4.0 and I pass you qt version test. I have just checked out 
to a
different directory and the problem is still there. plus i have the declaration 
of
run in QtConcurrent

Original comment by patrik.o...@gmail.com on 4 Jun 2008 at 9:04

GoogleCodeExporter commented 8 years ago
Ok, I think this was due to this: #ifndef KDE4_FOUND inside Backend.cpp

Here is the change
http://code.google.com/p/phonon-vlc-mplayer/source/detail?r=182

Do you have KDE4 installed on your computer, which version? is it correctly 
detected
by the build system?
Does this fix the problem?

Original comment by tkrotoff on 4 Jun 2008 at 11:51

GoogleCodeExporter commented 8 years ago
That problem is now fixed but now i have another one:

[ 36%] Building CXX object 
vlc-mplayer/vlc/CMakeFiles/phonon_vlc.dir/VLCMediaObject.o
cd /root/phonon-vlc-mplayer-read-only/build/vlc-mplayer/vlc && /usr/bin/c++  
-D_BSD_SOURCE -DQT_DLL -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_GNU_SOURCE 
-DQT_NO_STL
-DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DPHONON_VLC
-Dphonon_vlc_EXPORTS  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef 
-Wcast-align
-Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions
-fno-check-new -fno-common -Woverloaded-virtual -fvisibility=hidden
-fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC
-I/root/phonon-vlc-mplayer-read-only/build/vlc-mplayer/vlc
-I/root/phonon-vlc-mplayer-read-only/vlc-mplayer/vlc
-I/root/phonon-vlc-mplayer-read-only -I/root/phonon-vlc-mplayer-read-only/build
-I/usr/kde/svn/include -I/usr/kde/svn/include/KDE -I/usr/include/qt4/phonon
-I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtWebKit
-I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtAssistant 
-I/usr/include/qt4/QtDBus
-I/usr/include/qt4/QtTest -I/usr/include/qt4/QtUiTools 
-I/usr/include/qt4/QtScript
-I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtDesigner -I/usr/include/qt4/Qt3Support 
-I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default
-I/usr/include/qt4   -fmessage-length=0 -o 
CMakeFiles/phonon_vlc.dir/VLCMediaObject.o
-c /root/phonon-vlc-mplayer-read-only/vlc-mplayer/vlc/VLCMediaObject.cpp
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/vlc/VLCMediaObject.cpp: In member
function ‘virtual void 
Phonon::VLC_MPlayer::VLCMediaObject::loadMediaInternal(const
QString&)’:
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/vlc/VLCMediaObject.cpp:76: 
error: cast
from ‘Phonon::VLC_MPlayer::VLCMediaObject*’ to ‘int’ loses precision
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/vlc/VLCMediaObject.cpp: In member
function ‘virtual void 
Phonon::VLC_MPlayer::VLCMediaObject::seekInternal(qint64)’:
/root/phonon-vlc-mplayer-read-only/vlc-mplayer/vlc/VLCMediaObject.cpp:174: 
error:
cast from ‘Phonon::VLC_MPlayer::VLCMediaObject*’ to ‘int’ loses 
precision
make[2]: *** [vlc-mplayer/vlc/CMakeFiles/phonon_vlc.dir/VLCMediaObject.o] Error 
1
make[2]: Leaving directory `/root/phonon-vlc-mplayer-read-only/build'
make[1]: *** [vlc-mplayer/vlc/CMakeFiles/phonon_vlc.dir/all] Error 2
make[1]: Leaving directory `/root/phonon-vlc-mplayer-read-only/build'
make: *** [all] Error 2

Original comment by patrik.o...@gmail.com on 5 Jun 2008 at 10:26

GoogleCodeExporter commented 8 years ago
I think this issue can be avoided by changing the first cast from (int) to 
(char *)
and the second from (int) to (long int)

Original comment by patrik.o...@gmail.com on 5 Jun 2008 at 10:38

GoogleCodeExporter commented 8 years ago
Ouppsss it's a stupid mistake, here the patch that I have committed:
http://code.google.com/p/phonon-vlc-mplayer/source/detail?r=188#

I've removed "(int) this", as it was for debugging purpose only.
Thx for the report, I don't have a 64bits OS on my computer.

Tell me if you encounter other issues.

btw, you can send email to the mailing-list:
http://groups.google.com/group/phonon-vlc-mplayer
It will be easier to discuss issues.

Original comment by tkrotoff on 5 Jun 2008 at 10:47

GoogleCodeExporter commented 8 years ago
New issue

/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: 
../../lib/liblibmplayer.a(MPlayerProcess.o):
relocation R_X86_64_32 against `a local symbol' can notbe used when making a 
shared
object; recompile with -fPIC

this is easily solved by adding -fPIC flag

btw, you are missing icon 16-quarkplayer.png needed by qrc_quarkplayer.cxx

Original comment by patrik.o...@gmail.com on 5 Jun 2008 at 11:01

GoogleCodeExporter commented 8 years ago
> -fPIC
I thought CMake-2.6 was handling this, anyway I've commited this:
http://code.google.com/p/phonon-vlc-mplayer/source/detail?r=190

> missing icon 16-quarkplayer.png
Fixed too

Original comment by tkrotoff on 6 Jun 2008 at 9:36

GoogleCodeExporter commented 8 years ago
that is not good. now i can't even complete the build_make script

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info                      
-- Detecting C compiler ABI info - done               
-- Check for working CXX compiler: /usr/bin/c++       
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at cmake/OWDefaultCompilerFlags.cmake:20 (check_cxx_compiler_flag):
  Unknown CMake command "check_cxx_compiler_flag".
Call Stack (most recent call first):
  cmake/CMakeLists.txt:8 (include)
  CMakeLists-owbuild.txt:12 (include)
  CMakeLists.txt:6 (include)

Original comment by patrik.o...@gmail.com on 7 Jun 2008 at 3:57

GoogleCodeExporter commented 8 years ago
> Unknown CMake command "check_cxx_compiler_flag"

I've added #include(CheckCXXCompileFlag), hope this will fix the pb.
It works with MINGW and cmake-2.6.0.
Cf http://code.google.com/p/phonon-vlc-mplayer/source/detail?r=196

Original comment by tkrotoff on 8 Jun 2008 at 8:13

GoogleCodeExporter commented 8 years ago
ok. new issue

/root/phonon-vlc-mplayer-read-only/quarkplayer/MediaController.cpp: In member
function ‘void MediaController::availableTitlesChanged()’:
/root/phonon-vlc-mplayer-read-only/quarkplayer/MediaController.cpp:250: error:
request for member ‘isEmpty’ in ‘titles’, which is of non-class type 
‘int’
/root/phonon-vlc-mplayer-read-only/quarkplayer/MediaController.cpp: In member
function ‘void MediaController::availableChaptersChanged()’:
/root/phonon-vlc-mplayer-read-only/quarkplayer/MediaController.cpp:306: error:
request for member ‘isEmpty’ in ‘chapters’, which is of non-class type 
‘int’
make[2]: *** [quarkplayer/CMakeFiles/quarkplayer.dir/MediaController.o] Error 1
make[2]: Leaving directory `/root/phonon-vlc-mplayer-read-only/build'
make[1]: *** [quarkplayer/CMakeFiles/quarkplayer.dir/all] Error 2
make[1]: Leaving directory `/root/phonon-vlc-mplayer-read-only/build'
make: *** [all] Error 2

Original comment by patrik.o...@gmail.com on 8 Jun 2008 at 9:10

GoogleCodeExporter commented 8 years ago
> MediaController.cpp:250: error:
> request for member ‘isEmpty’ in ‘titles’, which is of non-class type 
‘int’

Here the fix:
http://code.google.com/p/phonon-vlc-mplayer/source/diff?r=198&format=side&path=/
trunk/quarkplayer/MediaController.cpp

Hope there won't be any problem now.
From time to time, trunk won't compile on some OS cause I'm moving some stuffs.
Beside this, it is pretty stable

Thx for all you reports

Original comment by tkrotoff on 9 Jun 2008 at 10:35

GoogleCodeExporter commented 8 years ago

Original comment by tkrotoff on 18 Jun 2008 at 6:03

GoogleCodeExporter commented 8 years ago

Original comment by tkrotoff on 9 Sep 2008 at 4:47