aMule Forum

English => Compilation problems => Topic started by: gmanz on February 10, 2010, 09:30:08 PM

Title: Re-Compile
Post by: gmanz on February 10, 2010, 09:30:08 PM
Hi at all...
I've try to compile aMule..follow this guide on Ubuntu KK 9.10
http://wiki.amule.org/index.php/HowTo_Compile_In_Ubuntu

and all is gone perfect.
Then I've try to edit one string in a file...for example the string "help bye bye" ------->"Help byeeeeeeeeeeeeee".
and I've re-try to follow this guide...but when I try to give this command

"./configure --prefix=/home/me/amule/bin --enable-debug --enable-optimize --with-denoise-level=3 --enable-upnp --enable-geoip --enable-nls --enable-amule-gui --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-alcc -enable-alc --enable-cas --enable-wxcas --enable-mmap --with-wx-config=/home/me/amule/wx/bin/wx-config --with-crypto-prefix=/home/giuliano/Scrivania/aMule/cryptopp560"

prompt returns to me

./configure: line 8516: syntax error near unexpected token `{'
./configure: line 8516: `fi      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5'
make: *** [config.status] Errore 2

Why the first time all is gone perfect and now not????????
I'm the first great program that I try to compile under Linux...so...pls..help me!!!!
Title: Re: Re-Compile
Post by: Stu Redman on February 10, 2010, 09:37:25 PM
Then I've try to edit one string in a file...
Which file did you edit?
I suggest you extract aMule's tarball to a fresh dir and start configure again (you can keep cryptopp and wx).
Title: Re: Re-Compile
Post by: GonoszTopi on February 10, 2010, 09:41:39 PM
I've try to compile aMule..
Also, which version?
Title: Re: Re-Compile
Post by: gmanz on February 10, 2010, 09:50:53 PM
@Stu Redman
I've edit a aMuleDlg.cpp...but in a string "Visit http://www.amule.org to check if a new version is available." and I've modified with "Visit http://www.amule.org to check if a new versioningggggggg is available.".
So....just for recompile!!!!!!!!!!!!!!!

I've extract the tarballs file in a fresh dir...with a wxGTK tarballs and a cryptopp560 tarballs...all extract in a fresh and separately dir....

:)

@ GonoszTopi
aMule 2.2.6
Title: Re: Re-Compile
Post by: Vollstrecker on February 11, 2010, 10:06:36 AM
If it compiled already succesful (beside the point that the changes make no sense to me), youdon't need configure at all. you want to re-COMPILE, not to re-CONFIGURE. Just run make again, it will do what you want.

About configure Error, did you run autogen.sh, or was this done by someone else? To track this down, your auto-tools versions are needed. And then you'll here many questions about your env.
Title: Re: Re-Compile
Post by: gmanz on February 12, 2010, 04:00:30 PM
Ok Vollstrecker...
it's correct...I want recompile...not reconfigure!!! I've wrong..:(!!
So...now after I've follow the guide...I've edit the amuleDlg.cpp file...so I've take the line 235

      CFormat(_("This is aMule %s based on eMule.")) % GetMuleVersion());

and I've modified so:

      CFormat(_("This is aMule based on eMule.")));

only for try.
Then I've give the make command...and all is gone.

But when I give the amule command...the program write "This is aMule 2.2.6 wxGTK 2.2.8 based on eMule.".
Why????
Title: Re: Re-Compile
Post by: Vollstrecker on February 12, 2010, 04:25:14 PM
1. Your modified line has 2 opening but 3 closing brackets. It's ok if it doesn't compile.
2. Your are using the amule binary in src/ (Given that you corrected the error from 1.)?
3. What the hell are you trying?
Title: Re: Re-Compile
Post by: gmanz on February 12, 2010, 04:45:16 PM
Sorry Vollstrecker,

1) the real string is
             AddLogLineM(false, wxT(" - ") + CFormat(_("This is aMule %s based on eMule.")) % GetMuleVersion());
     that become:
             AddLogLineM(false, wxT(" - ") + CFormat(_("This is aMule based on eMule.")));

2) Yes...I'm in ../amule/amule/src/;

3) This is my first great open source project..and I would become a coder....but now I'm just trying to make small changes!!!!!So I'm sure that my procedure for edit file and recompile is correct.

4) ok...all is gone. I was wrong to launch the amule file. Infact from console I wrote amule command....instead ./amule.

Now it works!..:)...
thanks to all...:)))
Title: Re: Re-Compile
Post by: Stu Redman on February 12, 2010, 07:28:37 PM
3. What the hell are you trying?
Making a tiny visible change to see that what he is running is really what he compiled. Very natural.
Title: Re: Re-Compile
Post by: Kry on February 12, 2010, 10:53:54 PM
We all started doing that, really. Stu probably broke other part of the program by changing a printf, tho :P
Title: Re: Re-Compile
Post by: Vollstrecker on February 12, 2010, 11:40:12 PM
The question wasn't about his changes. It was about what he did that such basic parts like a second run of make don't work, even if the code is correct. Or what he is doing that (like in his first post) after a source-change configure fucks up.