2 Errors compiling Audacity

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
Post Reply
GraceBT
Posts: 14
Joined: Mon Jul 09, 2012 3:54 am
Operating System: Please select

2 Errors compiling Audacity

Post by GraceBT » Mon Jul 09, 2012 8:31 am

Hello.

I am just trying to build Audacity for the first time since 2.01
was released. I am using the build from "Developing On Windows"
(http://wiki.audacityteam.org/wiki/Developing_On_Windows).
I have 2 errors while compiling audacity. Each error is looking for
a missing file. The files are wxbase28ud.lib and wxmsw28ud_core.lib.
I suspect that this may be something to do with my "Unicode Debug
configuration". Can someone please tell me how and where this should
be set appropriately. If I am on the wrong track, can someone please
let me know what I may be doing wrong. I am using VS 2008 and my
compile of wxWidgits looked successful. Thank You in advance for any
help that you may have to offer.

Regards
73
-Grace
NNNN
z

ragnar.jensen
Posts: 118
Joined: Thu Jan 26, 2012 7:39 pm
Operating System: Please select

Re: 2 Errors compiling Audacity

Post by ragnar.jensen » Mon Jul 09, 2012 4:49 pm

First thing that comes to mind;

Have you set the WXWIN environment variable?

--
Ragnar

GraceBT
Posts: 14
Joined: Mon Jul 09, 2012 3:54 am
Operating System: Please select

Re: 2 Errors compiling Audacity

Post by GraceBT » Mon Jul 09, 2012 5:02 pm

Yes:

WXWIN=C:wxWidgets-2.8.12

In the Windows 7 enviromnetal Variables.

Should it be in User Variables instead?

73
-Grace
NNNN
z

GraceBT
Posts: 14
Joined: Mon Jul 09, 2012 3:54 am
Operating System: Please select

Re: 2 Errors compiling Audacity

Post by GraceBT » Mon Jul 09, 2012 6:46 pm

I am still getting the 2 errors. For example:
LINK : fatal error LNK1104: cannot open file 'wxbase28ud.lib'

I have checked and in the environmental variables I have

WXWIN=C:wxWidgets-2.8.12

In both User variables and System Variables.

So I am still wondering why I am missing files. Search of my
system does not find wxbase28ud.lib anywhere.

Thanks again.

73
-Grace
NNNN
z

ragnar.jensen
Posts: 118
Joined: Thu Jan 26, 2012 7:39 pm
Operating System: Please select

Re: 2 Errors compiling Audacity

Post by ragnar.jensen » Mon Jul 09, 2012 7:49 pm

It doesn't matter if the WXWIN environment variable is in User or System variables as long as it is there.
On my Windows 7 system it is in User variables.

Quick way to check that it is really pointing to the correct place:
  • Start button
    In the "Search programs and files" input field, type %WXWIN% and press Enter.
An Explorer window should open with the C:wxWidgets-2.8.12 directory selected.

If you have successfully built the Wxwidgets DLL Unicode Debug configuration, you should find wxbase28ud.lib in C:wxWidgets-2.8.12libvc_dll
wxbsas28ud_lib.png
Wxwidgets libraries location
wxbsas28ud_lib.png (67.94 KiB) Viewed 6440 times
In VisualC++, make sure that the location for Wxwidgets libraries is configured. Press Alt+F7 to open the project properties, expand "Configuration properties" -> "Linker" -> "General"
VCproperties.png
VC project properties library directories
VCproperties.png (30.96 KiB) Viewed 6440 times
The "$(WXWIN)libvc_dll" after the semicolon is what makes VC++ look for libraries in C:wxWidgets-2.8.12libvc_dll

--
Ragnar

GraceBT
Posts: 14
Joined: Mon Jul 09, 2012 3:54 am
Operating System: Please select

Re: 2 Errors compiling Audacity

Post by GraceBT » Mon Jul 09, 2012 10:29 pm

Rangnar-Jensen, Thank You So much for Your detailed help. the inclusions are
very helpful.

Okay, I have just re-compiled wxWidgets by going to the C:wxWidgets-2.8.12buildmsw
folder and opening wx_dll.dsw with Visual Studio 2008. After the compile completes I
look for the folder wxWidgets-2.8.12libvc_dll and I find it does not exist there.
I did not see any erros in the compile for WxWiddgets but I will look again more
carefully. Also, am I going about starting this compile correctly? I see that there are
someother .dsw files (wx.dsw for example). Also I noticed that I had to respond
several times to a message box thatb said there was a previous compile using this
configuration and asking if I wanted to use this one (yes or no). I answered yes
each time. I would feel better clearing this out entirely so that this prompting did
not occur. Any Thoughts?

Thank You again for Your help.

73
-Grace
NNNN
z

cmjone
Posts: 96
Joined: Fri Jul 06, 2012 12:00 am
Operating System: Windows 10

Re: 2 Errors compiling Audacity

Post by cmjone » Tue Jul 10, 2012 12:56 am

I just finished compiling Audacity successfully in Windows 7. Please review this link if you still have problem. http://www.hometownband.org/Audacity/Co ... acity.html.

GraceBT
Posts: 14
Joined: Mon Jul 09, 2012 3:54 am
Operating System: Please select

Re: 2 Errors compiling Audacity

Post by GraceBT » Sun Jul 15, 2012 6:23 pm

cmjone,

Thank You for your "Compiling Audacity" instructions. This has been more
helpful than anything else I have seen. I am at the point now where I am
creating the 3 folders (wxLibs with Unicode Release and Unicode Debug). I
find thatI am still missing one file: wxmsw28ud_core_vc_custom.dll

I am including (uploading) a snap of part of the BuildLog.htm file where the
error seems to occur during the compile.

Can You offer any help with this?

Thank You again for Your great instruction in "Compiling Audacity".
I appreciate Your help.

73
-Grace
NNNN
z
Attachments
MW02527_32.jpg
This is a JPG snapshot of the errors in the BuildLog.htm file generated by the
Compilation. -gbt
MW02527_32.jpg (93.53 KiB) Viewed 6371 times

GraceBT
Posts: 14
Joined: Mon Jul 09, 2012 3:54 am
Operating System: Please select

Re: 2 Errors compiling Audacity

Post by GraceBT » Mon Jul 16, 2012 2:25 am

OOps,

I found my problem generating the file:
wxmsw28ud_core_vc_custom.dll. It looks like in my batch build
I mistakenly turned on some of the "Universal" selections.
When I re-built after making this correction, the file was
generated.

Thank You again for all of the help.

73
-Grace
NNNN
z

GraceBT
Posts: 14
Joined: Mon Jul 09, 2012 3:54 am
Operating System: Please select

Re: 2 Errors compiling Audacity

Post by GraceBT » Tue Jul 17, 2012 3:48 am

I am still having some problem. I get a message when I try to execute the
Unicode Debug .exe file created by the compile (attached). I am still trying
now for the second year to successfully build Audacity. I keep getting closer
but my frustration level remains high. Any Help would be very appreciated!

73
-Grace
NNNN
z
Attachments
MW04253_41.jpg
"Successful compile - attempt to run debugger.
MW04253_41.jpg (87.67 KiB) Viewed 6337 times

Post Reply