Login  Register

Re: Hello Word with Gradle

Posted by elect on Oct 31, 2015; 1:12pm
URL: https://forum.jogamp.org/Hello-Word-with-Gradle-tp4035649p4035680.html

I found a very interesting fact

If I use this configuration:

    ext.jogampVer = '2.3.2'
   
    repositories {
        mavenCentral()
        flatDir { dirs 'jogamp' }
    }
   
    dependencies {
        testCompile group: 'junit', name: 'junit', version: '4.11'
   
        compile ":jogl-all:$jogampVer"
        compile ":gluegen-rt:$jogampVer"
    }

It works on linux...

In my /jogamp I have `gluegen-rt`, `jogl-all` and the corresponding natives

But if I change the configuration back to

    ext.jogampVer = '2.3.2'
   
    repositories {
        mavenCentral()
    }
   
    dependencies {
        testCompile group: 'junit', name: 'junit', version: '4.11'
   
        compile "org.jogamp.jogl:jogl-all:$jogampVer"
        compile "org.jogamp.gluegen:gluegen-rt:$jogampVer"
        compile "org.jogamp.jogl:jogl-all:$jogampVer:natives-linux-amd64"
        compile "org.jogamp.gluegen:gluegen-rt:$jogampVer:natives-linux-amd64"
    }

It doesn't find the native library anymore...

I tried to substitute `compile` with `runtime` for the natives, but I had no success..

What's wrong? Why cannot it find the natives?