同步操作将从 rhcad/TouchVG 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
TouchVG is a lightweight 2D vector drawing framework for iOS, Android and Windows.
Features described in Online document. Please visit TouchVGTest to see more example of TouchVG.
| |
This is an open source LGPL 2.1 licensed project. It uses the following open source projects:
Contributors and sponsors are welcome. You may translate, commit issues or pull requests on this Github site. To contribute, please follow the branching model outlined here: A successful Git branching model.
Welcome to the Chinese QQ group 192093613
to discuss and share.
Import all projects under ./android
directory of TouchVG in eclipse, then build touchvg
project.
You can download the prebuilt libraries from TouchVGTest and extract to yourapp/libs
.
To regenerate libtouchvg.so, please enter android
directory of TouchVG, then type ./build.sh
(Need to add the NDK installation location to your PATH environment variable).
Type ./build.sh -B
to rebuild the native libraries.
Type ./build.sh APP_ABI=x86
to build for the x86 (Intel Atom) Emulator.
If the error build/gmsl/__gmsl:512: *** non-numeric second argument to wordlist function
occurs, then open the build/gmsl/__gmsl
file in the NDK installation directory, and change line 512 to:
int_encode = $(__gmsl_tr1)$(wordlist 1,$(words $1),$(__gmsl_input_int))
MSYS and TDM-GCC(a MinGW distribution) are recommended on Windows.
To regenerate the kernel JNI classes, type ./build.sh-swig
(Need to install SWIG, and add the location to PATH).
How to debug native code
#include "mglog.h"
and use LOGD("your message %d", someint);
in C++ files needed to debug.tag:dalvikvm|AndroidRuntime|vgjni|touchvg|vgstack|libc|DEBUG
.python addlog.py
in TouchVG/jni/build.sh../build.sh -swig
, or remove touchvg_java_wrap.cpp
and type ./build.sh
.TouchVG is available on CocoaPods. Just add the following to your project Podfile:
pod 'TouchVG'
Or use the develop version:
pod 'TouchVG', :podspec => 'https://raw.githubusercontent.com/touchvg/TouchVG/develop/TouchVG.podspec'
Or add the following to use SVG rendering feature with SVGKit:
pod 'TouchVG-SVG', :podspec => 'https://raw.githubusercontent.com/touchvg/TouchVG/develop/ios/TouchVG-SVG.podspec'
Then type pod install
or pod install --no-repo-update
. Need to remove libPods-TouchVG.a
or libPods-TouchVG-TouchVG-SVG.a
from Link Binary With Libraries. Remove -lxml2
from Other Linker Flags for TouchVG-SVG target.
Alternatively, you can build as one of the following methods:
Open TouchVG.xcworkspace
in Xcode, then build the TouchVG
or TouchVG-SVG
target.
libTouchVG.a
does not support SVG display.libTouchVG-SVG.a
can display SVG shapes using SVGKit.Or enter ios
directory and type ./build.sh
to compile static libraries to the ios/output
directory.
./build.sh -arch arm64
to make for iOS 64-bit../build.sh clean
to remove object files.Open wpf/Test_cs10.sln
in Visual Studio 2010 (Need VC++ and C#). Or open wpf/Test_cs9.sln
in VS2008.
To regenerate wpf/touchvglib/core/*.cs
, please enter wpf
directory and type ./build.sh
(Need to install SWIG, and add the location to PATH).
You can compile TouchVG for Python, Perl or Java applications on Linux, MinGW or Mac OS X.
Enter core
directory which contains Makefile, then type the following make command:
Make all install
: compile C + + static library .Make java
: Jar package and generate dynamic libraries for Java programs.Make python
, make perl
: namely Python, Perl , etc. to generate class files and dynamic libraries.Make clean java.clean python.clean
: delete these temporary files compiled out .MSYS and TDM-GCC(a MinGW distribution) are recommended on Windows.
You can use newproj.py to create library project containing your own shapes and commands. So the TouchVG and TouchVGCore libraries does not require changes.
Checkout and enter DemoCmds directory, then type python newproj.py YourCmds
:
git clone https://github.com/touchvg/DemoCmds.git
cd DemoCmds
python newproj.py MyCmds
Need to install python to run the script.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。