Re: python-ctypes and binutils

2008-11-28 Thread Gunnar Aastrand Grimnes
Hi Andrew!

That's exactly what I was looking for! Thanks!

- Gunnar

Andrew Chu wrote:
 Hi Gunnar,
 
 I'm not sure if this will answer your question or not, but it sounds 
 like you are looking for the following package:
 
 http://www.angstrom-distribution.org/repo/?pkgname=binutils-symlinks
 
 which will create symlinks to the weird named binaries.
 
 Cheers,
 Andrew
 
 Gunnar Aastrand Grimnes wrote:
 Hi all,

 Not sure where to send this - perhaps a more development oriented list?

 Anyway, the issue is about python-ctypes, the library for easy access to
 shared libraries from python. This includes a utility class for finding
 the REAL name of a library, i.e. getting from GL to /usr/lib/libGL.so.1

 This code is found here:
 /usr/lib/python2.5/ctypes/util.py

 (assuming python-ctypes is installed)

 Now this relies in turn on several external tools for finding the
 library (see [1]), in particular ldconfig, gcc and objdump.
 Now ldconfig we have by default, gcc we do not want to install and
 objdump is in the binutils package. Now the binutils package only
 includes weird named binaries for objdump, i.e.
 /usr/bin/arm-angstrom-linux-gnueabi-objdump - and this is not found by
 ctypes...

 How do we fix this? Can binutils not ship with a /usr/bin/objdump
 symlinked to /usr/bin/arm-angstrom-linux-gnueabi-objdump?

 A semi-related question : Say I've written a new .bb file for
 python-opengl. How can I most easily get this put into openembedded?

 Cheers,

 - Gunnar

 [1] http://www.python.org/doc/2.5.2/lib/ctypes-finding-shared-libraries.html

 
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


-- 
Gunnar Aastrand Grimnes
gunnar.grimnes [AT] dfki.de

DFKI GmbH
Knowledge Management
Trippstadter Strasse 122
D-67663 Kaiserslautern
Germany

Office: +49 631 205 75-117
Mobile: +49 177 277 4397



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


python-ctypes and binutils

2008-11-27 Thread Gunnar Aastrand Grimnes
Hi all,

Not sure where to send this - perhaps a more development oriented list?

Anyway, the issue is about python-ctypes, the library for easy access to
shared libraries from python. This includes a utility class for finding
the REAL name of a library, i.e. getting from GL to /usr/lib/libGL.so.1

This code is found here:
/usr/lib/python2.5/ctypes/util.py

(assuming python-ctypes is installed)

Now this relies in turn on several external tools for finding the
library (see [1]), in particular ldconfig, gcc and objdump.
Now ldconfig we have by default, gcc we do not want to install and
objdump is in the binutils package. Now the binutils package only
includes weird named binaries for objdump, i.e.
/usr/bin/arm-angstrom-linux-gnueabi-objdump - and this is not found by
ctypes...

How do we fix this? Can binutils not ship with a /usr/bin/objdump
symlinked to /usr/bin/arm-angstrom-linux-gnueabi-objdump?

A semi-related question : Say I've written a new .bb file for
python-opengl. How can I most easily get this put into openembedded?

Cheers,

- Gunnar

[1] http://www.python.org/doc/2.5.2/lib/ctypes-finding-shared-libraries.html

-- 
Gunnar Aastrand Grimnes
gunnar.grimnes [AT] dfki.de

DFKI GmbH
Knowledge Management
Trippstadter Strasse 122
D-67663 Kaiserslautern
Germany

Office: +49 631 205 75-117
Mobile: +49 177 277 4397



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: python-ctypes and binutils

2008-11-27 Thread Andrew Chu
Hi Gunnar,

I'm not sure if this will answer your question or not, but it sounds 
like you are looking for the following package:

http://www.angstrom-distribution.org/repo/?pkgname=binutils-symlinks

which will create symlinks to the weird named binaries.

Cheers,
Andrew

Gunnar Aastrand Grimnes wrote:
 Hi all,
 
 Not sure where to send this - perhaps a more development oriented list?
 
 Anyway, the issue is about python-ctypes, the library for easy access to
 shared libraries from python. This includes a utility class for finding
 the REAL name of a library, i.e. getting from GL to /usr/lib/libGL.so.1
 
 This code is found here:
 /usr/lib/python2.5/ctypes/util.py
 
 (assuming python-ctypes is installed)
 
 Now this relies in turn on several external tools for finding the
 library (see [1]), in particular ldconfig, gcc and objdump.
 Now ldconfig we have by default, gcc we do not want to install and
 objdump is in the binutils package. Now the binutils package only
 includes weird named binaries for objdump, i.e.
 /usr/bin/arm-angstrom-linux-gnueabi-objdump - and this is not found by
 ctypes...
 
 How do we fix this? Can binutils not ship with a /usr/bin/objdump
 symlinked to /usr/bin/arm-angstrom-linux-gnueabi-objdump?
 
 A semi-related question : Say I've written a new .bb file for
 python-opengl. How can I most easily get this put into openembedded?
 
 Cheers,
 
 - Gunnar
 
 [1] http://www.python.org/doc/2.5.2/lib/ctypes-finding-shared-libraries.html
 


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community