After following steps mentioned here https://skia.org/user/build, I was able to compile skia on a windows machine. However, currently it creates a static library (libskia.a). How can I create a shared library (.so)?
..\ninja -C out/Default
ninja: fatal: CreateProcess: The parameter is incorrect.
ERROR at the command-line "--args":1:1: Invalid token.
'ndk=C:\Users\manishra\AppData\Local\Android\sdk\ndk-bundle" target_cpu=arm is_component_build=true'
^
Strings are delimited by " characters, not apostrophes.--
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.
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.
--
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.
C:\Users\manishra\Documents\skia\depot_tools\skia>gn gen out\Default --args="ndk=\"C:\\ndk\" target_cpu=\"arm\" is_component_build=true"
Done. Made 35 targets from 25 files in 99msC:\Users\manishra\Documents\skia\depot_tools\skia>..\ninja -C out\Default
ninja: Entering directory `out\Default'
ninja: fatal: CreateProcess: The parameter is incorrect.I will try to use bash on windows to see if that helps.
Also show us the args.gn file in the output directory.
ninja: error: loading 'build.ninja': The system cannot find the file specified.[1182/1185] C:\ndk/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -MMD -MF obj/third_party/externals/sfntly/cpp/src/sfntly/tools/subsetter/sfntly.subsetter.o.d -DSFNTLY_NO_EXCEPTION -I../../third_party/externals/sfntly/cpp/src -I../../third_party/externals/icu/source/common -w -fstrict-aliasing -fPIC -fvisibility=hidden -Werror -march=armv7-a -mfpu=neon -mthumb --sysroot=C:\ndk/platforms/android-18/arch-arm --target=arm-linux-androideabi -BC:\ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/arm-linux-androideabi/bin -Wno-unused-parameter -gline-tables-only -std=c++11 -fno-threadsafe-statics -fvisibility-inlines-hidden -isystemC:\ndk/sources/android/support/include -isystemC:\ndk/sources/cxx-stl/gnu-libstdc++/4.9/include -isystemC:\ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -fno-exceptions -fno-rtti -c ../../third_party/externals/sfntly/cpp/src/sfntly/tools/subsetter/subsetter.cc -o obj/third_party/externals/sfntly/cpp/src/sfntly/tools/subsetter/sfntly.subsetter.o
[1183/1185] cmd.exe /c echo > obj/third_party/sfntly/sfntly.stamp
[1184/1185] cmd.exe /c echo > obj/pdf.stamp
ninja: fatal: CreateProcess: The parameter is incorrect.ndk = "C:\ndk"
target_cpu = "arm"
is_component_build = trueC:\ndk/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -shared --sysroot=C:\ndk/platforms/android-18/arch-arm --target=arm-linux-androideabi -BC:\ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/arm-linux-androideabi/bin -LC:/ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -LC:/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x obj/src/c/libskia.sk_paint.o obj/src/c/libskia.sk_surface.o obj/src/core/libskia.SkAAClip.o obj/src/core/libskia.SkAnnotation.o obj/src/core/libskia.SkAlphaRuns.o obj/src/core/libskia.SkATrace.o obj/src/core/libskia.SkAutoPixmapStorage.o obj/src/core/libskia.SkBBHFactory.o obj/src/core/libskia.SkBigPicture.o obj/src/core/libskia.SkBitmap.o obj/src/core/libskia.SkBitmapCache.o obj/src/core/libskia.SkBitmapController.o
...
obj/third_party/externals/libwebp/src/utils/libwebp.color_cache.o obj/third_party/externals/libwebp/src/utils/libwebp.filters.o obj/third_party/externals/libwebp/src/utils/libwebp.huffman.o obj/third_party/externals/libwebp/src/utils/libwebp.huffman_encode.o obj/third_party/externals/libwebp/src/utils/libwebp.quant_levels.o obj/third_party/externals/libwebp/src/utils/libwebp.quant_levels_dec.o obj/third_party/externals/libwebp/src/utils/libwebp.random.o obj/third_party/externals/libwebp/src/utils/libwebp.rescaler.o obj/third_party/externals/libwebp/src/utils/libwebp.thread.o obj/third_party/externals/libwebp/src/utils/libwebp.utils.o -lEGL -lGLESv2 -llog -lgnustl_static -ldl -Wl,-soname,libskia.so -o libskia.so
On computers running Microsoft Windows XP or later, the maximum length of the string that you can use at the command prompt is 8191 characters. On computers running Microsoft Windows 2000 or Windows NT 4.0, the maximum length of the string that you can use at the command prompt is 2047 characters.
This limitation applies to the command line, individual environment variables (such as the PATH variable) that are inherited by other processes, and all environment variable expansions. If you use Command Prompt to run batch files, this limitation also applies to batch file processing.