-
Notifications
You must be signed in to change notification settings - Fork 28
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
Build fail #1
Comments
Hello majo551, Did you get the error using Android Studio? There's a note in the CMakeList.txt. I've just been through the motions on Linux via the command line. I downloaded latest downloads to my linux box: Then from the command line (I've got android sdk and ndk in my path): and the build was successful. Using the new dp41 on a rpi I've installed each demo and I made up a breadboard and all the demos worked ok. |
Hi,
I retried today on Win7 machine again with the latest updates to Android
studio, libandrodithings-0.4.1 and the results is build error. I must have
something to do with Windows paths- see error log:(the path segments are
with both "/" and "\" but Windows can read only "\" in the paths...
CMake Error at CMakeLists.txt:32 (add_library):
Syntax error in cmake code when parsing string
C:\Users\majo551i\Documents\ANDROID\sample-nativepio-master*/*
android-system-properties*/*AndroidSystemProperties.cpp
* Invalid character escape '\U'.*
2017-06-16 11:19 GMT+02:00 tyharness <[email protected]>:
… Hello majo551,
I've just been through the motions on my linux box:
In the project root folder sample-nativepio-master I copied
native-libandroidthings-master and unzipped then I renamed the folder to
just libandroidthings
from the command line:
./gradlew build
and the build was successful.
I haven't installed over to the device with hardware but I'm sure it'll be
ok. Did it last week with dp4.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMurCCiqS5QIDCPeHcIxqZQl7rxARqc2ks5sEkikgaJpZM4Nnb0i>
.
|
Hi
I replaced the relative path definition in the cmake files at line 33(add
library) with project absolute path with the correct
path slash
"/"
character and then the build worked.
Not sure how to correct the CMake in other way , I just simply replaced :
add_library(android-system-properties STATIC
${PROJECT_DIR}/android-system-properties/AndroidSystemProperties.cpp)
with
add_library(android-system-properties STATIC
C:/Users/majo551/Documents/ANDROID/sample-nativepio-master/android-system-properties/AndroidSystemProperties.cpp)
The PROJECT_DIR path is interpreted at this line with the windows path
separator "\" which means the escape character and not the path
separator needed "/"
2017-07-02 10:15 GMT+02:00 Majo <[email protected]>:
… Hi,
I retried today on Win7 machine again with the latest updates to Android
studio, libandrodithings-0.4.1 and the results is build error. I must have
something to do with Windows paths- see error log:(the path segments are
with both "/" and "\" but Windows can read only "\" in the paths...
CMake Error at CMakeLists.txt:32 (add_library):
> Syntax error in cmake code when parsing string
> C:\Users\majo551i\Documents\ANDROID\sample-nativepio-master*/*
> android-system-properties*/*AndroidSystemProperties.cpp
> * Invalid character escape '\U'.*
2017-06-16 11:19 GMT+02:00 tyharness ***@***.***>:
> Hello majo551,
> I've just been through the motions on my linux box:
> In the project root folder sample-nativepio-master I copied
> native-libandroidthings-master and unzipped then I renamed the folder to
> just libandroidthings
>
> from the command line:
> ./gradlew build
>
> and the build was successful.
>
> I haven't installed over to the device with hardware but I'm sure it'll
> be ok. Did it last week with dp4.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#1 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AMurCCiqS5QIDCPeHcIxqZQl7rxARqc2ks5sEkikgaJpZM4Nnb0i>
> .
>
|
Do you have the same error with a more recent version of windows (ex: 10) ? |
building the sample fails:

Looks like the project path (variable) uses incorrect slash in the path
The text was updated successfully, but these errors were encountered: