Irdroid / serwebproxy

Automatically exported from code.google.com/p/serwebproxy
1 stars 0 forks source link

Support for Mac OS X? #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is support for Mac OS X planned?
Would love to use it, but me and most of my students have mac hardware and OS.

i downloaded version 1.12 and naively ran make, as expected, i got an error:
gcc -Wall -O2 -fomit-frame-pointer -D__UNIX__   -c -o main.o main.c
gcc -Wall -O2 -fomit-frame-pointer -D__UNIX__   -c -o sio.o sio.c
sio.c: In function ‘sio_open’:
sio.c:182: error: ‘VSWTC’ undeclared (first use in this function)
sio.c:182: error: (Each undeclared identifier is reported only once
sio.c:182: error: for each function it appears in.)
make: *** [sio.o] Error 1

is this something that can be fixed easy or is more complicated to port it to 
OSX?

i have some coding skills, unfortunately not in C and not for hardware drivers.

Original issue reported on code.google.com by wre...@gmail.com on 17 Sep 2012 at 1:02

GoogleCodeExporter commented 9 years ago
Hi, sorry for late answer. I'm no expert with OSX, but i had email from another 
Apple guy (some months ago) :

"I'm using it on the Mac side, and during the build process it actually fails 
because of an undefined dependency DEFINE, so make bails out. I just commented 
that line out though and things work surprisingly well."

I know this won't help much, but that tells me that it should work with OSX. 
Patches are welcome :)

Original comment by larppa...@gmail.com on 9 Nov 2012 at 8:43

GoogleCodeExporter commented 9 years ago
Hi,

  I am the "another Apple guy".

  Basically I just went in and commented out the VSWTC reference on line 182 as Lari states above. That should be enough for it to build. The reference ultimately did not appear to alter the functionality of the application while I was using it.

  My original purpose for serweb was to import arduino data directly into the browser whereby I used jquery to parse it and integrate the data into an application. Since that time I have gone in another direction and built a desktop client to do that work for me - I never did end up making formal commits back to Lari as I originally intended.

  Post back here if it doesn't end up working after you comment it out.

Original comment by kamel...@gmail.com on 9 Nov 2012 at 8:49

GoogleCodeExporter commented 9 years ago
Thanks to you both,
i managed to build it successfully, but how do i configure it on OS X?
you are using a serial device and port approach, but OS X uses another schema 
for serial ports.

my arduino is listed as /dev/cu.usbmodemfd12121 or /dev/tty.usbmodemfd12121

how do i have to write the cfg file that this device is used?

Original comment by wre...@gmail.com on 12 Nov 2012 at 2:50

GoogleCodeExporter commented 9 years ago
i use tinkerproxy (serproxy derivate from tinker.it) for a GUI wrapper i wrote 
and as it seems it runs on osx or in more detail has a binary for osx.
unfortunately i'm unable to find the source code for it :-(

as i saw your work is heavily based on serproxy, maybe you can get the source 
code from tinker.it (they have a google code page) and see what they have 
changed or even base your code on their work as it runs on os x?

Original comment by wre...@gmail.com on 12 Nov 2012 at 3:48

GoogleCodeExporter commented 9 years ago
ah, i found serproxy-0.1.3 sourcode here: 
http://developer.berlios.de/project/showfiles.php?group_id=3590

this version runs on mac os x as it seems.
maybe you can check this sourcecode to see what they changed to run it on os x 
as serproxy-0.1.2 doesn't run on osx.

Original comment by wre...@gmail.com on 12 Nov 2012 at 4:12