biddyweb / haxevideo

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

Cannot compile video.hxml #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Downloaded haxevideo-1.1.zip and extracted it
2. Run haxe video.hxml
3.

What is the expected output? What do you see instead?
Expected the compilation to work and both the video.swf and server.n to be 
created.
But only the video.swf is created and not server.n. Compilation error message 
was
"./hxvid/RealtimeServer.hx:30: characters 1-27 : Class not found : 
SocketHandle".

What version of the product are you using? On what operating system?
I'm using haxe compiler v2.10 revision 4780. I couldn't find any mention of 
"SocketHandle"
neither in the sys.net.Socket.hx nor in neko.net.Socket.hx files. 
I'm on Mac OS X Lion and I have installed the nightly build from here: 
http://www.justinfront.co.uk/haxe/nightly/lion/4780mon4june2012/

Please provide any additional information below.

Original issue reported on code.google.com by tsaixing...@gmail.com on 7 Jun 2012 at 10:31

GoogleCodeExporter commented 8 years ago
Some additional comments: It seems that only Haxe compiler 2.07 has the 
libraries where neko.net.Socket.hx has the SocketHandle enum defined. But in 
2.09, this is no longer the case. So does that mean the current HaxeVideo code 
can only be compiled in 2.07 but not in the 2.09 (or newer) version of haxe 
that I've got?

Original comment by tsaixing...@gmail.com on 8 Jun 2012 at 10:11

GoogleCodeExporter commented 8 years ago
Yes there were changes in the packages structure, I don't have much time to 
change the code at the moment.

Original comment by ncanna...@gmail.com on 8 Jun 2012 at 10:29

GoogleCodeExporter commented 8 years ago
Hi,
I've seen quickly how to make haxevideo compile with the latest haxe release.
Of course I didn't dig deeper so it's not the perfect solution I think, but It 
works.
In hxvid/RealtimeServer.hx :
-Find/replace : SocketHandle by Dynamic
-Find/replace : neko.net.SocketOutput by haxe.io.Output
-Remove super(c.handle); in the constructor (l.50)
In hxvid/Commands : 
-replace case T.Bool: v = format.amf.Tools.bool(a); by case T.Bool: v = 
format.amf.Tools.abool(a); (l.85)
Michel

Original comment by filt3...@gmail.com on 3 Sep 2012 at 11:17