Giter Club home page Giter Club logo

Comments (9)

okanduzyel avatar okanduzyel commented on August 18, 2024

Addition:

I installed xtensa toolchains to new clean vagrant ubuntu machine and cloned esp32-homekit-camera example again. It still gives same error. But, all esp32 espif examples work without any problem. Could you check it please Maxim?

from esp32-homekit-camera.

maximkulkin avatar maximkulkin commented on August 18, 2024

Just checked: mine builds just fine on latest esp-idf

from esp32-homekit-camera.

okanduzyel avatar okanduzyel commented on August 18, 2024

Does it depend on menu configuration? Or board?

It also gives a lot of warnings. (Not used function etc.)

By the way, I flashed Arduino's camera example on my board. Its camera hardware also works.

My board: https://tr.aliexpress.com/item/32963016501.html?spm=a2g0s.9042311.0.0.565b4c4dZe2zhO

from esp32-homekit-camera.

okanduzyel avatar okanduzyel commented on August 18, 2024

I tried it 3rd different computer and got same result. I install the esp idf from here;

https://docs.espressif.com/projects/esp-idf/en/latest/get-started/linux-setup.html

with building instructions. Cloning your example from here with;

git clone -recursive https://github.com/maximkulkin/esp32-homekit-camera.git .

make menuconfig

and changing what you say about configuration requirements:

Partition Table (OK)
Partition Table = Custom partition table CSV (OK)
Custom partition CSV file = partitions.csv (OK)
Component config
ESP32-specific
Support for external, SPI-connected RAM = check (OK)
SPI RAM config
Initialize SPI RAM when booting the ESP32 = check (OK)
SPI RAM access method = Make RAM allocatable using malloc() as well (OK)
Camera configuration
OV2640 Support = check (OK)
HomeKit
SPI flash address for storing HomeKit data = 0x3A0000 (OK)
ESP32 HomeKit Camera
WiFi SSID and WiFi Password (written my said and password)
Camera Pins
Select Camera Pinout = your variant of module (AI-thinker)

And its response always like that:

CC build/x264/x264-snapshot-20181221-2245-stable/encoder/lookahead.o
CC build/x264/x264-snapshot-20181221-2245-stable/encoder/macroblock.o
CC build/x264/x264-snapshot-20181221-2245-stable/encoder/me.o
CC build/x264/x264-snapshot-20181221-2245-stable/encoder/ratecontrol.o
CC build/x264/x264-snapshot-20181221-2245-stable/encoder/set.o
CC build/x264/x264-snapshot-20181221-2245-stable/encoder/slicetype-cl.o
AR build/x264/libx264.a
CC build/main/accessory.o
CC build/main/app_main.o
In file included from /home/vagrant/esp/esp-idf/examples/esp32-homekit-camera/main/app_main.c:8:
/home/vagrant/esp/esp-idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
 #warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
  ^~~~~~~
/home/vagrant/esp/esp-idf/examples/esp32-homekit-camera/main/app_main.c: In function 'event_handler':
/home/vagrant/esp/esp-idf/examples/esp32-homekit-camera/main/app_main.c:30:77: error: incompatible type for argument 1 of 'camera_accessory_set_ip_address'
             camera_accessory_set_ip_address(event->event_info.got_ip.ip_info.ip);
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /home/vagrant/esp/esp-idf/examples/esp32-homekit-camera/main/app_main.c:14:
/home/vagrant/esp/esp-idf/examples/esp32-homekit-camera/main/accessory.h:7:49: note: expected 'ip4_addr_t' {aka 'struct ip4_addr'} but argument is of type 'esp_ip4_addr_t' {aka 'struct esp_ip4_addr'}
 void camera_accessory_set_ip_address(ip4_addr_t ip);
                                      ~~~~~~~~~~~^~
/home/vagrant/esp/esp-idf/examples/esp32-homekit-camera/main/app_main.c: In function 'wifi_init':
/home/vagrant/esp/esp-idf/examples/esp32-homekit-camera/main/app_main.c:45:5: warning: 'tcpip_adapter_init' is deprecated [-Wdeprecated-declarations]
     tcpip_adapter_init();
     ^~~~~~~~~~~~~~~~~~
In file included from /home/vagrant/esp/esp-idf/components/esp_netif/include/esp_netif.h:31,
                 from /home/vagrant/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:22,
                 from /home/vagrant/esp/esp-idf/components/esp_event/include/esp_event.h:26,
                 from /home/vagrant/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
                 from /home/vagrant/esp/esp-idf/examples/esp32-homekit-camera/main/app_main.c:6:
/home/vagrant/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:30:6: note: declared here
 void tcpip_adapter_init(void)  __attribute__ ((deprecated));
      ^~~~~~~~~~~~~~~~~~
/home/vagrant/esp/esp-idf/examples/esp32-homekit-camera/main/app_main.c:46:5: warning: 'esp_event_loop_init' is deprecated [-Wdeprecated-declarations]
     ESP_ERROR_CHECK(esp_event_loop_init(event_handler, NULL));
     ^~~~~~~~~~~~~~~
In file included from /home/vagrant/esp/esp-idf/components/esp_event/include/esp_event.h:26,
                 from /home/vagrant/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
                 from /home/vagrant/esp/esp-idf/examples/esp32-homekit-camera/main/app_main.c:6:
/home/vagrant/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:227:11: note: declared here
 esp_err_t esp_event_loop_init(system_event_cb_t cb, void *ctx) __attribute__ ((deprecated));
           ^~~~~~~~~~~~~~~~~~~
make[1]: *** [app_main.o] Error 1
make: *** [component-main-build] Error 2
vagrant@vagrant-ubuntu-trusty-64:~/esp/esp-idf/examples/esp32-homekit-camera$

At the end of compiling, it gives that error and if I make that line to comment like below inside of app_main.c:

//camera_accessory_set_ip_address(event->event_info.got_ip.ip_info.ip);

it passes the compiling and it can flash the esp32. (but fails when it boots itself because of camera).

from esp32-homekit-camera.

okanduzyel avatar okanduzyel commented on August 18, 2024

@maximkulkin Could you share your all configurations of make menuconfig please?

from esp32-homekit-camera.

Rafal74 avatar Rafal74 commented on August 18, 2024

Hello Maxim,
I admire your projects very much.
I have same problem like @okanduzyel.
What do you advise to check ?
Thank You

from esp32-homekit-camera.

fxday avatar fxday commented on August 18, 2024

Me, too. @maximkulkin

Should I need to patch esp32-camera.patch?

Hello Maxim,
I admire your projects very much.
I have same problem like @okanduzyel.
What do you advise to check ?
Thank You

from esp32-homekit-camera.

okanduzyel avatar okanduzyel commented on August 18, 2024

esp-idf v3.2 it works!

from esp32-homekit-camera.

ryan99alero avatar ryan99alero commented on August 18, 2024

I went in on my own repo and commented out the original line and just edited the line to be what its looking for. This allowed it to compile and flash. Will test when I get home if the module actually works.

// void camera_accessory_set_ip_address(ip4_addr_t ip);
void camera_accessory_set_ip_address(esp_ip4_addr_t ip);

from esp32-homekit-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.