Visual Studio libpng16d.dll Error

  • bessieTheBoy
    2nd Dec 2023 Member 0 Permalink

    I tried to build/run with visual studio and I get this error in a popup window:

    "The code execution cannot proceed because libpng16d.dll was not found. Reinstalling the program may fix this problem."

  • jacob1
    3rd Dec 2023 Developer 0 Permalink
    You created a debug build, you can run that one from visual studio itself. If you need the dlls, they are in the subprojects/ folder, inside bin/.

    You may also want to create a release build, which is covered in the guide here. That one doesn't need any dlls to run.
  • bessieTheBoy
    3rd Dec 2023 Member 0 Permalink

    @jacob1 (View Post)

     I would prefer to do a release build but I do not see any instructions if I still want to do visual studio and when I try to do the command on the guide I get a error which says:

    usage: meson [-h]
    {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,help}
    ...
    meson: error: unrecognized arguments: build-release-static

     

    *This is the exact command im using*
    meson setup -Dbuildtype=release -Dstatic=prebuilt -Dcpp_link_args=['-static','-static-libgcc','-static-libstdc++'] build-release-static

    Edited once by bessieTheBoy. Last: 3rd Dec 2023