You are not logged in.

#1 2008-01-28 11:16:28

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

[request] QTmpc

hi.. as i am too stupid to handle qmake, as it seems, could someone provide me a working PKGBUILD for
http://qtmpc.lowblog.nl/?


Direct Link to source is http://files.lowblog.nl/qtmpc/QtMPC-0.3.1.tar.bz2

thx

Last edited by Rasi (2008-01-28 11:17:19)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#2 2008-01-28 23:32:13

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: [request] QTmpc

Hello! smile

Aur:
http://aur.archlinux.org/packages.php?d … 1&ID=14957

PKGBUILD:

# Contributor: Shaika-Dzari <shaikadzari at gmail dot com>
pkgname=qtmpc
pkgver=0.3.1
pkgrel=1
pkgdesc="QtMPC is a Qt4-based front-end for MPD"
arch=(i686)
url="http://qtmpc.lowblog.nl/"
license=('GPL')
depends=('qt' 'mpd')
source=(http://files.lowblog.nl/qtmpc/QtMPC-$pkgver.tar.bz2 qtmpc.desktop)
md5sums=('9609ece719ff6419b13a71ac5c8cba5f'
         '107f8387c32169ec5d8f913c29964232')

build() {
  cd "$startdir/src/QtMPC-$pkgver"

  qmake
  make || return 1

  # Executable
  install -Dm755 QtMPC $startdir/pkg/usr/bin/QtMPC

  # .desktop file
  install -Dm644 $startdir/src/qtmpc.desktop $startdir/pkg/usr/share/applications/qtmpc.desktop

  # Icon
  install -Dm644 images/icon.svg $startdir/pkg/usr/share/pixmaps/qtmpc.svg
}

.desktop:

[Desktop Entry]
Name=QtMPC
Comment=Qt4-based front-end for MPD
Exec=QtMPC
Terminal=false
Type=Application
Icon=qtmpc
Categories=Qt;Application;AudioVideo;Player;

Offline

#3 2008-01-29 00:23:25

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [request] QTmpc

thx.. did you test the package tho?

==> Betrete fakeroot-Umgebung ...
==> Beginne build()...
qt.prf:122: Unknown test function: qtAddLibrary
qt.prf:122: Unknown test function: qtAddLibrary
Qt user interface compiler.
uic: Unrecognized option
Usage: /opt/qt/bin/uic  [options] [mode] <uifile>

Generate declaration:
   /opt/qt/bin/uic  [options] <uifile>
Generate implementation:
   /opt/qt/bin/uic  [options] -impl <headerfile> <uifile>
    <headerfile>    name of the declaration file
Generate image collection:
   /opt/qt/bin/uic  [options] -embed <project> <image1> <image2> <image3> ...
or
   /opt/qt/bin/uic  [options] -embed <project> -f <temporary file containing image names>
    <project>       project name
    <image[1-N]>    image files
Generate subclass declaration:
   /opt/qt/bin/uic  [options] -subdecl <subclassname> <baseclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <baseclassheaderfile>    declaration file of the baseclass
Generate subclass implementation:
   /opt/qt/bin/uic  [options] -subimpl <subclassname> <subclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <subclassheaderfile>    declaration file of the subclass
Options:
    -o file         Write output to file rather than stdout
    -pch file       Add #include "file" as the first statement in implementation
    -nofwd          Omit forward declarations of custom classes
    -nounload       Don't unload plugins after processing
    -tr func        Use func() instead of tr() for i18n
    -L path         Additional plugin search path
    -version        Display version of uic
    -help           Display this information
Qt user interface compiler.
uic: Unrecognized option
Usage: /opt/qt/bin/uic  [options] [mode] <uifile>

Generate declaration:
   /opt/qt/bin/uic  [options] <uifile>
Generate implementation:
   /opt/qt/bin/uic  [options] -impl <headerfile> <uifile>
    <headerfile>    name of the declaration file
Generate image collection:
   /opt/qt/bin/uic  [options] -embed <project> <image1> <image2> <image3> ...
or
   /opt/qt/bin/uic  [options] -embed <project> -f <temporary file containing image names>
    <project>       project name
    <image[1-N]>    image files
Generate subclass declaration:
   /opt/qt/bin/uic  [options] -subdecl <subclassname> <baseclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <baseclassheaderfile>    declaration file of the baseclass
Generate subclass implementation:
   /opt/qt/bin/uic  [options] -subimpl <subclassname> <subclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <subclassheaderfile>    declaration file of the subclass
Options:
    -o file         Write output to file rather than stdout
    -pch file       Add #include "file" as the first statement in implementation
    -nofwd          Omit forward declarations of custom classes
    -nounload       Don't unload plugins after processing
    -tr func        Use func() instead of tr() for i18n
    -L path         Additional plugin search path
    -version        Display version of uic
    -help           Display this information
Qt user interface compiler.
uic: Unrecognized option
Usage: /opt/qt/bin/uic  [options] [mode] <uifile>

Generate declaration:
   /opt/qt/bin/uic  [options] <uifile>
Generate implementation:
   /opt/qt/bin/uic  [options] -impl <headerfile> <uifile>
    <headerfile>    name of the declaration file
Generate image collection:
   /opt/qt/bin/uic  [options] -embed <project> <image1> <image2> <image3> ...
or
   /opt/qt/bin/uic  [options] -embed <project> -f <temporary file containing image names>
    <project>       project name
    <image[1-N]>    image files
Generate subclass declaration:
   /opt/qt/bin/uic  [options] -subdecl <subclassname> <baseclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <baseclassheaderfile>    declaration file of the baseclass
Generate subclass implementation:
   /opt/qt/bin/uic  [options] -subimpl <subclassname> <subclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <subclassheaderfile>    declaration file of the subclass
Options:
    -o file         Write output to file rather than stdout
    -pch file       Add #include "file" as the first statement in implementation
    -nofwd          Omit forward declarations of custom classes
    -nounload       Don't unload plugins after processing
    -tr func        Use func() instead of tr() for i18n
    -L path         Additional plugin search path
    -version        Display version of uic
    -help           Display this information
/opt/qt/bin/uic gui/main_window.ui -o ui_main_window.h
uic: File generated with too recent version of Qt Designer (4.0 vs. 3.3.8)
make: *** [ui_main_window.h] Fehler 1
==> FEHLER: Build fehlgeschlagen.
    Breche ab ...
carnager:~/qtm$

He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#4 2008-01-29 00:27:35

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: [request] QTmpc

Hello!

Yes, I tested my package.

Is your system up to date?

Usage: /opt/qt/bin/uic  [options] [mode] <uifile>

Look like old path for qt3/qt4...

Offline

#5 2008-01-29 07:51:13

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [request] QTmpc

yea.. i am really not sure whats happening here...

when i first tried to compile the package on my own "qmake" didnt give me any errors.
Now it gives me the same thing, than your PKGBUILD.

Somethings messed sad


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#6 2008-01-29 08:10:35

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

Re: [request] QTmpc

in the above PKGBUILD, try replacing
qmake
by
/usr/bin/qmake

That will force it to use qt4's qmake.

Offline

#7 2008-01-29 10:03:54

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [request] QTmpc

gives exactly the same error...

carnager:~/qtm/src/QtMPC-0.3.1$ qmake --version
QMake version 2.01a
Using Qt version 4.3.3 in /usr/lib
carnager:~/qtm/src/QtMPC-0.3.1$ /opt/qt/bin/qmake --version
Qmake version: 1.07a (Qt 3.3.8)
Qmake is free software from Trolltech ASA.
carnager:~/qtm/src/QtMPC-0.3.1$ /usr/bin/qmake             
qt.prf:122: Unknown test function: qtAddLibrary
qt.prf:122: Unknown test function: qtAddLibrary
Qt user interface compiler.
uic: Unrecognized option
Usage: /opt/qt/bin/uic  [options] [mode] <uifile>

Generate declaration:
   /opt/qt/bin/uic  [options] <uifile>
Generate implementation:
   /opt/qt/bin/uic  [options] -impl <headerfile> <uifile>
    <headerfile>    name of the declaration file
Generate image collection:
   /opt/qt/bin/uic  [options] -embed <project> <image1> <image2> <image3> ...
or
   /opt/qt/bin/uic  [options] -embed <project> -f <temporary file containing image names>
    <project>       project name
    <image[1-N]>    image files
Generate subclass declaration:
   /opt/qt/bin/uic  [options] -subdecl <subclassname> <baseclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <baseclassheaderfile>    declaration file of the baseclass
Generate subclass implementation:
   /opt/qt/bin/uic  [options] -subimpl <subclassname> <subclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <subclassheaderfile>    declaration file of the subclass
Options:
    -o file         Write output to file rather than stdout
    -pch file       Add #include "file" as the first statement in implementation
    -nofwd          Omit forward declarations of custom classes
    -nounload       Don't unload plugins after processing
    -tr func        Use func() instead of tr() for i18n
    -L path         Additional plugin search path
    -version        Display version of uic
    -help           Display this information
Qt user interface compiler.
uic: Unrecognized option
Usage: /opt/qt/bin/uic  [options] [mode] <uifile>

Generate declaration:
   /opt/qt/bin/uic  [options] <uifile>
Generate implementation:
   /opt/qt/bin/uic  [options] -impl <headerfile> <uifile>
    <headerfile>    name of the declaration file
Generate image collection:
   /opt/qt/bin/uic  [options] -embed <project> <image1> <image2> <image3> ...
or
   /opt/qt/bin/uic  [options] -embed <project> -f <temporary file containing image names>
    <project>       project name
    <image[1-N]>    image files
Generate subclass declaration:
   /opt/qt/bin/uic  [options] -subdecl <subclassname> <baseclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <baseclassheaderfile>    declaration file of the baseclass
Generate subclass implementation:
   /opt/qt/bin/uic  [options] -subimpl <subclassname> <subclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <subclassheaderfile>    declaration file of the subclass
Options:
    -o file         Write output to file rather than stdout
    -pch file       Add #include "file" as the first statement in implementation
    -nofwd          Omit forward declarations of custom classes
    -nounload       Don't unload plugins after processing
    -tr func        Use func() instead of tr() for i18n
    -L path         Additional plugin search path
    -version        Display version of uic
    -help           Display this information
Qt user interface compiler.
uic: Unrecognized option
Usage: /opt/qt/bin/uic  [options] [mode] <uifile>

Generate declaration:
   /opt/qt/bin/uic  [options] <uifile>
Generate implementation:
   /opt/qt/bin/uic  [options] -impl <headerfile> <uifile>
    <headerfile>    name of the declaration file
Generate image collection:
   /opt/qt/bin/uic  [options] -embed <project> <image1> <image2> <image3> ...
or
   /opt/qt/bin/uic  [options] -embed <project> -f <temporary file containing image names>
    <project>       project name
    <image[1-N]>    image files
Generate subclass declaration:
   /opt/qt/bin/uic  [options] -subdecl <subclassname> <baseclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <baseclassheaderfile>    declaration file of the baseclass
Generate subclass implementation:
   /opt/qt/bin/uic  [options] -subimpl <subclassname> <subclassheaderfile> <uifile>
    <subclassname>     name of the subclass to generate
    <subclassheaderfile>    declaration file of the subclass
Options:
    -o file         Write output to file rather than stdout
    -pch file       Add #include "file" as the first statement in implementation
    -nofwd          Omit forward declarations of custom classes
    -nounload       Don't unload plugins after processing
    -tr func        Use func() instead of tr() for i18n
    -L path         Additional plugin search path
    -version        Display version of uic
    -help           Display this information
carnager:~/qtm/src/QtMPC-0.3.1$

Last edited by Rasi (2008-01-29 10:09:10)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#8 2008-01-29 13:19:50

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: [request] QTmpc

Hello!

Give me the result of this command:

pacman -Qs qt

@+

Offline

#9 2008-01-29 13:31:29

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [request] QTmpc

carnager:~$ pacman -Qs qt
local/dbus-qt3 0.62-3
    QT3 bindings for DBUS
local/kdemod-gtk-qt-engine 0.8-5
    A GTK engine which makes your GTK2 Apps match your QT theme
local/picard-qt 0.9.0beta1-2
    Next generation MusicBrainz tagging application (QT4 interface)
local/poppler-qt 0.6.3-1
    Poppler Qt bindings
local/poppler-qt3 0.6.3-1
    Poppler Qt3 bindings
local/poppler-qt4 0.6.3-1
    Poppler glib bindings
local/pyqt 4.3.3-1
    PyQt is a set of Python bindings for the Qt toolkit.
local/qca 2.0.0.svn744387-1.1
    Qt Cryptographic Architecture
local/qca-qt3 1.0-1
    QT Cryptography Architecture
local/qca-tls 1.0-5
    plugin to provide SSL/TLS capability to programs that utilize the Qt
    Cryptographic Architecture
local/qmpdclient 1.0.8-2
    A Qt4 client for MPD
local/qscintilla 2.1-3
    QScintilla2 is a port to Qt4 of Neil Hodgson's Scintilla C++ editor class.
local/qt 4.3.3-4
    The QT gui toolkit.
local/qt-enhanced 3.3.8-17 (kdemod)
    The Qt GUI toolkit (KDEmod)
local/qtcurve-kde3 0.55.2-1 (qtcurve)
    A configurable set of widget styles for KDE and Gtk
local/qtcurve-kde4 0.55.2-2 (qtcurve)
    A configurable set of widget styles for KDE and Gtk
local/smplayer 0.5.62-2
    A complete front-end for MPlayer
local/tapioca-qt 0.14.1-1
    Qt4 package containing high-level classes on top of TelepathyQt for use in
    clients
local/telepathy-qt 0.14.1-1
    Qt4 package containing base classes for use in connection managers, and
    proxy classes for use in clients

He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#10 2008-01-29 13:49:40

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: [request] QTmpc

Try this:

Paste this in a shell:

export QTDIR=/usr
export QMAKESPEC=$QTDIR/share/qt/mkspecs/linux-g++

and try again.

You problem is qt-enhanced. It did not properly interact with standard qt 4 package of Arch.

Offline

#11 2008-01-29 14:35:10

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [request] QTmpc

alright... this at least made it start...

==> Beginne build()...
g++ -c -pipe -g -D_REENTRANT -Wall -W -DQT_NO_DEBUG_OUTPUT -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtXml -I/usr/include -I. -Ilib -I. -I. -o main.o main.cpp
In file included from main.cpp:3:
gui/main_window.h:20: Fehler: »Ui« wurde nicht deklariert
gui/main_window.h:20: Fehler: expected `{' before »MainWindow«
gui/main_window.h:20: Fehler: Funktionsdefinition deklariert keine Parameter
main.cpp: In function »int main(int, char**)«:
main.cpp:11: Fehler: Aggregat »MainWindow w« hat unvollständigen Typ und kann nicht definiert werden
make: *** [main.o] Fehler 1
==> FEHLER: Build fehlgeschlagen.
    Breche ab ...
carnager:~/qtm$

should i report this to funkyou?


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#12 2008-01-29 15:03:36

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: [request] QTmpc

should i report this to funkyou?

Maybe. Personnally, I use standard qt3/qt4 and I have no problem hmm

Offline

#13 2008-01-30 23:37:20

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [request] QTmpc

update of qt-enhanced solved the problem...


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

Board footer

Powered by FluxBB