Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    getting error to build RRF for 3.5.1

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    2
    11
    402
    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.
    • R006undefined
      R006
      last edited by

      hey,
      i am try to build RRF 3.5.1 with dev branch, but i am facing following errors.

      i am included Duetwifisocketserver of dev branch.

      1709718917623-screenshot-2024-03-06-152445_1.jpg

      any suggestions? @dc42 @jay_s_uk @Phaedrux

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @R006
        last edited by

        @R006 as from 3.5.1 you need to have project WiFiSocketServerRTOS in the workspace, instead of DuetWiFiSocketServer.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        R006undefined 1 Reply Last reply Reply Quote 0
        • R006undefined
          R006 @dc42
          last edited by R006

          @dc42
          I attempted to build it using the main branch of WiFiSocketServerRTOS , but I am encountering the same error repeatedly.

          Could you please advise me on which branch I should use to successfully build the project?

          dc42undefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @R006
            last edited by

            @R006 the branch of WiFiSocketServerRTOS called "main" is the correct one to use; but this is not the same as "master".

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            R006undefined 2 Replies Last reply Reply Quote 1
            • R006undefined
              R006 @dc42
              last edited by R006

              @dc42

              I attempted to build it using the main branch of WiFiSocketServerRTOS , but I am encountering the same error repeatedly.

              and other repository from Dev branch.

              1 Reply Last reply Reply Quote 0
              • R006undefined
                R006 @dc42
                last edited by

                @dc42
                i am waiting for your response.

                dc42undefined 1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators @R006
                  last edited by dc42

                  @R006 in file src/Networking/ESP8266WiFi/NetworkInterface.cpp is the following line:

                  #include <MessageFormats.h>

                  That should be #including MessageFormats.h from WiFiSocketServerRTOS/src/include. The include path is set in the project settings, which should look like this (in the MB6XD configuration) if you are using the .cproject file from the current 3.5-dev branch of the RepRapFirmware project:

                  2c6be472-3a7f-43d8-9adc-dbc2d3b81fbc-image.png

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  R006undefined 1 Reply Last reply Reply Quote 0
                  • R006undefined
                    R006 @dc42
                    last edited by

                    @dc42
                    here is my tool settings for duet2

                    "${workspace_loc:/CANlib}"
                    "${workspace_loc:/CoreN2G}"
                    "${workspace_loc:/FreeRTOS}"
                    "${workspace_loc:/CoreN2G/src}"
                    "${workspace_loc:/CoreN2G/src/SAM4S_4E_E70}"
                    "${workspace_loc:/CoreN2G/src/SAM4S_4E_E70/SAM4E}"
                    "${workspace_loc:/CoreN2G/src/SAM4S_4E_E70/asf/common/utils}"
                    "${workspace_loc:/CoreN2G/src/arm/CMSIS/5.4.0/CMSIS/Core/Include}"
                    "${workspace_loc:/CoreN2G/src/SAM4S_4E_E70/asf/sam/utils/cmsis/sam4e/include}"
                    "${workspace_loc:/CoreN2G/src/SAM4S_4E_E70/asf}"
                    "${workspace_loc:/CoreN2G/src/SAM4S_4E_E70/asf/sam/utils}"
                    "${workspace_loc:/CoreN2G/src/SAM4S_4E_E70/asf/sam/utils/preprocessor}"
                    "${workspace_loc:/CoreN2G/src/SAM4S_4E_E70/asf/sam/utils/header_files}"
                    "${workspace_loc:/CoreN2G/src/SAM4S_4E_E70/asf/sam/drivers}"
                    "${workspace_loc:/${ProjName}/src}"
                    "${workspace_loc:/${ProjName}/src/Hardware/SAM4E}"
                    "${workspace_loc:/${ProjName}/src/DuetNG}"
                    "${workspace_loc:/${ProjName}/src/Networking}"
                    "${workspace_loc:/${ProjName}/src/Networking/MQTT/MQTT_C/include}"
                    "${workspace_loc:/WiFiSocketServerRTOS/src/include}"
                    "${workspace_loc:/FreeRTOS/src/include}"
                    "${workspace_loc:/FreeRTOS/src/portable/GCC/ARM_CM4F}"
                    "${workspace_loc:/RRFLibraries/src}"
                    "${workspace_loc:/CANlib/src}"

                    dc42undefined 1 Reply Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators @R006
                      last edited by

                      @R006 please provide the console output when you try to build RRF.

                      Duet WiFi hardware designer and firmware engineer
                      Please do not ask me for Duet support via PM or email, use the forum
                      http://www.escher3d.com, https://miscsolutions.wordpress.com

                      R006undefined 1 Reply Last reply Reply Quote 0
                      • R006undefined
                        R006 @dc42
                        last edited by

                        @dc42
                        here is my console output when i tried to build it

                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:240:43: error: 'WiFiAuth' was not declared in this scope
                        240 | static const char* GetWiFiAuthFriendlyStr(WiFiAuth auth) noexcept
                        | ^~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp: In member function 'virtual void WiFiInterface::Spin()':
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:663:25: error: 'MinimumStatusResponseLength' was not declared in this scope
                        663 | if (rc >= (int32_t)MinimumStatusResponseLength)
                        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:839:94: error: 'MinimumStatusResponseLength' was not declared in this scope
                        839 | if (SendCommand(NetworkCommand::networkGetStatus, 0, 0, nullptr, 0, status) >= (int32_t)MinimumStatusResponseLength)
                        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp: In member function 'virtual void WiFiInterface::Diagnostics(MessageType)':
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:942:91: error: 'MinimumStatusResponseLength' was not declared in this scope
                        942 | if (SendCommand(NetworkCommand::networkGetStatus, 0, 0, nullptr, 0, status) >= (int32_t)MinimumStatusResponseLength)
                        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:961:27: error: 'struct NetworkStatusResponse' has no member named 'channel'
                        961 | (int)r.rssi, r.channel, ConnectionModes[r.phyMode], reconnectCount);
                        | ^~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiSocket.cpp: In member function 'virtual void WiFiSocket::Poll()':
                        ../src/Networking/ESP8266WiFi/WiFiSocket.cpp:207:30: error: 'struct ConnStatusResponse' has no member named 'protocol'
                        207 | protocol = resp.Value().protocol;
                        | ^~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp: In member function 'size_t WiFiInterface::CheckCredential(GCodeBuffer&, bool)':
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1084:16: error: 'MaxCredentialChunkSize' was not declared in this scope
                        1084 | static_assert(MaxCredentialChunkSize <= sizeof(bufferOut->data));
                        | ^~~~~~~~~~~~~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp: In member function 'int32_t WiFiInterface::SendCredential(size_t, const uint8_t*, size_t)':
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1121:37: error: 'networkAddEnterpriseSsid' is not a member of 'NetworkCommand'
                        1121 | return SendCommand(NetworkCommand::networkAddEnterpriseSsid, 0,
                        | ^~~~~~~~~~~~~~~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1122:31: error: 'AddEnterpriseSsidFlag' has not been declared
                        1122 | static_cast<uint8_t>(AddEnterpriseSsidFlag::CREDENTIAL), credIndex,
                        | ^~~~~~~~~~~~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp: In member function 'int32_t WiFiInterface::SendTextCredential(GCodeBuffer&, size_t)':
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1128:16: error: 'MaxCredentialChunkSize' was not declared in this scope
                        1128 | static_assert(MaxCredentialChunkSize <= sizeof(bufferOut->data));
                        | ^~~~~~~~~~~~~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp: In member function 'int32_t WiFiInterface::SendFileCredential(GCodeBuffer&, size_t)':
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1138:16: error: 'MaxCredentialChunkSize' was not declared in this scope
                        1138 | static_assert(MaxCredentialChunkSize <= sizeof(bufferOut->data));
                        | ^~~~~~~~~~~~~~~~~~~~~~
                        In file included from c:\program files (x86)\gnu arm embedded toolchain\10 2021.10\arm-none-eabi\include\string.h:17,
                        from c:\program files (x86)\gnu arm embedded toolchain\10 2021.10\arm-none-eabi\include\c++\10.3.1\cstring:42,
                        from C:\Users\rishita.butala\eclipse-workspace\Firmware\CoreN2G\src/Print.h:24,
                        from C:\Users\rishita.butala\eclipse-workspace\Firmware\CoreN2G\src/Stream.h:8,
                        from C:\Users\rishita.butala\eclipse-workspace\Firmware\CoreN2G\src\SAM4S_4E_E70/AsyncSerial.h:23,
                        from C:\Users\rishita.butala\eclipse-workspace\Firmware\RepRapFirmware\src\Hardware\SAM4E/Devices.h:11,
                        from C:\Users\rishita.butala\eclipse-workspace\Firmware\RepRapFirmware\src/RepRapFirmware.h:54,
                        from ../src/Networking/ESP8266WiFi/WiFiInterface.h:11,
                        from ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:8:
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp: In member function 'GCodeResult WiFiInterface::HandleWiFiCode(int, GCodeBuffer&, const StringRef&, OutputBuffer*&)':
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1194:56: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1194 | static_assert(offsetof(WirelessConfigurationData, eap.protocol) ==
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1195:94: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1195 | offsetof(WirelessConfigurationData, password[sizeof(config.password) - sizeof(config.eap.protocol)]));
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1197:13: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1197 | config.eap.protocol = EAPProtocol::NONE;
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1197:28: error: 'EAPProtocol' has not been declared
                        1197 | config.eap.protocol = EAPProtocol::NONE;
                        | ^~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1207:16: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1207 | config.eap.protocol = EAPProtocol::EAP_TLS;
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1207:31: error: 'EAPProtocol' has not been declared
                        1207 | config.eap.protocol = EAPProtocol::EAP_TLS;
                        | ^~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1210:16: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1210 | config.eap.protocol = EAPProtocol::EAP_PEAP_MSCHAPV2;
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1210:31: error: 'EAPProtocol' has not been declared
                        1210 | config.eap.protocol = EAPProtocol::EAP_PEAP_MSCHAPV2;
                        | ^~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1213:16: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1213 | config.eap.protocol = EAPProtocol::EAP_TTLS_MSCHAPV2;
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1213:31: error: 'EAPProtocol' has not been declared
                        1213 | config.eap.protocol = EAPProtocol::EAP_TTLS_MSCHAPV2;
                        | ^~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1240:17: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1240 | if (config.eap.protocol != EAPProtocol::NONE)
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1240:33: error: 'EAPProtocol' has not been declared
                        1240 | if (config.eap.protocol != EAPProtocol::NONE)
                        | ^~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1245:15: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1245 | config.eap.credSizes.asMemb.caCert = CheckCredential(gb, true);
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1248:18: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1248 | if (config.eap.protocol == EAPProtocol::EAP_TLS)
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1248:34: error: 'EAPProtocol' has not been declared
                        1248 | if (config.eap.protocol == EAPProtocol::EAP_TLS)
                        | ^~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1252:16: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1252 | config.eap.credSizes.asMemb.anonymousId = CheckCredential(gb);
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1257:16: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1257 | config.eap.credSizes.asMemb.tls.userCert = CheckCredential(gb, true);
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1262:16: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1262 | config.eap.credSizes.asMemb.tls.privateKey = CheckCredential(gb, true);
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1267:16: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1267 | config.eap.credSizes.asMemb.tls.privateKeyPswd = CheckCredential(gb);
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1270:23: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1270 | else if (config.eap.protocol == EAPProtocol::EAP_PEAP_MSCHAPV2 || config.eap.protocol == EAPProtocol::EAP_TTLS_MSCHAPV2)
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1270:39: error: 'EAPProtocol' has not been declared
                        1270 | else if (config.eap.protocol == EAPProtocol::EAP_PEAP_MSCHAPV2 || config.eap.protocol == EAPProtocol::EAP_TTLS_MSCHAPV2)
                        | ^~~~~~~~~~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1270:80: error: 'struct WirelessConfigurationData' has no member named 'eap'
                        1270 | else if (config.eap.protocol == EAPProtocol::EAP_PEAP_MSCHAPV2 || config.eap.protocol == EAPProtocol::EAP_TTLS_MSCHAPV2)
                        | ^~~
                        ../src/Networking/ESP8266WiFi/WiFiInterface.cpp:1270:96: error: 'EAPProtocol' has not been declared

                        Finished building: ../src/Networking/ESP8266WiFi/WifiFirmwareUploader.cpp

                        Finished building: ../src/Networking/Network.cpp
                        Finished building: ../src/Networking/FtpResponder.cpp
                        Finished building: ../src/Networking/NetworkBuffer.cpp

                        Finished building: ../src/Networking/HttpResponder.cpp

                        make: *** [makefile:102: all] Error 2
                        "make -j8 all" terminated with exit code 2. Build might be incomplete.

                        09:47:41 Build Failed. 88 errors, 0 warnings. (took 18s.99ms)

                        dc42undefined 1 Reply Last reply Reply Quote 0
                        • dc42undefined
                          dc42 administrators @R006
                          last edited by

                          @R006 it looks to me that you have a very old branch or version of WiFiSocketServerRTOS in your workspace. This is what mine looks like in Eclipse:

                          bc065b83-432b-45c2-b0e9-530ec4aea22b-image.png

                          The contents of MessageFormats.h in that project should be the same as at https://github.com/Duet3D/WiFiSocketServerRTOS/blob/main/src/include/MessageFormats.h.

                          Duet WiFi hardware designer and firmware engineer
                          Please do not ask me for Duet support via PM or email, use the forum
                          http://www.escher3d.com, https://miscsolutions.wordpress.com

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA