amwatson/CitraVR

Nothing shows up in Build Variants

chengnay opened this issue · 9 comments

Issue

image
How could I resolve this issue?
I couldn't compile successfully without adding a build variant.
image

Huh, I haven't seen that issue -- for reference, I normally see this:
citravr_build_variants

  1. What Android Studio version are you running?
  2. Is this the only error?
  3. Is your Android Studio project root CitraVR/src/android, or CitraVR/src/android/app?
  1. image
  2. It did not compile successfully, I am not sure is there other error.
  3. image

Just curious, can I clone the project by using "git clone --recursive https://github.com/amwatson/CitraVR.git" instead?
When I clone the project by "git clone --recursive git@github.com:amwatson/CitraVR.git", there is error.
image

At, interesting. I just added it last night, so let me make sure it's publicly accessible. Sorry about that!

Let me look into this. Two other people have been able to build so far, which isn't a huge sample size. Thanks for your patience!

Oh, I understand now. Sorry, when I first read your last response, I thought you were talking about the OpenXR submodule.

Answer: Yes, you can clone via https instead of ssh. Cloning via ssh requires your public key, whereas the https method does not.

Hi @amwatson,
How could I resolve the issue for not seeing anything in Build Variants and couldn't compile successfully?

Hey, want to try again? Ive talked to five other devs, and they've been able to build.

I'm currently using Android Studio Hedgehog, if you want to try that

Just curious how long it takes to compile the project?
After I open the project, it shows
"android: Build model..."
Download info

Then it just stuck here for hours.
image
image
Is this normal? Looks like taking forever to finish.

For the Gradle JDK, can I use the one come with android studio?
The folder path is android-studio-2023.1.1.28\jbr.

Maybe there is some problem with my environment setup?

Not sure if others also met the same issue.
I found out that whenever it got stuck, I will need to close Android Studio, reboot PC(due to some process is not released) then open project again. After several tries, it seems to move on to compile.

image
How do I resolve above error? Do I need to install Python 3?

After the above error, I click on rebuild and I end up with below error.
`cmd.exe /C "cd . && C:\Users\chengnan_yang\Documents\Tools\android-sdk\ndk\26.1.10909125\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi21 --sysroot=C:/Users/chengnan_yang/Documents/Tools/android-sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -flto=thin -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -fuse-ld=gold CMakeFiles/boo.dir/main.cpp.o -o boo libfoo.a -latomic -lm && cd ."

clang++: error: invalid linker name in argument '-fuse-ld=gold'`

Could you list the versions of the plugins that you are using?
For examples, SDK platform and NDK.