amimo / dcc

DCC (Dex-to-C Compiler) is method-based aot compiler that can translate DEX code to C code.
Apache License 2.0
1.08k stars 414 forks source link

测试demo时遇见SyntaxError:invalid syntax错误 #32

Open SuperBigMango opened 4 years ago

SuperBigMango commented 4 years ago

在配置完SDK,JDK和NDK的环境之后进行测试demo,编译demo-java cd tests/demo-java ./gradlew assembleDebug成功 下一步将dex编译到c生成c代码输出到demo-c的/src/main目录下出错 python3 dcc.py tests/demo-java/app/build/outputs/apk/debug/app-debug.apk --source-dir=tests/demo-c/app/src/main/ --no-build Traceback( most recent call last): File "dcc.py",line 18,in from dex2c.compiler import Dex2C File "/home/dev/dcc/dex2c/compiler.py",line 27,in from dex2c.basic_blocks import fill_node_from_block File "home/dev/dcc/dex2c/basic_blocks.py",line 22,in from dex2c.instruction import MoveResultExpression File "home/dev/dcc/dex2c/instruction.py",line 299 self.value: Value = None

SyntaxError:invalid syntax self.value后面的冒号显示SyntaxError

amimo commented 4 years ago

你用python3.6试试

SuperBigMango commented 4 years ago

谢谢大佬!