Hello,
I'm new to FreeBSD. I use 10.1.
I've created a Makefile for cantata (QT musicpd player), here it is :
But it fails with those errors :
I know nothing about programming, so I hope you will help me to make it build.
Regards,
Nad
I'm new to FreeBSD. I use 10.1.
I've created a Makefile for cantata (QT musicpd player), here it is :
Code:
# $FreeBSD:$
PORTNAME= cantata
PORTVERSION= 1.4.2
CATEGORIES= audio
MASTER_SITES= https://code.google.com/p/cantata/
MAINTAINER= nobody@FreeBSD.org
COMMENT= Full featured QT client for musicpd
LICENSE= GPLv2
RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123 \
cdparanoia:${PORTSDIR}/audio/cdparanoia \
musicpd:${PORTSDIR}/audio/musicpd
LIB_DEPENDS= libmpd.so:${PORTSDIR}/audio/libmpd \
libmusicbrainz5.so:${PORTSDIR}/audio/libmusicbrainz5 \
libmtp.so:${PORTSDIR}/multimedia/libmtp \
libcddb.so:${PORTSDIR}/audio/libcddb \
libtag.so:${PORTSDIR}/audio/taglib
USE_QT5+= multimedia \
svg \
concurrent
USE_KDE4+= oxygen
USE_GTK2= hicolor-icon-theme
USES= cmake tar:bz2
CMAKE_ARGS= -DCMAKE_PREFIX=${PREFIX} \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_KDE=OFF \
-DENABLE_QT5=ON
MAKE_JOBS_UNSAFE=yes
INSTALLS_ICONS= yes
.include <bsd.port.mk>
But it fails with those errors :
Code:
[LIST=1]
[*][0m[ 96%] Built target cantata
[*][35m[1mScanning dependencies of target ebur128
[*][0m[ 97%] [32mBuilding C object 3rdparty/ebur128/CMakeFiles/ebur128.dir/ebur128.c.o
[*][0m[31m[1mLinking C static library libebur128.a
[*][0m[ 97%] Built target ebur128
[*][ 97%] [34m[1mGenerating moc_replaygain.cpp
[*][0m[ 98%] [34m[1mGenerating moc_trackscanner.cpp
[*][0m[ 98%] [34m[1mGenerating __/support/moc_thread.cpp
[*][0m[35m[1mScanning dependencies of target cantata-replaygain
[*][0m[ 98%] [32mBuilding CXX object replaygain/CMakeFiles/cantata-replaygain.dir/ffmpeginput.cpp.o
[*][0mIn file included from /usr/ports/audio/cantata/work/cantata-1.4.2/replaygain/ffmpeginput.cpp:31:
[*]In file included from /usr/local/include/qt5/QtCore/QFile:1:
[*]In file included from /usr/local/include/qt5/QtCore/qfile.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qfiledevice.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qiodevice.h:47:
[*]In file included from /usr/local/include/qt5/QtCore/qobject.h:49:
[*]In file included from /usr/local/include/qt5/QtCore/qstring.h:50:
[*]In file included from /usr/include/c++/v1/string:437:
[*][1m/usr/include/c++/v1/cstdio:143:9: [0m[0;1;31merror: [0m[1mno member named 'snprintf' in the
[*] global namespace[0m
[*]using ::snprintf;
[*][0;1;32m ~~^
[*][0m[1m/usr/include/c++/v1/cstdio:148:9: [0m[0;1;31merror: [0m[1mno member named 'vfscanf' in the global
[*] namespace; did you mean 'fscanf'?[0m
[*]using ::vfscanf;
[*][0;1;32m ~~^
[*][0m[1m/usr/include/stdio.h:248:6: [0m[0;1;30mnote: [0m'fscanf' declared here[0m
[*]int fscanf(FILE * __restrict, const char * __restrict, ...);
[*][0;1;32m ^
[*][0mIn file included from /usr/ports/audio/cantata/work/cantata-1.4.2/replaygain/ffmpeginput.cpp:31:
[*]In file included from /usr/local/include/qt5/QtCore/QFile:1:
[*]In file included from /usr/local/include/qt5/QtCore/qfile.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qfiledevice.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qiodevice.h:47:
[*]In file included from /usr/local/include/qt5/QtCore/qobject.h:49:
[*]In file included from /usr/local/include/qt5/QtCore/qstring.h:50:
[*]In file included from /usr/include/c++/v1/string:437:
[*][1m/usr/include/c++/v1/cstdio:149:9: [0m[0;1;31merror: [0m[1mno member named 'vscanf' in the global
[*] namespace[0m
[*]using ::vscanf;
[*][0;1;32m ~~^
[*][0m[1m/usr/include/c++/v1/cstdio:150:9: [0m[0;1;31merror: [0m[1mno member named 'vsscanf' in the global
[*] namespace; did you mean 'sscanf'?[0m
[*]using ::vsscanf;
[*][0;1;32m ~~^
[*][0m[1m/usr/include/stdio.h:268:6: [0m[0;1;30mnote: [0m'sscanf' declared here[0m
[*]int sscanf(const char * __restrict, const char * __restrict, ...);
[*][0;1;32m ^
[*][0mIn file included from /usr/ports/audio/cantata/work/cantata-1.4.2/replaygain/ffmpeginput.cpp:31:
[*]In file included from /usr/local/include/qt5/QtCore/QFile:1:
[*]In file included from /usr/local/include/qt5/QtCore/qfile.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qfiledevice.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qiodevice.h:47:
[*]In file included from /usr/local/include/qt5/QtCore/qobject.h:49:
[*]In file included from /usr/local/include/qt5/QtCore/qstring.h:50:
[*]In file included from /usr/include/c++/v1/string:437:
[*][1m/usr/include/c++/v1/cstdio:153:9: [0m[0;1;31merror: [0m[1mno member named 'vsnprintf' in the
[*] global namespace[0m
[*]using ::vsnprintf;
[*][0;1;32m ~~^
[*][0mIn file included from /usr/ports/audio/cantata/work/cantata-1.4.2/replaygain/ffmpeginput.cpp:31:
[*]In file included from /usr/local/include/qt5/QtCore/QFile:1:
[*]In file included from /usr/local/include/qt5/QtCore/qfile.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qfiledevice.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qiodevice.h:47:
[*]In file included from /usr/local/include/qt5/QtCore/qobject.h:49:
[*]In file included from /usr/local/include/qt5/QtCore/qstring.h:50:
[*]In file included from /usr/include/c++/v1/string:438:
[*]In file included from /usr/include/c++/v1/cwchar:107:
[*]In file included from /usr/include/c++/v1/cwctype:54:
[*][1m/usr/include/c++/v1/cctype:71:9: [0m[0;1;31merror: [0m[1mno member named 'isblank' in the global
[*] namespace[0m
[*]using ::isblank;
[*][0;1;32m ~~^
[*][0mIn file included from /usr/ports/audio/cantata/work/cantata-1.4.2/replaygain/ffmpeginput.cpp:31:
[*]In file included from /usr/local/include/qt5/QtCore/QFile:1:
[*]In file included from /usr/local/include/qt5/QtCore/qfile.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qfiledevice.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qiodevice.h:47:
[*]In file included from /usr/local/include/qt5/QtCore/qobject.h:49:
[*]In file included from /usr/local/include/qt5/QtCore/qstring.h:50:
[*]In file included from /usr/include/c++/v1/string:438:
[*][1m/usr/include/c++/v1/cwchar:132:9: [0m[0;1;31merror: [0m[1mno member named 'vfwscanf' in the
[*] global namespace; did you mean 'fwscanf'?[0m
[*]using ::vfwscanf;
[*][0;1;32m ~~^
[*][0m[1m/usr/include/wchar.h:113:5: [0m[0;1;30mnote: [0m'fwscanf' declared here[0m
[*]int fwscanf(FILE * __restrict, const wchar_t * __restrict, ...);
[*][0;1;32m ^
[*][0mIn file included from /usr/ports/audio/cantata/work/cantata-1.4.2/replaygain/ffmpeginput.cpp:31:
[*]In file included from /usr/local/include/qt5/QtCore/QFile:1:
[*]In file included from /usr/local/include/qt5/QtCore/qfile.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qfiledevice.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qiodevice.h:47:
[*]In file included from /usr/local/include/qt5/QtCore/qobject.h:49:
[*]In file included from /usr/local/include/qt5/QtCore/qstring.h:50:
[*]In file included from /usr/include/c++/v1/string:438:
[*][1m/usr/include/c++/v1/cwchar:133:9: [0m[0;1;31merror: [0m[1mno member named 'vswscanf' in the
[*] global namespace; did you mean 'swscanf'?[0m
[*]using ::vswscanf;
[*][0;1;32m ~~^
[*][0m[1m/usr/include/wchar.h:126:5: [0m[0;1;30mnote: [0m'swscanf' declared here[0m
[*]int swscanf(const wchar_t * __restrict, const wchar_t * __restrict, ...);
[*][0;1;32m ^
[*][0mIn file included from /usr/ports/audio/cantata/work/cantata-1.4.2/replaygain/ffmpeginput.cpp:31:
[*]In file included from /usr/local/include/qt5/QtCore/QFile:1:
[*]In file included from /usr/local/include/qt5/QtCore/qfile.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qfiledevice.h:45:
[*]In file included from /usr/local/include/qt5/QtCore/qiodevice.h:47:
[*]In file included from /usr/local/include/qt5/QtCore/qobject.h:49:
[*]In file included from /usr/local/include/qt5/QtCore/qstring.h:50:
[*]In file included from /usr/include/c++/v1/string:438:
[*][1m/usr/include/c++/v1/cwchar:134:9: [0m[0;1;31merror: [0m[1mno member named 'vwscanf' in the global
[*] namespace[0m
[*]using ::vwscanf;
[*][0;1;32m ~~^
[*][0m[1m/usr/include/c++/v1/cwchar:150:9: [0m[0;1;31merror: [0m[1mno member named 'wcstof' in the global
[*] namespace[0m
[*]using ::wcstof;
[*][0;1;32m ~~^
[*][0m[1m/usr/include/c++/v1/cwchar:151:9: [0m[0;1;31merror: [0m[1mno member named 'wcstold' in the global
[*] namespace[0m
[*]using ::wcstold;
[*][0;1;32m ~~^
[*][0m[1m/usr/include/c++/v1/cwchar:155:9: [0m[0;1;31merror: [0m[1mno member named 'wcstoll' in the global
[*] namespace[0m
[*]using ::wcstoll;
[*][0;1;32m ~~^
[*][0m[1m/usr/include/c++/v1/cwchar:159:9: [0m[0;1;31merror: [0m[1mno member named 'wcstoull' in the
[*] global namespace; did you mean 'wcstoul'?[0m
[*]using ::wcstoull;
[*][0;1;32m ~~^
[*][0m[1m/usr/include/wchar.h:161:3: [0m[0;1;30mnote: [0m'wcstoul' declared here[0m
[*] wcstoul(const wchar_t * __restrict, wchar_t ** __restrict, int);
[*][0;1;32m ^
[*][0m13 errors generated.
[*]*** Error code 1
[*]Stop.
[*]make[3]: stopped in /usr/ports/audio/cantata/work/cantata-1.4.2
[*]*** Error code 1
[*]Stop.
[*]make[2]: stopped in /usr/ports/audio/cantata/work/cantata-1.4.2
[*]*** Error code 1
[*]Stop.
[*]make[1]: stopped in /usr/ports/audio/cantata/work/cantata-1.4.2
[*]*** Error code 1
[*]Stop.
[*]make: stopped in /usr/ports/audio/cantata
[/LIST]
I know nothing about programming, so I hope you will help me to make it build.
Regards,
Nad