How to build HelloWorld

621 views
Skip to first unread message

creyer s

unread,
Oct 6, 2017, 4:00:10 PM10/6/17
to skia-discuss
Hello,
I have succeeded in building Skia (I can run the SampleApp). My question is where I can find instructions on building the example/HelloWorld app.

Cary Clark

unread,
Oct 6, 2017, 4:10:31 PM10/6/17
to skia-d...@googlegroups.com
The example/HeloWorld has fallen into disrepair. It has largely been superceded by fiddle.skia.org, which provides an online way to play around and try things out.



On Fri, Oct 6, 2017 at 4:00 PM, creyer s <cre...@gmail.com> wrote:
Hello,
I have succeeded in building Skia (I can run the SampleApp). My question is where I can find instructions on building the example/HelloWorld app.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.

creyer s

unread,
Oct 6, 2017, 5:00:14 PM10/6/17
to skia-discuss
Thanks for the resource.
My actual issue is that I am more a Java, Scala dev, so I have no actual experience with building a basic app with Skia. 
Presuming that I have my HelloWorld code can you point me to how I actual build the HelloApp to deploy it on my server.





On Friday, October 6, 2017 at 11:10:31 PM UTC+3, Cary Clark wrote:
The example/HeloWorld has fallen into disrepair. It has largely been superceded by fiddle.skia.org, which provides an online way to play around and try things out.


On Fri, Oct 6, 2017 at 4:00 PM, creyer s <cre...@gmail.com> wrote:
Hello,
I have succeeded in building Skia (I can run the SampleApp). My question is where I can find instructions on building the example/HelloWorld app.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.

Cary Clark

unread,
Oct 7, 2017, 4:46:32 PM10/7/17
to skia-d...@googlegroups.com
It may be helpful to look at BUILD.gn, particularly how the app viewer is built. The number of general source files is much smaller than SampleApp, and it has done a good job of breaking out platform specific files. If I were building a replacement Hello World, I'd probably start there and strip it down to the bare minimum.

Without knowing your specifics, if you are generating a server side solution, the source for fiddle may be useful; see BUILD.gn for its dependencies.

To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.

Jim Van Verth

unread,
Oct 9, 2017, 10:29:07 AM10/9/17
to skia-d...@googlegroups.com
This change will fix Hello World and should be landing soon: https://skia-review.googlesource.com/c/skia/+/57101. You just need to set up gn as you would for any other part of Skia, and then
'ninja -C out/<gn-directory> HelloWorld'.

However, Cary is right, in the long run it would be better to strip it down to the tools/viewer/sk_app interface. I've filed a bug here: https://bugs.chromium.org/p/skia/issues/detail?id=7141.

creyer s

unread,
Oct 9, 2017, 11:41:19 AM10/9/17
to skia-discuss
Thank you very much for the help. I really appreciate 
Reply all
Reply to author
Forward
0 new messages