sossego
Retired from the forums
For reason that this project will be a continuing effort, I have decided to include the information and processes known to me to this date.
Set $PATH to include /usr/local/bin/python
Download depot_tools from Google:: Instructions: http://www.chromium.org/developers/how-tos/depottools
Add depot_tools to PATH with
Download brltty:: http://mielke.cc/brltty/
You will need to do the following with brltty:
Set $PATH to include /usr/local/bin/python
Code:
export PATH=$PATH:/usr/local/bin/python
Add depot_tools to PATH with
Code:
export PATH=$PATH:/home/$USER/depot_tools
You will need to do the following with brltty:
- A visual editor such as SciTE must be ran as root - i.e su to root - for reason you will be editing files in /usr/local/include/unicode.
- The command of
Code:
./configure --prefix=/usr/local && gmake
Download webrtc from Google: http://www.webrtc.org/reference/getting-started
You will need to create a directory for the version of FreeBSD that you are using.Code:mkdir webrtc/trunk/build/$FReeBSD_version_number
The files in webrtc/trunk/build/linux must be redited and moved to the webrtc/trunk/build/FreeBSD_version_number
This is as far as I have been able to build because I am still working on this. Anyone else that decides to work on installing webrtc on FreeBSD and wants to port it, please include additional instructions to this howto for others to see your work.
At this point brltty-4.4/Programs/unicode.c as .unicode.c will come up in the error. Edit it and just dogmake distclean
followed bygmake
.
You will need to import prologue.h from the parent directory.cp ../prologue.h $PWD/
The next error that I am stuck at is:
Code:./usb_serial.c:455:34: warning: unused variable 'usbSerialOperations_FTDI_SIO' [-Wunused-const-variable] static const UsbSerialOperations usbSerialOperations_FTDI_SIO = { ^ 1 warning generated. /usr/local/bin/clang -I. -I. -I./../Programs -I../Programs -I./.. -I.. -DHAVE_CONFIG_H -g -O2 -std=gnu99 -Wall -fPIC -c ./usb_freebsd.c In file included from ./usb_freebsd.c:34: ./usb_bsd.h:38:21: error: use of undeclared identifier 'USB_SET_TIMEOUT' if (ioctl(file, USB_SET_TIMEOUT, &arg) == -1) { ^ ./usb_bsd.h:49:19: error: use of undeclared identifier 'USB_SET_SHORT_XFER' if (ioctl(file, USB_SET_SHORT_XFER, &arg) != -1) return 1; ^ ./usb_bsd.h:75:25: error: use of undeclared identifier 'USB_SET_CONFIG' if (ioctl(devx->file, USB_SET_CONFIG, &arg) != -1) return 1; ^ ./usb_bsd.h:113:28: error: variable has incomplete type 'struct usb_alt_interface' struct usb_alt_interface arg; ^ ./usb_bsd.h:113:10: note: forward declaration of 'struct usb_alt_interface' struct usb_alt_interface arg; ^ ./usb_bsd.h:117:25: error: use of undeclared identifier 'USB_SET_ALTINTERFACE' if (ioctl(devx->file, USB_SET_ALTINTERFACE, &arg) != -1) return 1; ^ ./usb_bsd.h:146:26: error: variable has incomplete type 'struct usb_ctl_request' struct usb_ctl_request arg; ^ ./usb_bsd.h:146:10: note: forward declaration of 'struct usb_ctl_request' struct usb_ctl_request arg; ^ ./usb_bsd.h:154:19: error: use of undeclared identifier 'USBD_SHORT_XFER_OK' arg.ucr_flags = USBD_SHORT_XFER_OK; ^ ./usb_bsd.h:156:27: error: use of undeclared identifier 'USB_DO_REQUEST' if (ioctl(devx->file, USB_DO_REQUEST, &arg) != -1) return arg.ucr_actlen; ^ ./usb_bsd.h:246:25: error: use of undeclared identifier 'USB_GET_DEVICE_DESC' if (ioctl(devx->file, USB_GET_DEVICE_DESC, &device->descriptor) != -1) { ^ ./usb_bsd.h:323:32: error: variable has incomplete type 'struct usb_device_info' struct usb_device_info info; ^ ./usb_bsd.h:323:16: note: forward declaration of 'struct usb_device_info' struct usb_device_info info; ^ ./usb_bsd.h:326:24: error: use of undeclared identifier 'USB_DEVICEINFO' if (ioctl(bus, USB_DEVICEINFO, &info) != -1) { ^ ./usb_bsd.h:334:43: error: use of undeclared identifier 'USB_MAX_DEVNAMES' for (nameNumber=0; nameNumber<USB_MAX_DEVNAMES; nameNumber++) { ^ 12 errors generated. gmake[1]: *** [usb_freebsd.o] Error 1 gmake[1]: Leaving directory `/usr/home/raspycat/Firefox_Downloads/brltty-4.4/Programs'
I have set configure as./configure CC=/usr/local/bin/clang CXX=/usr/local/bin/clang++ CPP=/usr/local/bin/clang-cpp --prefix=/usr/local/
. You can use this for whatever compiler and preprocessor you have.
Running./configure
will need the following flag ofCXXFLAGS=-Wno-unused-variable
appended to the./configure
suggested earlier.
Forgive me if things may seem repetitive; but, I want this "porting effort" to be public. WebRTC is not a bad idea considering it means using firefox, chrome, or even konqueror for voice and video chat. Perhaps a no-Skype-dependency allowing people to use whatever they want on their own machines.
Further error reporting by comparison::Code:static int usbSetTimeout (int file, int new, int *old) { if (!old || (new != *old)) { int arg = new; if (ioctl(file, USB_SET_TIMEOUT, &arg) == -1) { logSystemError("USB timeout set"); return 0; } if (old) *old = new; } return 1; }
Notice that "usbSetTimeout" and USB_SET_TIMEOUT don't match. I'm thinking that either they should both match or thatCode:usbSetTimeout = USB_SET_TIMEOUT