jrgrobinson

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Exec format error with Hello World project on RaspberryPi #25729
    jrgrobinson
    Participant

    Hi, again

     

    I have been unable to get much farther.

    I have a Ubuntu VM on Hyper V now. Simple Microsoft create Ubuntu. I started the VisualKernel new project Wizard, following the tutorial. I think part of the problem is the VM is new. I needed to install make to get this far. There is a strange configuration directory though.

    I have attached a clipped screenshot.

    I am working through the Raspbian Kernel Build instructions now to see if I can get the cross compiler working on those then will return to VisualKernel.

    One suggestion would be to make the  clone of sources and tools optional in the wizard. It makes a new one each attempt which is slow and eventually I have to delete them all to avoid the disk filling up. When starting out there are a lot of retries.

    Thanks again, and sorry to keep asking things.

     

    Attachments:
    You must be logged in to view attached files.
    in reply to: Exec format error with Hello World project on RaspberryPi #25726
    jrgrobinson
    Participant

    I much appreciate your fast responses.

    I will set up to build on Ubuntu as you suggest as that  looks like the less experimental path.

    Thanks again for you guidance

     

    in reply to: Exec format error with Hello World project on RaspberryPi #25724
    jrgrobinson
    Participant

    That looks like the problem. My build computer is another Raspberry Pi.

    I have built a Kernel on the RaspberryPi (takes a while). I am hoping VisualKernel will simplify the process and remove confusion and give me some debugging capability. I am using that temporarily for evaluation. My intent, if this all works is to set up a separate Linux machine for building.

    I guess, two questions:

    • Is it possible to build on a RaspberryPi with Visual Kernel? I tried the option of building on the target machine but the Wizard wouldn’t allow it.
    • Which Linux would you recommend to use with VisualKernel  if I were to make a dedicated build machine for the RaspberryPi cross compiler?

    Thanks again for your fast responses.

     

    in reply to: Exec format error with Hello World project on RaspberryPi #25720
    jrgrobinson
    Participant

    Thanks for the speedy response, in the weekend as well. Much appreciated.

    That tutorial is what I have been following.  I don’t get the Kernel Symbol Location dialog however. The KernelCache simply appears in /opt/.

    The exec format error appears on the first run of GCC after the git clones of tools and source have successfully completed.

    Screenshot attached (hopefully)

     

     

    • This reply was modified 5 years, 2 months ago by jrgrobinson.
    Attachments:
    You must be logged in to view attached files.
    in reply to: Sysroot sync with RPI libsm.so not recognized #23885
    jrgrobinson
    Participant

    Just to close off.

    R2 of VisualGDB  fixes the file synchronization problem.

    I have worked around my last, unrelated question. It looks to me that a project using libraries like wiringPi in the Raspbian distribution, although synchronized into usr/sysroot, can’t be built in VisualGDB with CMake. The references are good if a GNU Makefile project is used.  As the 2014 VisualGDB wiringPi tutorial does.

    in reply to: Sysroot sync with RPI libsm.so not recognized #23883
    jrgrobinson
    Participant

    That was quick. Re-installed VisualGDB from your website and I had to re -install the tool chain. Now the Hello World build now completes after the sysroot sync.

    I now fail at the undefined reference stage when I add the simple wiringPi code.

    The tutorial uses a Makefile Settings example but the current properties have the CMake settings. How do I enter the wiringPi and phThread entries to the include and libraries list in the CMake screen?

    Sorry if this is unrelated but it is probably a bit newbie to make a topic for.

    Thanks for your fast response and fixing the syn problem.

Viewing 6 posts - 1 through 6 (of 6 total)