About ChocoOS Forums Problems and questions build.sh not working in Linux

This topic contains 11 replies, has 2 voices, and was last updated by  Riktw 3 months, 2 weeks ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #831

    Riktw
    Participant

    Hello,

    I tried to follow the trainings on Linux, as the latest release said it supported Linux. First I execute the select_arch command and get the following:
    ———————————————–
    Architecture selected
    ———————————————–
    Detect arm-none-eabi-gcc tool
    Detect make tool
    Detect openocd tool
    Detect libusb-1.0 library

    Looks fine to me. So I execute build.sh and get this:

    Target architecture is not selected
    = run select_arch.sh first

    So something is not exactly going well there. I am using Ubuntu 16.04 and downloaded the latest release (0.16.9).

    So is Linux supported yet as the release notes mentioned or is the trainings document still correct, as it says Linux is not supported yet.

    Best regards,

    Rik

    #832
    Patryk
    Patryk
    Keymaster

    In linux just you have to load script instead of execution of it πŸ™‚ Otherwise it forgots the variables from the script. Just type in shell:

    Note, that there is a dot and space before the command πŸ™‚

     

    You can also just use ./devchell.sh script, that will just ask you at the beginning about the architecture. It is simple development shell that supports building, connecting and flashing the target

     

    Hope I helped πŸ™‚

     

    • This reply was modified 3 months, 3 weeks ago by Patryk Patryk.
    #834

    Riktw
    Participant

    Thanks, that fixed that issue πŸ™‚

    I am afraid I ran against another issue though, when running the command:Β ./newprogram.sh HelloWorld 1024 CORE USER

    I get this as output:

    Parsing file main.c…
    /home/rik/Documents/chocos-chocos-eef4617f21dd/Source/../Tools/tmplpars: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.7′ not found (required by /home/rik/Documents/chocos-chocos-eef4617f21dd/Source/../Tools/tmplpars)
    /home/rik/Documents/chocos-chocos-eef4617f21dd/Source/../Tools/tmplpars: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version
    Qt_5′ not found (required by /home/rik/Documents/chocos-chocos-eef4617f21dd/Source/../Tools/tmplpars)
    chmod: cannot access ‘/home/rik/Documents/chocos-chocos-eef4617f21dd/Source/../Source/user/programs/HelloWorld/main.c’: No such file or directory
    Parsing file Makefile.mak…
    /home/rik/Documents/chocos-chocos-eef4617f21dd/Source/../Tools/tmplpars: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.7′ not found (required by /home/rik/Documents/chocos-chocos-eef4617f21dd/Source/../Tools/tmplpars)
    /home/rik/Documents/chocos-chocos-eef4617f21dd/Source/../Tools/tmplpars: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version
    Qt_5′ not found (required by /home/rik/Documents/chocos-chocos-eef4617f21dd/Source/../Tools/tmplpars)
    chmod: cannot access ‘/home/rik/Documents/chocos-chocos-eef4617f21dd/Source/../Source/user/programs/HelloWorld/Makefile.mak’: No such file or directory
    ==========================================================================
    The program HelloWorld successfully created

     

    I only get an empty directory HelloWorld, not with the files in it.

    Any idea how to fix this problem?

     

    Rik

    • This reply was modified 3 months, 3 weeks ago by  Riktw.
    • This reply was modified 3 months, 3 weeks ago by  Riktw.
    #837
    Patryk
    Patryk
    Keymaster

    You just have to install Qt in version 5.7 πŸ™‚

    You can find it here:

    Release | Qt 5.7

    Unfortunately in linux it is a little harder to start, but we will try to make it easier in the next release

    #840

    Riktw
    Participant

    I had QT 5.7 installed, but it still did not work. I think the reason is that tmplpars looks in the /usr/lib/x86_64-linux-gnu directory for the qt libs. In which I have QT 5.5 installed as the default version you get with apt-get in Ubuntu 16.04 is 5.5. Manually downloading and installing QT 5.7 installs it in the /opt/ directory.

    I saw that you also included a correct version in the same folder of all the libs, so it’s a bit strange tmplpars doesnt just look in it’s own directory.

    I fixed the issue by copiyng the QT and 2 other libs it needed to my /usr/lib/x86_64-linux-gnu directory, a bit of a hack but it works. It would be nice if tmplpars would only look in it’s own directory for the libs, if that is possible.

    Thanks for the help, everything seems to function now.

    Rik

    #841
    Patryk
    Patryk
    Keymaster

    I see… Thanks for the feedback, we will try to do something with it. Anyway I am happy, that now it works πŸ™‚ Feel free to ask if there will be some more problems πŸ™‚

    Regards,
    Patryk

    #842

    Riktw
    Participant

    Ok, don’t do that. That was a very bad idea. Yes, newprogram.sh worked but my PC didn’t after a reboot.

    I use KDE as window manager and KDE is based on QT. QT5.5 in the version of KDE I have, so after replacing the .so file I was greeted by a terminal instead of my desktop. I’ve fixed the issue by placing the old one back, but I’ll post this here as a warning before someone else tries it and breaks their PC. Is the sourcecode ofΒ tmplpars available somewhere, maybe I can have a look at fixing the issue in source πŸ™‚

     

    Rik

    #843
    Patryk
    Patryk
    Keymaster

    Haha, Good to know πŸ™‚ The source code of the tmplpars is inside the repo, in the ChocoOS/Tools/sources/tmplpars directory. If you want to try, we will be grateful πŸ™‚

    #844
    Patryk
    Patryk
    Keymaster

    Could you try this?

    this is from the link:

    http://stackoverflow.com/questions/42189670/usr-lib-x86-64-linux-gnu-libqt5core-so-5-version-qt-5-7-not-found-required

    If it will work for you, I will add this into select_arch.shΒ script

    #845

    Riktw
    Participant

    Ah great, that did the trick for me πŸ™‚

    I’ll give it a try on a different Linux machine later today to verify it there as well

    #846
    Patryk
    Patryk
    Keymaster

    Great, thanks! πŸ™‚

     

    P.s. It is nice to cooperate with you. Maybe you want to join our team?

    • This reply was modified 3 months, 2 weeks ago by Patryk Patryk.
    #848

    Riktw
    Participant

    Thanks for the support. Now I can play a bit with Choco OS πŸ™‚

    And feel free to send me an email about it to rik @ iseenbeunhaas.com, but I am not sure how much time I have with helping

    Rik

    Attachments:
    You must be logged in to view attached files.
Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.