Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the proper develop flow about esp32 port? #262

Closed
cmsong-shina opened this issue May 11, 2022 · 3 comments
Closed

What is the proper develop flow about esp32 port? #262

cmsong-shina opened this issue May 11, 2022 · 3 comments
Assignees

Comments

@cmsong-shina
Copy link

I did

  1. install iotivity-lite with [setup tool](https://github.com/openconnectivity/IOTivity-Lite-setup)

    $ curl  https://openconnectivity.github.io/IOTivity-Lite-setup/install-master.sh | bash
  2. install esp-idf with [instruction](https://github.com/iotivity/iotivity-lite/tree/master/port/esp32)

    $ git clone --recursive https://gitlab.iotivity.org/iotivity/iotivity-lite.git
    $ sudo apt install -y git wget flex bison gperf python3 python3-pip python3-setuptools \
     python3-serial python3-click python3-cryptography python3-future python3-pyparsing \
     python3-pyelftools cmake ninja-build ccache libffi-dev libssl-dev libusb-1.0-0
    
    $ cd ./iotivity-lite/port/esp32
    $ git clone https://github.com/espressif/esp-idf.git
    $ (cd esp-idf && git checkout 457ce080aec9811faee26a1ea5293fff17049fee && git submodule init && git submodule update)
    $ ./esp-idf/install.sh
    $ . ./esp-idf/export.sh
  3. edit build.sh

    build.sh

    #!/bin/bash
    cd ./iotivity-lite/port/esp32/
    make -f devbuildmake DYNAMIC=1 device_builder_server $1 $2 $3
    cd ../../..
  4. follow [develop flow](https://github.com/openconnectivity/IOTivity-Lite-setup#development-flow)

    $ ./gen.sh && ./build.sh

And the last step, I met a error:

devbuildmake:13: Makefile: No such file or directory
make: *** No rule to make target 'Makefile'.  Stop.

So, here are two questions.

  1. What did I wrong?
  2. I expected it would generate iot-lite/iotivity-lite/port/esp32/main/main.c. Is that right? If yes, then can I follow [common steps](https://github.com/iotivity/iotivity-lite/tree/master/port/esp32#common-steps)?
@jkralik
Copy link
Member

jkralik commented Aug 25, 2022

@cstevens Could you look at it ? Thx

@Danielius1922
Copy link
Member

@cmsong-shina hello, are you still not able to build the esp32 port?

@cmsong-shina
Copy link
Author

@cmsong-shina hello, are you still not able to build the esp32 port?

Well, no. We switched to the Onion Omega2+ running OpenWRT. We got the certificate, but ultimately dropped the entire project and moved on to Matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants