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

Do you have a bash script for BSD to install C++ build tools and compile notcurses from a fresh bsd distro install? #2856

Open
alanthie opened this issue Feb 20, 2025 · 4 comments
Assignees
Labels
userquestion not quite bugs--inquiries from users
Milestone

Comments

@alanthie
Copy link

In an apt (debian like) distro it goes this way:

function install_pkg()
{
status="$(dpkg-query -W --showformat='${db:Status-Status}' "$1" 2>&1)"
if [ ! $? = 0 ] || [ ! "$status" = installed ]
then
sudo apt -y install $1
else
echo "$1 is already installed"
fi
}

install_pkg g++
install_pkg build-essential
install_pkg cmake
install_pkg git

install_pkg libgmp-dev
install_pkg ffmpeg

notcurses

install_pkg doctest-dev
install_pkg libavdevice-dev
install_pkg libdeflate-dev
install_pkg libgpm-dev
install_pkg libncurses-dev
install_pkg libqrcodegen-dev
install_pkg libswscale-dev
install_pkg libunistring-dev
install_pkg pandoc
install_pkg pkg-config

git clone ...notcurses...

cmake ..
make
sudo make install

I have build notcurses on 20 distros, but can not make it work on any bsd distro
It is not notcurses fault, I just dont know how to install the C++ tools correctly on BSD

Thanks
https://github.com/alanthie/build_all

@alanthie alanthie added the userquestion not quite bugs--inquiries from users label Feb 20, 2025
@dankamongmen dankamongmen self-assigned this Feb 21, 2025
@dankamongmen
Copy link
Owner

notcurses has both a FreeBSD and OpenBSD Port, as far as i know (though both are somewhat out of date; i got my FreeBSD VM working again last week, and hope to rectify at least the former soon).

so i'm not quite sure what you're asking. are you running into some compilation failure?

@dankamongmen dankamongmen added this to the 3.1.0 milestone Feb 21, 2025
@alanthie
Copy link
Author

If you have your own FreeBSD VM, do you have the steps to install and make C++ (gcc) works and compile notcourses.

I am using gcc, but since FreeBSD does not maintain gcc anymore, I guess your are now compiling with CLang.
I dont have the technical knowledge to make gcc works on FreeBSD and it seems very difficult according to various posts.
I did not test if I can compile my C++ projects with clang including notcurses.
I may try it for FreeBSD if required.

I am adding stuff to notcurses for my projects and I need to compile it from sources.
So far I have 20 Linux distro working, but not BSD.

Thanks

@dankamongmen
Copy link
Owner

ahhhh so you want to know how to build with gcc on freebsd. can you show me what failure you're running into?

@alanthie
Copy link
Author

I have deleted my FreeBSD vm, I will post when I re-installed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
userquestion not quite bugs--inquiries from users
Projects
None yet
Development

No branches or pull requests

2 participants