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

Compile Error #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Hardy/Heron Kubuntu with the relevant headers
2. download from SVN phonon-vlc-player
3. cd phonon-vlc-player/build
4. ./build-make_debug.sh
5. make

What is the expected output? What do you see instead?
It is supposed to compile. However, it doesn't and exits with error message
as below.

[ 57%] Building CXX object libs/tkutil/CMakeFiles/tkutil.dir/FindFiles.cpp.o
cd /home/shiva/Download/Media/phonon-vlc-mplayer/build/libs/tkutil &&
/usr/bin/c++   -D_FORTIFY_SOURCE=2 -DDEBUG -DQT_DLL -DQT_GUI_LIB
-DQT_CORE_LIB -DBUILD_TKUTIL -DQT_DEBUG -Dtkutil_EXPORTS -g -fPIC
-I/home/shiva/Download/Media/phonon-vlc-mplayer
-I/home/shiva/Download/Media/phonon-vlc-mplayer/libs
-I/home/shiva/Download/Media/phonon-vlc-mplayer/3rdparty -I/usr/include/qt4
  -Wall -Wstrict-aliasing -Wno-unused-parameter -Wextra -fmessage-length=0
-o CMakeFiles/tkutil.dir/FindFiles.cpp.o -c
/home/shiva/Download/Media/phonon-vlc-mplayer/libs/tkutil/FindFiles.cpp
/home/shiva/Download/Media/phonon-vlc-mplayer/libs/tkutil/FindFiles.cpp:28:20:
error: direct.h: No suchfile or directory
/home/shiva/Download/Media/phonon-vlc-mplayer/libs/tkutil/FindFiles.cpp: In
member function ‘void FindFiles::findAllFiles(const QString&)’:
/home/shiva/Download/Media/phonon-vlc-mplayer/libs/tkutil/FindFiles.cpp:88:
error: ‘_chdir’ was not declared in this scope
/home/shiva/Download/Media/phonon-vlc-mplayer/libs/tkutil/FindFiles.cpp:91:
warning: suggest parentheses around assignment used as truth value
make[2]: *** [libs/tkutil/CMakeFiles/tkutil.dir/FindFiles.cpp.o] Error 1
make[2]: Leaving directory
`/home/shiva/Download/Media/phonon-vlc-mplayer/build'
make[1]: *** [libs/tkutil/CMakeFiles/tkutil.dir/all] Error 2
make[1]: Leaving directory
`/home/shiva/Download/Media/phonon-vlc-mplayer/build'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
SVN - At revision 433.

Please provide any additional information below.

Original issue reported on code.google.com by shivakum...@gmail.com on 30 Aug 2008 at 7:32

GoogleCodeExporter commented 8 years ago
I get the above error, and if I get past that, I later get this linker error:

Linking CXX shared library ../../lib/libmediainfowindow.so                      

cd /home/adam/sources/phonon-vlc-mplayer/build/libs/mediainfowindow && 
/usr/bin/cmake
-E cmake_link_script CMakeFiles/mediainfowindow.dir/link.txt --verbose=1        

/usr/local/bin/c++  -fPIC  -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
-fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -O2 
-DNDEBUG
-DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined 
-lc 
-shared -Wl,-soname,libmediainfowindow.so -o ../../lib/libmediainfowindow.so
CMakeFiles/mediainfowindow.dir/MediaInfoWindow.o
CMakeFiles/mediainfowindow.dir/MediaInfoFetcher.o
CMakeFiles/mediainfowindow.dir/moc_MediaInfoWindow.o
CMakeFiles/mediainfowindow.dir/moc_MediaInfoFetcher.o
-L/home/adam/sources/phonon-vlc-mplayer/build/lib ../../lib/libwebbrowser.so
../../lib/libthumbnailview.so ../../lib/libtkutil.so 
../../lib/libcontentfetcher.so
../../lib/libfiletypes.so ../../lib/libphonon.so.4.3.0 -lkdecore -lkdeui -lkdeui
-lQtSvg -lstreamanalyzer -lstreams -lkdecore -lsolid -lQtCore -lQtNetwork -lSM 
-lICE
-lX11 -lXext -lXft -lXau -lXdmcp -lQtGui ../../lib/libtag.so.1.5.0 -lQtDBus 
-lQtXml
-lz -lbz2 -lresolv -lXtst -lXcursor -lXfixes -lacl -lattr -lXrender -lkio
-Wl,-rpath,/usr/local/lib                                                       

