#1 kmetronome-0.8.0 does not compile.

closed-fixed
nobody
None
5
2008-03-21
2007-01-12
Jouni Rinne
No

I use Gentoo linux (glibc-2.5, gcc-4.1.1, alsa-lib-1.0.14rc1, kde-3.5.5). When trying to compile (as per instructions in INSTALL) kmetronome-0.8.0 I get the following error:

-- Check for working C compiler: /usr/lib/ccache/bin/gcc
-- Check for working C compiler: /usr/lib/ccache/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++ -- works
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Qt3 (version 3.3.6)
-- Found KDE3 include dir: /usr/kde/3.5/include
-- Found KDE3 library dir: /usr/kde/3.5/lib
-- Found KDE3 dcopidl preprocessor: /usr/kde/3.5/bin/dcopidl
-- Found KDE3 dcopidl2cpp preprocessor: /usr/kde/3.5/bin/dcopidl2cpp
-- Found KDE3 kconfig_compiler preprocessor: /usr/kde/3.5/bin/kconfig_compiler
-- Program pkg-config found (/usr/bin/pkg-config)
-- checking for module 'alsa>=1.0'
-- found alsa, version 1.0.14rc1
-- Program msgfmt found (/usr/bin/msgfmt)
-- Program meinproc found (/usr/kde/3.5/bin/meinproc)
-- kmetronome 0.8.0 will be built for install into /usr/kde/3.5
-- Configured to compile for release without debug information
-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/media-sound/kmetronome-0.8.0/work/kmetronome-0.8.0
[ 4%] Generating kmetropreferencesbase.h
[ 8%] Generating kmetronome.moc
[ 12%] Generating kmetronomeview.moc
[ 16%] Generating kmetropreferences.moc
[ 20%] Generating kmetroiface.kidl
[ 24%] Generating kmetroiface_skel.cpp
[ 28%] Generating kmetroiface_stub.cpp
[ 32%] Generating kmetronomeviewbase.h
[ 36%] Generating kmetronomeviewbase.cpp
[ 40%] Generating kmetronomeviewbase.moc.cpp
[ 44%] Generating kmetropreferencesbase.cpp
[ 48%] Generating kmetropreferencesbase.moc.cpp
Scanning dependencies of target kmetronome
[ 52%] Building CXX object build/CMakeFiles/kmetronome.dir/kmetronome.o
/var/tmp/portage/media-sound/kmetronome-0.8.0/work/kmetronome-0.8.0/src/kmetronome.cpp: In member function 'virtual void KMetronome::customEvent(QCustomEvent*)':
/var/tmp/portage/media-sound/kmetronome-0.8.0/work/kmetronome-0.8.0/src/kmetronome.cpp:189: error: jump to case label
/var/tmp/portage/media-sound/kmetronome-0.8.0/work/kmetronome-0.8.0/src/kmetronome.cpp:186: error: crosses initialization of 'MetronomeEvent* me'
/var/tmp/portage/media-sound/kmetronome-0.8.0/work/kmetronome-0.8.0/src/kmetronome.cpp:203: error: jump to case label
/var/tmp/portage/media-sound/kmetronome-0.8.0/work/kmetronome-0.8.0/src/kmetronome.cpp:190: error: crosses initialization of 'TransportEvent* te'
/var/tmp/portage/media-sound/kmetronome-0.8.0/work/kmetronome-0.8.0/src/kmetronome.cpp:186: error: crosses initialization of 'MetronomeEvent* me'
/var/tmp/portage/media-sound/kmetronome-0.8.0/work/kmetronome-0.8.0/src/kmetronome.cpp:207: error: jump to case label
/var/tmp/portage/media-sound/kmetronome-0.8.0/work/kmetronome-0.8.0/src/kmetronome.cpp:204: error: crosses initialization of 'NotationEvent* ne'
/var/tmp/portage/media-sound/kmetronome-0.8.0/work/kmetronome-0.8.0/src/kmetronome.cpp:190: error: crosses initialization of 'TransportEvent* te'
/var/tmp/portage/media-sound/kmetronome-0.8.0/work/kmetronome-0.8.0/src/kmetronome.cpp:186: error: crosses initialization of 'MetronomeEvent* me'
make[2]: *** [build/CMakeFiles/kmetronome.dir/kmetronome.o] Error 1
make[1]: *** [build/CMakeFiles/kmetronome.dir/all] Error 2
make: *** [all] Error 2

Kmidimon-0.5.0 compiled & works fine, BTW

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Same error

     
  • Joshua Foster

    Joshua Foster - 2008-02-26

    Logged In: YES
    user_id=1984470
    Originator: NO

    It can be made to compile by putting brackets around the body of each of the 3 "case" statements in KMetronome::customEvent(). Maybe the author is using some weird compiler switch to treat this as a warning rather than an error...

     
  • Pedro Lopez-Cabanillas

    Logged In: YES
    user_id=624187
    Originator: NO

    Fixed in 0.8.1

     
  • Pedro Lopez-Cabanillas

    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks