You are not logged in.

#1 2008-10-29 23:48:24

edenxavier
Member
Registered: 2008-03-02
Posts: 35

AUR: Museek-plus fails to compile

Continued from this thread.  For installing Museek-plus via the AUR, I had to slightly edit its PKGBUILD:

...
build() {
  # Qt3 required
  . /etc/profile.d/qt3.sh
...

I had to insert a 3 after qt or else it would give me an error.  Now when I finally begin the build, this is what I get:

==> Building and installing package
==> Making package: museek-plus 0.1.13-1 pentium4 (Thu Oct 30 19:40:33 EST 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found museek+-0.1.13.tar.bz2 in build dir
  -> Found post_release_fixes.patch in build dir
==> Validating source files with md5sums...
    museek+-0.1.13.tar.bz2 ... Passed
    post_release_fixes.patch ... Passed
==> Extracting Sources...
  -> bsdtar -x -f museek+-0.1.13.tar.bz2
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
patching file museeq/translations/museeq_pl.ts
patching file museeq/translations/museeq_it.ts
patching file museeq/SConscript
patching file museeq/CMakeLists.txt
patching file museeq/mainwin.cpp
Updating '/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/museeq/translations/museeq_de.qm'...
    Generated 372 translation(s) (344 finished and 28 unfinished)
    Ignored 46 untranslated source text(s)
Updating '/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/museeq/translations/museeq_es.qm'...
    Generated 376 translation(s) (347 finished and 29 unfinished)
    Ignored 42 untranslated source text(s)
Updating '/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/museeq/translations/museeq_fr.qm'...
    Generated 375 translation(s) (344 finished and 31 unfinished)
    Ignored 43 untranslated source text(s)
Updating '/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/museeq/translations/museeq_it.qm'...
    Generated 418 translation(s) (418 finished and 0 unfinished)
Updating '/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/museeq/translations/museeq_nl.qm'...
    Generated 390 translation(s) (367 finished and 23 unfinished)
    Ignored 28 untranslated source text(s)
Updating '/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/museeq/translations/museeq_pl.qm'...
    Generated 417 translation(s) (415 finished and 2 unfinished)
    Ignored 1 untranslated source text(s)
Updating '/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/museeq/translations/museeq_pt_BR.qm'...
    Generated 327 translation(s) (302 finished and 25 unfinished)
    Ignored 91 untranslated source text(s)
Updating '/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/museeq/translations/museeq_ro.qm'...
    Generated 397 translation(s) (396 finished and 1 unfinished)
    Ignored 21 untranslated source text(s)
mkdir: cannot create directory `workdir': File exists
DECLARATIONS: PREFIX (/usr), MANDIR (PREFIX/man)
Package options: EVERYTHING, NO_MUSEEKD, NO_MUSCAN, NO_SETUP, NO_MUSEEQ, NO_PYMUCIPHER, BINDINGS, MURMUR, MUCOUS, CLIENTS
Museeq options: BINRELOC, DATADIR (PREFIX/share), TRAYICON
Museekd options MULOG (debug and status messages), MULOG_CALLTRACE MULOG_TT MULOG_CYCLE
Prefix these declarations with -D and set them with either 1, 0 or a path.
Set -DEVERYTHING=1 if you want it all
-- FAM found at /usr/lib/libfam.so. muscand will be compiled
-- Vorbisfile library found at /usr/lib/libvorbisfile.so.
--> PyMucipher will be installed.. [NO_PYMUCIPHER=1]
--> muscan (file scanner) will be installed..
--> muscand (FAM-based file scanning daemon) will be installed..
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
--> Museek Daemon (museekd) will be installed..
--> Python Bindings will be installed..
--> mulog, museekchat, museekcontrol, musirc.py will be installed..
--> musetup, musetup-gtk, musetup-qt will be installed..
--> Mucous will be installed..
--> Murmur will be installed..
DECLARATIONS: PREFIX (/usr), MANDIR (PREFIX/man), DATADIR (PREFIX/share), BINRELOC, TRAYICON
Prefix declarations with -D and set them with either 1, 0 or a path.
QSA is detected automatically

CMake Warning (dev) at museeq/Mucipher/CMakeLists.txt:10 (add_library):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at museeq/CMakeLists.txt:105 (ADD_DEFINITIONS):
  Policy CMP0005 is not set: Preprocessor definition values are now escaped
  automatically.  Run "cmake --help-policy CMP0005" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- QSA available
-- moc binary:/opt/qt/bin/moc
-- lrelease binary:/usr/bin/lrelease
--> Museeq will be installed.. [NO_MUSEEQ=1]
 * with Binary Relocation.. [BINRELOC=0]
 * with a Trayicon.. [TRAYICON=0]
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
CMake Warning (dev) at museeq/CMakeLists.txt:307 (add_executable):
  Policy CMP0003 should be set before this line.  Add code such as

    if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
    endif(COMMAND cmake_policy)

  as early as possible but after the most recent call to
  cmake_minimum_required or cmake_policy(VERSION).  This warning appears
  because target "museeq" links to some libraries for which the linker must
  search:

    dl, -lpthread

  and other libraries with known full path:

    /tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/Mucipher/libMucipher.a
    /opt/qt/lib/libqassistantclient.a

  CMake is adding directories in the second list to the linker search path in
  case they are needed to find libraries from the first list (for backwards
  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable
  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for
  more information.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir
[  2%] Built target Mucipher
[  3%] Swig source
[  3%] Building C object PyMucipher/CMakeFiles/_mucipherc.dir/mucipherPYTHON_wrap.o
Linking C shared module _mucipherc.so
[  6%] Built target _mucipherc
[  7%] Building CXX object Muhelp/CMakeFiles/Muhelp.dir/DirEntry.o
In file included from /tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/Muhelp/DirEntry.cc:22:
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/./Muhelp/DirEntry.hh:32: warning: 'typedef' was ignored in this declaration
In file included from /tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/Muhelp/DirEntry.cc:23:
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/./Muhelp/string_ext.hh: In function 'unsigned int split(const std::string&, std::vector<double, std::allocator<double> >&, std::string)':
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/./Muhelp/string_ext.hh:102: error: 'atof' was not declared in this scope
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/./Muhelp/string_ext.hh: In function 'unsigned int split(const std::string&, std::vector<int, std::allocator<int> >&, std::string)':
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/./Muhelp/string_ext.hh:119: error: 'atoi' was not declared in this scope
make[2]: *** [Muhelp/CMakeFiles/Muhelp.dir/DirEntry.o] Error 1
make[1]: *** [Muhelp/CMakeFiles/Muhelp.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build museek-plus package.

I'm unsure how to decipher this.  Any help on a workaround or solution wouldbe greatly appreciated!

Offline

#2 2008-10-30 02:23:18

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: AUR: Museek-plus fails to compile

Offline

#3 2008-10-30 08:00:01

edenxavier
Member
Registered: 2008-03-02
Posts: 35

Re: AUR: Museek-plus fails to compile

Snowman,

Here's what I did so far:  I included the following line into the PKGBUILD:

  patch -p1 < $startdir/museek+-0.1.13-gcc43.patch || return 1

However, before running makepkg -c, I had to edit the patch and the listed locations or else it would complain about not being able to find the proper files:

Before:

--- /museek+/trunk/sources/Museek/Museek.cc
+++ /museek+/trunk/sources/Museek/Museek.cc

After:

--- /Museek/Museek.cc
+++ /Museek/Museek.cc

Running makepkg -c again, the files are finally located and patched, and the compiling continues.   Apparently it compiles a little further than the time when I didn't use the patch you provided.  But, here's where it stops:

...

tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/museeq/mainwin.cpp:815: warning: deprecated conversion from string constant to 'char*'
[ 28%] Building CXX object museeq/CMakeFiles/museeq.dir/aclineedit.moc.o
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:12:2: error: #error "The header file 'aclineedit.h' doesn't include <QObject>."
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:20: error: expected constructor, destructor, or type conversion before 'static'
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:40: error: 'const QMetaObject ACLineEdit::staticMetaObject' is not a static member of 'class ACLineEdit'
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:40: error: variable 'const QMetaObject ACLineEdit::staticMetaObject' has initializer but incomplete type
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:42: error: 'qt_meta_data_ACLineEdit' was not declared in this scope
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:45: error: prototype for 'const QMetaObject* ACLineEdit::metaObject() const' does not match any in class 'ACLineEdit'
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/../../museeq/aclineedit.h:26: error: candidate is: virtual QMetaObject* ACLineEdit::metaObject() const
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:50: error: no 'void* ACLineEdit::qt_metacast(const char*)' member function declared in class 'ACLineEdit'
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:58: error: 'int ACLineEdit::qt_metacall' is not a static member of 'class ACLineEdit'
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:58: error: incomplete type 'QMetaObject' used in nested name specifier
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:58: error: expected primary-expression before 'int'
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:58: error: expected primary-expression before 'void'
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:58: error: initializer expression list treated as compound expression
/tmp/yaourt-tmp-bryann/aur-museek-plus/museek-plus/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:59: error: expected ',' or ';' before '{' token
make[2]: *** [museeq/CMakeFiles/museeq.dir/aclineedit.moc.o] Error 1
make[1]: *** [museeq/CMakeFiles/museeq.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...

And so that's where it stops. sad

Offline

#4 2008-11-07 02:11:18

edenxavier
Member
Registered: 2008-03-02
Posts: 35

Re: AUR: Museek-plus fails to compile

*bump.

Offline

#5 2008-11-08 08:57:27

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: AUR: Museek-plus fails to compile

You don't need to edit the patch, use:
  patch -p4 < $startdir/src/museek+-0.1.13-gcc43.patch || return 1

The problems is that it detects and tries to use qt4 stuff.
To build it, use a chroot, or simply:
pacman -Rd qt
makepkg
pacman -S qt

Offline

#6 2008-11-22 23:16:16

kcr
Member
Registered: 2007-02-09
Posts: 21

Re: AUR: Museek-plus fails to compile

hello snowman,
i did everything you said but it's giving me the same error

/home/kcr/museek/src/museek+-0.1.13/museeq/museeqtypes.h:45: warning: 'typedef' was ignored in this declaration                                                                                                       
[ 75%] Building CXX object museeq/CMakeFiles/museeq.dir/trayicon.o                                         
[ 75%] Building CXX object museeq/CMakeFiles/museeq.dir/aclineedit.moc.o                                   
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:12:2: error: #error "The header file 'aclineedit.h' doesn't include <QObject>."                                                                 
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:20: error: expected constructor, destructor, or type conversion before 'static'                                                                 
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:40: error: 'const QMetaObject ACLineEdit::staticMetaObject' is not a static member of 'class ACLineEdit'                                        
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:40: error: variable 'const QMetaObject ACLineEdit::staticMetaObject' has initializer but incomplete type                                        
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:42: error: 'qt_meta_data_ACLineEdit' was not declared in this scope                                                                             
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:45: error: prototype for 'const QMetaObject* ACLineEdit::metaObject() const' does not match any in class 'ACLineEdit'                           
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/../../museeq/aclineedit.h:26: error: candidate is: virtual QMetaObject* ACLineEdit::metaObject() const
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:50: error: no 'void* ACLineEdit::qt_metacast(const char*)' member function declared in class 'ACLineEdit'
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:58: error: 'int ACLineEdit::qt_metacall' is not a static member of 'class ACLineEdit'
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:58: error: incomplete type 'QMetaObject' used in nested name specifier
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:58: error: expected primary-expression before 'int'
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:58: error: expected primary-expression before 'void'
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:58: error: initializer expression list treated as compound expression
/home/kcr/museek/src/museek+-0.1.13/workdir/museeq/aclineedit.moc.cpp:59: error: expected ',' or ';' before '{' token
make[2]: *** [museeq/CMakeFiles/museeq.dir/aclineedit.moc.o] Error 1
make[1]: *** [museeq/CMakeFiles/museeq.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...

this is my PKGBUILD

# Contributer "daelstorm <daelstorm@gmail.com>"
# Sat Aug 25 21:41:47 IDT 2007

pkgname=museek-plus
pkgver=0.1.13
pkgrel=1
pkgdesc="Museek+ is a C++ daemon/client Soulseek P2P client, that includes QT, PyGTK, and Curses UIs and a PyGTK config tool."
url="http://www.museek-plus.org/"
license="GPL"
depends=('libxml++2' 'libogg' 'libvorbis' 'python' 'qt3' 'qsa3' 'pygtk')
source=(http://downloads.sourceforge.net/museek-plus/museek+-$pkgver.tar.bz2)
arch=(i686 x86_64)
makedepends=('cmake' 'pkgconfig' 'swig')
conflicts=('mucous' 'museek-plus-svn')
replaces=('mucous' 'museek-plus' 'museek-plus-svn')
md5sums=()
build() {
  # Qt3 required
  . /etc/profile.d/qt3.sh
  cd $startdir/src/museek+-$pkgver/
  patch -p4 < $startdir/src/museek+-0.1.13-gcc43.patch || return 1
  cd museeq
  # build .qm translations from .ts
  lrelease museeq.pro
  cd ..
  mkdir -p $startdir/pkg/etc/rc.d/
  cp museekd.rc $startdir/pkg/etc/rc.d/museekd
  mkdir workdir
  cd workdir
  # Museekd with debugging, Museeq with trayicon & binary relocation
  # all python tools, clients, bindings
  cmake -DSWIG_DIR=/usr/share/swig/1.3.31 -DMULOG=1 -DEVERYTHING=1 -DPREFIX=/usr -DTRAYICON=1 -DBINRELOC=1 .. || return 1
  make || return 1 # VERBOSE=1
  make install DESTDIR=$startdir/pkg || return 1
  
}

thanks for the help...

kcr

p.s.
i have kdemod and qtmod..

Last edited by kcr (2008-11-22 23:20:11)

Offline

#7 2008-11-23 08:19:25

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: AUR: Museek-plus fails to compile

I assume you removed and reinstalled qtmod instead of qt, right?  If yes, I can't see why it didn't work.

Offline

#8 2008-11-23 08:44:51

kcr
Member
Registered: 2007-02-09
Posts: 21

Re: AUR: Museek-plus fails to compile

thanks for the reply, so what can i do?
i'll try again, maybe i made something wrong..

thanks..

kcr

Last edited by kcr (2008-11-23 08:47:21)

Offline

#9 2009-02-13 02:36:18

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: AUR: Museek-plus fails to compile

* bump x 2.

daelstrom... where you at?

Last edited by kludge (2009-02-13 03:06:45)


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

Board footer

Powered by FluxBB