How can I add the wxwidgets library to my Windows exrm build?  Currently, when I run my exrm-built application on Windows or try to use :wx.new(), I receive a message:
** (UndefinedFunctionError) function
:wx.new/0is undefined (module:wxis not available)
                        
I managed to solve my problem by adding a
relx.configfile to thereldirectory in my project. Getting the syntax right was a little challenging, but I noticed thatmix releasecreated a temporaryrel\.filesdirectory while it was running. In that directory is a generated version ofrelx.configthat you can use for reference. Since the mix task takes a while to run, there is time to open that file and peek at its contents.With an app named
foo, the contents of therelx.configfile was just one line:The only part I added was the ",wx".
I ran
mix release --prodonce again and then extracted therel\foo\releases\0.0.1\foo.tar.gzfile into a test directory. From that test directory,.\bin\foo consoleran my application with all the GUI working as expected.