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

Building and customizing Audacity from the source code.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
jack2018
Posts: 11
Joined: Sat Nov 03, 2018 9:29 am
Operating System: Windows 10

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

Post by jack2018 » Sat Nov 03, 2018 9:39 am

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

steve
Site Admin
Posts: 49059
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

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

Post by steve » Sat Nov 03, 2018 9:52 am

You need to follow the instructions more closely:
https://github.com/audacity/audacity/bl ... /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
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jack2018
Posts: 11
Joined: Sat Nov 03, 2018 9:29 am
Operating System: Windows 10

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

Post by jack2018 » Sun Nov 11, 2018 9:03 am

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é =========="

steve
Site Admin
Posts: 49059
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

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

Post by steve » Sun Nov 11, 2018 5:37 pm

Did you do this:
steve wrote:
Sat Nov 03, 2018 9:52 am
4) build the "minimal" sample to confirm that WxWidgets 3.1.1 is working correctly
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jack2018
Posts: 11
Joined: Sat Nov 03, 2018 9:29 am
Operating System: Windows 10

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

Post by jack2018 » Sun Nov 11, 2018 8:14 pm

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!! :(
but i wonder if it's possible to find "complete" sources somewhere;) ?

steve
Site Admin
Posts: 49059
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

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

Post by steve » Sun Nov 11, 2018 8:35 pm

The full source code for Audacity 2.3.0 is here: https://github.com/audacity/audacity/releases
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jack2018
Posts: 11
Joined: Sat Nov 03, 2018 9:29 am
Operating System: Windows 10

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

Post by jack2018 » Sun Nov 11, 2018 10:06 pm

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

steve
Site Admin
Posts: 49059
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

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

Post by steve » Sun Nov 11, 2018 10:38 pm

jack2018 wrote:
Sun Nov 11, 2018 10:06 pm
did anybody succeed with V.Studio2017?
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: viewtopic.php?p=356336#p356336
Also, read the posts after that one - a couple of points are clarified.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jack2018
Posts: 11
Joined: Sat Nov 03, 2018 9:29 am
Operating System: Windows 10

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

Post by jack2018 » Mon Nov 12, 2018 8:57 am

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
______________________________

Edgar
Forum Crew
Posts: 1520
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 7

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

Post by Edgar » Mon Nov 12, 2018 4:31 pm

jack2018 wrote:
Mon Nov 12, 2018 8:57 am
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:

Code: Select all

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.
-Edgar
running Audacity personally customized 2.0.6 daily in a professional audio studio
occasionally using current Audacity alpha for testing and support situations
64-bit Windows Pro 10

Post Reply