VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    buildme failed

    Scheduled Pinned Locked Moved Raspberry Pi App Software
    7 Posts 2 Posters 3.7k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      Israel_bolo
      last edited by

      Hi, I installed all libraries for python. I run the ./buildme
      with errores.

      tga.c: In function ‘load_tga’:
      tga.c:103:53: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
       103 |                     if (fread(image, 1, buflen, fp) != buflen) {
           |                                                     ^~
      RaspiCamControl.c:201:4: warning: missing initializer for field ‘num_parameters’ of ‘COMMAND_LIST’ [-Wmissing-field-initializers]
       201 |    {CommandStatsPass,   "-stats",     "st", "Force recomputation of statistics on stills capture pass"},
           |    ^
      In file included from RaspiCamControl.c:42:
      RaspiCLI.h:38:8: note: ‘num_parameters’ declared here
        38 |    int num_parameters;
           |        ^~~~~~~~~~~~~~
      RaspiCamControl.c:204:4: warning: missing initializer for field ‘num_parameters’ of ‘COMMAND_LIST’ [-Wmissing-field-initializers]
       204 |    {CommandStereoDecimate,"-decimate","dec", "Half width/height of stereo image"},
           |    ^
      In file included from RaspiCamControl.c:42:
      RaspiCLI.h:38:8: note: ‘num_parameters’ declared here
        38 |    int num_parameters;
           |        ^~~~~~~~~~~~~~
      RaspiCamControl.c:205:4: warning: missing initializer for field ‘num_parameters’ of ‘COMMAND_LIST’ [-Wmissing-field-initializers]
       205 |    {CommandStereoSwap,  "-3dswap",    "3dswap", "Swap camera order for stereoscopic"},
           |    ^
      In file included from RaspiCamControl.c:42:
      RaspiCLI.h:38:8: note: ‘num_parameters’ declared here
        38 |    int num_parameters;
           |        ^~~~~~~~~~~~~~
      RaspiCamControl.c: In function ‘raspicamcontrol_set_ROI’:
      RaspiCamControl.c:1468:4: warning: missing initializer for field ‘rect’ of ‘MMAL_PARAMETER_INPUT_CROP_T’ [-Wmissing-field-initializers]
      1468 |    MMAL_PARAMETER_INPUT_CROP_T crop = {{MMAL_PARAMETER_INPUT_CROP, sizeof(MMAL_PARAMETER_INPUT_CROP_T)}};
           |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /usr/include/interface/mmal/mmal_parameters.h:32,
                      from /usr/include/interface/mmal/mmal_port.h:42,
                      from /usr/include/interface/mmal/mmal.h:357,
                      from RaspiCamControl.c:36:
      /usr/include/interface/mmal/mmal_parameters_camera.h:594:28: note: ‘rect’ declared here
       594 |    MMAL_RECT_T             rect;    /**< Crop rectangle as 16P16 fixed point values */
           |                            ^~~~
      RaspiCamControl.c: In function ‘raspicamcontrol_zoom_in_zoom_out’:
      RaspiCamControl.c:1497:29: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘long unsigned int’ [-Wsign-compare]
      1497 |         if (crop.rect.width <= (zoom_full_16P16 + zoom_increment_16P16))
           |                             ^~
      RaspiCamControl.c:1511:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
      1511 |         if (increased_size < crop.rect.width) //overflow
           |                            ^
      RaspiCamControl.c: In function ‘raspicamcontrol_set_annotate’:
      RaspiCamControl.c:1609:7: warning: missing initializer for field ‘enable’ of ‘MMAL_PARAMETER_CAMERA_ANNOTATE_V4_T’ [-Wmissing-field-initializers]
      1609 |       {{MMAL_PARAMETER_ANNOTATE, sizeof(MMAL_PARAMETER_CAMERA_ANNOTATE_V4_T)}};
           |       ^
      In file included from /usr/include/interface/mmal/mmal_parameters.h:32,
                      from /usr/include/interface/mmal/mmal_port.h:42,
                      from /usr/include/interface/mmal/mmal.h:357,
                      from RaspiCamControl.c:36:
      /usr/include/interface/mmal/mmal_parameters_camera.h:798:16: note: ‘enable’ declared here
       798 |    MMAL_BOOL_T enable;
           |                ^~~~~~
      D_mipicam.c: In function ‘encoder_buffer_callback’:
      D_mipicam.c:610:19: warning: unused variable ‘new_handle’ [-Wunused-variable]
       610 |             FILE *new_handle;
           |                   ^~~~~~~~~~
      D_mipicam.c:598:11: warning: unused variable ‘bytes_written’ [-Wunused-variable]
       598 |       int bytes_written = buffer->length;
           |           ^~~~~~~~~~~~~
      D_mipicam.c: In function ‘D_start_yuv_stream’:
      D_mipicam.c:845:89: warning: unused parameter ‘userdata’ [-Wunused-parameter]
       845 | int D_start_yuv_stream(CAMERA_INSTANCE camera_instance, OUTPUT_CALLBACK callback, void *userdata)
           |                                                                                   ~~~~~~^~~~~~~~
      D_mipicam.c: In function ‘capture_buffer_callback’:
      D_mipicam.c:921:8: warning: unused variable ‘complete’ [-Wunused-variable]
       921 |    int complete = 0;
           |        ^~~~~~~~
      D_mipicam.c: In function ‘D_capture’:
      D_mipicam.c:1184:20: warning: unused variable ‘time’ [-Wunused-variable]
      1184 |    struct timespec time;
           |                    ^~~~
      D_mipicam.c: In function ‘D_get_support_formats’:
      D_mipicam.c:1327:12: warning: unused variable ‘pcamera’ [-Wunused-variable]
      1327 |  DCAMERA * pcamera = (DCAMERA *)camera_instance;
           |            ^~~~~~~
      

      Someone could help me?

      veye_xummV 1 Reply Last reply Reply Quote 0
      • veye_xummV Offline
        veye_xumm @Israel_bolo
        last edited by

        @israel_bolo
        I see some warnings, but no errors. could you please continue and see if it compiles?

        Questions will be answered as soon as possible, please be patient.
        如果你使用中文,请直接用中文提问。
        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

        I 1 Reply Last reply Reply Quote 1
        • I Offline
          Israel_bolo @veye_xumm
          last edited by

          @veye_xumm
          I continued with the next lines:

          ./buildme
          
          sudo install -m 644 ./libdmipicam.so /usr/lib/
          

          The usr/lib directory I have the next files:

          apt                   firmware                              libBLT.2.5.so.8.6            libresid-builder.so.0.0.1  openssh               rp-prefapps
          arandr                gcc                                   libBLTlite.2.5.so.8.6        libRTIMULib.so             os-release            rsyslog
          arm-linux-gnueabihf   girepository-1.0                      libdfalt.so.0                libRTIMULib.so.7           p7zip                 runit-helper
          arm-linux-musleabihf  git-core                              libdfalt.so.0.0.0            libRTIMULib.so.7.2.1       pam.d                 sasl2
          aspell                gnome-session                         libdmipicam.so               libsidplay2.so.1           piclone               sftp-server
          bfd-plugins           gnome-settings-daemon-3.0             libgdal.so.28                libsidplay2.so.1.0.1       pipanel               ssl
          binfmt.d              gnupg                                 libgdal.so.28.0.2            libsigc-1.2.so.5           pkgconfig             sudo
          blt2.5                gnupg2                                libhardsid-builder.so.0      libsigc-1.2.so.5.0.7       pkg-config.multiarch  sysctl.d
          chromium-browser      gold-ld                               libhardsid-builder.so.0.0.1  libsupp.a                  pm-utils              systemd
          compat-ld             groff                                 libident.so.0                libvpf.so.4                policykit-1           sysusers.d
          console-setup         gui-pkinst                            libident.so.0.22             libvpf.so.4.1              pppd                  tasksel
          cpp                   gvfs                                  libmfhdfalt.so.0             locale                     printer-driver-escpr  tc
          crda                  ifupdown                              libmfhdfalt.so.0.0.0         lsb                        pulse-14.2            tcltk
          cups                  init                                  libogdi.so.4                 lxinput                    pypy                  terminfo
          dbus-1.0              ispell                                libogdi.so.4.1               lxplugins                  python2.7             thunar-archive-plugin
          debug                 jni                                   libpigpiod_if2.so            man-db                     python3               tmpfiles.d
          dhcpcd                kernel                                libpigpiod_if2.so.1          menu-cache                 python3.9             udev
          diet                  klibc                                 libpigpiod_if.so             mime                       qpdfview              udisks2
          dpkg                  klibc-krh8Sgsh8PW7Qbsa0KsFm65rfDw.so  libpigpiod_if.so.1           modprobe.d                 raspberrypi-net-mods  userconf-pi
          emacsen-common        ld-linux-armhf.so.3                   libpigpio.so                 modules                    raspberrypi-sys-mods  valgrind
          environment.d         ld-linux.so.3                         libpigpio.so.1               modules-load.d             raspi-config          vnc
          file                  libarmadillo.so.10                    libpypy-c.so                 NetworkManager             rc-gui                X11
          firewalld             libarmadillo.so.10.1.2                libresid-builder.so.0        ogdi                       resolvconf            xorg
          

          I compiled but when I executed any file in the python_demo directory I have the next error:

          Load libdmipicam fail
          

          I appreciate the answers

          veye_xummV 1 Reply Last reply Reply Quote 0
          • veye_xummV Offline
            veye_xumm @Israel_bolo
            last edited by

            @israel_bolo

            May I ask which version of piOS you are currently using? The libdmipicam mode is only suitable for the 32-bit legacy mode of piOS.

            Questions will be answered as soon as possible, please be patient.
            如果你使用中文,请直接用中文提问。
            May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

            I 1 Reply Last reply Reply Quote 0
            • I Offline
              Israel_bolo @veye_xumm
              last edited by

              @veye_xumm I'm using 64 bits piOS.
              I'll change the version and reinstall

              veye_xummV 1 Reply Last reply Reply Quote 0
              • veye_xummV Offline
                veye_xumm @Israel_bolo
                last edited by

                @israel_bolo Actually, for the development of new projects, I would recommend using the V4L2 mode, which is the material from the link below.
                https://wiki.veye.cc/index.php/V4L2_mode_for_Raspberry_Pi

                Questions will be answered as soon as possible, please be patient.
                如果你使用中文,请直接用中文提问。
                May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                1 Reply Last reply Reply Quote 1
                • I Offline
                  Israel_bolo
                  last edited by

                  @veye_xumm Thanks! I'll read and reinstall the SO.
                  Hopefully, I'll be able to show if the problem is resolved in the next few days.

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post