nanogui: Cross compiling Fltk/flnx


Previous by date: 15 May 2006 16:38:59 +0100 Re: Cross compiling Fltk/flnx, Aveek Adhya
Next by date: 15 May 2006 16:38:59 +0100 Re: LINK APP INTO SERVER, Greg Haerr
Previous in thread: 15 May 2006 16:38:59 +0100 Re: Cross compiling Fltk/flnx, Aveek Adhya
Next in thread: 15 May 2006 16:38:59 +0100 Re: Cross compiling Fltk/flnx, Pete Klemm

Subject: Re: [nanogui] Cross compiling Fltk/flnx
From: Aveek Adhya ####@####.####
Date: 15 May 2006 16:38:59 +0100
Message-Id: <4468A1EC.5010308@rebaca.com>

Thanx Pete for your reply.
I have changed the 'makeinclude' file as required and this make it 
possible to select right toolchain while compiling. But I got some kind 
of interneal error while compiling :
.........
...........
=== making fluid ===
make[1]: Entering directory `/home/Aveek/flnx/fluid'
arm-elf-g++ -I.. -O2 -Wall -Wno-return-type  -DNANO_X 
-I/home/Aveek/microwindows/src/include 
-DNANOXFOLDER='"/home/Aveek/microwindows/src/bin"' -DPDA -c 
Fluid_Image.cxxFluid_Image.cxx: In method 
`pixmap_image::pixmap_image(const char *, FILE *)':
Fluid_Image.cxx:160: internal error--unrecognizable insn:
(insn 1242 1239 1227 (set (reg:QI 4 r4)
        (mem:QI (plus:SI (reg:SI 2 r2)
                (const_int -2256 [0xfffff730])) 0)) -1 (nil)
    (nil))
make[1]: *** [Fluid_Image.o] Error 1
make[1]: Leaving directory `/home/Aveek/flnx/fluid'
=== making test ===
make[1]: Entering directory `/home/Aveek/flnx/test'
make[1]: *** No rule to make target `../lib/libfltk.a', needed by 
`valuators'.  Stop.
make[1]: Leaving directory `/home/Aveek/flnx/test'
make: *** [all] Error 2

This looks like a cross-compiler error, although I am not very much sure 
about this. Did anybody face this kind of error while cross-compiling 
flnx for Arm target platform ?

cheers,
Aveek

Pete Klemm wrote:

> Aveek Adhya wrote:
>
>> Hi all,
>> I want to cross-compile Fltk/flnx for arm target platform and the 
>> steps I followed are like this :
>> i> I downloaded the source from 
>> ftp://ftp.microwindows.org/pub/microwindows/flnx/flnx-0.18-tar.gz.
>> ii> I installed the Microwindows for Arm target board in my PC and 
>> all the example programs work fine in the target board.
>> iii> After extracting the flnx-0.18-tar.gz I followed the 
>> instructions as specified in the 'INSTALL' file. These are as below :
>>               1> To run the configure script I tried this option :
>>    ./configure --with-microwin=<PATH>/microwindows/src 
>> --libdir=/tools/arm/lib --includedir=/tools/arm/include 
>> --prefix=/tools/arm/flnklibs
>>
>>          II> I exported the compiler variables :
>> export AR=/tools/arm/bin/arm-elf-ar
>> export AS=/tools/arm/bin/arm-elf-as
>> export CC=/tools/arm/bin/arm-elf-gcc
>> export CXX=/tools/arm/bin/arm-elf-c++
>> export GXX=/tools/arm/bin/arm-elf-g++
>> export LD=/tools/arm/bin/arm-elf-ld
>> export NM=/tools/arm/bin/arm-elf-nm
>> export RANLIB=/tools/arm/bin/arm-elf-ranlib
>> export STRIP=/tools/arm/bin/arm-elf-strip
>>
>>          III> make
>>
>> But in spite of setting all these, all the files are compiled with 
>> normal gcc or g++ compiler, not with the cross-compiler 
>> (arm-elf-gcc/arm-elf-g++) as it is supposed to be.
>> In the configure script there is a variable called 'cross_compiling' 
>> and by default it is set as 'cross_compiling=no'. I tried the same 
>> after setting it 'yes' , but this couldn't solve my problem anyway.
>>
>> Can anybody tell how to cross-compile 'flnx' for Arm target platform 
>> ? Any kind of suggestions are welcome.
>> cheers,
>> Aveek
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ####@####.####
>> For additional commands, e-mail: ####@####.####
>>
>>
>>
> Specify your cross compiler tools in 'makeinclude'
>
> Pete
>
>


Previous by date: 15 May 2006 16:38:59 +0100 Re: Cross compiling Fltk/flnx, Aveek Adhya
Next by date: 15 May 2006 16:38:59 +0100 Re: LINK APP INTO SERVER, Greg Haerr
Previous in thread: 15 May 2006 16:38:59 +0100 Re: Cross compiling Fltk/flnx, Aveek Adhya
Next in thread: 15 May 2006 16:38:59 +0100 Re: Cross compiling Fltk/flnx, Pete Klemm


Powered by ezmlm-browse 0.20.