Topic: Debug binary compiled in MSYS2 can't read datadir
palino Topic Opener |
Posted at: 2022-12-20, 01:35
Hello I am trying to build WL on Windows 10 without visual studio, but debug builds are somehow damaged. I use this procedure: Buildingwidelandsunderwindowsnew. Step with cmake:
When running compiled binary, std output is
or when specifying --datadir option manually:
If I run binary downloaded from github - Windows 64-bit Debug (MinGW), it starts up correctly. I've tried latest HEAD and 1.1 version, results the same. If I try -DCMAKE_BUILD_TYPE=Release, on one PC there are datadir problems, on second PC (Windows 7) it starts up correctly. Do you have idea what is wrong in build procedure? Pavol Top Quote |
hessenfarmer |
Posted at: 2022-12-20, 09:12
I think the build procedure is fine. The problem is the missing datadir, I believe. You need to specify the path to the data directory used in the build. you can try to move/copy the resulting exe in the folder above this data directory as well. Personally I usually compile the ninary in a seperate folder different from the source. Afterwars I specify a link on the desktop with the --datadir option pointing to the data dir in the repo of the source. you need to be careful with slash and backslash in path specificatiuons on windows. if you still encounter problems please tell: the folder of the src and the path used in the datadir option Top Quote |
palino Topic Opener |
Posted at: 2022-12-20, 17:04
Thank you for pointing me out; I realised there is consistency check between binary version and datadir version. I made installation with installer from github first and afterwards I wanted to copy updated exe in the folder above data directory, like you suggested. But then I was confused from log messages. These changes work for me well now:
Top Quote |