Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
535 posts
|
I am having problems on linux using Gradle and Netbeans (throw the Gradle plugin). I created a very simple test for that, here. Xramby suggested me that it is a problem with Netbeans since it relys on resources in the build folder.
But when I already asked on the Gradle forum and on the github page of the Gradle plugin, in both places I was told that is not gradle/netbeans related, rather a Jogl one. They point my log here: Stack: [0x00007fd56bb75000,0x00007fd56bc76000], sp=0x00007fd56bc73728, free space=1017k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C 0x0000000000002546 j jogamp.nativewindow.x11.X11Lib.XOpenDisplay(Ljava/lang/String;)J+0 j jogamp.nativewindow.x11.X11Util.XOpenDisplay(Ljava/lang/String;)J+1 j jogamp.nativewindow.x11.X11Util.openDisplay(Ljava/lang/String;)J+96 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
282 posts
|
Yea it crashes in GL-code but the reason it crashes could still be that native libraries are not found. It could also be that your initalization is not correct or many other things :-)
I guess it is this line that crashes "GLProfile glProfile = GLProfile.get(GLProfile.GL4);" Is there any other way (other application) you could use to verify that the driver supports OpenGL 4? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
535 posts
|
I am also pretty sure it has to do with Gradle, but this is how I was told here and here.. The driver works fine, it runs flawless without using Gradle and I have GL 4.5 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
6044 posts
|
Does it work in command line without Netbeans? I use Gradle with LibGDX but not to run a JOGL program.
Julien Gouesse | Personal blog | Website
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
535 posts
|
I have to try that |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
6044 posts
|
"gradle build" works for me when I build JogAmp's Ardor3D Continuation too. Which version of Gradle do you use?
Julien Gouesse | Personal blog | Website
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
535 posts
|
It should be 2.4
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
535 posts
|
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? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
535 posts
|
This is the error Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /home/elect/IdeaProjects/Test/natives/linux-amd64//libnativewindow_awt.so This path is exactly that one inside the native I am trying to include |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
6044 posts
|
It should look for the native libraries in the temporary cache. Please enable all logs. Something might prevent their extraction.
Julien Gouesse | Personal blog | Website
|
Free forum by Nabble | Edit this page |