11.x compilation errors

Issue #176 resolved
Kira Boom created an issue

Hi! Building the latest commit (0ac43aa) according to the instructions gives me the error:

D:/DreamDisc/MartinFelis-love-android-sdl2-0ac43aa71714/love/src/jni/love/src/common/memory.cpp:41:9: error: use of undeclared identifier 'posix_memalign'
return posix_memalign(mem, alignment, size) == 0;

I also tried the release tagged "11.0" and had the same issue.

Please let me know if there's more information i can provide.

Comments (3)

  1. Kira Boom reporter

    The following changes seem to fix the compilation issues for me:

    diff --git a/build.gradle b/build.gradle
    index a015c70d..ebd88119 100644
    --- a/build.gradle
    +++ b/build.gradle
    @@ -6,7 +6,7 @@ buildscript {
             google()
         }
         dependencies {
    -        classpath 'com.android.tools.build:gradle:3.0.1'
    +        classpath 'com.android.tools.build:gradle:3.2.0'
    
             // NOTE: Do not place your application dependencies here; they belong
             // in the individual module build.gradle files
    @@ -19,4 +19,11 @@ task clean(type: Delete) {
    
     repositories {
         google()
    -}
    \ No newline at end of file
    +}
    +
    +allprojects {
    +    repositories {
    +        jcenter()
    +        google()
    +    }
    +}
    diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
    index 0e24ff08..7927f070 100644
    --- a/gradle/wrapper/gradle-wrapper.properties
    +++ b/gradle/wrapper/gradle-wrapper.properties
    @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
     distributionPath=wrapper/dists
     zipStoreBase=GRADLE_USER_HOME
     zipStorePath=wrapper/dists
    -distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
    +distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
    
  2. Log in to comment