"Setup.h" not found

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
Edgar
Forum Crew
Posts: 2043
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: "Setup.h" not found

Post by Edgar » Wed Dec 07, 2011 7:19 am

steve wrote:I got this far this time.

Code: Select all

------ Build started: Project: mod-script-pipe, Configuration: Unicode Release Win32 ------
Linking...
LINK : fatal error LNK1181: cannot open input file 'wxmsw28u_core.lib'
Build log was saved at "file://c:Documents and SettingsSteveMy DocumentsaudacitywinProjectsmod-script-pipeUnicode ReleaseBuildLog.htm"
mod-script-pipe - 1 error(s), 0 warning(s)

------ Build started: Project: Audacity, Configuration: Unicode Release Win32 ------
Linking...
LINK : fatal error LNK1181: cannot open input file 'wxbase28u.lib'
Build log was saved at "file://c:Documents and SettingsSteveMy DocumentsaudacitywinProjectsAudacityUnicode ReleaseBuildLog.htm"
Audacity - 1 error(s), 0 warning(s)
This is telling you that for some reason Audacity is not finding the .lib files in WXWINlibvc_lib that it wants. Here is a directory listing of my folder (just *.lib):
D:audiowxWidgetswxWidgets-2.8.12libvc_lib

Code: Select all

wxbase28.lib
wxbase28d.lib
wxbase28d_net.lib
wxbase28d_odbc.lib
wxbase28d_xml.lib
wxbase28u.lib
wxbase28ud.lib
wxbase28ud_net.lib
wxbase28ud_odbc.lib
wxbase28ud_xml.lib
wxbase28u_net.lib
wxbase28u_odbc.lib
wxbase28u_xml.lib
wxbase28_net.lib
wxbase28_odbc.lib
wxbase28_xml.lib
wxexpat.lib
wxexpatd.lib
wxjpeg.lib
wxjpegd.lib
wxmsw28d_adv.lib
wxmsw28d_aui.lib
wxmsw28d_core.lib
wxmsw28d_dbgrid.lib
wxmsw28d_gl.lib
wxmsw28d_html.lib
wxmsw28d_media.lib
wxmsw28d_qa.lib
wxmsw28d_richtext.lib
wxmsw28d_xrc.lib
wxmsw28ud_adv.lib
wxmsw28ud_aui.lib
wxmsw28ud_core.lib
wxmsw28ud_dbgrid.lib
wxmsw28ud_gl.lib
wxmsw28ud_html.lib
wxmsw28ud_media.lib
wxmsw28ud_qa.lib
wxmsw28ud_richtext.lib
wxmsw28ud_xrc.lib
wxmsw28u_adv.lib
wxmsw28u_aui.lib
wxmsw28u_core.lib
wxmsw28u_dbgrid.lib
wxmsw28u_gl.lib
wxmsw28u_html.lib
wxmsw28u_media.lib
wxmsw28u_qa.lib
wxmsw28u_richtext.lib
wxmsw28u_xrc.lib
wxmsw28_adv.lib
wxmsw28_aui.lib
wxmsw28_core.lib
wxmsw28_dbgrid.lib
wxmsw28_gl.lib
wxmsw28_html.lib
wxmsw28_media.lib
wxmsw28_qa.lib
wxmsw28_richtext.lib
wxmsw28_xrc.lib
wxpng.lib
wxpngd.lib
wxregex.lib
wxregexd.lib
wxregexu.lib
wxregexud.lib
wxtiff.lib
wxtiffd.lib
wxzlib.lib
wxzlibd.lib
There are 70 there, if you don't have all 70, something is wrong. If you have all the same .lib files in that folder then there is something wrong with your environmental variable--post a picture which looks (something) like:
envVar.png
envVar.png (14.52 KiB) Viewed 7684 times
so I may see the value of WXWIN.
-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

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

Re: "Setup.h" not found

Post by steve » Wed Dec 07, 2011 11:19 pm

Progress is a bit slow at the moment as I've got a lot on at work, but I'll hopefully have a bit more time after the weekend. Anyway, here's the screen shot:

WxWidhgets is installed at C:wxWidgets-2.8.12
environment-variables.png
environment-variables.png (7.74 KiB) Viewed 7679 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: "Setup.h" not found

Post by Edgar » Mon Dec 12, 2011 10:15 pm

After some help from the kind folks at wxWidgets I now have a much better understanding of why "setup.h not found". The reason is a bit messy if you are just trying to get things working and the solution is a bit detailed. The problem is that wx/setup.h does not refer to WXWIN/include/wx/setup.h; it refers to WXWIN/lib/vc_dll/msw*/wx/setup.h (where msw* would be msw, mswd, mswu or mswud depending on the configuration you are building--Release, Debug, Unicode Release or Unicode Debug). The problem is that WXWIN/lib/vc_dll/msw*/ is not one of the additional dependencies for the various Audacity Projects.

Here is the solution:
1) Start the Audacity VC++ solution, set the configuration you wish to build (you will need to do this for all configurations you wish to build) and open the Properties Page for the Audacity solution.
2) Under Configuration Properties choose C/C++ then its Additional Include Directories.
3) Look for $(WXWIN)libvc_dllmsw (for Release), $(WXWIN)libvc_dllmswd (for Debug), $(WXWIN)libvc_dllmswu (for Unicode Release), or $(WXWIN)libvc_dllmswud (for Unicode Debug)--if it is not there you will need to add it.
setupNOTfound.png
setupNOTfound.png (129.03 KiB) Viewed 7660 times
You will need to do this for every project in the Audacity solution which uses wxWidgets. I have no idea why some folks have no problem with this and others do--generally those additional includes are upgraded correctly to VC++ 2008 but rarely it does fail.
-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

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: "Setup.h" not found

Post by Gale Andrews » Mon Jan 16, 2012 3:06 am

Hi Edgar,

Is this reason for "Setup.h" not found worth adding to "Setup.h not found" on Developing on WIndows ? I think we may as well from what you say (just a link to this message).

A link to http://wiki.wxwidgets.org/Troubleshooti ... crosoft_VC has been added to "Developing on Windows". Is that widgets page useful? It doesn't seem to be regularly maintained.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: "Setup.h" not found

Post by Edgar » Mon Jan 16, 2012 4:34 am

Gale Andrews wrote: Is this reason for "Setup.h" not found worth adding to "Setup.h not found" on Developing on WIndows ? I think we may as well from what you say (just a link to this message).
It surely will not hurt. We might even point folks to the wx FAQ (on which missing setup.h is the #1 topic):
http://forums.wxwidgets.org/viewtopic.php?f=19&t=255
Gale Andrews wrote: A link to http://wiki.wxwidgets.org/Troubleshooti ... crosoft_VC has been added to "Developing on Windows". Is that widgets page useful? It doesn't seem to be regularly maintained.
While not updated in a long time, it is still better than nothing. Maybe we should link to the wxWidgets' forum's compiler board:
http://forums.wxwidgets.org/viewforum.php?f=19 (maybe in that green "Other problems?" div).

Of course, the wx-dev list serve is the best place to get help--the wx developers are amazingly helpful and patient with newbies! You may sign up via:
http://www.wxwidgets.org/support/maillst2.htm
-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

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: "Setup.h" not found

Post by Gale Andrews » Thu Jan 19, 2012 3:50 am

Thanks, Edgar. I added most of those links and tidied the page a bit.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: "Setup.h" not found

Post by Edgar » Wed Feb 29, 2012 2:26 am

http://www.hometownband.org/Audacity/Co ... upNOTfound
I moved the main page into a sub-folder for ease of maintenance.
-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