Results 1 to 15 of 43

Thread: HowTo native compilation ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    Well, may be instead of flooding the forum by endless and useless topics you make an effort to read what is already answered on your questions?

    Hint: read two last lines of the following post 100 times until the Great Enlightenment comes to you: http://wl500g.info/showpost.php?p=126157&postcount=18

    I don't think that your flood in Russian forum will be honored either.

  2. #2
    Quote Originally Posted by al37919 View Post
    Well, may be instead of flooding the forum by endless and useless topics you make an effort to read what is already answered on your questions?

    Hint: read two last lines of the following post 100 times until the Great Enlightenment comes to you: http://wl500g.info/showpost.php?p=126157&postcount=18

    I don't see any flood in Russian forum will be honored either.
    As there is no flood in Russian forum at all, very basic questions only,
    let others to share their Linux experience.

    Exhibit No.1
    ===========
    Russian Discussion
    http://wl500g.info/forumdisplay.php?f=86
    My dear friend,

    I am surprised by your answer and really don't know what your problem is.
    You are Forum Guru.
    Aren't you ?

    So I have asked you very basic question how to native compile Linux dialog
    and still don't have your answer

    EXHIBIT No.2
    ===========
    http://wl500g.info/showpost.php?p=126157&postcount=18

    al37919 al37919 is nu online
    Forum Guru

    Join Date: Feb 2007
    Location: Ìîñêâà, Ðîññèÿ
    Posts: 2,049
    Hm..., and where in this text you see the statement that this should be done on the router?
    ================================================== =======

    I am not interested in philosophy.
    I have asked very basic question and expected exact answer only.
    Yes or No.

    If you claim native compilation is not possible, just say so, to save my time.
    But say it in plain words, avoding any philosophy.


    Not giving exact anwers that's you generating the problem, forcing me to ask the same question again to other members.

    None topic is endless and useless.
    Native compilation is of great importance to users of Asus routers.

    I don't need to read any post 100 times.
    Read your answer once and run compiler and got syntax error message.

    Is ")" syntax error ok for you ?

    Asking questions is not flooding a forum.
    Russian Discussion is populated by many experienced Linux developers
    so I expect Linux dialog be compiled for a router,
    by one such experienced Linux developer finally.

    Native or cross compiled.

    Asking question is expecting to get the right answer.
    If I don't get it, I just say what I did, what results are, and ask what should I do next.

    So what is your final answer to my question about native compilation of Linux dialog.

    As I am not a Linux developer, Asus router user only, I expected to get help from this Forum's Guru, not another puzzle.

    Can you write step-by-step Native Compile HowTo manual one day for beginners ?

    If not Linux dialog, so what about native compilation of
    ncurses.c / curses exaple
    from
    http://www.captain.at/howto-curses-example.php

    Or some other solution for outputting shell script generated data to monitor screen ?
    gmplot is for graphics,

    installed ncurses interface
    ipkg install ncurses and still don't know how to start
    basic data viewer application (very very basic) on native Asus router.


    As you see, I am really surprised, much more experienced Linux fans
    didn't compiled Linux dialog yet.
    One claimed a problem with ncurses compilation.

    Have a nice day.

    Darius

    BTW
    As your claims are totally unsupported
    copy goes to my lawyer for review.

  3. #3
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by al37919 View Post
    Well, may be instead of flooding the forum by endless and useless topics you make an effort to read what is already answered on your questions?

    Hint: read two last lines of the following post 100 times until the Great Enlightenment comes to you: http://wl500g.info/showpost.php?p=126157&postcount=18

    I don't think that your flood in Russian forum will be honored either.
    yeh... gotta agree with that tbh...
    darius, I don't think ur a bad guy, but we are all here to learn and help. it's free and we do it voluntairy.
    you can't just come here and shout to everyone that he needs to help you.
    I didn't do everything by myself, and so didn't all the others here (if I may say that), but we did find out stuff for ourself and shared it here. so others can find their way to a nice router quickly.
    I love reading and posting on the forums since I keep learning here, things I might use in my study

    anyway... sorry for my site to have a bug I didn't discovered yet
    probably have to change a few settings there
    but here you go: http://wl500g.info/showthread.php?t=14538
    Last edited by wpte; 06-01-2009 at 13:49.

  4. #4
    Quote Originally Posted by wpte View Post
    yeh... gotta agree with that tbh...
    darius, I don't think ur a bad guy, but we are all here to learn and help. it's free and we do it voluntairy.
    you can't just come here and shout to everyone that he needs to help you.
    I didn't do everything by myself, and so didn't all the others here (if I may say that), but we did find out stuff for ourself and shared it here. so others can find their way to a nice router quickly.
    I love reading and posting on the forums since I keep learning here, things I might use in my study

    anyway... sorry for my site to have a bug I didn't discovered yet
    probably have to change a few settings there
    but here you go: http://wl500g.info/showthread.php?t=14538
    wpte, I don't think ur a bad guy,

    visited the above thread and followed your HowTo

    ipkg update
    ipkg upgrade

    ipkg install optware-devel
    ipkg install buildroot

    Downloaded the source into /opt/dialog directory

    ./configure --prefix=/opt
    make
    make install

    ===========
    The issue is, when I run
    ./configure --prefix=/opt


    [admin@oo dialog]$ ./configure --prefix=/opt/dialog
    checking for package version... 1.1
    checking for package patch date... 20080819
    checking for gcc... gcc
    checking for C compiler default output... configure: error: C compiler cannot create executables

    Ok. I am low on memory
    and mayby I should copy dialog sources
    into /mnt/share/dialog directory
    as advised by wpte

    I tested gcc, running it alone from a command line and it generated "(" syntax error.

    How could I debug to see what's wrong ?

    I am a beginner in Linux compilation.

    As you can see there is a problem with c compiler.
    How to debug it ?

    Darius

  5. #5
    follow-up

    logfile

    [admin@oo dialog]$ ipkg update
    Downloading http://ipkg.nslu2-linux.org/feeds/op...table/Packages .gz

    Inflating http://ipkg.nslu2-linux.org/feeds/op...ble/Packages.g z
    Updated list of available packages in /opt/lib/ipkg/lists/optware
    Successfully terminated.
    [admin@oo dialog]$ ipkg upgrade
    Upgrading bluez-hcidump on /opt/ from 1.40-1 to 1.42-1...
    Downloading http://ipkg.nslu2-linux.org/feeds/op...table/bluez-hc idump_1.42-1_mipsel.ipk
    Upgrading bluez-libs on /opt/ from 3.17-1 to 3.36-1...
    Downloading http://ipkg.nslu2-linux.org/feeds/op...table/bluez-li bs_3.36-1_mipsel.ipk
    Upgrading bluez-utils on /opt/ from 3.17-1 to 3.36-3...
    Downloading http://ipkg.nslu2-linux.org/feeds/op...table/bluez-ut ils_3.36-3_mipsel.ipk
    Upgrading hdparm on /opt/ from 8.9-1 to 9.6-1...
    Downloading http://ipkg.nslu2-linux.org/feeds/op...table/hdparm_9 .6-1_mipsel.ipk
    Upgrading libpng on /opt/ from 1.2.33-1 to 1.2.34-1...
    Downloading http://ipkg.nslu2-linux.org/feeds/op...table/libpng_1 .2.34-1_mipsel.ipk
    Configuring bluez-hcidump
    Configuring bluez-libs
    Configuring bluez-utils
    Configuring hdparm
    update-alternatives: Linking //opt/sbin/hdparm to /opt/sbin/hdparm-hdparm
    Configuring libpng
    Successfully terminated.
    [admin@oo dialog]$ ipkg install optware-devel
    Package optware-devel (6.8-9) installed in /opt/ is up to date.
    Nothing to be done
    Successfully terminated.
    [admin@oo dialog]$ ipkg install buildroot
    Package buildroot (4.1.1-13) installed in /opt/ is up to date.
    Nothing to be done
    Successfully terminated.
    [admin@oo dialog]$
    =======

    [admin@oo dialog]$ ./configure --prefix=/opt/dialog
    checking for package version... 1.1
    checking for package patch date... 20080819
    checking for gcc... gcc
    checking for C compiler default output... configure: error: C compiler cannot create executables
    [admin@oo dialog]$

    ============
    follow-up 2

    [admin@oo dialog]$ df
    Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 3008 3008 0 100% /
    /dev/root 3008 3008 0 100% /
    /dev/discs/disc0/part2
    1198832 1155480 0 100% /opt
    /dev/discs/disc0/part3
    2140816 68444 1963624 4% /tmp/mnt/disc0_3
    [admin@oo dialog]$

    Do I need to free some space to run configuration ?

    Darius

    =============
    follow-up 3

    how did you create a new directory share in /mnt ?

    you said:
    "

    I''ve uploaded the file to /mnt/share/apache
    cd to the directory
    "

    [admin@oo /mnt]$ ls
    [admin@oo /mnt]$ mkdir share
    cannot create directory `share': Read-only file system
    [admin@oo /mnt]$


    D.
    Last edited by darius; 06-01-2009 at 16:08.

  6. #6
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by darius View Post
    [admin@oo dialog]$ ./configure --prefix=/opt/dialog
    checking for package version... 1.1
    checking for package patch date... 20080819
    checking for gcc... gcc
    checking for C compiler default output... configure: error: C compiler cannot create executables

    that last line is most likely ur problem, for some reason you can get errors during install.

    try this code to reinstall the whole compile package (also in my howto)
    ipkg update
    ipkg install -force-overwrite -force-reinstall optware-devel autoconf automake bash bison bzip2 coreutils diffutils file findutils flex gawk groff libstdc++ libtool make m4 ncurses openssl patch perl pkgconfig python rsync sed svn tar wget-ssl buildroot
    anyway... you get a syntax error, wich means there are some missing/to mutch signs like ()[] etc.
    Debugging is done via putting breakpoints down... but since I think you can't do that, nor have the software for it... you can better use the lots of debugging flag turned on:
    make -d
    native compiling is always tricky since not everything is supported on a mipsel device...

    now there isn't mutch else to say about this, because compiling is always tricky, and you do need to know basic programming skills at C or C++ to properly fix things.

  7. #7
    Quote Originally Posted by wpte View Post
    that last line is most likely ur problem, for some reason you can get errors during install.

    try this code to reinstall the whole compile package (also in my howto)


    anyway... you get a syntax error, wich means there are some missing/to mutch signs like ()[] etc.
    Debugging is done via putting breakpoints down... but since I think you can't do that, nor have the software for it... you can better use the lots of debugging flag turned on:


    native compiling is always tricky since not everything is supported on a mipsel device...

    now there isn't mutch else to say about this, because compiling is always tricky, and you do need to know basic programming skills at C or C++ to properly fix things.
    thanks again
    and have a look at errors generated while reinstalling packages

    Ok. Compiling is always tricky, but we all use the same firmware, the same hardware, the same packages, so compiling is a deterministic process
    and we should get the same results for the same configuration and settings.

    Frankly speaking I don't anyone but me, claiming native compilation problems.
    On the other hand, I don't anyone claiming successful native compilation of any package, any program in c.

    You have ever succeeded in native compilation ?
    If so, how did you manage to create any directory in /mnt read only directory ?

    logfile
    ....
    update-alternatives: Linking //opt/bin/sed to /opt/bin/gnu-sed
    Configuring svn
    Configuring tar
    update-alternatives: Linking //opt/bin/tar to /opt/bin/gnutar
    Configuring wget-ssl
    An error ocurred, return value: 22.
    Collected errors:
    ipkg_download: ERROR: Command failed with return value 1: `wget -q -P /opt/ipkg-F1bzOx http://ipkg.nslu2-linux.org/feeds/op...-13_mipsel.ipk'
    Failed to download buildroot. Perhaps you need to run 'ipkg update'?
    [admin@oo /mnt]$

    memory usage
    ++++++++++++
    [admin@oo ncurses]$ df
    Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 3008 3008 0 100% /
    /dev/root 3008 3008 0 100% /
    /dev/discs/disc0/part2
    1198832 1157340 0 100% /opt
    /dev/discs/disc0/part3
    2140816 68444 1963624 4% /tmp/mnt/disc0_3
    [admin@oo ncurses]$

    Any idea what's wrong ?

    /opt/ipkg-F1bzOx looks like broken temporary download

    Darius

  8. #8
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by darius View Post
    You have ever succeeded in native compilation ?
    If so, how did you manage to create any directory in /mnt read only directory ?
    When you read... do you think?
    I have my hdd mounted on /mnt (because it's shorter, duh!)
    maybe you have it mounted on /tmp/harddisk
    I dunno, just place it somewhere you can access it!

    and yes, I had several properly compiled packages under oleg:
    libupnp, wol, Ocaml, openssh, openvpn, ncurses and some others.

    some other guys reading my how-to managed to compile things like extra PHP includes.

    + just start off with something easy and small to compile, so you can get the grip on it and feel the way compiling happens.

  9. #9
    Quote Originally Posted by wpte View Post
    When you read... do you think?
    I have my hdd mounted on /mnt (because it's shorter, duh!)
    maybe you have it mounted on /tmp/harddisk
    I dunno, just place it somewhere you can access it!

    and yes, I had several properly compiled packages under oleg:
    libupnp, wol, Ocaml, openssh, openvpn, ncurses and some others.

    some other guys reading my how-to managed to compile things like extra PHP includes.

    + just start off with something easy and small to compile, so you can get the grip on it and feel the way compiling happens.

    When you read... do you think?
    as you can see my last 2 follow-ups
    there is permanent problem with buildroot download.
    So how could I compile anything easy or small at all .

    Could you verify buildroot download on your native Linux machine ?

    Darius


    [admin@oo /mnt]$ ipkg install -force-overwrite -force-reinstall buildroot
    Reinstalling buildroot (4.1.1-13) on /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/op...-13_mipsel.ipk
    Nothing to be done
    An error ocurred, return value: 22.
    Collected errors:
    ipkg_download: ERROR: Command failed with return value 1: `wget -q -P /opt/ipkg-cF3Erv http://ipkg.nslu2-linux.org/feeds/op...-13_mipsel.ipk'
    Failed to download buildroot. Perhaps you need to run 'ipkg update'?
    [admin@oo /mnt]$

Similar Threads

  1. [PYTANIE] Asus HOWTO - czy byloby zainteresowanie?
    By kaos in forum Polish Discussion - Polski (PL)
    Replies: 7
    Last Post: 30-11-2008, 15:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •