[eMule-Web]

[eMule-Web] (http://www.emule-web.de/board/)
-   eMule MOD - Development (http://www.emule-web.de/board/emule-mod-development/)
-   -   Probleme beim Compilieren (http://www.emule-web.de/board/8345-probleme-beim-compilieren.html)

Perfect_P 5. October 2004 22:17

Probleme beim Compilieren
 
Hi@all

Bin einbegeisteter Anhänger des esel netzwerkes :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: . Also hab ich mir gedacht, dass ich mir mal den Quellcode anschauen und an ihm ein wenig rumspiele, um den client besser zu verstehen.

Gesagt getan.
Als erstes hab ich mir MS VC .NET 2003 besorgt
Anschließend hab ich mir da DirectX 9.0c 2004 summer SKD runtergeladen und installiert
danach hab ich folgende Dateien runtergeladen:
  • crypto51.zip
    zlib121.zip
    ResizableLib_1_3.zip
    lpng127.zip
    id3lib v3.8.3
Weiter gings mim entpacken des sourcodes in das Verzeichniss eMule/srchybrid/ und die mitgeliferten id3lib dateien ins Verzeichniss eMule/id3lib

Dann die crypto51 mim VC7 Patch ins Verzeichniss eMule/crypto51 compiliert.

Danach die CxImage erstellt (png.h und pngconf.h aus dem lpng archiv ins Verzeichniss eMule/png/ kopiert und zlib.h und zconf.h aus dem zlib121 archiv ins eMule/zlib verzeichniss reinkopiert).

Anschließend die das ResizibleLib archiv nach eMule/ResizableLib/ Verzeichnis entpackt.

So jetzt hab ich das erste Mal auf built eMule geklickt.

Code:

error C2906: 'void CDialogMinTrayBtn<BASE>::MinTrayBtnInit(void)' : explicit specialization requires 'template <>'
        with
        [
            BASE=CResizableDialog
        ]
DialogMinTrayBtn.cpp(144) : error C2906: 'void CDialogMinTrayBtn<BASE>::OnNcPaint(void)' : explicit specialization requires 'template <>'
        with
        [
            BASE=CResizableDialog
        ]
DialogMinTrayBtn.cpp(151) : error C2906: 'BOOL CDialogMinTrayBtn<BASE>::OnNcActivate(BOOL)' : explicit specialization requires 'template <>'
        with
        [
            BASE=CResizableDialog
        ]
DialogMinTrayBtn.cpp(160) : error C2906: 'UINT CDialogMinTrayBtn<BASE>::OnNcHitTest(CPoint)' : explicit specialization requires 'template <>'
        with
        [
            BASE=CResizableDialog
        ]
DialogMinTrayBtn.cpp(173) : error C2906: 'void CDialogMinTrayBtn<BASE>::OnNcLButtonDown(UINT,CPoint)' : explicit specialization requires 'template <>'
        with
        [
            BASE=CResizableDialog
        ]
DialogMinTrayBtn.cpp(186) : error C2906: 'void CDialogMinTrayBtn<BASE>::OnNcRButtonDown(UINT,CPoint)' : explicit specialization requires 'template <>'
        with
        [
            BASE=CResizableDialog
        ]
DialogMinTrayBtn.cpp(192) : error C2906: 'void CDialogMinTrayBtn<BASE>::OnMouseMove(UINT,CPoint)' : explicit specialization requires 'template <>'
        with
        [
            BASE=CResizableDialog
        ]
DialogMinTrayBtn.cpp(214) : error C2906: 'void CDialogMinTrayBtn<BASE>::OnLButtonUp(UINT,CPoint)' : explicit specialization requires 'template <>'
        with
        [
            BASE=CResizableDialog
        ]
DialogMinTrayBtn.cpp(231) : error C2906: 'void CDialogMinTrayBtn<BASE>::OnTimer(UINT_PTR)' : explicit specialization requires 'template <>'
        with
        [
            BASE=CResizableDialog
        ]
DialogMinTrayBtn.cpp(247) : error C2906: 'LRESULT CDialogMinTrayBtn<BASE>::_OnThemeChanged(void)' : explicit specialization requires 'template <>'
        with
        [
            BASE=CResizableDialog
        ]

Achso: ich hab alles als Release compiliert. Außerdem hat VC.Net 2003 rumgemerkert, als ich die eMule.sln geöffnet hab (irgendwas von wegen kompatibilitätsproblem)

Mit normalen Fehlermeldung ala datei nicht gefunden hab ich ja keine Probleme, aber bei so einem WirrWarr.

Wenn ir mir irgendwie helfen könntet, wär ich echt dankbar (ich schlag mich schon seit tagen mit dem Forum und google rum, aber bisher ohne erfolg :no: )

Habs wärend dem schreiben neu aufgesetzt, ich denke also nicht, dass ich irgendetwas vermurckts habe.
Als system hab ich winxp SP2 und meine VC.Net2003 version ist die 7.1.3088 (ist das wichtig? :think ).

also THX im vorraus

mfg

P

Borg-King 6. October 2004 00:33

Hallo

Spiele nicht zuviel rum,nicht das noch die Welt deswegen untergeht.:mrgreen:

Aber hier die Lösung Deines besagten Problems,obwohl es ja fast schon da steht wie man es behebt. :wink:

#define TEMPLATE template <class BASE>
#else
// define this to instantiate functions for class 'BASE' right in this CPP module
#define TEMPLATE template <> // VS 2003 - FIX
#define BASE CResizableDialog
#endif

Das wo // VS 2003 - FIX steht in DialogMinTrayBtn.cpp einfügen.
Anmerkung:Vielleicht tut es für das nächstemal ein :mrgreen: auch.Danke.

Perfect_P 6. October 2004 14:02

hi

Thx borg-king für die schnelle antwort. Jo hat geholfen, der esel lässt sich ohne Probleme compilieren.
ABER er lässt sich nicht starten. Sobald ich den esel start, öffnet sich ein weißes fenster ohne Symbol und Fenstertext. weil der Compiler keine Fehler od warnungen gebracht hat, denke ich das ich irgend eine lib falsch drin hab

hat vll jemand ähnliche Probleme gehabt od. hat jemand eine lösungsvorschlag?

thx

P

lesmona 8. October 2004 14:07

Ich habe ein ähnliches Prob.

Code:

DialogMinTrayBtn.cpp(119): error C2908: Explizite Spezialisierung; 'const AFX_MSGMAP CDialogMinTrayBtn<BASE>::messageMap' wurde bereits von der Hauptvorlage instantiiert
        with
        [
            BASE=CResizableDialog
        ]

DialogMinTrayBtn.cpp(119): error C2908: Explizite Spezialisierung; 'const AFX_MSGMAP_ENTRY CDialogMinTrayBtn<BASE>::_messageEntries[]' wurde bereits von der Hauptvorlage instantiiert
        with
        [
            BASE=CResizableDialog
        ]

Habe es versucht wie oben beschrieben aber es bleibt beim alten.

Habe VS 2002

Hat jemand einen Rat

Skyw4lker 12. November 2004 07:38

Der Fix ist soweit ich weiss auch nur für VS 2003 gedacht!

cya Skyw4lker

SnakePilsken 12. November 2004 16:58

Wie mein Vorredner geschrieben nur für 2003 !

Gruß
-SP

ke45 12. November 2004 17:45

Zitat:

Zitat von Perfect_P
hat vll jemand ähnliche Probleme gehabt od. hat jemand eine lösungsvorschlag?

Hi, schau doch mal hier vorbei, dort kann man sich einen fertigen Baum mit allen Libs zum Kompilieren von eMule herunterladen...

Gruss
-Klaus

MaxUpload 3. February 2005 02:15

Mein Vorschlag macht es doch in Zukunft einfach für beide Versionen kompatibel.

Zitat:

Zitat von DialogMinTrayBtn.cpp:
#if 0
// define this to use that source file as template
#define TEMPLATE template <class BASE>
#else
// define this to instantiate functions for class 'BASE' right in this CPP module

#if 1300 < _MSC_VER // yonatan VS2002/3 - is 1300 right?
#define TEMPLATE template <> //ShadowClover Bug Fix
#else
#define TEMPLATE
#endif // _MSC_VER

#define BASE CResizableDialog
#endif

Ich meine nach den falsch gelinkten oder garnicht vorhandenen Libs ist dies ja eigentlich das Standart Newbie Problem Nummer Eins Frage schlecht hin. Weiß ich genau,denn ich habe sie vor garnicht all zu langer Zeit selbst gestellt. Fragen ist gut und man lernt gleich was,aber irgendwann nervt es auch....so kann man gleich zur nächsten Ebene des Frage Antwort Spiels übergehen ;-) ,zumal es ja nur um VS2002 vs. VS2003 geht....also für jemanden der Neu ist und wahrscheinlich eh bei einer Version von VS bleiben wird doch relativ uninteressant zu wissen.

MfG Max


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:59 Uhr.

Powered by vBulletin® Version 3.8.3 (Deutsch)
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102