• Building a library . . .

    From RJH@3:770/3 to All on Sun Oct 16 18:47:22 2022
    I'm trying to build a thermal camera and I've got stuck at "building" from
    this guide https://github.com/pimoroni/mlx90640-library

    I'm not sure where I 'make all' etc - in usr/local it returns things like 'no target specified', and 'no rule'.

    It's using a Pi 3 and internal storage with the Pimoroni breakout garden from
    a fresh default OS image - very new to all of this so I'm not sure what's important hardware wise.

    Any pointers appreciated.

    --
    Cheers, Rob, Sheffield UK

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to RJH on Sun Oct 16 19:56:44 2022
    RJH wrote:

    I'm trying to build a thermal camera and I've got stuck at "building" from this guide https://github.com/pimoroni/mlx90640-library

    I'm not sure where I 'make all' etc - in usr/local it returns things like 'no target specified', and 'no rule'.

    Have you grabbed the source code into a folder and unzipped it? There's a makefile in the top level folder, There are other way such as checking it out using git

    https://github.com/pimoroni/mlx90640-library/archive/refs/heads/master.zip

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Theo@3:770/3 to RJH on Mon Oct 17 14:07:32 2022
    RJH <patchmoney@gmx.com> wrote:
    I'm trying to build a thermal camera and I've got stuck at "building" from this guide https://github.com/pimoroni/mlx90640-library

    I'm not sure where I 'make all' etc - in usr/local it returns things like 'no target specified', and 'no rule'.

    It's using a Pi 3 and internal storage with the Pimoroni breakout garden from a fresh default OS image - very new to all of this so I'm not sure what's important hardware wise.

    You have to change directory to the location of the Makefile. The usual process is:

    $ git clone https://github.com/pimoroni/mlx90640-library.git
    Cloning into 'mlx90640-library'...
    remote: Enumerating objects: 640, done.
    remote: Counting objects: 100% (68/68), done.
    remote: Compressing objects: 100% (47/47), done.
    remote: Total 640 (delta 30), reused 34 (delta 16), pack-reused 572
    Receiving objects: 100% (640/640), 2.83 MiB | 630.00 KiB/s, done.
    Resolving deltas: 100% (351/351), done.

    $ cd mlx90640-library/

    $ make all
    g++ -DDEBUG -g -fPIC -I headers -shared -c -o functions/MLX90640_API.o functions/MLX90640_API.cpp
    [lots more build output]

    Theo

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From RJH@3:770/3 to Theo on Tue Oct 18 01:31:20 2022
    On 17 Oct 2022 at 14:07:33 BST, Theo wrote:

    RJH <patchmoney@gmx.com> wrote:
    I'm trying to build a thermal camera and I've got stuck at "building" from >> this guide https://github.com/pimoroni/mlx90640-library

    I'm not sure where I 'make all' etc - in usr/local it returns things like 'no
    target specified', and 'no rule'.

    It's using a Pi 3 and internal storage with the Pimoroni breakout garden from
    a fresh default OS image - very new to all of this so I'm not sure what's
    important hardware wise.

    You have to change directory to the location of the Makefile. The usual process is:

    $ git clone https://github.com/pimoroni/mlx90640-library.git
    Cloning into 'mlx90640-library'...
    remote: Enumerating objects: 640, done.
    remote: Counting objects: 100% (68/68), done.
    remote: Compressing objects: 100% (47/47), done.
    remote: Total 640 (delta 30), reused 34 (delta 16), pack-reused 572
    Receiving objects: 100% (640/640), 2.83 MiB | 630.00 KiB/s, done.
    Resolving deltas: 100% (351/351), done.

    $ cd mlx90640-library/

    $ make all
    g++ -DDEBUG -g -fPIC -I headers -shared -c -o functions/MLX90640_API.o functions/MLX90640_API.cpp
    [lots more build output]

    Theo

    That's it, all done! Many thanks - and to Andy - I think that was what you
    were driving at.

    Camera works. Now for the real fun . . .

    --
    Cheers, Rob, Sheffield UK

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)