Changeset 0065962 in network-game


Ignore:
Timestamp:
Jan 11, 2019, 6:58:52 PM (6 years ago)
Author:
dportnoy15 <dmitry.portnoy@…>
Branches:
master
Children:
7f9b01c
Parents:
ea3a3a9
Message:

Update the readme with instructions for installing the client on OSX

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    rea3a3a9 r0065962  
    149149string alertMessage;
    150150
    151 int main(int argc, char **argv)
    152 {
     151int main(int argc, char **argv) {
    153152   ALLEGRO_DISPLAY *display = NULL;
    154153   ALLEGRO_EVENT_QUEUE *event_queue = NULL;
     
    207206   }
    208207 
    209    if(!al_install_keyboard()) {
     208   if (!al_install_keyboard()) {
    210209      fprintf(stderr, "failed to initialize the keyboard!\n");
    211210      return -1;
    212211   }
    213212
    214     if(!al_install_mouse()) {
     213    if (!al_install_mouse()) {
    215214      fprintf(stderr, "failed to initialize the mouse!\n");
    216215      return -1;
     
    218217 
    219218   timer = al_create_timer(1.0 / FPS);
    220    if(!timer) {
     219   if (!timer) {
    221220      fprintf(stderr, "failed to create timer!\n");
    222221      return -1;
     
    230229   }
    231230   display = al_create_display(SCREEN_W, SCREEN_H);
    232    if(!display) {
     231   if (!display) {
    233232      fprintf(stderr, "failed to create display!\n");
    234233      al_destroy_timer(timer);
     
    244243 
    245244   event_queue = al_create_event_queue();
    246    if(!event_queue) {
     245   if (!event_queue) {
    247246      fprintf(stderr, "failed to create event_queue!\n");
    248247      al_destroy_display(display);
  • client/makefile

    rea3a3a9 r0065962  
    11CC = g++
    2 FLAGS = -Wall -g
     2FLAGS = -Wall
    33
    44UNAME_S := $(shell uname -s)
  • readme.txt

    rea3a3a9 r0065962  
    44http://ventilatorxor.wordpress.com/2011/08/07/linux-allegro5-static-linking-for-beginners/
    55
    6 The info below is outdated. The latest info is on the github wiki.
    7 
    8 BoostPro Installer options
    9 
    10 -multithreaded
    11 -multithreaded debug
    12 
    13 
    14 old installation instructions
    15 
    16 client
     6CLIENT
    177______
    188
    19 install the boost library
    20 install openssl using the old windows installer
     9OSX:
    2110
    22 Add the following to Linker -> Input -> Additional Dependencies:
    23 libeay32.lib
    24 ssleay32.lib
     11Install MacPorts from https://guide.macports.org/chunked/installing.macports.html
    2512
     13To install allegro, dO the following steps in a separate directory:
    2614
    27 server
     15sudo port install zlib freetype jpeg libogg physfs libpng flac libtheora +universal
     16git clone https://github.com/liballeg/allegro5.git allegro
     17cd allegro
     18mdkir build
     19cd build
     20cmake -DSTATIC=on ..
     21make
     22sudo make install
     23
     24Now, go network-game/client and run:
     25make
     26./gameClient medievaltech.com 8000
     27
     28SERVER
    2829______
    2930
    30 install the boost library
    31 install openssl on ubuntu (should be easy)
     31coming soon
Note: See TracChangeset for help on using the changeset viewer.