-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't compile on ArchLinux #46
Comments
Can you provide more details about your distribution and version of compiler? |
@sergforce CMake output for your convenience: https://git.io/fjYmd
|
@sergforce - any ideas/tips/fixes? Without the drivers my XTRX is useless.. |
@teon Try this PKGBUILD, I have been using it on Arch successfully: # Maintainer: lain <lain@hacktheinter.net>
pkgname=xtrx-images-git
pkgver=r49.a39d40c
pkgrel=1
pkgdesc="XTRX FPGA images, drivers, and binaries"
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
arch=('i686' 'x86_64')
url='https://github.com/xtrx-sdr/images'
md5sums=('SKIP')
license=('GPL' 'LGPL')
depends=(
'git'
'libusb'
'cmake'
'dkms'
'python'
'python-cheetah'
'qcustomplot-qt5'
)
makedepends=()
source=('git+https://github.com/xtrx-sdr/images.git')
pkgver() {
cd images
#TODO: CMakeLists.txt has MAJOR_VERSION.API_COMPAT.MINOR_VERSION.MAINT_VERSION, extract that?
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "images/sources"
git submodule init
git submodule update
# pkgbuild dkms stuff isn't happy about the version
# string 0.0.1-2, specifically the hyphenation.
# let's patch it to just match $pkgver
sed -e "s/PACKAGE_VERSION=\"[^\"]\\+\"/PACKAGE_VERSION=\"${pkgver}\"/" \
-i 'xtrx_linux_pcie_drv/dkms.conf'
sed -e "s/\${LIBVER}-\${MAINT_VERSION}/${pkgver}/" \
-i 'xtrx_linux_pcie_drv/CMakeLists.txt'
mkdir -p build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_UDEV_RULES=ON \
-DFORCE_ARCH=$(uname -m)
make
}
package() {
cd "images/sources/build"
make DESTDIR="$pkgdir/" install
} It might be missing dependencies, I just whipped it up so I have a package I can use on different machines. In particular I seem to recall some issues with QCustomPlot cmake files, but that may be resolved by now. |
@lainy did the job! Thank you! You shoud post it to AUR. |
Looks like somebody beat me to the punch by publishing cleaner, individual packages to AUR. You will of course have to uninstall xtrx-images-git to avoid conflicts. If there is a compelling reason to have a package for the xtrx-images repository, I'd be happy to maintain that as well. |
I've also some PKGBUILDS that I've been working on which are in Parabola::
However there are some limitations:
Without the kernel module being packaged, I'm not supposed to push that upstream, in AUR. |
We've added a link to the ArchLinux AUR to the README file, so I'm closing this issue. @GNUtoo Parabola sounds like another Linux distro but I'm not sure how does it work. If you want us to add it to a list of supported distros, please respond to this ticket with a link to mention, or open a new ticket. |
Doesn't matter if i compile from images/sources or just the lib itself I have a compilation error:
The text was updated successfully, but these errors were encountered: