Build error:
[moc] about.moc.cpp
make[1]: qt4: Command not found
Problem:
MOC = qt4 (in defines.*), but there is no 'qt4' executable.
Solution:
qtchooser takes care of differing versions of Qt on the system by linking all Qt tools in /usr/bin to /usr/bin/qtchooser, and then deciding which version from /usr/lib/qt*/bin/ to run based on either QT_SELECT environment variable, ~/.config/qtchooser/default.conf, or /etc/xdg/qtchooser/default.conf.
Delete RCC, UIC, and MOC lines from defines.*
Add QT_SELECT = 4 to defines.*
(Add makedepends on qtselect to PKGBUILD)
Search Criteria
Package Details: bpmdj v4.2_pl4-4
Package Actions
- View PKGBUILD
- Download tarball
- Search wiki
- Flagged out-of-date (2015-02-12)
| Package Base: | bpmdj |
|---|---|
| Description: | Free Dj tools with a fully automatic BPM counter |
| Upstream URL: | http://bpmdj.yellowcouch.org/index.html |
| Category: | multimedia |
| Licenses: | |
| Submitter: | BertiBoeller |
| Maintainer: | None |
| Last Packager: | None |
| Votes: | 7 |
| First Submitted: | 2009-08-17 11:38 |
| Last Updated: | 2013-08-05 08:10 |
Required by (0)
Sources
- defines.archlinux
- defines.archlinux64
- ftp://bpmdj.yellowcouch.org/bpmdj/bpmdj-v4.2_pl4//_/-}.tar.bz2
Latest Comments
Comment by chetgray
Comment by egeerardyn
I've orphaned the package as I cannot spend any more time on it (and I've left Archlinux as main platform).
You can find my last version of the PKGBUILD and everything around it on GitHub: https://github.com/egeerardyn/aur-bpmdj
Feel free to use that to keep this project up to date.
Comment by Toost_Inc
moc is now moved to moc-qt4 to avoid conflict with qt5, same with uic to uic-qt4.
Comment by jan_path
In the defines file you have to change the variables:
MOC = qt4
and
QT_INCLUDE_PATH = -I/usr/include/qt4 -I/usr/include/qt4/Qt
Anonymous comment
The `boost` package is required (Boost development librairies) for compiling.
Comment by Synthead
Source link is broken
Anonymous comment
I am a robot. This is not an official message. AUR guidelines suggest to not include binaries. Examples:
bpmdj/CMakeLists.txt.tar.gz
Feel free to disregard this as you would any other comment. This robot will not post here again.
Comment by BertiBoeller
Sorry I don't have the time to fix the bug, so I disown the package. Perhaps someone who uses this package and can fix the compile error can adopt this package.
Anonymous comment
I've got the pthread_create error as well.
I'm also on an Acer Aspire One, and I've verified that my system has pthread.h where you indicated and that pthread_create was defined in there.
------------------------------------
Linking CXX executable bin/bos
CMakeFiles/bos.dir/bos.cpp.o: In function `main':
bos.cpp:(.text+0x138): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make[2]: *** [bin/bos] Error 1
make[1]: *** [CMakeFiles/bos.dir/all] Error 2
make: *** [all] Error 2
Aborting...
------------------------------------
gcc ver 4.5.0
Thread model: posix
Comment by BertiBoeller
That's strange pthread_create is defined in /usr/include/pthread.h which is owned by glibc. I've build the package on my system and it built without errors. Do you have the pthread.h in your /usr/include directory?
I only have very basic programming skills, so I don't know if I can help you.
Comment by ckoller
BPM-DJ 4.1-1 build error: undefined reference to `pthread_create'
makepkg -s fails when trying to include pthreads.
Maybe the cmake build scripts are somehow broken,
I would guess a -lpthread is missing for gcc-4.4.3.
The system is an Acer Aspire One with an plain, but fully
updated ArchOne installation.
-----8<-----
[ 12%] Building CXX object CMakeFiles/bos.dir/process.cpp.o
Linking CXX executable bin/bos
CMakeFiles/bos.dir/bos.cpp.o: In function `main':
bos.cpp:(.text+0x38): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make[2]: *** [bin/bos] Error 1
make[1]: *** [CMakeFiles/bos.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
-----8<-----