CMakeFiles/mediainfowindow.dir/MediaInfoFetcher.o: In function
`MediaInfoFetcher::startTagLibResolver()':                    
MediaInfoFetcher.cpp:(.text+0x1a91): undefined reference to
`TagLib::String::String(char const*, TagLib::String::Type)'      

followed by a whole bunch more similar undefined reference errors. Similar 
ubuntu
based build environment (which is why I'm attaching this to the same bug 
report).

Original comment by agfors...@gmail.com on 4 Sep 2008 at 3:34

GoogleCodeExporter commented 8 years ago
This should be fixed in trunk now.
Cf http://code.google.com/p/phonon-vlc-mplayer/source/detail?r=442

It happens that I break compilation under one or another platform from time to 
time.
Generally it is not a big deal...

For the TagLib link problem, I don't get this error anymore and I don't even 
know
why... You can also switch off TagLib support, it will then use the Phonon 
backend
way to solve mp3 tags and others.

Just let me know

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

GoogleCodeExporter commented 8 years ago
Ubuntu at least needs the following includes in libs/tkutil/FindFiles.cpp for
compilation:

unistd.h for chdir()
lcms.h for MAX_PATH

I compiled without TagLib so didn't encounter that problem again.

Original comment by agfors...@gmail.com on 16 Sep 2008 at 2:53

GoogleCodeExporter commented 8 years ago
I did all the changes as above, but now I get a different error.

[ 94%] Built target videowidget
make -f quarkplayer-app/CMakeFiles/quarkplayer.dir/build.make
quarkplayer-app/CMakeFiles/quarkplayer.dir/depend
make[2]: Entering directory 
`/home/shiva/Download/Media/phonon-vlc-mplayer/build'
/usr/bin/cmake -E cmake_progress_report
/home/shiva/Download/Media/phonon-vlc-mplayer/build/CMakeFiles
[ 94%] Generating quarkplayer_fr.qm
cd /home/shiva/Download/Media/phonon-vlc-mplayer/build/quarkplayer-app &&
/usr/bin/lrelease -compress -nounfinished -removeidentical
/home/shiva/Download/Media/phonon-vlc-mplayer/quarkplayer-app/translations/quark
player_fr.ts
-qm 
/home/shiva/Download/Media/phonon-vlc-mplayer/build/quarkplayer-app/quarkplayer_
fr.qm
Usage:
    lrelease [options] project-file
    lrelease [options] ts-files [-qm qm-file]
Options:
    -help  Display this information and exit
    -nocompress
           Do not compress the .qm files
    -verbose
           Explain what is being done
    -version
           Display the version of lrelease and exit
make[2]: *** [quarkplayer-app/quarkplayer_fr.qm] Error 1
make[2]: Leaving directory `/home/shiva/Download/Media/phonon-vlc-mplayer/build'
make[1]: *** [quarkplayer-app/CMakeFiles/quarkplayer.dir/all] Error 2
make[1]: Leaving directory `/home/shiva/Download/Media/phonon-vlc-mplayer/build'
make: *** [all] Error 2

Regards,

Shiva

Original comment by shivakum...@gmail.com on 16 Sep 2008 at 3:45

GoogleCodeExporter commented 8 years ago
Well I found why lrelease is not running. It was on QT3. I changed it to QT4 
then it
worked fine.

Shiva

Original comment by shivakum...@gmail.com on 16 Sep 2008 at 3:59

GoogleCodeExporter commented 8 years ago
This bug is obsolete now

Original comment by tkrotoff on 28 Nov 2008 at 5:20