Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Problem z kompilacją game z source


Rekomendowane odpowiedzi

Opublikowano

Jak pozbyc sie  tego : 

root@Ethost:/usr/src/mainline_released/mainline_sg/Srcs/Server/game/src # gmake
compile version.cpp
compile panama.cpp
In file included from desc.h:7,
                 from panama.cpp:2:
cipher.h:6:31: error: cryptopp/cryptlib.h: No such file or directory
In file included from desc.h:7,
                 from panama.cpp:2:
cipher.h:52: error: 'CryptoPP' has not been declared
cipher.h:52: error: ISO C++ forbids declaration of 'SymmetricCipher' with no type
cipher.h:52: error: expected ';' before '*' token
cipher.h:53: error: 'CryptoPP' has not been declared
cipher.h:53: error: ISO C++ forbids declaration of 'SymmetricCipher' with no type
cipher.h:53: error: expected ';' before '*' token
cipher.h: In member function 'void Cipher::Encrypt(void*, size_t)':
cipher.h:31: error: 'encoder_' was not declared in this scope
cipher.h:31: error: 'byte' was not declared in this scope
cipher.h:31: error: expected primary-expression before ')' token
cipher.h:31: error: ISO C++ forbids declaration of 'type name' with no type
cipher.h:31: error: ISO C++ forbids declaration of 'type name' with no type
cipher.h:31: error: expected primary-expression before 'const'
cipher.h:31: error: expected `)' before 'const'
cipher.h: In member function 'void Cipher::Decrypt(void*, size_t)':
cipher.h:39: error: 'decoder_' was not declared in this scope
cipher.h:39: error: 'byte' was not declared in this scope
cipher.h:39: error: expected primary-expression before ')' token
cipher.h:39: error: ISO C++ forbids declaration of 'type name' with no type
cipher.h:39: error: ISO C++ forbids declaration of 'type name' with no type
cipher.h:39: error: expected primary-expression before 'const'
cipher.h:39: error: expected `)' before 'const'
gmake: *** [OBJDIR/panama.o] B▒▒d 1
Opublikowano

@1361622928-U485574.pngTroglotyde

W takim razie w makefile zmień extern na Extern, zrób makedep i kompiluj.

Co to jest makedep ?

 

Po zmianie i wpisaniu gmake dep wywala błąd : 

http://pastebin.com/2kHc5EDt

oraz po wpisaniu gmake błąd :

In file included from config.cpp:22:
check_server.h:6:28: error: CheckServerKey.h: No such file or directory
In file included from config.cpp:22:
check_server.h:11: error: ISO C++ forbids declaration of 'FORCEINLINE' with no type
check_server.h:11: error: expected ';' before 'void'
check_server.h:16: error: expected `;' before 'static'
check_server.h:16: error: ISO C++ forbids declaration of 'FORCEINLINE' with no type
check_server.h:16: error: expected ';' before 'bool'
config.cpp:1317: error: expected `;' at end of input
config.cpp:1317: error: expected `}' at end of input
config.cpp:1317: error: expected unqualified-id at end of input
gmake: *** [OBJDIR/config.o] B▒▒d 1
Opublikowano

@1361622928-U485574.pngTroglotyde

A czy b?

 

W a używasz wszystko związane z ServerKey w src (bodajże config.Cpp i jescze kilka innych)

W b dodpisujesz -I../../libserverkey

Przeciez mam to : 

 

# Project Library
INCDIR += -I../../libserverkey 
INCDIR += -I../../liblua/include
INCDIR += -I/usr/local/include
LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib
LIBDIR += -L/usr/local/lib
LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame

Teraz mam taki błąd :


gmake: *** Brak regu▒ do zrobienia obiektu `OBJDIR/minilzo.o', wymaganego przez                                     `../game'. Stop.

Opublikowano

@1361622928-U485574.pngTroglotyde

Porównaj je z czystym makefile. Nie jestem w domu. Musisz sprawdzić która linijke usunales.

Jakoś sobie poradziłem, teraz coś takiego : 

linking ../game_r_....
/usr/bin/ld: cannot find -ltiff

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...