Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Recommended Posts

Posted
On 2/28/2025 at 9:26 AM, jgab said:

2. The luasocket rock needs to be installed by hand. 
Download the rock spec file

Please login or register to see this link.

. Must be this file and version.

Now you can build and install it with

Please login or register to see this code.

 


Were should this file be placed in scoop folders? 🤔 
get an error:

Please login or register to see this image.

/monthly_2025_03/image.png.cd10c76367072ea13635f8a51f577cce.png" />

image.png.0963f3581cabf5148902bdb6ec438c89.png

it was downloaded as luasocket-3.0rc1-2.rockspec.txt, but changed it to luasocket-3.0rc1-2.rockspec 

 

 

  • Topic Author
  • Posted (edited)
    2 hours ago, Brors94 said:

    Were should this file be placed in scoop folders? 🤔 
    get an error:

    Please login or register to see this link.



    Please login or register to see this link.

    it was downloaded as luasocket-3.0rc1-2.rockspec.txt, but changed it to luasocket-3.0rc1-2.rockspec 

    No, it can be placed anywhere. It's just an input to the luarocks build command. In my example I was standing in the same directory as the file so no path. 

    Yes, it needs to end with .rockspec

     

    Edited by jgab
    Posted
    1 hour ago, jgab said:

    No, it can be placed anywhere. It's just an input to the luarocks build command. In my case I was standing in the same directory as the file so no path. 

    Yes, it needs to end with .rockspec


    When i placed the file in the same folder as where my vscode terminal was standing it found the file 😅

    But now gets this error 🤔

    Please login or register to see this attachment.

     

    Any suggestions? 😄 

    I also check the step with 

    Please login or register to see this image.

    /monthly_2025_03/image.png.30830bc3ff53bb53d7b6252fc4b27d9b.png" />
    They all are installed and up to date :)

     

     

  • Topic Author
  • Posted (edited)

    When I install mingw, it adds the executable to the path.
    I can stand in a terminal and type the command

    Please login or register to see this code.

    No, file so it complains in this case, but it's there.

    In settings environment variables I can see 

    PATH = C:\Users\jgab\scoop\apps\mingw\current\bin

    being set by scoop.

     

    and if I look at the directory, 

    Please login or register to see this code.

    there 'x86_64-w64-mingw32-gcc.exe' is.

     

    Maybe you need to restart the terminal to get the new environment variables?

    Edited by jgab
    Posted
    6 hours ago, jgab said:

    When I install mingw, it adds the executable to the path.
    I can stand in a terminal and type the command

    Please login or register to see this code.

    No, file so it complains in this case, but it's there.

    In settings environment variables I can see 

    PATH = C:\Users\jgab\scoop\apps\mingw\current\bin

    being set by scoop.

     

    and if I look at the directory, 

    Please login or register to see this code.

    there 'x86_64-w64-mingw32-gcc.exe' is.

     

    Maybe you need to restart the terminal to get the new environment variables?


    As you know, most of this is new to me :D 

    But after some reasearch and help of copilot I think I got it :D

    Had to set the path in the terminal to 

     

    Please login or register to see this code.


    and add the path to the rockspec file in the  environment variables from the control panel-> advanced setting-> environment variables-> system: path->edit->new->copt+paste the path. 

    could maybe do this some other way, but now it seems to get the installasion done :D 

    and I think I got the hc3emu installed now :D 
     

    Just have to learn how to use it now 😅 


     

     

     


     

    • Like 1
  • Topic Author
  • Posted

    Pushed v1.0.53-1

    Please login or register to see this code.

    • Spent a lot of time refactoring the code
    • More bugfixes and much better stability.
    • jgab featured this topic
    Posted (edited)
    On 2/28/2025 at 9:26 AM, jgab said:

    I don't have Windows 10, but if you succeed with this instructions on Win10, let me know.

    Dear @jgab, I have tried to install hc3emu on my Windows10 version and following you instruction using scoop, all installtions were succesful (see attached text file 'Windows10 PowerShell hc3emu install log.txt').Before rebooting the PC, Fibemu was the only emulator working even using examples lua file in hc3emu-main directory.

    After reboot none of the is working anymore with following error message for hc3emu:

    Please login or register to see this attachment.

    When using fibemu, I am geeting using a previous working QA, the exception is very strange..:

    Please login or register to see this attachment.

    Any idea of which setting is not correct; I suspect settings.json or launch.json but these files exists in different folders and have not found yet which ones are incorrect.

    Please login or register to see this attachment.

    Edited by Christb
    adding txt file
  • Topic Author
  • Posted (edited)

    I looked at your log that ends with the "luarocks path --bin" common. Did you edit the environment variables setting LUA_PATH and LUA_CPATH to the values shown?

    Second, in the terminal (powershell or commands), start lua and see if you can do require("copas")

    If that works, it means that you have installed lua, luarocks, and the the libraries, and that LUA_PATH and LUA_CPATH is setup correct.

    If all that works, then in vscode makes sure you have the launch task
     

    Please login or register to see this code.

    and the vscode extension lua mobdebug by Alexey installed.

     

    P.S also in terminal, do ">lua -v" to make sure that you have lua 5.4 or greater.

    Btw, the develop flag

    Please login or register to see this code.

    should only be used when running from the hc3emu repo, as it will use the local files in that directory instead of the ones installed by luarocks.

    Edited by jgab
    Posted
    23 minutes ago, jgab said:

    Did you edit the environment variables setting LUA_PATH and LUA_CPATH to the values shown?

    Yes I did.

    27 minutes ago, jgab said:

    Second, in the terminal (powershell or commands), start lua and see if you can do require("copas")

    See powerSell error below which seem to be the same as when using hc3emu:

    Please login or register to see this image.

    /monthly_2025_03/image.png.5e9d493021376893037d45d47b7e0972.png" />

     

    29 minutes ago, jgab said:

    in vscode makes sure you have the launch task

    I added it just before reinstalling hc3emu and for some reason it was missing in the launch.json file located in C:\Users\ASUS\.vscode:

    Now it is like:

    {
      // Use IntelliSense to learn about possible attributes.
      // Hover to view descriptions of existing attributes.
      // For more information, visit:

    Please login or register to see this link.


      "version": "0.2.0",
      "configurations": [
        {
          "name": "Lua MobDebug: Current File",
          "type": "luaMobDebug",
          "request": "launch",
          "workingDirectory": "${workspaceFolder}",
          "sourceBasePath": "${workspaceFolder}",
          "listenPort": 8172,
          "stopOnEntry": false,
          "sourceEncoding": "UTF-8",
          "interpreter": "lua",
          "arguments": [
            "${relativeFile}"
          ],
          "listenPublicly": true
        }
        
        {
          "type": "lua-local",
          "request": "launch",
          "name": "Debug Local-Lua",
          "program": {
            "lua": "lua",
            "file": "${relativeFile}"
          },
          "args": [
            "${workspaceFolder}"
          ]
        },
        {
          "name": "Lua MobDebug: Listen",
          "type": "luaMobDebug",
          "request": "attach",
          "workingDirectory": "${workspaceFolder}",
          "sourceBasePath": "${workspaceFolder}",
          "listenPublicly": false,
          "listenPort": 8818, //8172,
          //"stopOnEntry": true,
          "sourceEncoding": "UTF-8"
        },
        {
          "name": "Lua MobDebug: Current File",
          "type": "luaMobDebug",
          "request": "launch",
          "workingDirectory": "${workspaceFolder}",
          "sourceBasePath": "${workspaceFolder}",
          "listenPort": 8172,
          "stopOnEntry": false,
          "sourceEncoding": "UTF-8",
          "interpreter": "lua",
          "arguments": [
            "${relativeFile}"
          ],
          "listenPublicly": true
        },
        {
          "name": "Lua MobDebug: Current QA",
          "type": "luaMobDebug",
          "request": "launch",
          "workingDirectory": "${workspaceFolder}",
          "sourceBasePath": "${workspaceFolder}",
          "listenPort": 8172,
          "stopOnEntry": false,
          "sourceEncoding": "UTF-8",
          "interpreter": "lua",
          "arguments": [
            "${userHome}${pathSeparator}.vscode.lua", // move tools/vscode.lua to ~/.vscode.lua
            //"tools/vscode.lua",
            "_runQA",
            "${relativeFile}"
          ],
          "listenPublicly": true
        }
      ]
    }

    I still have the same errors for fibemu (global 'QuickApp' is nil) and for hc3emu-main (not a valid Win32 application)

     

    35 minutes ago, jgab said:

    P.S also in terminal, do ">lua -v" to make sure that you have lua 5.4 or greater.

    I think I have the right version for lua:

    PS C:\Users\ASUS\Documents\hc3emu-main> lua -v
    Lua 5.4.7  Copyright (C) 1994-2024 Lua.org, PUC-Rio

     

     

  • Topic Author
  • Posted

    It looks like you haven't managed to build the right libraries for luasocket (or luasec). 

    ...or you have built the right version but not for the lua that you run (seems to be a wrong type of the dll' 32bit vs 64bit or something)

    Can you check that the lua you are running is also coming from the scoop installation?

    Your problem could be an old installed lua that gets in the mix...

  • Topic Author
  • Posted (edited)

    It can also mean that you haven't installed luasec (tried to google on the French in your log...)

     

     

    Pushed v1.0.58-1

    Please login or register to see this code.

    • Offline UI served by vscode "Live Preview" extension
    • More bugfixes and much better stability.
    Edited by jgab
    Posted
    On 3/28/2025 at 2:18 PM, jgab said:

    It can also mean that you haven't installed luasec (tried to google on the French in your log...)

     

    I have uninstall using scoop:

    -lua

    -luarocks

    then reinstall both of them

    then reinstall  'hc3emu'

    Reinstall 'luasec'

    Refresh Paths

    Trying the QA_OFFLINE I am no more having the win32 error but a new one:

     

    error] ...oop\apps\luarocks\current\rocks\share\lua\5.4\socket.lua:12: module 'socket.core' not found:
        no field package.preload['socket.core']
        no file ''
        no file 'src/socket\core'
        no file 'src/socket\core.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\lua\socket\core.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\lua\socket\core\init.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\socket\core.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\socket\core\init.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\..\share\lua\5.4\socket\core.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\..\share\lua\5.4\socket\core\init.lua'
        no file '.\socket\core.lua'
        no file '.\socket\core\init.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\share\lua\5.4\socket\core.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\share\lua\5.4\socket\core\init.lua"'
        no file 'c:\Users\ASUS\.vscode\extensions\tomblind.local-lua-debugger-vscode-0.3.3/debugger/socket\core.lua'

        no file 'C:\Users\ASUS\scoop\apps\lua\current\bin'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\lua\5.4\socket\core.dll"'
        no file 'C:\Users\ASUS\scoop\apps\lua\current\bin'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\lua\5.4\socket.dll"'

     

    I checked and these socket files do not seems to exist in the directory 'C:\Users\ASUS\scoop\apps\luarocks\current\lua\

    There is a directory \socket but at this location: C:\Users\ASUS\scoop\apps\luarocks\3.11.1\rocks\lib\lua\5.4\socket in which only a 'core.dll' file exists.

    How I can get this missing module?

     

     

     

  • Topic Author
  • Posted

    You have followed these instructions?

    and you managed to run 

    Please login or register to see this code.

    and it builds and installs it?

    Posted
    40 minutes ago, jgab said:

    and you managed to run 

    Please login or register to see this code.

    and it builds and installs it?

    Yes I followed your installation Windows 11 process and also for luasocket as below:

    PS C:\WINDOWS\system32> luarocks build luasocket-3.0rc1-2.rockspec
    luasocket 3.0rc1-2 is already installed in C:/Users/ASUS/scoop/apps/luarocks/current/rocks

     

    PS C:\WINDOWS\system32> luarocks build C:\Users\ASUS\scoop\luasocket-3.0rc1-2.rockspec --force

    luasocket 3.0rc1-2 depends on lua >= 5.1 (5.4-1 provided by VM: success)
    x86_64-w64-mingw32-gcc -O2 -c -o src/mime.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/mime.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc  -shared -o C:\Users\ASUS\AppData\Local\Temp\luarocks_build-LuaSocket-3.0rc1-2-6315449\mime\core.dll src/mime.o C:\Users\ASUS\scoop\apps\lua\current\bin\lua54.dll -lm
    x86_64-w64-mingw32-gcc -O2 -c -o src/luasocket.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/luasocket.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc -O2 -c -o src/timeout.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/timeout.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc -O2 -c -o src/buffer.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/buffer.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc -O2 -c -o src/io.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/io.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc -O2 -c -o src/auxiliar.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/auxiliar.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc -O2 -c -o src/options.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/options.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc -O2 -c -o src/inet.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/inet.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc -O2 -c -o src/except.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/except.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc -O2 -c -o src/select.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/select.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc -O2 -c -o src/tcp.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/tcp.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc -O2 -c -o src/udp.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/udp.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc -O2 -c -o src/wsocket.o -IC:/Users/ASUS/scoop/apps/lua/current/include src/wsocket.c -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DWINVER=0x0501 -DLUASOCKET_API=__declspec(dllexport) -DMIME_API=__declspec(dllexport) -Ic:\windows\system32\include
    x86_64-w64-mingw32-gcc  -shared -o C:\Users\ASUS\AppData\Local\Temp\luarocks_build-LuaSocket-3.0rc1-2-6315449\socket\core.dll src/luasocket.o src/timeout.o src/buffer.o src/io.o src/auxiliar.o src/options.o src/inet.o src/except.o src/select.o src/tcp.o src/udp.o src/wsocket.o -lws2_32 C:\Users\ASUS\scoop\apps\lua\current\bin\lua54.dll -lm
    luasocket 3.0rc1-2 is now installed in C:/Users/ASUS/scoop/apps/luarocks/current/rocks (license: MIT)

     

     

  • Topic Author
  • Posted

    So

    Please login or register to see this code.

    is actually the same as 

    Please login or register to see this code.

    because current points to 3.11.1

    However, it can't find core.ddl in the path because it's strange - you see it included in "", like '"...."'
    where the other paths that search for .lua is not.

    This makes me think that you have something strange with your LUA_CPATH environment variable as that is used to search for binary .dll files

     

    Posted
    5 hours ago, jgab said:

    This makes me think that you have something strange with your LUA_CPATH environment variable as that is used to search for binary .dll files

    I have again made the command luarocks path --bin and get fo LUA_CPATH:

      SET "LUA_CPATH=C:\Users\ASUS\scoop\apps\lua\current\bin;C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\lua\5.4\?.dll"

    I fact the path finishing by \?.dll was not included inthe system enviroment variables. So I add it but no change same error, cannot find module 'socket.core'

    I have searched were are socket.dll files and found;

    Please login or register to see this attachment.

     

    I have added in the LUA_CPATH these 3 paths and but no change same error!

  • Topic Author
  • Posted

    Did you get rid of the last " in the error message for the path?
     no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\lua\5.4\socket\core.dll"'

    Posted (edited)

    Below copy of the full error message:

    Process started
    C:\Users\ASUS\scoop\apps\lua\current\bin\lua.exe: ...oop\apps\luarocks\current\rocks\share\lua\5.4\socket.lua:12: module 'socket.core' not found:
        no field package.preload['socket.core']
        no file 'c:\Users\ASUS\.vscode\extensions\alexeymelnichuk.lua-mobdebug-0.0.5\lua\socket\core.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\lua\socket\core.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\lua\socket\core\init.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\socket\core.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\socket\core\init.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\..\share\lua\5.4\socket\core.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\..\share\lua\5.4\socket\core\init.lua'
        no file '.\socket\core.lua'
        no file '.\socket\core\init.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\share\lua\5.4\socket\core.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\3.11.1\rocks\lib\lua\socket'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks'
        no file ''
        no file 'C:\Users\ASUS\scoop\apps\lua\current\bin'
        no file '"C:\Users\ASUS\scoop\apps\lua\current\bin'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\lua\5.4\socket\core.dll"'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\3.11.1\rocks\lib\lua\socket'
        no file ''
        no file 'C:\Users\ASUS\scoop\apps\lua\current\bin'
        no file '"C:\Users\ASUS\scoop\apps\lua\current\bin'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\lua\5.4\socket.dll"'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\3.11.1\rocks\lib\lua\socket'
        no file ''
    stack traceback:
        [C]: in function 'require'
        ...oop\apps\luarocks\current\rocks\share\lua\5.4\socket.lua:12: in main chunk
        [C]: in function 'require'
        ...ions\alexeymelnichuk.lua-mobdebug-0.0.5\lua\mobdebug.lua:14: in main chunk
        [C]: in function 'require'
        ...exeymelnichuk.lua-mobdebug-0.0.5\lua\vscode-mobdebug.lua:1: in main chunk
        [C]: in function 'require'
        (command line):1: in main chunk
        [C]: in ?
    Process exit with code: 1 signal: null
    Process on close code: 1 args: null

    Edited by Christb
    Posted (edited)

    Dear @jgab, I have found an error when processing the command:

    luarocks install luasec OPENSSL_DIR=C:\Users\ASUS\scoop\apps\openssl\current OPENSSL_LIBDIR=C:\Users\ASUS\scoop --force

     

    x86_64-w64-mingw32-gcc  -shared -o C:\Users\ASUS\AppData\Local\Temp\luarocks_build-LuaSec-1.3.2-1-6048945\ssl.dll src/options.o src/config.o src/ec.o src/x509.o src/context.o src/ssl.o src/luasocket/buffer.o src/luasocket/io.o src/luasocket/timeout.o src/luasocket/wsocket.o -LC:\Users\ASUS\scoop\app -LC:\Users\ASUS\scoop\apps\openssl\current\bin -llibssl -llibcrypto -lws2_32 C:\Users\ASUS\scoop\apps\lua\current\bin\lua54.dll -lm
    C:/Users/ASUS/scoop/apps/mingw-winlibs/14.2.0-12.0.0-r2/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -llibssl: No such file or directory
    C:/Users/ASUS/scoop/apps/mingw-winlibs/14.2.0-12.0.0-r2/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -llibcrypto: No such file or directory
    collect2.exe: error: ld returned 1 exit status


    Error: Build error: Failed compiling module ssl.dll

     

    Is the problem comming from a wrong path for OPENSSL_LIBDIR?

    Edited by Christb
    Posted
    33 minutes ago, Christb said:

    Dear @jgab, I have found an error when processing the command:

    luarocks install luasec OPENSSL_DIR=C:\Users\ASUS\scoop\apps\openssl\current OPENSSL_LIBDIR=C:\Users\ASUS\scoop --force

     

    x86_64-w64-mingw32-gcc  -shared -o C:\Users\ASUS\AppData\Local\Temp\luarocks_build-LuaSec-1.3.2-1-6048945\ssl.dll src/options.o src/config.o src/ec.o src/x509.o src/context.o src/ssl.o src/luasocket/buffer.o src/luasocket/io.o src/luasocket/timeout.o src/luasocket/wsocket.o -LC:\Users\ASUS\scoop\app -LC:\Users\ASUS\scoop\apps\openssl\current\bin -llibssl -llibcrypto -lws2_32 C:\Users\ASUS\scoop\apps\lua\current\bin\lua54.dll -lm
    C:/Users/ASUS/scoop/apps/mingw-winlibs/14.2.0-12.0.0-r2/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -llibssl: No such file or directory
    C:/Users/ASUS/scoop/apps/mingw-winlibs/14.2.0-12.0.0-r2/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -llibcrypto: No such file or directory
    collect2.exe: error: ld returned 1 exit status


    Error: Build error: Failed compiling module ssl.dll

     

    Is the problem comming from a wrong path for OPENSSL_LIBDIR?

     

    I have just set it up to with help of jgab a few days ago on win 10. 


    I think it is the path to 

    Can you share what the command print in console?

    Please login or register to see this code.


    This is how lua path is for me:

    Please login or register to see this image.

    /monthly_2025_03/image.png.daa52bdefabe9233ce3808903f4577b4.png" />

    and Lua cpath:

    Please login or register to see this attachment.

     

     

     

     

     

     

     

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...