aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: CVS: compiling and problems  (Read 6936 times)

Ocimin

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
CVS: compiling and problems
« on: August 10, 2004, 07:02:55 PM »

For compiling aMule-cvs-20040810 (and back) on MacOS X you have to change this files in src directory before to run make.
1) add #include in the top of the file TransferWnd.cpp
2) delete in CFile.cpp
#ifdef __WXMAC__
#define FILE_TRACKER 1
#endif
this three lines. Thanks Kry and Xaignar.
Now the problems.
First. I can't change incoming and temporary directories. If I try (from file or from GUI) aMule crashs with this backtrace:
Code: [Select]
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x03cc2898 in wxLogDialog::wxLogDialog(wxWindow*, wxArrayString const&,
wxArrayInt const&, wxArrayLong const&, wxString const&, long) ()

(gdb) bt

#0 0x03cc2898 in wxLogDialog::wxLogDialog(wxWindow*, wxArrayString
const&, wxArrayInt const&, wxArrayLong const&, wxString const&, long)
()
#1 0x03cc0c34 in wxLogGui::Flush() ()
#2 0x03cc0c34 in wxLogGui::Flush() ()
#3 0x03bf9298 in wxApp::OnIdle(wxIdleEvent&) ()
#4 0x0395488c in
wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&,
wxEvtHandler*, wxEvent&) ()
#5 0x0395402c in wxEventHashTable::HandleEvent(wxEvent&,
wxEvtHandler*) ()
#6 0x03954a38 in wxEvtHandler::ProcessEvent(wxEvent&) ()
#7 0x03c5b370 in wxAppBase::ProcessIdle() ()
#8 0x03bf9564 in wxApp::MacDoOneEvent() ()
#9 0x03bf91cc in wxApp::MainLoop() ()
#10 0x03929428 in wxEntry(int&, char**) ()
#11 0x001646b0 in main (argc=1, argv=0xbffffd94) at amule.cpp:171

(gdb) bt full

#0 0x03cc2898 in wxLogDialog::wxLogDialog(wxWindow*, wxArrayString
const&, wxArrayInt const&, wxArrayLong const&, wxString const&, long)
()
No symbol table info available.
#1 0x03cc0c34 in wxLogGui::Flush() ()
No symbol table info available.
#2 0x03cc0c34 in wxLogGui::Flush() ()
No symbol table info available.
#3 0x03bf9298 in wxApp::OnIdle(wxIdleEvent&) ()
No symbol table info available.
#4 0x0395488c in
wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&,
wxEvtHandler*, wxEvent&) ()
No symbol table info available.
#5 0x0395402c in wxEventHashTable::HandleEvent(wxEvent&,
wxEvtHandler*) ()
No symbol table info available.
#6 0x03954a38 in wxEvtHandler::ProcessEvent(wxEvent&) ()
No symbol table info available.
#7 0x03c5b370 in wxAppBase::ProcessIdle() ()
No symbol table info available.
#8 0x03bf9564 in wxApp::MacDoOneEvent() ()
No symbol table info available.
#9 0x03bf91cc in wxApp::MainLoop() ()
No symbol table info available.
#10 0x03929428 in wxEntry(int&, char**) ()
No symbol table info available.
#11 0x001646b0 in main (argc=1, argv=0xbffffd94) at amule.cpp:171
No locals.
(gdb)
and with the windows in the screenshot.
Second. When I start aMule the line in lower part to the right are superimposed. If I resize the window the problem disappears (screenshot).
Third. In the search section, I cannot press Start button because it remains grey and I have to press enter on my keybord. In the same section I cannot delete e single research because the x of the tab does not work. I have to clear all researches. Here some screenshots.
Logged

Ocimin

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: CVS: compiling and problems
« Reply #1 on: August 10, 2004, 07:13:48 PM »

I forgot...if I change TCP and UDP ports from 4662/4672/ to 4663/4673 aMule crashs on startup.

Ocimin
Logged

Ocimin

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: CVS: compiling and problems
« Reply #2 on: August 10, 2004, 09:14:50 PM »

