shahid334 / sayonara-player

Automatically exported from code.google.com/p/sayonara-player
0 stars 0 forks source link

last svn 885 didn't compile on Fedora 20 #98

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
i used a rpm spec file that use the following commands:

+ cd sayonara-player-r885
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 
-mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 
-mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 
-mtune=generic -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 
-mtune=generic -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro '
+ export LDFLAGS
+ /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG 
-DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG 
-DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON 
-DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include 
-DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc 
-DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 
-DBUILD_SHARED_LIBS:BOOL=ON
-- The C compiler identification is GNU 4.8.3
-- The CXX compiler identification is GNU 4.8.3
-- Check for working C compiler: /usr/lib64/ccache/cc
-- Check for working C compiler: /usr/lib64/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- checking for module 'glib-2.0'
--   found glib-2.0, version 2.38.2
-- checking for module 'gobject-2.0'
--   found gobject-2.0, version 2.38.2
-- checking for module 'taglib>=1.6'
--   found taglib, version 1.9.1
-- checking for module 'libcurl'
--   found libcurl, version 7.32.0
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.6") 
-- checking for module 'gstreamer-1.0'
--   found gstreamer-1.0, version 1.2.4
-- checking for module 'gstreamer-base-1.0'
--   found gstreamer-base-1.0, version 1.2.4
-- checking for module 'gstreamer-app-1.0'
--   found gstreamer-app-1.0, version 1.2.4
Will use Gstreamer 1.2.4
-- checking for module 'libnotify'
--   found libnotify, version 0.7.6
Update to Version 0.4.0-r885
Will install to /usr
To change this, use the -DCMAKE_INSTALL_PREFIX parameter
-- Configuring done
CMake Error: The inter-target dependency graph contains the following strongly 
connected component (cycle):
  "sayonara_helper" of type SHARED_LIBRARY
    depends on "sayonara_db" (weak)
  "sayonara_db" of type SHARED_LIBRARY
    depends on "sayonara_helper" (weak)
At least one of these targets is not a STATIC_LIBRARY.  Cyclic dependencies are 
allowed only among static libraries.
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CXX_FLAGS_RELEASE
    CMAKE_C_FLAGS_RELEASE
    CMAKE_Fortran_FLAGS_RELEASE
    INCLUDE_INSTALL_DIR
    LIB_INSTALL_DIR
    LIB_SUFFIX
    SHARE_INSTALL_PREFIX
    SYSCONF_INSTALL_DIR

-- Build files have been written to: 
/home/martin/rpmbuild/BUILD/sayonara-player-r885

Original issue reported on code.google.com by Martin.G...@gmail.com on 5 Sep 2014 at 6:37

GoogleCodeExporter commented 8 years ago
Hi! I really wonder why CMake behaves so different between the distributions. 
Problem is that I added multiple CMakeLists.txt files in different modules. 
Those modules *should* be bundled in .a files (static libraries). Your CMake 
configuration obviously doesn't. In all those modules I added the word STATIC 
for ADD_LIBRARY in CMakeLists.txt now. But I can remember that I removed this 
word once from the GUI component due to some problem, but I cannot remember the 
reason for it.

Something different (1): I see, that you are about to use /usr/lib64 as library 
path. I am pretty sure this won't work because Sayonara searches its plugins in 
${CMAKE_INSTALL_PREFIX}/lib/sayonara/

Something different (2): In this new version the C++11 standard is used. Check 
if your gcc version will use -std=c++11 as default, otherwise you have to add 
this compiler-flag, too

My Google adress is also my jabber address. Add me there, so I can answer you 
faster, if there are problems. Thanks a lot for doing this work.

Original comment by LucioCarreras@gmail.com on 5 Sep 2014 at 7:58

GoogleCodeExporter commented 8 years ago
with svn886 it compiles fine again.
Thanks Martin

Original comment by Martin.G...@gmail.com on 5 Sep 2014 at 12:31

GoogleCodeExporter commented 8 years ago
a nother question about to create a debuging package.

i have the following settings in src/CMakeLists.txt, but no debuging package was
created.

SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
#SET(CMAKE_BUILD_TYPE "Release")
#SET(CMAKE_C_FLAGS "-Wall -O2 -s")
SET(CMAKE_CXX_FLAGS "-Woverloaded-virtual -Wall -O2 -s -std=c++11")

SET(CMAKE_BUILD_TYPE "Debug")
#SET(CMAKE_CXX_FLAGS "-Woverloaded-virtual -Wall -std=c++11 -Wunreachable-code")
#SET(CMAKE_C_FLAGS "-Wall")

Original comment by Martin.G...@gmail.com on 5 Sep 2014 at 1:36

GoogleCodeExporter commented 8 years ago
The results of building with Debug flag are not very obvious. The difference is 
that the binary and the libraries are significantly bigger due to the fact that 
they are not stripped and containing debug symbols. If this does not apply to 
your issue, try to 

make clean
find . -name "CMakeCache*" -o -name "CMakeFiles*" | xargs rm -rf

and running cmake and make again. The sayonara binary should be around 10M then.

Original comment by LucioCarreras@gmail.com on 5 Sep 2014 at 2:04