aMule Forum
English => Compilation problems => Topic started by: madking75 on May 07, 2009, 07:17:51 AM
-
Hello,
I compiled wxMac-2.8.10:
./configure --enable-unicode --disable-debug
make
sudo make install
I compiled several other "things" for amule...
Then I start a configure on aMule:
./configure --disable-debug --enable-optimize --enable-wxcas --enable-alc --enable-geoip --with-libupnp-prefix=/usr/local/lib --with-wxdir=/usr/local/lib --with-zlib=/usr/local/lib --with-wx-config=/usr/local/bin
and get this error message:
...
checking for the --with-toolkit option... will be automatically detected
checking for the --with-wxshared option... will be automatically detected
checking for the --with-wxdebug option... will be automatically detected
checking for the --with-wxversion option... will be automatically detected
checking for wx-config... /usr/local/bin
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... no
configure: error:
The requested wxWidgets build couldn't be found.
The configuration you asked for aMule requires a wxWidgets
build with the following settings:
--unicode=yes
but such build is not available.
To see the wxWidgets builds available on this system, please use
'wx-config --list' command. To use the default build, returned by
'wx-config --selected-config', use the options with their 'auto'
default values.
If you still get this error, then check that 'wx-config' is
in path, the directory where wxWidgets libraries are installed
(returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
This is I get with
/usr/local/bin/wx-config --list
Default config is mac-unicode-release-2.8
Default config will be used for output
Alternate matches:
mac-ansi-release-2.8
How can I fix this problem?
I use Mac OS X 10.5.6 with Xcode Tools
-
--with-wxdir is used for non-installed dirs.
-
With:
./configure --disable-debug --enable-optimize --enable-wxcas --enable-alc --enable-geoip
I get:
Configure script has finished system check.
Configured aMule 2.2.4 for 'i686-apple-darwin9.6.0'.
aMule enabled options:
**** aMule Core ****
Prefix where aMule should be installed? /usr/local
Should aMule be compiled with i18n support? yes
Should aMule be compiled in debug mode? no
Should aMule be compiled with profiling? no
Should aMule be compiled with optimizations? yes
Should aMule be compiled with UPnP support? disabled
Should aMule be compiled with IP2country support? yes
Should aMule monolithic application be built? yes
Should aMule daemon version be built? no
Should aMule remote gui be built? (EXPERIMENTAL) no
Crypto++ library/headers style? installed
**** aMule TextClient ****
Should aMule Command Line Client be built? no
**** aMule WebServer ****
Should aMule WebServer be built? no
**** aMule ED2K Links Handler ****
Should aMule ED2K Links Handler be built? yes
**** aMuleLinkCreator ****
Should aMuleLinkCreator GUI version (alc) be built? yes
Should aMuleLinkCreator for console (alcc) be built? no
**** aMule Statistics ****
Should C aMule Statistics (CAS) be built? no
Should aMule GUI Statistics (wxCas) be built? yes
**** General Libraries and Tools ****
Should ccache support be enabled? no
Libraries aMule will use to build:
wxWidgets 2.8.4 (mac,debug,shared)
crypto++ 5.6.0 (installed, in /usr)
libintl system
libGeoIP system
zlib 1.2.3
WARNING! UPnP code has been disabled because libupnp >= 1.6.6 not found (pkg-config not found).
and with
make
I get
ranlib libmuleappcore.a
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -DUSE_WX_EXTENSIONS -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__ -I./libs -I./include -DENABLE_IP2COUNTRY=1 -I/usr/local/include -W -Wall -Wshadow -Wundef -O2 -MT libmuleappgui_a-ChatWnd.o -MD -MP -MF ".deps/libmuleappgui_a-ChatWnd.Tpo" -c -o libmuleappgui_a-ChatWnd.o `test -f 'ChatWnd.cpp' || echo './'`ChatWnd.cpp; \
then mv -f ".deps/libmuleappgui_a-ChatWnd.Tpo" ".deps/libmuleappgui_a-ChatWnd.Po"; else rm -f ".deps/libmuleappgui_a-ChatWnd.Tpo"; exit 1; fi
In file included from ChatWnd.cpp:30:
amule.h:39:30: error: wx/unix/execute.h: No such file or directory
make[3]: *** [libmuleappgui_a-ChatWnd.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
It seems that the build-in wx is not correct, so I would like to use a self-compiled wx.
-
Ahhhhhhh, thanks for your tip:
./configure --disable-debug --enable-optimize --enable-wxcas --enable-alc --enable-geoip --with-libupnp-prefix=/usr/local/lib --with-wx-prefix=/usr/local/bin --with-zlib=/usr/local/lib
Now it works, thank you a lot.