|
Author |
Topic: Getting SRC to compile. |
Title: Neophyte
Posts: 16
Joined: 06 Jan 2014
|
Date Posted: Tue Jan 07, 2014 3:12 pm
Subject: Getting SRC to compile.
|
I got the original Circle 3.1 to work as a test, but I'm not keen on chillin' alone in the immortal board room. (Or should it be called the Bored room?)
So I have started trying to compile the AwakenedWorlds source code.
This is what I get on MAKE CONFIG.
g++ -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb config.cpp -o config
config.cpp:7:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:8:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:9:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:10:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:19:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:34:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:42:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:70:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:75:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:81:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:83:20: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:84:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:85:20: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:86:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/usr/lib/gcc/i686-linux-gnu/4.7/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [config] Error 1
I have the GCC and G++ dependencies as well as MYSQL installed. Is there something else I'm missing?
|
Post Reply | Quote | Private Message
|
Title: Neophyte
Posts: 16
Joined: 06 Jan 2014
|
Date Posted: Tue Jan 07, 2014 3:42 pm
Subject:
|
I installed a few more GCC tools and a newer version of MYSQL and now I get this.
g++ -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb -c -o act.other.o act.other.cpp
act.other.cpp:18:25: fatal error: mysql/mysql.h: No such file or directory
compilation terminated.
make: *** [act.other.o] Error 1
|
Post Reply | Quote | Private Message
|
Title: Neophyte
Posts: 16
Joined: 06 Jan 2014
|
Date Posted: Tue Jan 07, 2014 3:53 pm
Subject:
|
Installed some Mysql dependencies, now I get this.
g++ -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb -c -o comm.o comm.cpp
comm.cpp: In function ‘void copyover_recover()’:
comm.cpp:272:72: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:307:100: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:312:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘int get_max_players()’:
comm.cpp:461:14: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void game_loop(int)’:
comm.cpp:641:70: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:753:86: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:760:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void make_prompt(descriptor_data*)’:
comm.cpp:878:44: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:880:85: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:882:45: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:895:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘int new_descriptor(int)’:
comm.cpp:1268:102: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘int perform_subst(descriptor_data*, char*, char*)’:
comm.cpp:1563:49: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
comm.cpp:1574:50: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
comm.cpp: In function ‘void close_socket(descriptor_data*)’:
comm.cpp:1688:68: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void unrestrict_game(int)’:
comm.cpp:1807:32: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void free_up_memory(int)’:
comm.cpp:1814:79: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void hupsig(int)’:
comm.cpp:1824:70: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void intsig(int)’:
comm.cpp:1831:70: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void termsig(int)’:
comm.cpp:1838:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: At global scope:
comm.cpp:2218:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [comm.o] Error 1
nothing is easy these days eh?
|
Post Reply | Quote | Private Message
|
Title: Neophyte
Posts: 16
Joined: 06 Jan 2014
|
Date Posted: Tue Jan 07, 2014 5:40 pm
Subject:
|
I thought it was a mysql issue, but I got that working and inserted all of the database information on the sticky post.
Still get this when I try and compile.
Quote: | g++ -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb config.cpp -o config
config.cpp:7:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:8:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:9:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:10:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:19:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:34:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:42:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:70:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:75:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:81:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:83:20: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:84:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:85:20: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
config.cpp:86:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/usr/lib/gcc/i686-linux-gnu/4.7/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [config] Error 1
dave@dave-VirtualBox:~/Desktop/ShadowrunGalaxy/src$ make
g++ -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb -c -o comm.o comm.cpp
comm.cpp: In function ‘void copyover_recover()’:
comm.cpp:272:72: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:307:100: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:312:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘int get_max_players()’:
comm.cpp:461:14: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void game_loop(int)’:
comm.cpp:641:70: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:753:86: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:760:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void make_prompt(descriptor_data*)’:
comm.cpp:878:44: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:880:85: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:882:45: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:895:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘int new_descriptor(int)’:
comm.cpp:1268:102: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘int perform_subst(descriptor_data*, char*, char*)’:
comm.cpp:1563:49: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
comm.cpp:1574:50: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
comm.cpp: In function ‘void close_socket(descriptor_data*)’:
comm.cpp:1688:68: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void unrestrict_game(int)’:
comm.cpp:1807:32: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void free_up_memory(int)’:
comm.cpp:1814:79: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void hupsig(int)’:
comm.cpp:1824:70: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void intsig(int)’:
comm.cpp:1831:70: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void termsig(int)’:
comm.cpp:1838:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: At global scope:
comm.cpp:2218:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [comm.o] Error 1
|
|
Post Reply | Quote | Private Message
|
Title: Site Admin
Posts: 557
Joined: 03 Apr 2005
|
Date Posted: Tue Jan 07, 2014 10:05 pm
Subject:
|
Grab the code from the latest code directory, it should compile a bit better. I need to do a release that has been updated to work with the newer versions of gcc.
|
Post Reply | Quote | Private Message
|
Title: Neophyte
Posts: 16
Joined: 06 Jan 2014
|
Date Posted: Wed Jan 08, 2014 1:18 am
Subject:
|
Hey Che,
This is the code from the site today.
Is there a different place to get it?
|
Post Reply | Quote | Private Message
|
Title: Site Admin
Posts: 557
Joined: 03 Apr 2005
|
Date Posted: Wed Jan 08, 2014 5:17 am
Subject:
|
Is it from http://www.awakenedworlds.net/src/ ?
|
Post Reply | Quote | Private Message
|
Title: Neophyte
Posts: 16
Joined: 06 Jan 2014
|
Date Posted: Wed Jan 08, 2014 4:01 pm
Subject:
|
Ok using the latest src, Still getting huge errors.
Do I have to install GCC 4.1.2?
I have tried with no success. There are just too many dependencies. Any ideas?
|
Post Reply | Quote | Private Message
|
Title: Site Admin
Posts: 557
Joined: 03 Apr 2005
|
Date Posted: Wed Jan 08, 2014 11:59 pm
Subject:
|
I'm currently using 4.6.4
|
Post Reply | Quote | Private Message
|
Title: Neophyte
Posts: 16
Joined: 06 Jan 2014
|
Date Posted: Thu Jan 09, 2014 1:53 pm
Subject:
|
Well then, something else has to be missing.
I guess I'll re install ubuntu, start from scratch.
Do you think it's any different that I'm running it on virtual box?
Also let's make this clear, I need to be using the old make files, and any other old file that's not in the new src?
|
Post Reply | Quote | Private Message
|
Title: Neophyte
Posts: 16
Joined: 06 Jan 2014
|
Date Posted: Thu Jan 09, 2014 2:11 pm
Subject:
|
dave@dave-VirtualBox:~/Desktop/sr/src$ make
g++ -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb -c -o comm.o comm.cpp
comm.cpp: In function ‘void copyover_recover()’:
comm.cpp:272:72: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:307:100: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:312:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘int get_max_players()’:
comm.cpp:461:14: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void game_loop(int)’:
comm.cpp:641:70: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:759:86: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:766:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void make_prompt(descriptor_data*)’:
comm.cpp:884:44: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:886:85: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:888:45: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp:901:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘int new_descriptor(int)’:
comm.cpp:1302:102: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘int perform_subst(descriptor_data*, char*, char*)’:
comm.cpp:1597:49: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
comm.cpp:1608:50: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
comm.cpp: In function ‘void close_socket(descriptor_data*)’:
comm.cpp:1722:68: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void unrestrict_game(int)’:
comm.cpp:1841:32: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void free_up_memory(int)’:
comm.cpp:1848:79: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void hupsig(int)’:
comm.cpp:1858:70: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void intsig(int)’:
comm.cpp:1865:70: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: In function ‘void termsig(int)’:
comm.cpp:1872:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
comm.cpp: At global scope:
comm.cpp:2252:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [comm.o] Error 1
How is your compiler ignoring these errors?
|
Post Reply | Quote | Private Message
|
Title: Neophyte
Posts: 16
Joined: 06 Jan 2014
|
Date Posted: Thu Jan 09, 2014 3:13 pm
Subject:
|
Can you tell me what libraries you are using? Do you have a custom library?
I have to be missing something that you have.
|
Post Reply | Quote | Private Message
|
Title: Site Admin
Posts: 557
Joined: 03 Apr 2005
|
Date Posted: Thu Jan 09, 2014 10:44 pm
Subject:
|
Grab comm.cpp from the recent code and those errors should now be fixed. Not sure why they are throwing errors on yours but not on mine
|
Post Reply | Quote | Private Message
|
Title: Neophyte
Posts: 16
Joined: 06 Jan 2014
|
Date Posted: Sun Jan 12, 2014 1:53 pm
Subject:
|
Hey Che,
I am using the entire new source from the link you sent me.
There are some files missing out of there like the make file and some other things.
Would you be willing to zip your source up off of the server and email it my way?
I'd be forever in debt
bullfist@gmail.com
|
Post Reply | Quote | Private Message
|
Title: Site Admin
Posts: 557
Joined: 03 Apr 2005
|
Date Posted: Mon Jan 13, 2014 5:52 am
Subject:
|
You need some files from the release pack, namely the makefile and transport.cpp. Other than that you can use the rest of the files in that link
|
Post Reply | Quote | Private Message
|
|
|
Awakened Worlds Forum Index » AwakeMUD Core Development |
|
All times are GMT Goto page 1, 2 Next
|
Page 1 of 2 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
The time now is Tue Apr 24, 2018 6:08 pm
|
powered by hailBoards v.1.2.0 ©2006 SPIRE / [based on phpBB©]
|
| |