aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Re-Compile  (Read 5771 times)

gmanz

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 53
Re-Compile
« 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!!!!
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Re-Compile
« Reply #1 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).
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Re-Compile
« Reply #2 on: February 10, 2010, 09:41:39 PM »

I've try to compile aMule..
Also, which version?
Logged
concordia cum veritate

gmanz

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 53
Re: Re-Compile
« Reply #3 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
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Re-Compile
« Reply #4 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.
Logged
Homefucking is killing prostitution

gmanz

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 53
Re: Re-Compile
« Reply #5 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????
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Re-Compile
« Reply #6 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?
Logged
Homefucking is killing prostitution

gmanz

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 53
Re: Re-Compile
« Reply #7 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...:)))
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Re-Compile
« Reply #8 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.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Re-Compile
« Reply #9 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
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Re-Compile
« Reply #10 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.
Logged
Homefucking is killing prostitution