The problem with arrows in preferences menù that crashs amule (described here http://www.amule.org/amule/thread.php?threadid=3206&sid= 6° post) is disappeared but remain 2 problems.
If I add a server with IP and port in the server section and press add, the aMule log report 'Please enter a server address'. Second, if I press on servers icon for download server.met file from http://www.srv1000.com/azz/server.met, the aMule log report 'Invalid URL'.

Ocimin
Logged

Ocimin

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: CVS: compiling and problems
« Reply #3 on: August 11, 2004, 10:15:03 PM »

Correction. aMule continuous to crash at startup with the same backtrace of the other post, when I redirect port 4662/4672 in port redirection settings of my router. If I don't redirect, the program don't crash, it connects to servers the information give me a HighID but download like a LowID (for a file with more than 400 users, most (99%) have a red smile without a connection, and with 6 file like that in 5 hours it downloads about 2Mb).

Ocimin
Logged

Ocimin

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: CVS: compiling and problems
« Reply #4 on: August 27, 2004, 03:02:05 AM »

I tried to compile aMule-cvs-20040826 but there is an error in make phase:

Code: [Select]
Preferences.cpp: In member function `void CPreferences::SaveCats()':
Preferences.cpp:634: warning: int format, size_t arg (arg 2)
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -D__SYSTRAY_DISABLED__ -I/usr/local/lib/wx/include/mac-2.5 -I/usr/local/include -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -D__NOGTK__  -I/usr/include -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0   -MT amule-PrefsUnifiedDlg.o -MD -MP -MF ".deps/amule-PrefsUnifiedDlg.Tpo" \
  -c -o amule-PrefsUnifiedDlg.o `test -f 'PrefsUnifiedDlg.cpp' || echo './'`PrefsUnifiedDlg.cpp; \
then mv -f ".deps/amule-PrefsUnifiedDlg.Tpo" ".deps/amule-PrefsUnifiedDlg.Po"; \
else rm -f ".deps/amule-PrefsUnifiedDlg.Tpo"; exit 1; \
fi
PrefsUnifiedDlg.cpp: In constructor `PrefsUnifiedDlg::PrefsUnifiedDlg(wxWindow*)':
PrefsUnifiedDlg.cpp:934: error: `Add' undeclared (first use this function)
PrefsUnifiedDlg.cpp:934: error: (Each undeclared identifier is reported only once for each function it appears in.)
PrefsUnifiedDlg.cpp:942: error: `GetSize' undeclared (first use this function)
PrefsUnifiedDlg.cpp:951: error: `Remove' undeclared (first use this function)
PrefsUnifiedDlg.cpp:961: error: `SetMinSize' undeclared (first use this function)
PrefsUnifiedDlg.cpp: In member function `void PrefsUnifiedDlg::OnOk(wxCommandEvent&)':
PrefsUnifiedDlg.cpp:1089: error: `wxMessageBox' undeclared (first use this function)
PrefsUnifiedDlg.cpp: In member function `void PrefsUnifiedDlg::OnButtonDir(wxCommandEvent&)':
PrefsUnifiedDlg.cpp:1216: error: `wxDirSelector' undeclared (first use this function)
PrefsUnifiedDlg.cpp: In member function `void PrefsUnifiedDlg::OnPrefsPageChange(wxListEvent&)':
PrefsUnifiedDlg.cpp:1313: error: `Remove' undeclared (first use this function)
PrefsUnifiedDlg.cpp:1318: error: `Add' undeclared (first use this function)
PrefsUnifiedDlg.cpp:1329:18: warning: #warning NO TOOLTIPS FOR NON-GTK!
PrefsUnifiedDlg.cpp: In member function `void PrefsUnifiedDlg::OnToolTipDelayChange(wxSpinEvent&)':
PrefsUnifiedDlg.cpp:1325: warning: unused parameter `wxSpinEvent&event'
make[4]: *** [amule-PrefsUnifiedDlg.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Other GUI problem. Until aMule-cvs-20040810, there isn't a scrollbar in log's window of server section.

Ocimin
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: CVS: compiling and problems
« Reply #5 on: August 27, 2004, 01:20:34 PM »

Hiya again. The compilation problem is esily fixed if they look at it. Anyway, can you come around irc? I need a Mac for testing some things ;)
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: CVS: compiling and problems
« Reply #6 on: August 27, 2004, 01:43:56 PM »

Kry,

I have fixed now the sizer compilation problem, but I don't know what to do about the scroll bar, any ideas?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: CVS: compiling and problems
« Reply #7 on: August 27, 2004, 01:53:27 PM »

Buggy wx?
Logged

Ocimin

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: CVS: compiling and problems
« Reply #8 on: September 07, 2004, 06:35:42 PM »

I compiled aMule-cvs-20040907. First of all I had to add #include in /src/utils/cas/functions.c (thanks Bombo!).
Second. If I delete a file from the download window, amule crashes with the backtrace in attachment.
Always I have the others problems in this thread.
Bye.

Ocimin
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: CVS: compiling and problems
« Reply #9 on: September 16, 2004, 12:53:33 AM »

Quote
Third. In the search section, I cannot press Start button because it remains grey and I have to press enter on my keybord.

Fixed on CVS.


Quote
If I add a server with IP and port in the server section and press add, the aMule log report 'Please enter a server address'.

Fixed on CVS.

Quote
Second, if I press on servers icon for download server.met file from http://www.srv1000.com/azz/server.met, the aMule log report 'Invalid URL'.

Fixed on CVS

;)
Logged