env.TARGET_PLATFORM_ROOT}/usr/lib does not exist

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

env.TARGET_PLATFORM_ROOT}/usr/lib does not exist

schnabelvieh
Hello again,

my second post. I've been busy with compiling jogl on an armv7hf (iMX6, udoo board).
Unfortunately I'm not that succesfull:

I've followed the instructions on http://jogamp.org/jogl/doc/HowToBuild.html

but ant finished with:

-----------------------------------
jogamp/jogl/make/${env.TARGET_PLATFORM_ROOT}/usr/lib does not exist.
-----------------------------------

I've found a bugfix, https://jogamp.org/bugzilla/show_bug.cgi?id=650 and applied it.

Unfortunately this didn't work ether. The bugfix is from 2013, so I assume it is was somehow included into the source tree. Thus applying it, wouldn't make that much sense and I guess that is the reason why the bugfix doesn't work anymore.

Mmmm, well to be honest, I don't know what to do else.

Can somebody give me a hint?

Thanks in advance,
schnabelvieh
Reply | Threaded
Open this post in threaded view
|

Re: env.TARGET_PLATFORM_ROOT}/usr/lib does not exist

gouessej
Administrator
Hi

Contact Sven and Xerxes on IRC, someone else had a similar problem a few months ago and I have forgotten what was missing. I think that this variable is set by a script you have to run before building.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: env.TARGET_PLATFORM_ROOT}/usr/lib does not exist

Xerxes Rånby
In reply to this post by schnabelvieh
The HowToBuild.html unfortunately only cover GNU Linux x86, 32- and
64-bit, this document needs to be updated to also cover ARM 32bit builds.

ARM builds can be performed using cross compilation and native compilation.

in both cases the system environment variable TARGET_PLATFORM_ROOT has to
be set and point to the root location of your arm system before running ant
if you compile directly on your iMX6 board TARGET_PLATFORM_ROOT shall be
set to / this is done by running the following command.
export TARGET_PLATFORM_ROOT=/

The jogamp team uses the build scripts
gluegen/make/scripts/make.gluegen.all.linux-armv6hf.sh
jogl/make/scripts/make.jogl.all.linux-armv6hf.sh
found inside the make directory to perform native builds

the following two scripts
gluegen/make/scripts/make.gluegen.all.linux-armv6hf-cross.sh
jogl/make/scripts/make.jogl.all.linux-armv6hf-cross.sh
to perform cross compile builds.

Run the scripts from inside the gluegen make directory
cd gluegen/make
sh scripts/make.gluegen.all.linux-armv6hf.sh

and similar from inside the jogl make directory
cd jogl/make
sh scripts/make.jogl.all.linux-armv6hf.sh

TARGET_PLATFORM_ROOT will be set correctly by the script and your build will succeed.

good luck!



The prebuilt armv6hf natives provided by jogamp shall work on your armv7hf system

Cheers
Xerxes


2015-01-23 18:48 GMT+01:00 schnabelvieh [via jogamp] <
ml-node+s762907n4033904h87@n3.nabble.com>:

> Hello again,
>
> my second post. I've been busy with compiling jogl on an armv7hf (iMX6,
> udoo board).
> Unfortunately I'm not that succesfull:
>
> I've followed the instructions on
> http://jogamp.org/jogl/doc/HowToBuild.html
>
> but ant finished with:
>
> -----------------------------------
> jogamp/jogl/make/${env.TARGET_PLATFORM_ROOT}/usr/lib does not exist.
> -----------------------------------
>
> I've found a bugfix, https://jogamp.org/bugzilla/show_bug.cgi?id=650 and
> applied it.
>
> Unfortunately this didn't work ether. The bugfix is from 2013, so I assume
> it is was somehow included into the source tree. Thus applying it, wouldn't
> make that much sense and I guess that is the reason why the bugfix doesn't
> work anymore.
>
> Mmmm, well to be honest, I don't know what to do else.
>
> Can somebody give me a hint?
>
> Thanks in advance,
> schnabelvieh
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://forum.jogamp.org/env-TARGET-PLATFORM-ROOT-usr-lib-does-not-exist-tp4033904.html
>  To start a new topic under jogl, email
> ml-node+s762907n782158h61@n3.nabble.com
> To unsubscribe from jogamp, click here
> <http://forum.jogamp.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=762907&code=eGVyeGVzQGd1ZGlubmEuY29tfDc2MjkwN3wtNTE5NjUwMzEw>
> .
> NAML
> <http://forum.jogamp.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
Reply | Threaded
Open this post in threaded view
|

Re: env.TARGET_PLATFORM_ROOT}/usr/lib does not exist

schnabelvieh
Hi,

thanks for your effort and your instructions. I'm trying to build jogl and gluegen on the arm-hardware (iMX6, armv7hf) ;-)

building gluegen failed with:
----------------------
libBindingtest1p1.so: No symbol version section for versioned symbol `memcpy@GLIBC_2.4'
----------------------
I've eddited "stub_includes/platform/glibc-compat-symbols.h" as mentioned in

http://forum.jogamp.org/memcpy-GLIBC-2-4-No-symbol-version-section-td4033903.htm

and the build finished succesfully.

building jogl still fails, now with a different message.

Running "sh scripts/make.jogl.all.linux-armv6hf.sh" without having touched TARGET_PLATFORM_ROOT
finished with

--------------------------------------
 /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.3/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: libnativewindow_x11.so: No symbol version section for versioned symbol `memcpy@GLIBC_2.19'
       [cc] /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.3/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output
       [cc] collect2: Fehler: ld gab 1 als Ende-Status zurück
--------------------------------------

That looks similar to the error mentioned above I had with gluegen. Gluegen failed with "memcpy@GLIBC_2.4" - in the error message. Unfortunately I can't find anything like "glibc-compat-symbols.h" file in the jogl directory, which was a "solution" for gluegen.

I've although tried:

1) export TARGET_PLATFORM_ROOT=/
2) ant in the make directory

as you mentioned in your reply. The error stays the same.

Now I'm lost .... ;-(

I'm really sorry for asking all this questions and would like to thank you again.....

Have fun,

Schnabelvieh