aMule Forum
English => Compilation problems => Topic started by: Ezeltje on March 23, 2006, 01:18:13 AM
-
I installed FC5 today, and I need to reinstall amule. I am getting this error I haven't seen before:
checking that wxWidgets has support for large files... no
configure: error:
Support for large files in wxWidgets is required by aMule.
To continue you must recompile wxWidgets with support for
large files enabled.
$ rpm -q wxGTK
wxGTK-2.6.2-5.fc5
Thanks.
-
Please post the file "config.log" from the build directory as attachment. Use gzip if necessary - I need the complete file.
I know that this package *has* large file support enabled, therefore I'd like to investigate why the test fails.
-
Probably he doens't have wx-config
-
Yes, exactly that line is cut off. But wasn't that check recently changed to suppress the large file support error message if wx-config was missing? Or was that on HEAD only?
Anyway, wx-config is in the matching -devel package
-
Not sure not sure. I did that change, can't recall if I backported.
-
The change is not in the 2.1.1 tarball.
Backport (just in case there will be a 2.1.2 release):
--- configure.in
+++ configure.in
@@ -223,7 +223,17 @@
# Check for wx
AM_OPTIONS_WXCONFIG
-AM_PATH_WXCONFIG(2.6.0)
+AM_PATH_WXCONFIG(2.6.0, wxWin=1)
+if test "$wxWin" != 1; then
+ AC_MSG_ERROR([
+ wxWidgets must be installed on your system but wx-config
+ script couldn't be found. Please check that wx-config is
+ in path or specified by --with-wx-config=path flag, the
+ directory where wxWidgets libraries are installed (returned
+ by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
+ equivalent variable and wxWidgets version is 2.6.0 or above.
+ ])
+fi
AM_WXCONFIG_LARGEFILE
GET_WX_VERSION
-
gonna be on 2.1.2 this weekend then.
-
I installed the -devel package of wxGTK, but that didn't seem to install wx-config, but I found it in the source directory and added it to my path:
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.6.0... no
checking that wxWidgets has support for large files... no
configure: error:
Support for large files in wxWidgets is required by aMule.
To continue you must recompile wxWidgets with support for
large files enabled.
Anyone have a workaround or should I just wait until 2.1.2?
Gerd78: you still want the 'config.log'?
-
Yes, please.
And why is your wx-config in /usr/local/bin? I doubt that it's the matching -devel package!
Is /usr/local/lib in /etc/ld.so.conf? If not, add it there, run /sbin/ldconfig as root and try again.
If it's still not working afterwards, please attach "config.log".
-
Got it working, thanks.
-
[root@localhost aMule-2.1.1]# ./configure && make
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... bison -y
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for zlib >= 1.1.4... yes (version 1.1.4)
checking whether we need the GUI... yes
checking for wx-config... no
checking that wxWidgets has support for large files... no
configure: error:
Support for large files in wxWidgets is required by aMule.
To continue you must recompile wxWidgets with support for
large files enabled.
HELP !!!!!
-
Compile wxWidgets first, then aMule.
-
dah.. that's what i did
-
i removed the large file check
and ir fails in "make" :
no matching function for call to `CMD4Hash::GetHash() const'
-
The different between a 16 yrs old guy's software and a professional software is that kind of things.
If so many people have to "fight" with installing the program that's say that IT IS NOT PROFESSIONAL.
No matter why, maybe the documentation is low-level, or i don't know..
sorry,
this is not what i thought it'll be.
-
That was funny.
If you don't know how to install wxWidgets, don't blame us. I guess you're the 16-y-old guy here, and we're the proffessional software developers.
Sorry, but if you're not up to the challenge of learning to compile an app, you can go with precompiled packages, or go back to Windows XP.
Let me tell you this: aMule is NOT FINDING YOUR WXWIDGETS INSTALLATION BECAUSE YOU DON'T KNOW HOW TO INSTALL WXWIDGETS.
Had you followed any of the tutorials people contributed to teach people that doesn't know, like you, you would be using aMule. Now, seeing your attitude, I don't think the comunity loses much if you don't use it.
You got a warning for insulting the developers.
-
Originally posted by digoren
i removed the large file check
Why did you do that? It should not be necessary!
Originally posted by digoren
If so many people have to "fight" with installing the program that's say that IT IS NOT PROFESSIONAL.
Well, you could try to be more professional by giving more information, including the *exact* error message you get.
But I have an idea where your problem might come from. Could you please check your GLIBC version? If it's older than 2.1, you cannot use aMule. aMule depends on features from GLIBC 2.1 or higher. Large File Support is simply not present in earlier versions, and aMule needs it.
@Kry: I think he already installed wxWidgets and the Large File Support check still failed because he's using such an old distro whose GLIBC has no Large File Support.
-
No, check his configure log.
checking for wx-config... no
-
I never say "I know how to install wx", but that's exactly the point !!
all your answers are like that : "ok, so just install the wx" or "use gtkX" or any not-understadable answer.
You said it and you were right - I DON'T KNOW HOW TO INSTALL THE wxWidget
but insted of giving us, the dummies, good step-by-step answers, you just send us to look for it.
I'm a programer for many years (yeah yeah under windows), and i think i'm not bad in it, and that is why i'm so upset.
maybe i was too rude and i apologize for that, but man, let us understand what you want from us.. so many people here are dying to use it but they can't.
don't be a linux-smart - be proffessional. I never said you are bad programmers, after all - you built that aMule, i said (and again, i know i was too rude - i was too upset) :
explain you answer, including links.
step-by-step answer is not easy to write - but you must do it so we can understand you.
anyway, it's all the same in linux-forums, maybe i'm the stupid one.
don't really know.
-
Could you post the output of:
ls -l /usr/local/bin/wx*
and
ls -l /usr/bin/wx*
Cheers....
-
Originally posted by Kry
No, check his configure log.
checking for wx-config... no
Indeed. Sorry.
@digoren:
Download this file:
http://ftp://biolpc22.york.ac.uk/pub/2.6.3/wxGTK-2.6.3.tar.bz2
Unpack it with the following command:
tar xfvj wxGTK-2.6.3.tar.bz2
Go into the extracted directory:
cd wxGTK-2.6.3
And now compile it:
./configure --enable-largefile --enable-unicode --with-gtk=2
make
Then install it:
su -c "make install"
Now set up your environment, just to be sure:
export PATH="/usr/local/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
And then, finally, configure and make aMule from the same shell.
If there are still problems afterwards, post the complete configure output again.
-
Originally posted by digoren
I never say "I know how to install wx", but that's exactly the point !!
all your answers are like that : "ok, so just install the wx" or "use gtkX" or any not-understadable answer.
What about some visit to the wiki (http://wiki.amule.org)
-
"make" returns :
./bk-deps g++ -c -o coredll_clipbrd.o -D__WXGTK__ -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -DGTK_NO_CHECK_CASTS -Ilib/wx/include/gtk-ansi-release-2.6 -I../include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -O2 -fno-strict-aliasing -pthread -Wall -Wundef -Wno-ctor-dtor-privacy ../src/gtk/clipbrd.cpp
../src/gtk/clipbrd.cpp:501:1: directives may not be used inside a macro argument
../src/gtk/clipbrd.cpp:500:41: unterminated argument list invoking macro "GUINT_TO_POINTER"
../src/gtk/clipbrd.cpp: In member function `virtual bool
wxClipboard::AddData(wxDataObject*)':
../src/gtk/clipbrd.cpp:504: parse error before `(' token
gnumake: *** [coredll_clipbrd.o] Error 1
-
gcc --version
-
gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
Your gcc is way too old, you need at least gcc-3.3 to compile aMule successfully.
Sorry that I cannot write you a step-by-step tutorial on how to that, but I really think that it would be easier just to install a bit more up-to-date distribution. You'll find many of them and because it seems that you like Red Hat you should give Fedora Core a try.
Edit: OK, then I do apologize for telling you wrong things. I *believed* that it won't compile with old gcc, but believing doesn't mean to *know* it...
-
It was wxWidgets that failed, not aMule. Funny, I didn't know wxWidgets choked on gcc 3.x
-
Originally posted by wuischke
Your gcc is way too old, you need at least gcc-3.3 to compile aMule successfully.
No, this is not true.
Originally posted by Kry
It was wxWidgets that failed, not aMule. Funny, I didn't know wxWidgets choked on gcc 3.x
This is a bug, and it's fixed:
wxGTK clipboard: fix for compile error with older versions of gcc due to having conditional compilation directives used within a macro.
=> http://www.wxwidgets.org/patch.htm
@digoren: Please download this archive:
http://ftp://biolpc22.york.ac.uk/pub/2.6.3/wxWidgets-2.6.3-Patch-2.tar.gz
After unpacking, copy the extracted files over the existing ones and recompile.