aMule Forum
English => Compilation problems => Topic started by: advantz on April 12, 2006, 09:39:45 PM
-
After compiled amule 2.1.1 successfully based on :
http://www.amule.org/wiki/index.php/HowTo_Compile_aMuled
and
http://www.amule.org/wiki/index.php/HowTo_get_aMule_web_interface
Can't find amuled anywhere, only amuleweb
Any solutions?
thank you
-
Mh, can you please double-check that you used the configure-flag --enable-amule-daemon?
-
yes I used the configure-flag :
--enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon
no --prefix flag so it must be in /usr/local/bin right?
-
yes /usr/local/bin if you finished with make install in the end
-
Could you please look at the "./src/" sub-directory in the directory where you compiled aMule?
-
Originally posted by Gerd78
Could you please look at the "./src/" sub-directory in the directory where you compiled aMule?
what to look?
I saw a lot of .cpp files
when compiled amule with --enable-amule-daemon --enable-webserver, I caught some errors with filelock bla bla. Dunno what is that, but amuleweb created!
I only use wxBase from wxwidgets + amule 2.1.1, cos I want to install daemon and amule web
Should I compile wxGTK-2.6.3?
thank you guys
-
in the src dir type
./amule
and tehn 2 times the TAB button
you should see all executables in that src dir starting with amule
-
Originally posted by advantz
what to look?
Look for what you want to see... If you need amuled, look for amuled in that directory.
-
I compiled wxGTK 2.6.3 but ended with errors, too bad I newbie in linux :D
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
$ rpm -qa | grep gtk
gtk+-1.2.10-25
pygtk2-libglade-1.99.14-4
gtk2-2.2.1-4.2.legacy
gnome-python2-gtkhtml2-1.99.14-5
usermode-gtk-1.67-2
authconfig-gtk-4.3.4-1
gtkhtml2-2.2.0-5
pygtk2-1.99.14-4
-
install gtk2-devel pkg
-
$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise
Configured wxWidgets 2.6.3 for `i686-pc-linux-gnu'
Which GUI toolkit should wxWidgets use? GTK+ 2
Should wxWidgets be compiled into single library? no
Should wxWidgets be compiled in debug mode? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets be compiled in Unicode mode? yes
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.2 no
wxWidgets 2.4 no
Which libraries should wxWidgets use?
jpeg builtin
png sys
regex builtin
tiff builtin
zlib sys
odbc no
expat sys
libmspack no
sdl no
gnomeprint no
hildon no
$ make clean && make
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 "gtk_signal_connect"
src/gtk/clipbrd.cpp: In member function `virtual bool
wxClipboard::AddData(wxDataObject*)':
src/gtk/clipbrd.cpp:502: parse error before `(' token
src/gtk/clipbrd.cpp: At top level:
src/gtk/clipbrd.cpp:255: warning: `void selection_handler(GtkWidget*,
GtkSelectionData*, unsigned int, unsigned int, void*)' defined but not used
make: *** [coredll_clipbrd.o] Error 1
I always get error msg like this, e.g. clipbrd.cpp, filelock
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
-
http://www.wxwidgets.org/patch.htm
-
here are various errors :
configure options :
$ ./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon
$ make clean && make
CryptoPP.cpp:1713:10: warning: #warning "You do not have GCC 3.3 or later, or did not specify -msse2 compiler option, so use of SSE2 intrinsics will be disabled."
CryptoPP.cpp: In static member function `static word CryptoPP::PentiumOptimized::Add(word*, const word*, const word*, unsigned int)':
CryptoPP.cpp:2762: warning: control reaches end of non-void function
CryptoPP.cpp: In static member function `static word CryptoPP::PentiumOptimized::Subtract(word*, const word*, const word*, unsigned int)':
CryptoPP.cpp:2803: warning: control reaches end of non-void function
CryptoPP.cpp: In static member function `static word CryptoPP::P4Optimized::Add(word*, const word*, const word*, unsigned int)':
CryptoPP.cpp:2855: warning: control reaches end of non-void function
CryptoPP.cpp: In static member function `static word CryptoPP::P4Optimized::Subtract(word*, const word*, const word*, unsigned int)':
CryptoPP.cpp:2905: warning: control reaches end of non-void function
rm -f libmuleappcommon.a
ar cru libmuleappcommon.a libmuleappcommon_a-CFile.o libmuleappcommon_a-DataToText.o libmuleappcommon_a-ED2KLink.o libmuleappcommon_a-FileFunctions.o libmuleappcommon_a-MemFile.o libmuleappcommon_a-NetworkFunctions.o libmuleappcommon_a-Packet.o libmuleappcommon_a-RLE.o libmuleappcommon_a-SafeFile.o libmuleappcommon_a-SHA.o libmuleappcommon_a-Tag.o libmuleappcommon_a-Timer.o libmuleappcommon_a-UInt128.o libmuleappcommon_a-CryptoPP.o
ranlib libmuleappcommon.a
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -MT ED2KLinkParser.o -MD -MP -MF ".deps/ED2KLinkParser.Tpo" -c -o ED2KLinkParser.o ED2KLinkParser.cpp; \
then mv -f ".deps/ED2KLinkParser.Tpo" ".deps/ED2KLinkParser.Po"; else rm -f ".deps/ED2KLinkParser.Tpo"; exit 1; fi
In file included from ED2KLinkParser.cpp:44:
FileLock.h: In destructor `CFileLock::~CFileLock()':
FileLock.h:80: `close' undeclared (first use this function)
FileLock.h:80: (Each undeclared identifier is reported only once for each function it appears in.)
make[3]: *** [ED2KLinkParser.o] Error 1
make[3]: Leaving directory `/usr/local/src/2/aMule-2.1.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/2/aMule-2.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/2/aMule-2.1.1'
make: *** [all] Error 2
configure options :
$ ./configure --enable-webserver --enable-amule-daemon
$ make clean && make
MuleTextCtrl.cpp: In member function `void CMuleTextCtrl::OnRightDown(wxMouseEvent&)':
MuleTextCtrl.cpp:94: `wxTheClipboard' undeclared (first use this function)
MuleTextCtrl.cpp:94: (Each undeclared identifier is reported only once for each function it appears in.)
MuleTextCtrl.cpp:96: `wxTextDataObject' undeclared (first use this function)
MuleTextCtrl.cpp:96: parse error before `;' token
MuleTextCtrl.cpp:97: `data' undeclared (first use this function)
make[3]: *** [libmuleappgui_a-MuleTextCtrl.o] Error 1
make[3]: Leaving directory `/usr/local/src/2/aMule-2.1.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/2/aMule-2.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/2/aMule-2.1.1'
make: *** [all] Error 2
configure options :
$ ./configure --enable-webserver --disable-monolithic --enable-amule-daemon --disable-ed2k
$ make clean && make
In file included from amule.cpp:80:
FriendList.h:63:10: warning: #warning THIS MUST BE MADE PRIVATE AFTER EC IS CODED
amule.cpp: In member function `virtual bool CamuleApp::OnInit()':
amule.cpp:394: Internal compiler error in c_expand_expr, at c-common.c:3714
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make[3]: *** [amuled-amule.o] Error 1
make[3]: Leaving directory `/usr/local/src/2/aMule-2.1.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/2/aMule-2.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/2/aMule-2.1.1'
make: *** [all] Error 2
-
also outdated gcc probably:
Originally posted by advantz
CryptoPP.cpp:1713:10: warning: #warning "You do not have GCC 3.3 or later, or did not specify -msse2 compiler option, so use of SSE2 intrinsics will be disabled."
...
$ gcc -v
..
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
...[/list]
cu
-
the error is in Filelock.h not in cryptoPP tho...
-
Originally posted by IhmSelbst
also outdated gcc probably:
IhmSelbst, do you know where this warning comes from and what it means?
You will see this warning even if you use GCC 4.x with standard CXXFLAGS settings (build it yourself and look carefully at the output) and it's completely unrelated to the compilation error (it just means that SSE2 optimizations are always disabled with older GCC versions, but they are actually disabled with *all* GCC versions unless you add "-msse2" to your CXXFLAGS, which most people don't do).
-
hum. - just remembered a compiling error on some cvsbuild weeks/months aog, referring to gcc prior 3.3.somewhat or so....
-
ooops. - because of gcc... - meant _this thread_ (http://forum.amule.org/thread.php?threadid=8922&sid=). - ok, forget the posting above... :] ;(
-
We have multiple errors here, one of which is indeed related to the GCC version. But this is not related to the CryptoPP warning, it's just the well-known RedHat-9 compiler crash (which happens in amule.cpp).
@advantz, could you try a CVS snapshot of aMule? The compiler crash in amule.cpp might be worked around there (at least this is how I understand the changelog).
-
actually I already used the rpm of suse 9.0 from IhmSelbst.
Since it worked fine with RH9.0 but with upgrade A LOT of dependencies.
I already upgraded gcc version to 3.3 instead of 3.2.2.5 Do you still want me to try it anyway?
let me know :D