> I'm cross-compiling FLTK version 1.1.9 using instructions
> from http://cblfs.cross-lfs.org/index.php/FLTK and when i
> type 'make install' i get this error:
I'm not familiar with those instructions, but I'd suggest the prefix
value they suggest is not sensible.
Initial reaction is that you can not install a cross-compiled version,
unless you ensure that the install path is not going to collide with the
host libs.
On the basis of the paths listed below, that doesn't appear to be the
case, it appears to be looking in the host-local paths, which just seems
wrong.
When you say cross-compiled, what host and target are you using? You
appear to be using the host gcc, and it appears to be a Unix system -
I'm guessing the target is an x86_64 Linux system, what is the host?
It might help if you explained what you are trying to do, and we could
tell you how to do it.
> === installing FL ===
> Installing include files in /usr/include...
> === installing src ===
> Installing libraries in /usr/lib64...
> ranlib: '/usr/lib64/../lib/libfltk.a': No such file
> make[1]: ** [install] Error 1
> make: ** [install] Error 1
> Before the make install typed this comands, with no problems:
> CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure
> --prefix=/usr --x-libraries=${XORG_PREFIX}/lib64
> --libdir=/usr/lib64 --enable-shared --enable-xinerama
> --enable-xft --enable-threads && make
> System:
> Release: SVN-20080629-x86_64-Multilib
>
> - I have opened the STR #2007, but Matthias Melcher, closed the STR.
> - This is not a problem with prior versions. It is with version 1.1.9.
> - The problem is in the Makefile on src dir.
> - This Makefile do ranlib '/usr/lib64/..lib/libfltk.a'
> instead of '/usr/lib64/libfltk.a' or '/usr/lib64/../lib64/libfltk.a'
> - The suffix 'lib' is hardcoded in the somewhere forcing the
> runlib to search a invalid libfltk.a
The fltk configure script is not cross-compilation aware, and never has
been - the fltk design assumes cross-platform support using tools hosted
locally to the target.
It is unlikely that this will be fixed in the 1.1.x series, since it is
now closed to further enhancements (it is the stable base, so no new
features can be added. Cross-targeting would constitute a new feature,
in practice.)
That said, it is simple to generate cross-compilation builds of fltk -
all the cross-targeting information is contained within the config.h and
makeinclude files, so it is trivial to hand edit these files to compile
for your specific target. I do this fairly often.
The fact that previous versions of the configure script may or may not
have worked in some cross-targeted configuration is quite possibly more
to do with luck than intent!
Again, as I say, if you can tell us what you want to go, we can probably
tell you a better way to get there...
--
Ian
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk