This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Dbus on am335x starter kit

I am trying to get dbus on my am335x starter kit that has ti-sdk-6.0 on it by following these instructions here:

http://www.qtcentre.org/threads/33379-dbus.cpp-(.text-0x8)-undefined-reference-to-dbus_shutdown?

The problem is when I run the make install I get this error: ./libtool: line 6556: arm-linux-gnueabihf-ranlib: command not found

Any ideas?  Thanks!

  • Hi Nate,

    Do you have your toolchain folder included in your $PATH?

    Best regards,
    Miroslav

  • I believe so, I typed the following at the command line before configuring and building

    source /home/$USER/dev/ti-sdk-7.0/linux-devkit/environment-setup

    then...

    export PATH=$PATH:/home/$USER/dev/ti-sdk-6.0/linux-devkit/sysroots/i686-arago-linux/usr/bin

     

    Is there another step I needed?

  • This is the full output from the console...

    [linux-devkit]:~/dev/expat-2.0.1> sudo make install

    /bin/bash ./conftools/mkinstalldirs /usr/local/expat//lib /usr/local/expat//include
    /bin/bash ./libtool --mode=install /usr/bin/install -c libexpat.la /usr/local/expat//lib/libexpat.la
    /usr/bin/install -c .libs/libexpat.so.1.5.2 /usr/local/expat//lib/libexpat.so.1.5.2
    (cd /usr/local/expat//lib && { ln -s -f libexpat.so.1.5.2 libexpat.so.1 || { rm -f libexpat.so.1 && ln -s libexpat.so.1.5.2 libexpat.so.1; }; })
    (cd /usr/local/expat//lib && { ln -s -f libexpat.so.1.5.2 libexpat.so || { rm -f libexpat.so && ln -s libexpat.so.1.5.2 libexpat.so; }; })
    /usr/bin/install -c .libs/libexpat.lai /usr/local/expat//lib/libexpat.la
    /usr/bin/install -c .libs/libexpat.a /usr/local/expat//lib/libexpat.a
    chmod 644 /usr/local/expat//lib/libexpat.a
    arm-linux-gnueabihf-ranlib /usr/local/expat//lib/libexpat.a
    ./libtool: line 6556: arm-linux-gnueabihf-ranlib: command not found
    make: *** [installlib] Error 127

  • Also this is my configure command: 

    ./configure --host=arm-linux --prefix=/usr/local/expat/

    I had to take the CC=arm-linux-gcc off the end because it wouldn't configure withit

  • Nate,

    Please verify that your system can locate arm-linux-gnueabihf-ranlib:

    which arm-linux-gnueabihf-ranlib

    Then try to pass the RANLIB variable to the make command:

    make RANLIB=arm-linux-gnueabihf-ranlib

    Best regards,
    Miroslav

  • Hi Nate,

    [linux-devkit]:~/dev/expat-2.0.1> sudo make install

    /bin/bash ./conftools/mkinstalldirs /usr/local/expat//lib /usr/local/expat//include
    /bin/bash ./libtool --mode=install /usr/bin/install -c libexpat.la /usr/local/expat//lib/libexpat.la

    ./libtool: line 6556: arm-linux-gnueabihf-ranlib: command not found

    I suspect that you exported the toolchain in normal user and trying to build/install with root privilege(sudo) which is don't know about your toolchain information.

    To avoid confusions,

    I)

    1) export toolchain as like previous (current one)

    ./configure --host=arm-linux --prefix=/usr/local/expat/

    2) Mention your "--prefix" is "/home/" which is normal privilege and not mention "/usr/local" which is reqd root privilege while you are configuring the dbus source.

    Ex; (with out root privilege)

    mkdir  /home/nate/dbus_install

    ./configure --host=arm-linux --prefix=/home/nate/dbus_install/

    make

    make install

    check your cross compiled dbus binaries under /home/nate/dbus_install/

    II)

    1) Export your toolchain to all the users including root.

    i) sudo su

    ii) Append the following export command to the last line of "/etc/bash.bashrc" of your ubuntu host PC.

    export PATH=$PATH:/home/$USER/dev/ti-sdk-6.0/linux-devkit/sysroots/i686-arago-linux/usr/bin

    iii) source /etc/bash.bashrc

    2) Try the "arm-linux-gnueabihf-gcc" in terminal to check whether the toolchain exported or not  while you are in root (sudo su)

    3)

    ./configure --host=arm-linux --prefix=/usr/local/expat/

    make

    make install

    check your cross compiled dbus binaries under /usr/local/expat/

    Note:

    Careful while editing the "bash.bashrc" file

  • This was it.  What I did to fix it was to log into the shell as root by typing sudo -i

    Then I sourced my environment and exported my tool chain path, then everything built successfully and I was able to run the make install command.  Thanks for the help!

    Now if I could just get Qt to build!  It used to build for me but now I get this error since trying to add dbus (not sure if it is related)...

    -L/home/nrogers/dev/Graphics_SDK_4_10/gfx_rel_es8.x/ -L/home/nrogers/dev/Graphics_SDK_4_10/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/LinuxARMV7/Lib -L/home/nrogers/dev/Graphics_SDK_4_10/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/LinuxARMV7/Lib -L/home/nrogers/dev/ti-sdk-6.0/filesystem/rootfs/usr/lib -L/home/nrogers/dev/qt-everywhere-opensource-src-5.2.0/qtbase/lib -lQt5Core -lEGL -lGLESv2 -lGLES_CM -lIMGegl -lsrv_um -lusc -lts -ldbus-1 -lpthread -lpng -lz -lEGL -lGLESv2 -lGLES_CM -lIMGegl -lsrv_um -lusc
    ln -s libQt5Gui.so.5.2.0 libQt5Gui.so
    ln -s libQt5Gui.so.5.2.0 libQt5Gui.so.5
    ln -s libQt5Gui.so.5.2.0 libQt5Gui.so.5.2
    rm -f ../../lib/libQt5Gui.so.5.2.0
    rm -f ../../lib/libQt5Gui.so
    rm -f ../../lib/libQt5Gui.so.5
    rm -f ../../lib/libQt5Gui.so.5.2
    mv -f libQt5Gui.so.5.2.0 ../../lib/
    mv -f libQt5Gui.so ../../lib/
    mv -f libQt5Gui.so.5 ../../lib/
    mv -f libQt5Gui.so.5.2 ../../lib/
    make[3]: Leaving directory `/home/nrogers/dev/qt-everywhere-opensource-src-5.2.0/qtbase/src/gui'
    make[2]: Leaving directory `/home/nrogers/dev/qt-everywhere-opensource-src-5.2.0/qtbase/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/home/nrogers/dev/qt-everywhere-opensource-src-5.2.0/qtbase'
    make: *** [module-qtbase-make_first] Error 2

  • Hi,

    Glad to hear that you fixed.

    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/home/nrogers/dev/qt-everywhere-opensource-src-5.2.0/qtbase'
    make: *** [module-qtbase-make_first] Error 2

    This issue seem to be different one.

  • Yes, they are unrelated.  Thanks for the help, I will try to figure it out