allegro pod dev

0

Chciałem zainstalować allegro pod dec c++ 5.2.0.3 więc robię jak w instrukcji

Instalacja w Dev-C++:

  1. Uruchamiamy Dev-C++. Zakładka Pomoc - > O Dev-C++ - > Sprawdź uaktualnienia
  2. W nowo otwartym oknie przy "Select devpak server" wybieramy "devpaks.org Community Devpaks".
  3. Wciskamy (na samym dole) "Check for updates"
  4. Po załadowaniu się listy, w "Groups" wybieramy Allegro
  5. Wciskamy "Download selected"

ale jak klikam download to wyskakuje błąd FILE jakiślink DOES NOT EXIST. Co robię źle ?

0

A nie możesz pobrać samego Allegro, utworzyć nowy projekt w Dev-C++, podlinkować do niego potrzebne liby allegro? Najlepiej to zainteresuj się jakimś sensowniejszym IDE.

0

Używam C::B ale pod DEVa instalacja wydawał mi się prostsza. W C""B nie umiem sobie z tym poradzić, podaje ścieżkę do lib i include i kopiuje dlki do binu z programem. I wpisałem biblioteki z neta jakie kazali wpisać do allegro no i nie działa. Instalacja bibliotek to dla mnie czarna magia.

0

Coś jest skopane z repozytorium. Tu masz tę paczkę jako plik do ściągnięcia:
http://www.mediafire.com/?471dzl0gfdj103w

Możesz też po prostu ściągnąć źródła Allegro i przekompilować…
http://alleg.sourceforge.net/download.html

0

Udało mi się zrobić wszystko poprawnie jak napisano w tym poradniku http://szyx.cba.pl/index.php/allegro5-instalacja-i-konfiguracja-biblioteki-pod-codeblocks
Kompilacja przykładowego programu przechodzi pomyslnie, ale jak kompiluje program:

void init() {
int depth, res;
allegro_init();
depth = desktop_color_depth();
if( depth == 0 ) depth = 32;

set_color_depth( depth );
res = set_gfx_mode( GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0 );
if( res != 0 ) {
    allegro_message( allegro_error );
    exit( - 1 );
}

install_timer();
install_keyboard();
install_mouse();
/* add other initializations here */

}

To wyskakuje błąd

== allegro, Debug ===

D:\CodeBlocks\Programy\GUI\allegro\plik.cpp||In function 'void init()':|
D:\CodeBlocks\Programy\GUI\allegro\plik.cpp|3|error: 'allegro_init' was not declared in this scope|
D:\CodeBlocks\Programy\GUI\allegro\plik.cpp|4|error: 'desktop_color_depth' was not declared in this scope|
D:\CodeBlocks\Programy\GUI\allegro\plik.cpp|7|error: 'set_color_depth' was not declared in this scope|
D:\CodeBlocks\Programy\GUI\allegro\plik.cpp|8|error: 'GFX_AUTODETECT_WINDOWED' was not declared in this scope|
D:\CodeBlocks\Programy\GUI\allegro\plik.cpp|8|error: 'set_gfx_mode' was not declared in this scope|
D:\CodeBlocks\Programy\GUI\allegro\plik.cpp|10|error: 'allegro_error' was not declared in this scope|
D:\CodeBlocks\Programy\GUI\allegro\plik.cpp|10|error: 'allegro_message' was not declared in this scope|
D:\CodeBlocks\Programy\GUI\allegro\plik.cpp|11|error: 'exit' was not declared in this scope|
D:\CodeBlocks\Programy\GUI\allegro\plik.cpp|14|error: 'install_timer' was not declared in this scope|
D:\CodeBlocks\Programy\GUI\allegro\plik.cpp|15|error: 'install_keyboard' was not declared in this scope|
D:\CodeBlocks\Programy\GUI\allegro\plik.cpp|16|error: 'install_mouse' was not declared in this scope|
== Build finished: 11 errors, 0 warnings ===

Czy ma to związek że program napisany jest na inną v. biblioteki ?

1 użytkowników online, w tym zalogowanych: 0, gości: 1