Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win10测试tests发现应该使用python dcc.py而不是python3 dcc.py #56

Open
linuxhsj opened this issue Jan 9, 2023 · 3 comments
Open

Comments

@linuxhsj
Copy link

linuxhsj commented Jan 9, 2023

我用win系统测试tests并没有成功。先说下环境,python3、java1.8、ndk17这些都搞好了,ndk.dir也设置了,环境变量配置好了,java和ndk-build都可以直接使用,requirements也安装了。执行python3 dcc.py ,没有报错,但是也并没有生成c代码。ndk换成最新的25也不行。
static public native void nullCheck(InstField nully);
public native void assignFields();
public native void checkFields();
这些函数并没有生成c代码。
我想问现在这个项目还能够成功吗?你们直接运行都没有问题吗?

@linuxhsj
Copy link
Author

linuxhsj commented Jan 9, 2023

解决了。
python3 dcc.py应该换成python dcc.py
python3 dcc.py执行的时候并没有报错,换成python dcc.py执行报错
ModuleNotFoundError: No module named 'asn1crypto'
于是我就安装下asn1crypto
pip3 install asn1crypto

@linuxhsj
Copy link
Author

linuxhsj commented Jan 9, 2023

记录下环境吧
1、python
E:\download\dcc-master>where python
C:\Users\hkcmn2\AppData\Local\Programs\Python\Python311\python.exe
C:\Users\hkcmn2\AppData\Local\Microsoft\WindowsApps\python.exe
2、ndk
E:\download\dcc-master>where ndk-build
E:\android-ndk-r17c\ndk-build.cmd
3、记住使用python dcc.py
4、path
E:\android-ndk-r17c
C:\Users\hkcmn2\AppData\Local\Programs\Python\Python311
C:\Users\hkcmn2\AppData\Local\Programs\Python\Python311\Scripts
C:\Program Files\Java\jdk1.8.0_341
5、注意将工程目录下的local.properties中ndk设置
ndk.ndkVersion=E:\android-ndk-r17c(这样子写成功)
ndk.dir=E:\android-ndk-r17c(这样子写报错NDK_PROJECT_PATH=null)

@linuxhsj linuxhsj changed the title win10测试tests并不能成功啊 win10测试tests发现应该使用python dcc.py而不是python3 dcc.py Jan 9, 2023
@linuxhsj
Copy link
Author

linuxhsj commented Jan 9, 2023

关于过滤函数的笔记
`

do not compile constructor

!<clinit|init|attachBaseContext|onCreate|>

test demo

!bigGoto
.TestCompiler.

compile method named onCreate, mostly activity's onCreate

#.;onCreate(Landroid/os/Bundle;.

compile all method, use to test compiler

.*
`
当我们过滤函数的时候可以用两种写法
onCreate|
!onCreate
特别注意第一种写法后面要带上竖|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant