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

Cant build DuetWifiServer

Scheduled Pinned Locked Moved
Firmware installation
2
41
6.0k
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.
  • undefined
    eBerlin
    last edited by 2 May 2018, 09:52

    hmm ok ,
    but i already use the dev branches for each of the 3 projects and i have a file named : "libLwipESP8266.a in the release folder of the LwipESP8266 project.

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 2 May 2018, 10:01

      In that case I suggest you check what the library path is set to in the linker settings for project DuetWiFiSocketServer, because that folder should be included in it.

      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
      • undefined
        eBerlin
        last edited by 2 May 2018, 10:08

        0_1525255641221_Bildschirmfoto 2018-05-02 um 12.06.34.png

        do you mean this settings ?

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by dc42 5 Feb 2018, 11:06 2 May 2018, 10:18

          @eberlin said in Cant build DuetWifiServer:

          xtensa-lx106-elf-g++ -nostdlib -L"/Users/xxx/Workspace/c++/LwipESP8266/Release" -L"/Users/xxx/Workspace/c++/CoreESP8266/Release" -L"/Users/xxx/Workspace/c++/CoreESP8266/sdk/lib" -L"/Users/xxx/Workspace/c++/DuetWiFiSocketServer/src/ld" -TDuetWiFiSocketServer.ld -Wl,--no-check-sections -u call_user_start -u _printf_float -u _scanf_float -Wl,-static -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,spi_flash_read -Wl,-Map,DuetWiFiSocketServer.map -o "DuetWiFiSocketServer.elf" -Wl,--start-group /Users/xxx/Workspace/c++/CoreESP8266/Release/cores/esp8266/heap.o ./src/Connection.o ./src/HSPI.o ./src/Listener.o ./src/Misc.o ./src/SocketServer.o -lCoreESP8266 -lhal -lphy -lpp -lnet80211 -lLwipESP8266 -lwpa -lcrypto -lmain -lwps -laxtls -lespnow -lsmartconfig -lairkiss -lwpa2 -lstdc++ -lm -lc -lgcc -Wl,--end-group

          Yes, that looks OK. Looking at your command line from one of your previous posts:

          xtensa-lx106-elf-g++ -nostdlib -L"/Users/xxx/Workspace/c++/LwipESP8266/Release" -L"/Users/xxx/Workspace/c++/CoreESP8266/Release" -L"/Users/xxx/Workspace/c++/CoreESP8266/sdk/lib" -L"/Users/xxx/Workspace/c++/DuetWiFiSocketServer/src/ld" -TDuetWiFiSocketServer.ld -Wl,--no-check-sections -u call_user_start -u _printf_float -u _scanf_float -Wl,-static -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,spi_flash_read -Wl,-Map,DuetWiFiSocketServer.map -o "DuetWiFiSocketServer.elf" -Wl,--start-group /Users/xxx/Workspace/c++/CoreESP8266/Release/cores/esp8266/heap.o ./src/Connection.o ./src/HSPI.o ./src/Listener.o ./src/Misc.o ./src/SocketServer.o -lCoreESP8266 -lhal -lphy -lpp -lnet80211 -lLwipESP8266 -lwpa -lcrypto -lmain -lwps -laxtls -lespnow -lsmartconfig -lairkiss -lwpa2 -lstdc++ -lm -lc -lgcc -Wl,--end-group

          the settings concerned (in bold) look OK to me too. Did you check that the case of the letters in the actual output file in /Users/xxx/Workspace/c++/CoreLwipESP8266/Release was exactly correct? I build under Windows, so an error in the letter case wouldn't matter on my system.

          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
          • undefined
            eBerlin
            last edited by 2 May 2018, 10:48

            should i search for a output file named : lLwipESP8266 in
            /Users/xxx/Workspace/c++/CoreESP8266/Release ?
            there is no such file. 0_1525258088670_Bildschirmfoto 2018-05-02 um 12.47.35.png

            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators
              last edited by 2 May 2018, 11:05

              Sorry, I meant /Users/xxx/Workspace/c++/LwipESP8266/Release.

              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
              • undefined
                eBerlin
                last edited by 2 May 2018, 11:23

                ah ok , in this folder i got this files:

                0_1525260216051_Bildschirmfoto 2018-05-02 um 13.22.53.png

                1 Reply Last reply Reply Quote 0
                • undefined
                  dc42 administrators
                  last edited by 2 May 2018, 11:30

                  Looks like it's got the right file there, assuming that it is a sensible file and not zero length or something like that. I suggest you clean and rebuild project LwipESP8266. After that, if DuetWiFiSocketServer still won't link, try copying the libLwipESP8266.a file into one of the other library search directories, and/or ask for help with Eclipse and/or gcc.

                  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
                  • undefined
                    eBerlin
                    last edited by 2 May 2018, 11:59

                    i cleaned an rebuilt the project, and it still dont work. i also copied the file into some search directories, but it returned the same error ...

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      dc42 administrators
                      last edited by dc42 5 Feb 2018, 14:26 2 May 2018, 14:25

                      Wierd, it's finding -lCoreESP8266 but not -lLwipESP8266 which has a similar format and the same number of characters. Does the libLwipESP8266.a file look a sensible size, and does it have the correct date/time corresponding to when you built it? My copy of that file is 423 KB (433,816 bytes) long. Were any errors reported when you cleaned and built project LwipESP8266 ?

                      EDIT: for reference, this is what I get:

                      'Invoking: Cross G++ Linker'
                      xtensa-lx106-elf-g++ -nostdlib -L"C:\Eclipse\Firmware/LwipESP8266/Release" -L"C:\Eclipse\Firmware/CoreESP8266/Release" -L"C:\Eclipse\Firmware/CoreESP8266/sdk/lib" -L"C:\Eclipse\Firmware/DuetWiFiSocketServer/src/ld" -TDuetWiFiSocketServer.ld -Wl,--no-check-sections -u call_user_start -u _printf_float -u _scanf_float -Wl,-static -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,spi_flash_read -Wl,-Map,DuetWiFiSocketServer.map -o "DuetWiFiSocketServer.elf" -Wl,--start-group C:\Eclipse\Firmware/CoreESP8266/Release/cores/esp8266/heap.o ./src/Connection.o ./src/HSPI.o ./src/Listener.o ./src/Misc.o ./src/SocketServer.o -lCoreESP8266 -lhal -lphy -lpp -lnet80211 -lLwipESP8266 -lwpa -lcrypto -lmain -lwps -laxtls -lespnow -lsmartconfig -lairkiss -lwpa2 -lstdc++ -lm -lc -lgcc -Wl,--end-group
                      'Finished building target: DuetWiFiSocketServer.elf'

                      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 1
                      • undefined
                        eBerlin
                        last edited by 8 May 2018, 09:56

                        hello dc42,

                        the libLwipESP8266.a file have a size of : 433.796 Byte (434 KB);
                        the time is the same
                        and i got no errors when i cleaned the LwipESP8266 project.

                        my future goal is, that the printer send his data to a server, when he´s connected to the internet. this i why i want to build the DuetWifiServer and later update the code. is that the right way to do that?

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          dc42 administrators
                          last edited by 8 May 2018, 17:10

                          Maybe you should try putting your workspace at /Eclipse/Firmware instead of at /Users/xxx/Workspace/c++ in case either the path is too long or the + characters in your path are confusing Eclipse or ld ?

                          I defined a message code connCreate in file MessageFormats.h for the Duet to send the WiFi module a command to open a TCP connection with a remote host, however file SocketServer.cpp has this:

                          case NetworkCommand::connCreate: // create a connection
                          // Not implemented yet

                          So it would need to be implemented, then the Duet will be able to open remote connections.

                          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

                          undefined 1 Reply Last reply 1 Oct 2018, 10:18 Reply Quote 1
                          • undefined
                            eBerlin
                            last edited by 9 May 2018, 09:59

                            i copied all three projects in this path : /Eclipse/Firmware and imported them into eclipse.
                            but when i building the DuetWifiSocketServer , i got the same error :

                            xtensa-lx106-elf-g++ -nostdlib -L"/Users/xxx/Workspace/c++/LwipESP8266/Release" -L"/Users/xxx/Workspace/c++/CoreESP8266/Release" -L"/Users/xxx/Workspace/c++/CoreESP8266/sdk/lib" -L"/Users/xxx/Workspace/c++/DuetWiFiSocketServer/src/ld" -TDuetWiFiSocketServer.ld -Wl,--no-check-sections -u call_user_start -u _printf_float -u _scanf_float -Wl,-static -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,spi_flash_read -Wl,-Map,DuetWiFiSocketServer.map -o "DuetWiFiSocketServer.elf" -Wl,--start-group /Users/xxx/Workspace/c++/CoreESP8266/Release/cores/esp8266/heap.o ./src/Connection.o ./src/HSPI.o ./src/Listener.o ./src/Misc.o ./src/SocketServer.o -lCoreESP8266 -lhal -lphy -lpp -lnet80211 -lLwipESP8266 -lwpa -lcrypto -lmain -lwps -laxtls -lespnow -lsmartconfig -lairkiss -lwpa2 -lstdc++ -lm -lc -lgcc -Wl,--end-group
                            /Users/xxx/Documents/Arduino/hardware/esp8266com/esp8266/tools/macosx/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lLwipESP8266
                            collect2: error: ld returned 1 exit status
                            make: *** [DuetWiFiSocketServer.elf] Error 1

                            i deleted the old projects and cleaned everything. but the program uses the same path , why ...?

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              dc42 administrators
                              last edited by 9 May 2018, 10:31

                              Did you try the Refresh option in the Project menu?

                              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 1
                              • undefined
                                eBerlin
                                last edited by 9 May 2018, 10:58

                                i refreshed and cleaned/rebuilt it now. but DuetWifiSocketServer tries to get this command from the old path again.
                                i deleted the old projects from the harddrive and the program now says:

                                error: /Users/xxx/Workspace/c++/CoreESP8266/Release/cores/esp8266/heap.o: No such file or directory

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  dc42 administrators
                                  last edited by 9 May 2018, 11:05

                                  Suggestions:

                                  1. Check that the paths in the tool settings are all specified in terms of ${workspace_loc} and don't have an absolute path in them.

                                  2. I suggest you delete the .mk files in the output directories, to force them to be rebuilt. You may get an error the first time you build after that, but it should go away when you try the build again.

                                  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 1
                                  • undefined
                                    eBerlin
                                    last edited by 9 May 2018, 11:54

                                    great thank you , i think the first point worked for me !

                                    i didnt delete the .mk files. should i ?

                                    i got this error now :

                                    /Library/Developer/CommandLineTools/usr/bin/make --no-print-directory post-build
                                    Generating binary
                                    "C:\Users\David\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.12/esptool.exe" -eo "C:\Users\David\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0/bootloaders/eboot/eboot.elf" -bo "/Eclipse/Firmware/DuetWiFiSocketServer/Release/DuetWiFiServer.bin" -bm dio -bf 40 -bz 4M -bs .text -bp 4096 -ec -eo "/Eclipse/Firmware/DuetWiFiSocketServer/Release/DuetWiFiSocketServer.elf" -bs .irom0.text -bs .text -bs .data -bs .rodata -bc -ec
                                    /bin/sh: C:\Users\David\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.12/esptool.exe: No such file or directory
                                    make[1]: [post-build] Error 127 (ignored)

                                    but i already changed the path to the compiler . this is the default one . i changed it in : properties-->c/c++Build--> Settings

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      eBerlin
                                      last edited by 9 May 2018, 12:08

                                      when i build it a second time ,it does not throw any errors

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        dc42 administrators
                                        last edited by dc42 5 Sept 2018, 12:12 9 May 2018, 12:11

                                        So it's fully built now?

                                        EDIT: as it is just the post build step that failed, I guess it still hasn't done the post build step. You need to change the Build Variables, in particulat EspBootFile and EspToolPath.

                                        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 1
                                        • undefined
                                          eBerlin
                                          last edited by 9 May 2018, 13:14

                                          i think everything works. i took the DuetWifiServer.bin and updated the firmware (as described : https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware)

                                          and i can use the wifi module

                                          do you think i can start to program the remote conn ?

                                          thank you very much for your help !!

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