Login  Register

Re: Problems getting eclipse set up for building jogl

Posted by Xerxes Rånby on Oct 22, 2016; 1:27pm
URL: https://forum.jogamp.org/Problems-getting-eclipse-set-up-for-building-jogl-tp4037343p4037344.html

You need to install *all* dependencies as mentioned in the HowToBuild documentation
https://jogamp.org/jogl/doc/HowToBuild.html

you have missed to install libudev-dev

and thats why your build failed to link

[cc] Starting link
[cc] /usr/bin/ld: cannot find -ludev
[cc] collect2: error: ld returned 1 exit status



2016-10-22 12:09 GMT+02:00 elect [via jogamp] <[hidden email]>:
So, I followed the wiki:

- I can build from command line

- I don't know if I have the jdk or jre, but I do have $JAVA_HOME/lib/tools.jar and $JAVA_HOME/bin/javac, so I assume I have a jdk

- I don't have any CLASSPATH variable

- I have ant 1.9.6

- echo $ANT_HOME
/usr/share/ant

- and it's in my PATH

$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$ANT_HOME/bin:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin


- this is my eclipse.ini, the only different is that I have

-vm
<your JAVA_HOME directory>/jre/bin

instead

-vm
<your JAVA_HOME directory>/jre/bin/java

I think it's ok

- I didn't customize Eclipse's Ant version since I have 1.9.6 and jogl requires 1.8+

- I created the Ant and SWT user library

- imported gluegen and jogl projects

- disabled immediately auto-build

- followed the whole Create the gluegen project and
Create the jogl project

- clean & build

gluegen went fine, jogl no, log error

I remember when I did "Create the jogl project", they said to "Remove any source path entries that are not in this list." and there was a couple of oculus stuff, I had the feeling that could have potentially created some bugs, and I screenshotted the whole thing just in case and I guess I was right..



What shall I do?



If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/Problems-getting-eclipse-set-up-for-building-jogl-tp4037343.html
To start a new topic under jogl, email [hidden email]
To unsubscribe from jogamp, click here.
NAML