[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    Re: KDevelop and cross plateforme
From:       abdeslam BENZEGHIOUA <abbe () teamlog ! com>
Date:       2002-07-29 8:56:12
[Download RAW message or body]

Hello,

I always have the same problem I manage not to produce a binary for the 
plate-form uclinux 2.x (crossed plate-forme)

Here are all the stages of creation of the project :

1. In KDE Application Wizards I hace chosed :
    Terminal C
    project name : Mytest
    and I pressed Create to create the project.

2. In Menu options ...    
    +- KDevloper Setup
        +- Compiler
-----  Parameter setting of the compliation on the system  ----
               This computer is : i386    
                OS : linux    

------ Configuration for the target machine ----------
                 Architecture  : arm
                Plate-forme : linux

                Commands system of the preprocessor C : gcc
                Commands system of the compiler C : gcc
                Commands system of the compiler C++ : gcc


In menu Project ...
    +- Options ...
                Options of compiler :   configuration is by default
                          In the tab Flags and warnings   
  
By default  the complier configuration is :

Architecture : i386                          plate-forme : linux

I set :
                  
Flags of compiler C (CFLAGS) :
 -g -O -Wall -mapcs-32 -mcpu=arm7tdmi -fpic -msingle-pic-base -mno-got 
-msoft-float -D__uclinux__
Flags of compiler C++ (CFLAGS) :
-g -O -Wall -mapcs-32 -mcpu=arm7tdmi -fpic -msingle-pic-base -mno-got 
-msoft-float -D__uclinux__
           
       In the tab Flags for the publishing(edition) of the links
                 (LDFLAGS)
     Anothers flags :  -T 
/usr/local/NETLx/userapps/glibc_apps/rt_init/user.ld


In the end when I press OK , I obtain :

Exécute «./configure» dans le dossier contenant les fichiers sources
checking build system type... i386-pc-linux-gnu
checking host system type... i386-pc-linux-gnu
checking target system type... i386-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for style of include used by make... GNU
checking for i386-linux-g++... arm-uclinux-gcc
checking whether we are using the GNU C++ compiler... no
checking whether arm-uclinux-gcc accepts -g... no
checking dependency style of arm-uclinux-gcc... gcc
checking for i386-linux-gcc... arm-uclinux-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... configure: error: cannot run C 
compiled programs.
If you meant to cross compile, use `--host'.
*** Failure ***


When I look the Build option ... Configure I foud :
 --build=i386-linux --host=i386-linux --target=i386-linux

When I change this configuration in :
 --build=i386-linux --host=arm-linux --target=arm-linux

I obtain :

checking build system type... i386-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for style of include used by make... GNU
checking for arm-linux-g++... arm-uclinux-gcc
checking whether we are using the GNU C++ compiler... no
checking whether arm-uclinux-gcc accepts -g... no
checking dependency style of arm-uclinux-gcc... gcc
checking for arm-linux-gcc... arm-uclinux-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether arm-uclinux-gcc accepts -g... yes
checking dependency style of arm-uclinux-gcc... gcc
checking how to run the C preprocessor... i386-linux-cpp
configure: error: C preprocessor "i386-linux-cpp" fails sanity check
*** Failure ***

I tried all the options possible, but the result is always the same, the 
impossible to generate a
binary for the platform uclinux (crossed plate-forme).

In indicated: if I replace Makefile generated by Kdevelop, by my 
Makefile, I obtain
the looked for result (a binary for uclinux)

-------------- my Makefile -------------

OBJFMT        = elf
OBJFMTD       = elfdebug
OBJFMT2FLT    = ldelf2flt
LDFLAGS          = -T $(NETARMROOT)/userapps/glibc_apps/rt_init/user.ld
LD            = arm-uclinux-ld

CFLAGS        = -g -O -Wall -mapcs-32 -mcpu=arm7tdmi -fpic 
-msingle-pic-base -mno-got -msoft-float -D__uclinux__
CC            = arm-uclinux-gcc

SRC           = main.c
OBJ           = $(SRC:.c=.o)

all: hello_glibc hello_glibc.elfdebug

hello_glibc.elf: $(OBJ)
    $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $(NETLIBS)

hello_glibc: hello_glibc.elf
    $(OBJFMT2FLT) -s 40960 -o $@ $<

hello_glibc.elfdebug: hello_glibc.elf
    $(LD) $(LDFLAGS) -o $@ $<

clean:
    rm -f $(OBJ) hello_glibc *.elf *.elfdebug *.map

------------------------------------------------------------------


Please can you help me.

Regards.

Abdeslam.




Reinaldo Nolasco Sanches wrote:

>I was told you...
>
>In Menu options ...    
>    +- KDevloper Setup
>        +- Compiler
>               This computer is : i386    
>                OS : linux      (I use linux 8.0)
>             ----------------------------------
>                Archtecture  : arm
>                Plate-forme : linux
>
>                Commands system of the preprocessor C : arm-uclinux-gcc
>                Commands system of the compiler C : arm-uclinux-gcc
>                Commands system of the compiler C++ : arm-uclinux-g++
>
>Change informatiom...
>
>
>                Commands system of the preprocessor C : gcc
>                Commands system of the compiler C : gcc
>                Commands system of the compiler C++ : g++
>
>You will compile in cross-plataform...
>
>You run ./configure with this arguments...
>
>In menu build...
>configure...
>    when dialog show in...
>       you see... parameters are in... then... you only need press OK
>
>and your application will be compile in cross-plataform...
>
>
>
>
>=====
>"When you know Slackware, you know Linux... when you know Red Hat, all you know is Red hat"
>
>- Anyone seen smoking will be assumed to be on fire and will be summarily put out.
>- Power doesn't corrupt people, people corrupt power.
>
>- r_linux@yahoo.com -- http://slackware.linuxbr.org
>- UIN: 42853394 - irc.brasnet.org(#slackware)
>
>__________________________________________________
>Do You Yahoo!?
>Sign up for SBC Yahoo! Dial - First Month Free
>http://sbc.yahoo.com
>
>-
>to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
>unsubscribe »your-email-address«
>


[Attachment #3 (text/html)]

<html>
<head>
</head>
<body>
Hello, <br>
<br>
 I always have the same problem I manage not to produce a binary for the
plate-form uclinux 2.x (crossed plate-forme)<br>
<br>
 Here are all the stages of creation of the project :<br>
<br>
 1. In KDE Application Wizards I hace chosed :<br>
 &nbsp;&nbsp;&nbsp; Terminal C<br>
 &nbsp;&nbsp;&nbsp; project name : Mytest<br>
 &nbsp; &nbsp; and I pressed Create to create the project.<br>
<br>
 2.  In Menu options ... &nbsp; &nbsp;<br>
  &nbsp;&nbsp;&nbsp; +- KDevloper Setup<br>
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; +- Compiler<br>
 ----- &nbsp;Parameter setting of the compliation on the system &nbsp;----<br>
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <i>This \
computer is : <b>i386</b> &nbsp;&nbsp;&nbsp; <br>  &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OS : <b>linux &nbsp;</b> \
&nbsp; </i><br> <br>
------ Configuration for the target machine ----------<br>
<i>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Architecture &nbsp;: \
<b>arm</b><br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; Plate-forme : <b>linux</b><br> <br>
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Commands \
system of the preprocessor C : <b>gcc</b><br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Commands system of the compiler C : \
<b>gcc</b><br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; Commands system of the compiler C++ : <b>gcc</b></i><b><br> \
</b><br> <br>
 In menu Project ...<br>
 &nbsp;&nbsp;&nbsp; +- Options ...<br>
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Options \
of compiler : &nbsp; configuration is by default<br>  &nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp; <u>In the tab Flags and warnings&nbsp; &nbsp; </u><br>  &nbsp;&nbsp; <br>
By default &nbsp;the complier configuration is :<br>
<br>
Architecture : i386 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp;plate-forme : linux<br> <br>
I set :<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;<br> Flags of compiler C (CFLAGS) :<br>
&nbsp;<b><i>-g -O -Wall -mapcs-32 -mcpu=arm7tdmi -fpic -msingle-pic-base -mno-got
-msoft-float -D__uclinux__ </i></b><br>
Flags of compiler C++ (CFLAGS) : <br>
<b><i>-g -O -Wall -mapcs-32 -mcpu=arm7tdmi -fpic -msingle-pic-base -mno-got
-msoft-float -D__uclinux__</i></b><br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <u>In the tab Flags for the publishing(edition) of \
the links</u><br> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; (LDFLAGS) <br> &nbsp;&nbsp;&nbsp;&nbsp; Anothers flags : \
&nbsp;<i><b>-T /usr/local/NETLx/userapps/glibc_apps/rt_init/user.ld </b></i><br>
<br>
<br>
In the end when I press OK , I obtain :<br>
<br>
Ex&eacute;cute &laquo;./configure&raquo; dans le dossier contenant les fichiers \
sources <br> checking build system type... i386-pc-linux-gnu <br>
checking host system type... i386-pc-linux-gnu <br>
checking target system type... i386-pc-linux-gnu <br>
checking for a BSD compatible install... /usr/bin/install -c <br>
checking for -p flag to install... yes <br>
checking whether build environment is sane... yes <br>
checking for mawk... no <br>
checking for gawk... gawk <br>
checking whether make sets ${MAKE}... yes <br>
checking for style of include used by make... GNU <br>
checking for i386-linux-g++... arm-uclinux-gcc <br>
checking whether we are using the GNU C++ compiler... no <br>
checking whether arm-uclinux-gcc accepts -g... no <br>
checking dependency style of arm-uclinux-gcc... gcc <br>
checking for i386-linux-gcc... arm-uclinux-gcc <br>
checking for C compiler default output... a.out <br>
checking whether the C compiler works... configure: error: cannot run C compiled
programs. <br>
If you meant to cross compile, use `--host'. <br>
***&nbsp;Failure *** <br>
<br>
<br>
When I look the Build option ... Configure I foud :<br>
&nbsp;<b>--build=i386-linux --host=i386-linux --target=i386-linux </b><br>
<br>
When I change this configuration in :<br>
&nbsp;<b>--build=i386-linux --host=arm-linux --target=arm-linux </b><br>
<br>
I obtain : <br>
<br>
checking build system type... i386-pc-linux-gnu <br>
checking host system type... arm-unknown-linux-gnu <br>
checking target system type... arm-unknown-linux-gnu <br>
checking for a BSD compatible install... /usr/bin/install -c <br>
checking for -p flag to install... yes <br>
checking whether build environment is sane... yes <br>
checking for mawk... no <br>
checking for gawk... gawk <br>
checking whether make sets ${MAKE}... yes <br>
checking for style of include used by make... GNU <br>
checking for arm-linux-g++... arm-uclinux-gcc <br>
checking whether we are using the GNU C++ compiler... no <br>
checking whether arm-uclinux-gcc accepts -g... no <br>
checking dependency style of arm-uclinux-gcc... gcc <br>
checking for arm-linux-gcc... arm-uclinux-gcc <br>
checking for C compiler default output... a.out <br>
checking whether the C compiler works... yes <br>
checking whether we are cross compiling... yes <br>
checking for executable suffix... <br>
checking for object suffix... o <br>
checking whether we are using the GNU C compiler... yes <br>
checking whether arm-uclinux-gcc accepts -g... yes <br>
checking dependency style of arm-uclinux-gcc... gcc <br>
checking how to run the C preprocessor... i386-linux-cpp <br>
configure: error: C preprocessor "i386-linux-cpp" fails sanity check <br>
*** Failure *** <br>
<br>
I tried all the options possible, but the result is always the same, the impossible
to generate a <br>
binary for the platform uclinux (crossed plate-forme).<br>
<br>
In indicated: if I replace Makefile generated by Kdevelop, by my Makefile,
I obtain <br>
the looked for result (a binary for uclinux) <br>
<br>
-------------- my Makefile -------------<br>
<br>
 OBJFMT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = elf<br>
 OBJFMTD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = elfdebug<br>
 OBJFMT2FLT&nbsp;&nbsp;&nbsp; = ldelf2flt<br>
 LDFLAGS&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = -T \
$(NETARMROOT)/userapps/glibc_apps/rt_init/user.ld<br>  \
LD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = \
arm-uclinux-ld<br> <br>
 CFLAGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = -g -O -Wall -mapcs-32 \
                -mcpu=arm7tdmi -fpic -msingle-pic-base 
-mno-got -msoft-float -D__uclinux__<br>
 CC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = \
arm-uclinux-gcc<br> <br>
 SRC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = main.c<br>
 OBJ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = $(SRC:.c=.o) <br>
<br>
 all: hello_glibc hello_glibc.elfdebug<br>
<br>
 hello_glibc.elf: $(OBJ)<br>
 &nbsp;&nbsp;&nbsp; $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $(NETLIBS)<br>
<br>
 hello_glibc: hello_glibc.elf<br>
 &nbsp;&nbsp;&nbsp; $(OBJFMT2FLT) -s 40960 -o $@ $&lt;<br>
<br>
 hello_glibc.elfdebug: hello_glibc.elf<br>
 &nbsp;&nbsp;&nbsp; $(LD) $(LDFLAGS) -o $@ $&lt;<br>
<br>
 clean:<br>
 &nbsp;&nbsp;&nbsp; rm -f $(OBJ) hello_glibc *.elf *.elfdebug *.map<br>
<br>
------------------------------------------------------------------<br>
<br>
<b><br>
 Please can you help me.<br>
<br>
</b>Regards.<br>
<br>
 Abdeslam.<br>
<br>
<br>
<br>
<br>
Reinaldo Nolasco Sanches wrote:<br>
<blockquote type="cite" cite="mid:20020726110815.7157.qmail@web14410.mail.yahoo.com">
  <pre wrap="">I was told you...<br><br>In Menu options ...    <br>    +- KDevloper \
Setup<br>        +- Compiler<br>               This computer is : i386    <br>        \
OS : linux      (I use linux 8.0)<br>             \
----------------------------------<br>                Archtecture  : arm<br>          \
Plate-forme : linux<br><br>                Commands system of the preprocessor C : \
arm-uclinux-gcc<br>                Commands system of the compiler C : \
arm-uclinux-gcc<br>                Commands system of the compiler C++ : \
arm-uclinux-g++<br><br>Change informatiom...<br><br><br>                Commands \
system of the preprocessor C : gcc<br>                Commands system of the compiler \
C : gcc<br>                Commands system of the compiler C++ : g++<br><br>You will \
compile in cross-plataform...<br><br>You run ./configure with this \
arguments...<br><br>In menu build...<br>configure...<br>    when dialog show \
in...<br>       you see... parameters are in...  then... you only need press \
OK<br><br>and your application will be compile in \
cross-plataform...<br><br><br><br><br>=====<br>"When you know Slackware, you know \
Linux... when you know Red Hat, all you know is Red hat"<br><br>- Anyone seen smoking \
will be assumed to be on fire and will be summarily put out.<br>- Power doesn't \
corrupt people, people corrupt power.<br><br>- <a class="moz-txt-link-abbreviated" \
href="mailto:r_linux@yahoo.com">r_linux@yahoo.com</a> -- <a \
class="moz-txt-link-freetext" \
href="http://slackware.linuxbr.org">http://slackware.linuxbr.org</a><br>- UIN: \
42853394 - irc.brasnet.org(#slackware)<br><br>__________________________________________________<br>Do \
You Yahoo!?<br>Sign up for SBC Yahoo! Dial - First Month Free<br><a \
class="moz-txt-link-freetext" \
href="http://sbc.yahoo.com">http://sbc.yahoo.com</a><br><br>-<br>to unsubscribe from \
this list send an email to <a class="moz-txt-link-abbreviated" \
href="mailto:kdevelop-request@kdevelop.org">kdevelop-request@k develop.org</a> with \
the following body:<br>unsubscribe &raquo;your-email-address&laquo;<br><br></pre>  \
</blockquote>  <br>
  </body>
  </html>


-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic