Skip to content

Comments

Enable building on FreeBSD hosts#25

Merged
gamelaster merged 1 commit intopine64:masterfrom
porsolic:master
Mar 17, 2023
Merged

Enable building on FreeBSD hosts#25
gamelaster merged 1 commit intopine64:masterfrom
porsolic:master

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