Compiling FileDialog.h error wx/defs.h No such file [SOLVED]

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
Locked
Pilo
Posts: 6
Joined: Tue Oct 14, 2014 2:58 pm
Operating System: Please select

Compiling FileDialog.h error wx/defs.h No such file [SOLVED]

Post by Pilo » Tue Oct 14, 2014 3:38 pm

Debian Version 7.6 (wheezy) 64 bits, Noyau Linux 3.2.0-4-amd64, GNOME 3.4.2
In http://wiki.audacityteam.org/wiki/Compi ... _Beginners
I follow Example compiling the latest Audacity source code
Steps 1 to 4 ok...
5. Download the source code:
svn checkout http://audacity.googlecode.com/svn/audacity-src/trunk/ audacity-read-only
Steps 6 to 9 ok...
10. For Debian Wheezy, configure with:
./configure --disable-dynamic-loading
11. Build the application:
make => Error as summarized under subject, see

Code: Select all

[email protected]:~/audacity-read-only$ make
Making all in help
make[1]: entrant dans le répertoire « /home/pierre/audacity-read-only/help »
make[1]: Rien à faire pour « all ».
make[1]: quittant le répertoire « /home/pierre/audacity-read-only/help »
Making all in images
make[1]: entrant dans le répertoire « /home/pierre/audacity-read-only/images »
make[1]: Rien à faire pour « all ».
make[1]: quittant le répertoire « /home/pierre/audacity-read-only/images »
Making all in lib-src
make[1]: entrant dans le répertoire « /home/pierre/audacity-read-only/lib-src »
Making all in FileDialog
make[2]: entrant dans le répertoire « /home/pierre/audacity-read-only/lib-src/FileDialog »
make  all-am
make[3]: entrant dans le répertoire « /home/pierre/audacity-read-only/lib-src/FileDialog »
/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.  -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12     -g -O2 -MT libFileDialog_la-FileDialog.lo -MD -MP -MF .deps/libFileDialog_la-FileDialog.Tpo -c -o libFileDialog_la-FileDialog.lo `test -f 'FileDialog.cpp' || echo './'`FileDialog.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -MT libFileDialog_la-FileDialog.lo -MD -MP -MF .deps/libFileDialog_la-FileDialog.Tpo -c FileDialog.cpp -o libFileDialog_la-FileDialog.o
In file included from FileDialog.cpp:17:0:
FileDialog.h:20:21: fatal error: wx/defs.h: No such file or directory
compilation terminated.
make[3]: *** [libFileDialog_la-FileDialog.lo] Erreur 1
make[3]: quittant le répertoire « /home/pierre/audacity-read-only/lib-src/FileDialog »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /home/pierre/audacity-read-only/lib-src/FileDialog »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/pierre/audacity-read-only/lib-src »
make: *** [all-recursive] Erreur 1
[email protected]:~/audacity-read-only$ 
How to fix ?
Thanks for your help.

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

Re: Compiling FileDialog.h error wx/defs.h No such file

Post by steve » Tue Oct 14, 2014 7:08 pm

Which version of wxWidgets are you using and how did you install it?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Pilo
Posts: 6
Joined: Tue Oct 14, 2014 2:58 pm
Operating System: Please select

Re: Compiling FileDialog.h error wx/defs.h No such file

Post by Pilo » Tue Oct 14, 2014 8:07 pm

Actually :

Code: Select all

[email protected]:~$ wx-config --version
2.8.12
[email protected]:~$
I did installl wxWidgets during some previous attempt to get Audacity 2.0.5 by following Example long steps in http://wiki.audacityteam.org/wiki/Compi ... _Beginners.
Attempt failed. Furthermore issue was lauching FileZilla idem Audacity leading to error like :

Code: Select all

audacity: relocation error: audacity: symbol _ZN12wxStringBase8InitWithEPKwmm, version WXU_2.8 not defined in file libwx_baseu-2.8.so.0 with link time reference
so I did sudo make uninstall in ~/Téléchargements/wxGTK-2.8.12.
Actually, I would like to get the latest Audacity version running on my Wheezy.

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

Re: Compiling FileDialog.h error wx/defs.h No such file

Post by Gale Andrews » Wed Oct 15, 2014 11:01 am

Probably Audacity is still looking for the locally installed widgets. You could try a more thorough removal of that. Have you tried

Code: Select all

sudo ldconfig
to update the system for the removal?

You can always configure Audacity to point to a specific wxGTK such as

Code: Select all

WX_CONFIG=/usr/local/bin/wx-config ./configure
So you could rebuild your local wxGTK and point to that if you cannot cleanly remove it.

This command:

Code: Select all

make -n install
shows you the steps to install. Reversing those steps should give you a clean uninstallation.


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

Pilo
Posts: 6
Joined: Tue Oct 14, 2014 2:58 pm
Operating System: Please select

Re: Compiling FileDialog.h error wx/defs.h No such file[SOLV

Post by Pilo » Thu Oct 16, 2014 9:58 am

So I could rebuild local wxGTK and point to that, because I could not cleanly remove it.
Here are the last steps leading to success :

Code: Select all

cd ~/Téléchargements/wxGTK-2.8.12
./configure --enable-unicode
make
sudo make install
sudo ldconfig
wx-config --version => 2.8.12
cd ~/audacity-read-only
WX_CONFIG=/usr/local/bin/wx-config ./configure --disable-dynamic-loading
make
./src/audacity
sudo make install
For some who want to read my painful steps, read
Audacity205.txt
(5.73 KiB) Downloaded 104 times
Thanks a lot for your help. Pierre.
[Moderator note: Document is partly in French]
Last edited by Pilo on Fri Apr 24, 2015 4:41 pm, edited 2 times in total.
Reason: Attached document is partly in French

Locked