SFML community forums

Help => General => Topic started by: corcordp on May 22, 2019, 02:55:34 am

Title: Building SFML on android: "relative paths cannot be used"
Post by: corcordp on May 22, 2019, 02:55:34 am
Hi guys

I'm trying to set up an android studio SFML project. (I am on windows 10 using android studio 3.4.1 and Cmake 3.14.4)

I started by following this guide https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android

Before running the .bat files I made sure to download Cmake and Git, and the directories to both are included in my user environment variable settings (PATH) https://imgur.com/a/RDQ6fvb

in an admin-level console I scoped into the directory with the SFML android batch files, and ran

D:\Build-SFML-For-Android-On-Windows-master\Build-SFML-For-Android-On-Windows-master>download-ndk-and-build-sfml.bat D:\android_studio

I got the result

Relative paths cannot be used


I don't have the NDK installed yet... what am I missing?

Thanks for the help

DPC

Title: Re: Building SFML on android: "relative paths cannot be used"
Post by: corcordp on May 22, 2019, 03:11:08 am
I went into android studios SDK settings and checked the boxes to install NDK. Now I run the command build-sfml.bat D:\android ndk directory and I get the resulting three CMD prompts. Left is the one I started with, right two pop up after execution.

https://imgur.com/a/nPHO4V6