-
Notifications
You must be signed in to change notification settings - Fork 182
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 FreeBSD #53
Comments
Hello @bluecub , Thanks for the support! $ git clone https://github.com/babelouest/yder.git
$ cd yder/
$ mkdir build
$ cd build
$ cmake .. -DWITH_JOURNALD=off
$ make && sudo make install
$ cd ../../ulfius # or cd /path/to/ulfius/source
$ mkdir build && cd build
$ cmake .. && make && sudo make install This should fix your problem. About FreeBSD port of Ulfius, I would like to have one, although I don't know nor use any *BSD on a daily basis. |
Thanks I will try it and let you know how it goes. Cheers |
It's even better than that, thanks to CMake's magic! All you need is to pass the argument $ cd <ulfius source>
$ mkdir build
$ cd build
$ cmake -DWITH_JOURNALD=off ..
$ make && sudo make install |
Thanks so much, I really appreciate your support ... had another tiny issue which I will look into it as I’m not familiar with cmake. FreeBSD keeps user installed lib in /usr/local/lib and /usr/local/include and to link it is needed to add the path in cmake. |
Maybe try with $ make DESTDIR=/home/john install |
The error I am getting is as below because it seems CMake does not find headers installed in /usr/local/include by default. On FreeBSD by default the local is /usr/local/include.
The solution I guess must be something like this... yet I am not sure where I should add this
|
That's weird, because |
Yes using FreeBSD ports. All user installed libs go to /usr/local/lib and headers to /usr/local/include. In normal make I add those in the CFLags. |
$pkgconf --cflags jansson |
Sorry, I misread you last message and mixed I could add a constant path in the include search but I'd rather keep this script as much system agnostic as possible. See: |
I want to add that path to which file in the package I should add it? |
Can you try with the environment variable first? |
Environment variable solved that issue. Thanks :) |
Awesome! |
@bluecub , if Ulfius builds completely on your FreeBSD, I'd close this issue then. If you have other problems or concerns, don't hesitate to open a new issue on the repo. |
Thanks |
Hi @babelouest
Thanks for this awesome work
I was trying to install the ulfius library on FreeBSD (couldn't find it the port system) and it complained about systemd absence.
CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Systemd (missing: SYSTEMD_LIBRARY SYSTEMD_INCLUDE_DIR)
Is there away to get around this to get work on freeBSD? and is there any plan for the future to support a freeBSD release as well?
Cheers
The text was updated successfully, but these errors were encountered: