Compiler Does't find defs.h and zconf.h

Hi,
\windows10/Visual studio 2017/wxWidgets 3.0.3/Audacity 2.3.0…)\
I’m trying to compile Audacity but does’nt find these .h!!!
(in filedialog/libid3tag/Audacity and perhaps others…)
Added paths in include paths but can’t work…
some ideas?
(defs.h and zconf.h)
thanks for answer… JR

You need to follow the instructions more closely:
https://github.com/audacity/audacity/blob/Audacity-2.3.0/win/build.txt

I’d suggest that you:

  1. completely delete your current attempt (uninstall WxWidgets 3.0.3 and then delete the WxWidgets and Audacity source code, and then reboot).
  2. read through the build instructions.
  3. build and install the patched version of WxWidgets 3.1.1
  4. build the “minimal” sample to confirm that WxWidgets 3.1.1 is working correctly
  5. Build Audacity

Hi,
so reinstalled all…
and after correcting some "include files not found…) arrived at the point that
only two sprojects remain faulty: locale and audacity.
Particularly dde.h seems to be enterely faulty…
Here is what i obtained (sorry in French…):


“1>------ Début de la génération : Projet : locale, Configuration : Release Win32 ------
2>------ Génération ignorée : Projet : help, Configuration : Release Win32 ------
2>Projet non sélectionné dans le cadre d’une génération pour cette configuration de solution
3>------ Génération ignorée : Projet : mod-null, Configuration : Release Win32 ------
3>Projet non sélectionné dans le cadre d’une génération pour cette configuration de solution
4>------ Début de la génération : Projet : Audacity, Configuration : Release Win32 ------
5>------ Génération ignorée : Projet : mod-script-pipe, Configuration : Release Win32 ------
5>Projet non sélectionné dans le cadre d’une génération pour cette configuration de solution
6>------ Génération ignorée : Projet : mod-nyq-bench, Configuration : Release Win32 ------
6>Projet non sélectionné dans le cadre d’une génération pour cette configuration de solution
1>Compiling wxWidgets gl_ES to gl locale
1>C:\audacity\win\Projects\locale....\packages\Gettext.Tools.0.19.8.1\tools\bin\msgfmt: Erreur lors de l’ouverture de ½áC:\locale\gl_ES.poá+ en lecture : No such file or directory
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(255,5): error MSB3073: La commande ““C:\audacity\win\Projects\locale....\packages\Gettext.Tools.0.19.8.1\tools\bin\msgfmt” -o “C:\audacity\win\Release\Languages\gl\wxstd.mo” “C:\locale\gl_ES.po”
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(255,5): error MSB3073: :VCEnd” s’est arrêtée avec le code 1.
1>Génération du projet “locale.vcxproj” terminée – ÉCHEC.
4>AudacityHeaders.cpp
4>c:\wxwidgets\include\wx\msw\dde.h(93): error C2143: erreur de syntaxe : absence de ‘;’ avant ‘&’
4>c:\wxwidgets\include\wx\msw\dde.h(93): error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut
4>c:\wxwidgets\include\wx\msw\dde.h(94): error C2334: jetons inattendus avant ‘{’ ; corps apparent de la fonction ignoré
4>c:\wxwidgets\include\wx\msw\dde.h(99): error C3646: ‘m_connections’ : spécificateur de substitution inconnu
4>c:\wxwidgets\include\wx\msw\dde.h(99): error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut
4>c:\wxwidgets\include\wx\msw\dde.h(124): error C2143: erreur de syntaxe : absence de ‘;’ avant ‘&’
4>c:\wxwidgets\include\wx\msw\dde.h(124): error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut
4>c:\wxwidgets\include\wx\msw\dde.h(125): error C2334: jetons inattendus avant ‘{’ ; corps apparent de la fonction ignoré
4>c:\wxwidgets\include\wx\msw\dde.h(129): error C3646: ‘m_connections’ : spécificateur de substitution inconnu
4>c:\wxwidgets\include\wx\msw\dde.h(129): error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut
4>Génération du projet “Audacity.vcxproj” terminée – ÉCHEC.
========== Génération : 0 a réussi, 2 a échoué, 21 mis à jour, 4 a été ignoré ==========”

Did you do this:

Yes… All the wxWidgets solutions work OK (for exemple minimal.vcxproj & minimal_vc15.sln 0K & all the demos too )…
Another thing, I tried too to compile (with Visual Studio 2017) Audacity 2.2.2… Only the DEBUG version is offered (seems to have been compiled with Visual Studio 2013) and not the “release” one. Does’nt work at all with my VS 2017!! :frowning:
but i wonder if it’s possible to find “complete” sources somewhere;) ?

The full source code for Audacity 2.3.0 is here: https://github.com/audacity/audacity/releases

Followed this link, downloaded & install audacity 2.3.0 and all the same errors!!! did anybody succeed with V.Studio2017?
_____________always the same 5 fatal errors
Erreur C1083 Impossible d’ouvrir le fichier include : ‘zlib.h’ : No such file or directory libid3tag c:\audacity-audacity-2.3.0\lib-src\libid3tag\util.c 29

Gravité Code Description Projet Fichier Ligne État de la suppression
Erreur C1083 Impossible d’ouvrir le fichier include : ‘wx/defs.h’ : No such file or directory filedialog c:\audacity-audacity-2.3.0\lib-src\filedialog\filedialog.h 20


Gravité Code Description Projet Fichier Ligne État de la suppression
Erreur C1083 Impossible d’ouvrir le fichier include : ‘wx/wxprec.h’ : No such file or directory filedialog c:\audacity-audacity-2.3.0\lib-src\filedialog\win\filedialogprivate.cpp 23


Gravité Code Description Projet Fichier Ligne État de la suppression
Erreur MSB3073 La commande ““C:\audacity-Audacity-2.3.0\win\Projects\locale....\packages\Gettext.Tools.0.19.8.1\tools\bin\msgfmt” -o “C:\audacity-Audacity-2.3.0\win\Release\Languages\gl\wxstd.mo” “C:\locale\gl_ES.po”
:VCEnd” s’est arrêtée avec le code 1. locale C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 255


Gravité Code Description Projet Fichier Ligne État de la suppression
Erreur C1083 Impossible d’ouvrir le fichier include : ‘wx/wx.h’ : No such file or directory Audacity c:\audacity-audacity-2.3.0\src\audacityheaders.h 32

Sure. I’ve built with Microsoft Visual Studio 2017 Community Edition, and all of the Audacity developers do.
The biggest problem that I had was getting the environment variable to stick, but once that was done it was just a matter of following the instructions.

Someone posted their steps here: Building 2.3 on Windows - #11 by Apesbrain
Also, read the posts after that one - a couple of points are clarified.

that’s right, that’s strange, sometimes the variable environnement (WXWIN) sometimes seems not to be
read… (???). Corrected the thing displacing/copying/changing arborescence and could eliminate 3 errors…
Remained only locale fault and one in audacity …

Continuing investigations!!!


mainly this one:
error MSB3073: La commande "“C:\audacity\win\Projects\locale....\packages\Gettext.Tools.0.19.8.1\tools\bin\msgfmt” -o “C:\audacity\win\Release\Languages\gl\wxstd.mo” "C:\locale\gl_ES.po


Gettext and msgfmt might need to be obtained separately. Also, they might need to be in a folder which is in your command path. Open a terminal and type:

path



Microsoft Windows [Version 10.0.17134.165]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Windows\SysWOW64>path
PATH=C:\Windows\SysWOW64;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\Kensington\TrackballWorks;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\dotnet;C:\Program Files\Zip3.0;C:\Program Files\Unzip6.0;C:\Program Files\GnuWin32\bin;D:\Python26;C:\Program Files\Git\cmd;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\Edgar\AppData\Local\Microsoft\WindowsApps

C:\Windows\SysWOW64>

to see which folders are currently in your path.

Hi, so… installed VC 8… and
re-compiled Audacity 2.3.0 targetting VC8… and now arrived at the following LINK error:


25> Création de la bibliothèque C:\audacity-Audacity-2.3.0\win\Release\Audacity.lib et de l’objet C:\audacity-Audacity-2.3.0\win\Release\Audacity.exp
25>AboutDialog.obj : error LNK2001: symbole externe non résolu “__declspec(dllimport) public: __thiscall wxString::wxString(class wxString const &)” (_imp??0wxString@@QAE@ABV0@@Z)

etc,etc,etc…


and, more of that, this is the result of my “path” command:


jack>path
PATH=C:\ActiveTcl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files (x86)\GitExtensions;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Users\jack\AppData\Local\Microsoft\WindowsApps;


what’s the hell! some new things??? some ideas? thanks!!!

targetted the project on VS 2008
now new errors with the linker:


25> Création de la bibliothèque C:\audacity-Audacity-2.3.0\win\Release\Audacity.lib et de l’objet C:\audacity-Audacity-2.3.0\win\Release\Audacity.exp
25>AboutDialog.obj : error LNK2001: symbole externe non résolu “__declspec(dllimport) public: __thiscall wxString::wxString(class wxString const &)” (_imp??0wxString@@QAE@ABV0@@Z)


and my path is:
PATH=C:\ActiveTcl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files (x86)\GitExtensions;C:\Program Files\Micro
soft SQL Server\130\Tools\Binn;C:\Users\jack\AppData\Local\Microsoft\WindowsApps;


some idea please!!! :wink:

I don’t understand why you think that VS2008 will work better than 2017, when the instructions clearly say to use 2017 :confused:

VC8 was only a try but I get the same fault with VC2017…
seems a lib not find??
AboutDialog.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __th etc…

Renewed configuration using V3.0.2 … All is OK considering WXwidgets various compilations but error while compiling Audacity which want absolutely to use" include : '…/…/…/lib/vc_dll/mswu/wx/setup.h" and this /vc_dll/etc… does’nt exist??? even launching any dll & release build, no creation of this lib/vc_dll/etc…!!! grrrrr!!!
some more help???

Strange VC2017!!!
so doing the wxwidgets dll-release manually ( nmake /f makefile.vc BUILD=release SHARED=1), the dll are correctly created in the vc_dll tree…
all the widgets are OK, demo and so on…
Now i have Audacity with the following linker fault :


1>------ Début de la génération : Projet : Audacity, Configuration : Release Win32 ------
1> Création de la bibliothèque C:\audacity-Audacity-2.3.0\win\Release\Audacity.lib et de l’objet C:\audacity-Audacity-2.3.0\win\Release\Audacity.exp
1>AboutDialog.obj : error LNK2001: symbole externe non résolu “__declspec(dllimport) public: __thiscall wxString::wxString(class wxString const &)” (_imp??0wxString@@QAE@ABV0@@Z)


Any idea? thanks all…

Ok, a good night, some additions on external link/ reboot… and success compiling audacity debug mode and debug+dll mode!!!
Ouf
BNut it seems that VC2017 has some unpredictable behaviour???


thanks all of you!!!
Now trying to compile with steinberg I/O!!!

And now, ASIO4All is working fine with my recompiled Audacity!!! Ouf!!!
ANd it’s really better on a latency point of view!!!