-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
gradle build failed on win7 #1575
Comments
Try CD to |
@imReker thank you,must be win10,is win7 ok? |
It should be OK with the precompiled binary |
@thank you very much ,let me have try |
Wait. I noticed that your error is: Did you correctly setup your gradle environment? |
@imReker I think gradle envirment is ok,This error occurred at the beginning of the trial,then i make cmd "gradle clean",then "gradle build -stacktrace " the follows happened:
Warning: No match found for [DefaultTaskExecutionRequest{args=[build],projectPath='null'}]
FAILURE: Build failed with an exception.
|
@imReker I set GOROOT_BOOTSTRAP with "D:\GreenSoft\Go" is this ok? |
Task goBuild is defined in |
@imReker I still match mistake, is it means must I first "CD to src/overture/ and run make.bat 19 in cmd" ,and then build the project? |
Yes, try make.bat first. If success, modify the path from |
I find it failed with errors: Building Go bootstrap tool.cmd/dist go tool dist: cannot invoke C compiler "gcc": exec: "gcc": executable file not found in %PATH% Go needs a system C compiler for use with cgo. "Get dependences for overture" Is it means My go envirnment is not correct? and my go env is like this: |
@imReker ok I read previous post and try again thanks |
can you please help me to solve this, after trying those step . i have run ndk-build from cmd in winodws and i got this error. make: *** No rule to make target |
@mindAndroid Make sure you execute ndk-build in jni folder. There is no |
@imReker yes its works. thanks. |
@mindAndroid what's your sytem?win7 or win10? |
@xiguapi2015 Windows 10 and i just build it Ubuntu 16.4 too. in both OS its build success. |
@mindAndroid is gcc needed on windows? my win7 can't be sucess |
@xiguapi2015 may be you will found more issue with win7 so i recommended to install ubuntu 16.4 and build it |
@mindAndroid these is my steps |
@xiguapi2015 when you run make.bat , is it show success message to you ? send me your id i ''ll send go build to you. |
my id is xiguapi2015 Building Go bootstrap tool.cmd/dist I think go build is not success |
@xiguapi2015 you shoud try precompiled binary as refer by @imReker's #1570. go build shoud be success before ndk-build |
@xiguapi2015 It's self explained |
try make.bat 19 |
@xiguapi2015 Set GOROOT_BOOTSTRAP to your normal version of Windows Go, download it from official site |
@imReker is this means I need gcc? |
@xiguapi2015 Yes, to build Go, you need GCC. See document of Go to make sure you have correct environment. I checked my environment again and found that precompiled bin I uploaded is not engouh to build all the things, there are lots of other depdency exe files. |
@imReker yes thanks I have a try |
@imReker I have build overture success ,then change build.gradle line 41 "src/overture/make.bat "to "core/src/overture/make.bat " and it also failed: |
@xiguapi2015 My fault. Change Linux |
@imReker |
I have build overture success.,Next step,I need only use gradle build or use Android studio to build? |
@xiguapi2015 Android Studio might bother you more, try to use Gradle first |
在Windows下运行 src/overture/make.bat 运行目录不是在 src/overture,而是当前目录,所以后续编译会找不到文件。 |
@wangbo4020 thus what we can do |
@xiguapi2015 I've already fixed this script, pull the latest code and try again, thanks. |
@chon219 thankyou |
arm-linux-androideabi-gcc.exe not found |
Environment
Win7 64bit
What did you do?
I get source and set environment ANDROID_HOME,ANDROID_NDK_HOME ,GOROOT_BOOTSTRAP ,then do "git submodule update --init --recursive".
last,I use "gradle build -stacktrace" then found it fialed as follows:
FAILURE: Build failed with an exception.
What went wrong:
The specified build file 'E:\work\myproject\workspace\jsq\code\sample_new\shadowsocks-android\uild' does not exist.
Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Exception is:
java.lang.IllegalArgumentException: The specified build file 'E:\work\myproject\workspace\jsq\code\sample_new\shadowsocks-android\uild' does not exist.
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:43)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:30)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:45)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34.........
I wan't known what's my problem,thank you very much.
The text was updated successfully, but these errors were encountered: