Trouble compiling Audacity on Windows 10 MSVS2019

Aditya Ganti <[email protected]>
Newsgroups gmane.comp.audio.audacity.devel
Message-ID <CAGenEHVqzj+-ez961MDM-FtASr_ex5gpLhjSbKqYnEpXudkfTQ@mail.gmail.com>
I have linked the forum question here :
https://forum.audacityteam.org/viewtopic.php?f=46&t=116591&sid=3ac636de6b35ae9b3ba2dbef98c8a6cb

I am trying to build Audacity as per the instructions in
https://wiki.audacityteam.org/wiki/Building_On_Windows
I have successfully built wxWidgets, and have added WXWIN to the
environment. WXWIN points to the source (git repo).
setup0.h and setup.h are both present in the directory under
\include\wx\msw\
$WXWIN = 'D:\Git_Projects\GSOC\audacity_wxWidgets\wxWidgets'

I am constantly getting stuck at the same point as in the attached photo.
Using CMake-GUI, it says it cannot find wxWidgets (missing:
wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS .....)

I have built wxWidgets using CMake-GUI, with Visual Studio 2019 as the
generator.
I have mingw, msys also installed. Kindly help.
[image: image.png]

--------------------------------------------------------------------
Here are the exact steps I followed :

1.  Downloaded and installed MSVS 2019 Community Edition with C++ Desktop
Development workload (includes MSVC x64/86 build tools, Win10 SDK, C++
CMake tools for Windows).

2. Git was already installed.

3. Python3 was also pre-installed.

4. Cloned wxWidgets using '*git clone --recurse-submodules
https://github.com/audacity/wxWidgets/
<https://github.com/audacity/wxWidgets/>*'

5. Changed directory to *build\msw* and then ran the following commands

mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release clean

mingw32-make -f makefile.gcc

6. Set WXWIN environment path to the folder I had cloned the repo into.

7. Open *wx_vc16.sln* with VS2019, select DLL Release and build. Success
with 24 packages.

8. To test whether it's working, I created a new empty C++ project. Added
property sheet *\wxwidgets.props *added source file, copied code from
*minimal.cpp* and built. It worked, and on Run, the sample window appeared
for wxWidgets sample.

9. Cloned Audacity as *git clone https://github.com/audacity/audacity/
<https://github.com/audacity/audacity/>*

10. Opened CMake GUI, click configure. This is when the above problem
arises. I have tried different wxWidget build processes, including
CMake-GUI, downloading pre-built binaries, but I always get stuck at the
same step.


Help will be appreciated. Thank You.
-- 
Aditya Ganti

_______________________________________________
audacity-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-devel
image.png (image/png, 71 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.