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

FreeBSD support #110

Open
rihadik opened this issue Nov 29, 2018 · 5 comments
Open

FreeBSD support #110

rihadik opened this issue Nov 29, 2018 · 5 comments

Comments

@rihadik
Copy link

rihadik commented Nov 29, 2018

Hi. Has anyone had luck building & running this on FreeBSD reliably? Is there any chance FreeBSD support will be added?

@DarthSim
Copy link
Member

DarthSim commented Dec 2, 2018

There shouldn't be any problems to build imgproxy on FreeBSD if libvips is installed. That's how I got it on my test FreeBSD droplet:

pkg install -y pkgconf vips go git
mkdir ~/go
setenv GOPATH "~/go"
setenv CGO_LDFLAGS_ALLOW "-s|-w"
go get -v github.com/DarthSim/imgproxy
cp ~/go/bin/imgproxy /usr/local/bin/

I'd still recommend you to use Docker as the easiest way to install and update imgproxy.

@DarthSim DarthSim closed this as completed Dec 2, 2018
@rihadik
Copy link
Author

rihadik commented Dec 3, 2018

Thanks, @DarthSim, I get the following errors :(

# go get -v github.com/DarthSim/imgproxy
github.com/DarthSim/imgproxy
# github.com/DarthSim/imgproxy
//usr/local/lib/libEGL.so.1: undefined reference to `xcb_dri3_buffers_from_pixmap_strides'
//usr/local/lib/libEGL.so.1: undefined reference to `xcb_dri3_buffers_from_pixmap_reply_fds'
//usr/local/lib/libEGL.so.1: undefined reference to `xcb_dri3_get_supported_modifiers'
//usr/local/lib/libEGL.so.1: undefined reference to `xcb_dri3_get_supported_modifiers_reply'
//usr/local/lib/libpangoft2-1.0.so.0: undefined reference to `g_log_structured_standard'
//usr/local/lib/libEGL.so.1: undefined reference to `xcb_dri3_buffers_from_pixmap_offsets'
//usr/local/lib/libEGL.so.1: undefined reference to `xcb_dri3_pixmap_from_buffers'
//usr/local/lib/libEGL.so.1: undefined reference to `xcb_dri3_buffers_from_pixmap'
//usr/local/lib/libEGL.so.1: undefined reference to `xcb_dri3_buffers_from_pixmap_reply'
//usr/local/lib/libcairo.so.2: undefined reference to `FT_Done_MM_Var'
//usr/local/lib/libEGL.so.1: undefined reference to `xcb_dri3_get_supported_modifiers_screen_modifiers'
//usr/local/lib/libEGL.so.1: undefined reference to `xcb_dri3_get_supported_modifiers_window_modifiers'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

libEGL.so.1 is part of package mesa-libs
which is version mesa-libs-18.1.9_2

@DarthSim DarthSim reopened this Dec 4, 2018
@DarthSim
Copy link
Member

DarthSim commented Dec 4, 2018

Sorry, I'm totally unfamiliar with FreeBSD :( I reopened the issue, hope someone could help you.

@alteredorange
Copy link

Hi @rihadik, the easiest way would be to run it through Docker, but unfortunately Docker is currently broken on FreeBSD (https://wiki.freebsd.org/Docker). Even easier though is just spinning up a Heroku account, rather than building it on FreeBSD. Just click on the link heroku link in docs: https://docs.imgproxy.net/#/GETTING_STARTED

I didn't realize it was there at first and was trying out docker on my own system. Rather than mess with all that, the Heroku install took seconds, and it's totally free, no credit card required. I'd wager it's the best way to test out imgProxy without any hassle or money involved.

@t1n1wall
Copy link

t1n1wall commented Feb 16, 2021

This built fine on FreeBSD 12.2 both amd64 and i386 with src installed. need details on freebsd version with problems to try help ...

the output of ldd //usr/local/lib/libEGL.so.1 would be helpful

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

No branches or pull requests

4 participants