Skip to content
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

Enable building on FreeBSD hosts #25

Merged
merged 1 commit into from
Mar 17, 2023
Merged

Conversation

porsolic
Copy link

Here is cmake build system patched to build blisp on FreeBSD host.
FreeBSD has libusb built in (/usr/lib/libusb.*) and libserial can be installed as package (pkg install libserialport) and then files /usr/local/include/libserialport.h and /usr/local/lib/libserialport.* will be available.

On my system blisp tool can be built without this line in CMakeLists.txt:

target_link_libraries(libblisp PRIVATE -L/usr/local/lib usb serialport)

but I included it anyway to be consistent with other platforms.

FreeBSD has libusb built in.
Needs external libserialport.
@robertlipe
Copy link
Collaborator

Do you have lubisb-config such that we can automate this without a list of special cases?

@porsolic
Copy link
Author

There are:

/usr/libdata/pkgconfig/libusb-0.1.pc
/usr/libdata/pkgconfig/libusb-1.0.pc
/usr/libdata/pkgconfig/libusb-2.0.pc
/usr/local/libdata/pkgconfig/libserialport.pc

@gamelaster gamelaster merged commit 93703a7 into pine64:master Mar 17, 2023
@gamelaster
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants