nanogui: Cross compiling Fltk/flnx


Previous by date: 16 May 2006 16:35:57 +0100 Re: Cross compiling Fltk/flnx, Martin Kajdas
Next by date: 16 May 2006 16:35:57 +0100 Re: nano-X and OpenGL?, Vignesh J.S
Previous in thread: 16 May 2006 16:35:57 +0100 Re: Cross compiling Fltk/flnx, Martin Kajdas
Next in thread:

Subject: Re: [nanogui] Cross compiling Fltk/flnx
From: Aveek Adhya ####@####.####
Date: 16 May 2006 16:35:57 +0100
Message-Id: <4469F2B5.1020208@rebaca.com>

Hi All,
Thanx a lot for ur comments. I have build flnx successfully after doing 
some minor changes in the 'makeinclude', 'Makefile' and in some other 
source files. I build 'test'  applications too for the target platform 
and they are working fine in the target.
Best Regards,
Aveek
 
Martin Kajdas wrote:

>Aveek,
>
>You are mixing up your development (PC) host library builds with your target (ARM) library builds.
>When you build your target libraries, do not build you development tools and libraries.
>Fluid has nothing to do with your target and it should not be build when you make your target libraries.
>
>I think you are 'installing' your target libraries on your host. You do not want to do that.
>
>Martin
>
>
>-----Original Message-----
>From: Pete Klemm ####@####.####
>Sent: Monday, May 15, 2006 12:53 PM
>To: Aveek Adhya
>Cc: ####@####.####
>Subject: Re: [nanogui] Cross compiling Fltk/flnx
>
>
>Aveek,
>
>Fluid is a GUI development tool that is run on the development host, not 
>your target.
>
>To get Fluid to compile you need to build another version of FLNX(FLTK) 
>that runs
>on your host machine. I have never used Fluid so I am not able to answer 
>specific
>questions about it.
>
>Pete
>
>Aveek Adhya wrote:
>  
>
>>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
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: ####@####.####
>>For additional commands, e-mail: ####@####.####
>>
>>
>>
>>    
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>
>
>
>
>  
>


Previous by date: 16 May 2006 16:35:57 +0100 Re: Cross compiling Fltk/flnx, Martin Kajdas
Next by date: 16 May 2006 16:35:57 +0100 Re: nano-X and OpenGL?, Vignesh J.S
Previous in thread: 16 May 2006 16:35:57 +0100 Re: Cross compiling Fltk/flnx, Martin Kajdas
Next in thread:


Powered by ezmlm-browse 0.20.