pdewacht / brlaser

Brother laser printer driver
GNU General Public License v2.0
588 stars 112 forks source link

Make fails on FreeBSD #10

Closed jd1 closed 6 years ago

jd1 commented 7 years ago

I tried to use this drivers with FreeBSD. This is what I did:

./autogen.sh ./configure make

But make fails with the following error:

make  all-am
  CXXLD    src/rastertobrlaser
src/main.o: In function `main':
/usr/home/jo/brlaser/src/main.cc:68: undefined reference to `libiconv_open'
/usr/home/jo/brlaser/src/main.cc:78: undefined reference to `libiconv'
/usr/home/jo/brlaser/src/main.cc:84: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
make[1]: stopped in /usr/home/jo/brlaser
*** Error code 1
colddiver commented 7 years ago

I managed to fix those on FreeNAS (FreeBSD jail). See here: https://github.com/colddiver/brlaser

Everything works now (even airprint through cups).

jd1 commented 7 years ago

@colddiver Thanks. I have to set LIBS = -liconv, but then it works!

colddiver commented 7 years ago

If you want to setup AirPrint, I just finished documenting the process here...

pdewacht commented 6 years ago

brlaser no longer uses iconv, so this issue should be gone now.