How to use on Google App Engine?
GoogleCodeExporter opened this issue · comments
How to use on Google App Engine?
I tried, and it won't compile.
Original issue reported on code.google.com by philip142au@gmail.com
on 4 Mar 2012 at 2:45
sorry for this,Ì did not updated the api since there were many change in go
lib, I will fix this for Go 1 and may synchronize with weekly tag if have time.
Sorry for trouble, stay tune.
Original comment by legoff.l...@gmail.com
on 4 Mar 2012 at 9:58
- Changed state: Accepted
Ok thanks. I want to use it in Google App Engine some time, but since its not
working there due to it being a older version of Go, I must use a low level for
drawing based upon the examples.
https://code.google.com/p/appengine-go/source/browse/example/moustachio/moustach
io/draw.go
http://code.google.com/p/go-thanksgiving/source/browse/app/app.go
Original comment by philip142au@gmail.com
on 5 Mar 2012 at 3:42
I read here:
"As you may know, the Go developers intend to launch Go 1 in the coming
weeks. In preparation for this we are providing a beta version of the
Go 1 runtime (go1beta). This will allow you to test your apps under
the new Go 1 runtime." written in Feb 2nd 2012
https://groups.google.com/forum/?fromgroups#!topic/google-appengine-go/IlF2b1K-r
XY
So I'm going to start programming for the Go 1 on Google App Engine, then
hopefully I can use your library? Its really important that I can draw good
images on GAE, so your library seems to be the way to go.
Original comment by philip142au@gmail.com
on 5 Mar 2012 at 6:15
I'm interested to know about how you want to use draw2d and what for. It can
help me improving the lib.
Original comment by legoff.l...@gmail.com
on 5 Mar 2012 at 8:42
I'm doing a custom map tile engine to generate tiles for Leaflet JS.
http://leaflet.cloudmade.com/
However my tiles are very custom, in fact its not for mapping, its for showing
different data but within the leaflet JS map component, showing tables and
charts which are zoomable. So I need to be able to draw nice boxes with rounded
edges, overlapping graphics, etc. Also since they are on tiles, I will need to
clip when I draw a tile.
Tiles will be cached in memcache or the database after drawing. Tiles will be
invalidated from cache when under-lying data changes.
Google App Engine for Go seems to be a fast way to generate tile images on the
server side and could handle a large load at a fast speed. If my usage is
restricted to generating tiles, then GAE seems very suitable, based upon the
drawing examples that Google Go gives and the low millisecond rate it gives for
rendering a JPEG and delivering the JPEG.
http://blog.golang.org/2011/12/from-zero-to-go-launching-on-google.html
Original comment by philip142au@gmail.com
on 5 Mar 2012 at 9:00
I already done the job since 1 month ago. I updated go and it works for me. the
doc in the wiki may not be up to date I think. Please look at this getting
started, to see how to import draw2d now:
http://code.google.com/p/draw2d/source/browse/cmd/gettingStarted.go
please reopen the bug if it's not working for you.
thanks
Original comment by legoff.l...@gmail.com
on 5 Mar 2012 at 9:07
- Changed state: Fixed
I couldn't get it to work in Google App Engine as you give in the URL, it
didn't like the import from google code.
So I copied files from both draw2d and its dependency freetype into my source
folder.
Then I created a test file in the folder hello called hello.go - this outputs
an image.
You can download my test application the attachment I have here, this works on
Google App Engine with Google Go version 1 beta. See the definition in the
app.yaml
Anyway, I can use your code and its working, so I am happy at the moment. Its
not the best way, I just have a copy of all your files in my app.
Original comment by philip142au@gmail.com
on 5 Mar 2012 at 3:00
Attachments:
I mean that Google App Engine doesn't like your import statement.
"code.google.com/p/draw2d/draw2d"
It doesn't work in GAE.
Why? I don't know.
Original comment by philip142au@gmail.com
on 6 Mar 2012 at 6:53
Thanks for trying and using it,
I'll investigate tonight, and keep you informed of my tests. I've not installed
yet app engine beta
Original comment by legoff.l...@gmail.com
on 6 Mar 2012 at 3:03
https://groups.google.com/forum/?hl=fr&fromgroups#!topic/google-appengine-go/S7l
13w9PCog
Original comment by legoff.l...@gmail.com
on 7 Mar 2012 at 8:15
- Changed state: Verified