Compiling ohSongcast
|
16-05-2014, 11:28 AM
Post: #1
|
|||
|
|||
Compiling ohSongcast
Hi,
I'm trying to compile ohSongcast, I've tried on both Windows and a raspi. I want to try using the WavSender to test some issues I have with different file formats in the Songcast Receiver.. When I try to compile I get the same error on both OSs.. Following the instructions in the readme https://github.com/openhome/ohSongcast I can compile the ohNet libs, but for the ohNetmon the instructions are to run 'make', but there is no make file so I assume I would need to use waf to build ./waf configure --ohnet=../ohNet --debug --dest-platform=Linux-x86 But when I run the above command I get the following error. Quote:root@rpistudy:/home/pi/songcast/ohNetmon# ./waf configure --ohnet=../ohNet --debug --dest-platform=Linux-x86 Which seems to indicate I need filetasks which is part of ohWafHelpers, but where should I place the ohWafHelpers? Thanks, Pete. |
|||
16-05-2014, 12:46 PM
(This post was last modified: 16-05-2014 12:47 PM by simonc.)
Post: #2
|
|||
|
|||
RE: Compiling ohSongcast
The build works for me using the following commands:
Code: git clone https://github.com/openhome/ohNet.git At a guess, are you missing the ./go fetch line? This is responsible for fetching ohWafHelpers. (Our fault for not documenting the build process. I've added a README now.) |
|||
16-05-2014, 01:07 PM
Post: #3
|
|||
|
|||
RE: Compiling ohSongcast
(16-05-2014 12:46 PM)simonc Wrote: The build works for me using the following commands: Thanks Simon, I'm like a duck out of water with this... I was indeed missing the command ./go fetch --all --clean --debug I have tried the command and found I also need ohdevtools, after downloading ohdevtools I get this error when I run the command: Code: root@rpistudy:/home/pi/songcast/ohNetmon# ./go fetch --all --clean --debug |
|||
16-05-2014, 01:34 PM
Post: #4
|
|||
|
|||
RE: Compiling ohSongcast
Sorry Pete, another over-sight on our part. The testharness component is released to a server that isn't publicly available. On the plus side, the component should only be needed to run test code so you could get away without having it.
The easiest thing for you to do for now is to fetch the other dependencies one at a time: Code: ./go fetch --debug ohNet |
|||
16-05-2014, 02:42 PM
Post: #5
|
|||
|
|||
RE: Compiling ohSongcast
(16-05-2014 01:34 PM)simonc Wrote: Sorry Pete, another over-sight on our part. The testharness component is released to a server that isn't publicly available. On the plus side, the component should only be needed to run test code so you could get away without having it. No problem... I have made further progress, but now when I try the same in ohTopology After running ./go fetch --debug ohNet ./go fetch --debug ohWafHelpers using ./waf configure --ohnet=../ohNet --debug --dest-platform=Linux-x86 I get the following error: Quote:root@rpistudy:/home/pi/songcast/ohTopology# ./waf configure --ohnet=../ohNet --debug --dest-platform=Linux-x86 Where my ohNet/Build/Include contains a directory cal OpenHome.. |
|||
16-05-2014, 02:53 PM
Post: #6
|
|||
|
|||
RE: Compiling ohSongcast
The same commands work for me. Can you check a couple of things:
|
|||
16-05-2014, 05:02 PM
Post: #7
|
|||
|
|||
RE: Compiling ohSongcast
(16-05-2014 02:53 PM)simonc Wrote: The same commands work for me. Can you check a couple of things: Yes the ohNet/Build/Include/OpenHome directory looks normal, it had Buffer.h, Exception.h etc.. and Net and Private directories. It is the same directory that worked with the ohNetmon build. Very good point about me using Linux-x86 on a raspi!! I had to edit the default_platform.py because it always defaulted to Linux-x86 Code: if platform.system() == 'Linux' and platform.architecture()[0] == '32bit': But then I got other problems.... So I also tried on windows and Ubuntu 32bit and the ohTopology build always fails with this error: Quote:root@ubuntu:/home/pete/songcast/ohTopology# ./waf configure --ohnet=../ohNet --debug --dest-platform=Linux-x86 Quote:C:\Users\phoyle\Documents\GitHub\ohTopology>waf configure --ohnet=../ohNet --debug --dest-platform=Windows-x86 |
|||
18-05-2014, 01:36 PM
Post: #8
|
|||
|
|||
RE: Compiling ohSongcast
I've just tried building on my home Windows machine. This has no connection to Linn's network. The only tools installed are Python 2.7 and Visual Studio 2010 Express. From a VS command prompt the build completed without error for me using
Code: git clone https://github.com/openhome/ohNet.git At a guess, could your problem be down to either not having a local debug ohNet or missing dependencies from not trying --all for ohTopology after the problems with ohNetmon. |
|||
20-05-2014, 08:58 AM
Post: #9
|
|||
|
|||
RE: Compiling ohSongcast
(18-05-2014 01:36 PM)simonc Wrote: I've just tried building on my home Windows machine. This has no connection to Linn's network. The only tools installed are Python 2.7 and Visual Studio 2010 Express. From a VS command prompt the build completed without error for me using Hi Simon, Thanks for taking some time at the weekend to have a look at this.. I have made progress and can compile ohNetMon and ohTopology now, but when I try to compile ohSongcast using 'make' I get the following error: Code: Creating library Build\Obj\Windows\Debug\Receiver.lib and object Build\Obj\Windows\Debug\Receiver.exp I had a look in '../../ohNetmon/NetworkMonitor.h' and could not find the NetworkMonitor.h, it is in 'ohNetmon\OpenHome', so I edited 'Songcast.h' to be : #include "../../ohNetmon/OpenHome/NetworkMonitor.h" But then I got the error: Code: cl /nologo /FoBuild\Obj\Windows\Debug\Songcast.obj -c /MTd /Zi /Od /RTC1 /W4 /WX /EHsc /FRBuild\Obj\Windows\Debug\ -DDEFINE_LITTLE_ENDIAN -DDEFINE_TRACE -D_CRT_SECURE_NO_WARNINGS -I..\ohNet\Bu I guess I'm missing something obvious again, but I can't see what it is.. Cheers, Pete. |
|||
20-05-2014, 09:31 AM
Post: #10
|
|||
|
|||
RE: Compiling ohSongcast
It looks like the ohSongcast build has rotted. I'll try to have a look at it later today.
|
|||
« Next Oldest | Next Newest »
|