-
Notifications
You must be signed in to change notification settings - Fork 0
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
Building on Haiku (OS) #2
Comments
I have never used this OS |
Build fixed. |
I can confirm haiku branch builds and works ok on Haiku x86_64. Note that it fails at re: IPv6, at least for Haiku target I think it can be safely ignored/disabled for now. |
I think I completely fixed the problem with binding to IP/IPv6 in Windows & Haiku OS. |
I still don't understand how to install without creating a package |
I asked Haiku devs, they say cmake scripts should follow GnuInstallDirs setup. This improves portability, and your fork will build not only on Haiku but also every OS that follows GNU standard install dirs. edit. full dev answer here with tips on how to do a local install (which is more for testing, really not needed for packaging). |
Is there a way to disable the build/install for the static library? (couldn't find an option with |
@Begasus |
Thanks! That worked out ok :) didn't want to step in before @victroniko made a PR for this, already commented on the forum thread reported earlier here to fix the install paths. Can't check this in other OS's but I think it should be ok (if you got some time to look into that). |
@Begasus I'll be a bit low on time next week, if you want/can do a PR then please go ahead, no worries :) @Mr-Precise ATM dev branch builds ok (inside haikuporter) with this: $cmakeDirArgs is just something we use for building w/haikuporter, don't worry about it. edit. If dev branch builds OK on other platforms too, then we're all set. |
@victroniko main branch builds fine here, posted a reply in the forum with the recipe I tested just a few minutes ago :) |
Can you check for compatibility after recent changes? |
One last push: GNUInstallDirs setup needs to live before install options, otherwise CMake won't pick it up.
With this, main branch builds perfect in Haiku :D |
Main branch now builds OK on Haiku x86_64, confirmed! OTOH, on x86_32... it doesn't find libusb, but it is clearly installed: Pointing |
You probably have to switch compiler (don't have Haiku running atm) for 32bit, in Terminal type: |
Switched architecture, no luck... I'll ask on Haiku forums and report back here. btw. Falkon browser is very unstable - use Web (ex Ephiphany) instead. |
Just checked out the latest commit on main and it's still building OK with haikuports here: Begasus/haikuports@59bba25 EDIT building from Terminal works fine too: |
On x86_64 it builds fine, both w/ haikuporter and from terminal. Building on x86_gcc11 is what doesn't work for me. As it appears to be something on Haiku side, i'll better ask in the forum :) |
I will install the 32 bit version of haiku soon and try to check and fix |
I released version 2023.8.25. |
Did a quick check, still builds and package fine on 64bit, can't check it myself as I don't have any supported devices though. EDIT: pushed the changes, will check in the morning if both arches were build fine on our buildmasters. |
Hello there!
I'm on a quest for building and making
rtl-sdr
work on Haiku, AFAIK no one had tried it before. After fiddling a bit I've built and ran it (more or less) succesfully with autotool, from the original OSMOCOM repos. Sadly it doesn't build at all with cmake.This fork looks really interesting and I want to port this one to Haiku, instead of the original... but it also fails to build with cmake, with the exact same error:
With autotool, the script checks if function clock_gettime is available and fails gracefully when it's not, which allows the build to continue. OTOH, cmake forces the -lrt flag always, and bails out when it finds
librt
(which provides clock_gettime) isn't available.Thing is, in Haiku
librt
does not exist. clock_gettime equivalent functionality resides inlibroot
(/system/lib/libroot.so)Is it possible to add a provision for checking the target platform, and if it's Haiku then use
libroot
instead oflibrt
? Maybe it's trivial but I fear it's a bit out of my coding knowledge, as I looked and fiddled w/many files (ie. CMakeLists.txt) with no success.Here's a pic of rtl_test running on Haiku, to demonstrate a working build:
The text was updated successfully, but these errors were encountered: