之前在編譯amule 2.2.3到amule 2.2.5 都一直出錯無法解決的錯誤, 一些wxDC 的錯誤...但是還是一直不知道問題是出在哪裡
...
BarShader.cpp:233: error: ‘WxColourFromCr’ was not declared in this scope
BarShader.cpp:234: error: invalid use of undefined type ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h:33: error: forward declaration of ‘struct wxDC’
BarShader.cpp:235: error: invalid use of undefined type ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h:33: error: forward declaration of ‘struct wxDC’
BarShader.cpp:248: error: variable ‘wxPen pen’ has initializer but incomplete type
BarShader.cpp:248: error: invalid use of undefined type ‘struct wxColour’
/usr/include/wx-2.8/wx/cursor.h:15: error: forward declaration of ‘struct wxColour’
BarShader.cpp:249: error: invalid use of undefined type ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h:33: error: forward declaration of ‘struct wxDC’
BarShader.cpp:252: error: invalid use of undefined type ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h:33: error: forward declaration of ‘struct wxDC’
BarShader.cpp:255: error: invalid use of undefined type ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h:33: error: forward declaration of ‘struct wxDC’
BarShader.cpp:259: error: invalid use of undefined type ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h:33: error: forward declaration of ‘struct wxDC’
make[3]: *** [libmuleappgui_a-BarShader.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
現在也打包好deb放到google code上了, 但是原來舊的amule 2.2.2 好像檔案是放在/usr/local/bin內, 所以要先進行移除, 如底下步驟
apt-get remove amule
接著
apt-get install amule
更新完之後先執行「 amuled -f 」一次, 然後按「 Ctrl + C 」又中斷, 這是為了要產生設定檔... (當然這要是 /root/.aMule 內的檔案為空才行), 再來就是設定遠端的登入密碼了, 執行以下命令, 會出現一個提示讓你輸入密碼的
amuled --ec-config
這時會出現如下訊息, 接著輸入你想要的密碼, 例如「111111」
amuled: OnInit - starting timer
Initialising aMuled 2.2.5 using wxGTK2 v2.8.10
Checking if there is an instance already running...
No other instances are running.
EC configuration
Enter password for mule connection:
當你輸入完成後, 按「Ctrl + C」離開, 再啟動amule後就可以使用「aMule Remote GUI」進行遠端連線了..:)
/etc/init.d/amule-daemon start
如果需要amule 的web功能, 請先停止 amule, 設定webserver的登入password
/etc/init.d/amule-daemon stop
如果要讓Web登入密碼跟EC Remote的密碼一樣的話, 可以直接復製 ECpassword 到 [WebServer] 的Password, 例如當你在 --ec-config 設定密碼為「111111」, 它在amule的編碼如下
ECPassword=96E79218965EB72C92A549DD5A330112
所以如果要讓WebServer的密碼為「111111」只要復製一樣的值就行了
接著再重啟amule就行啦 :)
PS: 這版2.2.5 版再編入時已經將「AcceptExternalConnections 」和「WebServer Enabled」 已經設成 1 (True)了