Page 1 of 2
Compilation problems with rev: 1013
Posted: Fri Mar 13, 2015 4:18 am
by Belfedia
Hello,
I use Debian7.5 system with mysql5.1 server and GCC 4.4.7
I take svn source but !
I can't compil this version , and i don't understand this error.
Code: Select all
ks21817:/home/vanguard/vgoemu/trunk/src/world# make
g++ -c `mysql_config --cflags` -march=native -pipe -O -pthread -std=c++0x -Wall -g -Wno-reorder -DVG_WORLD -DVG_DEBUG -D_GNU_SOURCE ../common/Database.cpp -o ../common/Database.o
In file included from ../common/Database.cpp:36:
../common/Util.h:48:18: error: atomic: Aucun fichier ou dossier de ce type
make: *** [../common/Database.o] Error 1
Someone can help me ?
Re: Compilation problems with rev: 1013
Posted: Fri Mar 13, 2015 5:02 am
by Kandra
My french is quite rusty but it can't find atomic which is a c++11 feature, and the Vanguard server emulator require c++11.
GCC 4.4.7 does not have c++11 support, that was added in version 4.7.
Re: Compilation problems with rev: 1013
Posted: Fri Mar 13, 2015 5:36 pm
by John Adams
Hello Belfedia, my old EQ2Emu tester friend
Yes, Kandra is correct - must use gcc 4.8+ for VGOEmulator. Looks like I need to make some updates to the
Linux Wiki. Thanks for the reminder.
vgodev@vgodev:~$ gcc --version
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Re: Compilation problems with rev: 1013
Posted: Sat Mar 14, 2015 2:45 am
by Belfedia
Your french is perhaps rusty, but not your Gcc skill
I upgrade gcc to 4.7 and error is gone
I found a new error but a ' apt-get install libreadline-dev' repair it
and 'Finished building world.' coming !
Thanks to help
Re: Compilation problems with rev: 1013
Posted: Sat Mar 14, 2015 2:49 am
by Belfedia
[quote="John Adams"]Hello Belfedia, my old EQ2Emu tester friend [/quote]
hello John Adams, i follow you on all your server emulation
I'm a very big vanguard's fan, i played long time on european server.
Another time, running on telorn's kingdom is my new dream
Re: Compilation problems with rev: 1013
Posted: Sat Mar 14, 2015 8:36 am
by John Adams
Very good. The server called "Apocalypse" is run from France, too! I hope to get the public code/db updated this weekend, but it will likely be next. Looking forward to seeing your server on the list.
Re: Compilation problems with rev: 1013
Posted: Mon Mar 16, 2015 1:53 am
by Belfedia
[quote="John Adams"]Very good. The server called "Apocalypse" is run from France, too! I hope to get the public code/db updated this weekend, but it will likely be next. Looking forward to seeing your server on the list.[/quote]
I know "apocalypse" it was a hardcore gamer guild on my server
Where i can find current emulator version, i see they are in 0.3 ?
Wiki is'nt up to date, i Have problems to send player on my world...
Create char fill my database, but client can't read it, all ports are correct in wiki ? I can't log in.
Re: Compilation problems with rev: 1013
Posted: Sat Mar 21, 2015 10:51 pm
by John Adams
The Wiki should be correct, and the code on Public SVN should be 0.2 release and stable. Check your firewalls and ports again. I just tried to make a toon on your server, and am Waiting on Data. Post your vgemu-world.xml (minus passwords) for us to see, too.
Could just be the externalIp setting as well.
Re: Compilation problems with rev: 1013
Posted: Sun Mar 22, 2015 2:58 pm
by Belfedia
Code: Select all
<vgoemu>
<!-- World Server config
host: This is your internal IP (e.g. localhost, 127.0.0.1, 192.168.x.x, etc).
This may be your external IP address if you are not using a router or your router
will resolve your external IP address from within your network.
externalIp: This is your external IP. This may be left blank if you do not care about outside
connections or if 'host' is set to your external IP.
port: The port your world will listen on. This shouldn't change until we know if this is dynamic.
name: The world name you registered with on the website.
account: The world account name you registered with on the website.
password: The world account's password you registered with on the webste.
-->
<worldserver
host="localhost"
externalIp="86.70.151.84"
port="10100"
name="Froggy French Server Test"
account="xxxxx"
password="xxxxx"
/>
<!-- This is the host and port world will connect to the login server on -->
<loginserver host="login.vgoemulator.net" port="10102" />
<!-- Patch Server config
host : This is the IP/FQDN of the PatchServer service
port : The port used to connect to the PatchServer service
updatetables : Table Updates are changes to the DB Schema (non-data)
: "ask" will ask before applying each update
: "always" will apply each update without asking
: "false" turns off auto updates
updatedata : Data Updates are the content of tables (non-schema)
verbose : "true" shows full SQL query being applied
Note: For now, patching is disabled because the patchserver is incomplete!
-->
<patchserver host="login.vgoemulator.net" port="10110" updatetables="never" updatedata="false" verbose="false" />
<!-- Credentials to use to connect to the MySQL server -->
<database host="localhost" port="3306" user="xxxxx" password="xxxxx" database="vanguard" />
<!-- Logging -->
Vgemu-world start nice :
Code: Select all
Website : http://vgoemulator.net
SVN : http://svn.vgoemulator.net/svn/vgoemulator
22:31:51.008 I General Starting VGOEmulator WorldServer v0.2 Alpha
22:31:51.010 I Database MySQL database connected to localhost:3306
22:31:51.026 I Config Successfully loaded 602 packet structs.
22:31:51.027 D Rules Loaded 1 Rule Sets
22:31:51.042 I Database Successfully loaded 259 attributes.
22:31:51.043 I Database Successfully loaded 360 skill pools.
22:31:51.045 I Database Successfully loaded 388 character titles.
22:31:51.079 I Database Successfully loaded 601 factions.
22:31:57.925 I Database Successfully loaded 35431 items.
22:31:57.930 I Database Successfully loaded 4 variables.
22:31:57.930 D Spawn Loading All Spawns
22:31:58.205 D Spawn Loaded 23629 NPCs/Actors.
22:31:58.890 D Spawn Loaded 180755 Placements.
22:31:59.720 D Spawn Loaded 181152 NPC Entries.
22:31:59.732 D Spawn Loaded 1365 Music.
22:31:59.748 D Spawn Loaded 1991 Sounds.
22:31:59.809 D Spawn Loaded 14168 PPOs.
22:31:59.810 D Spawn Loaded 15 Movers.
22:31:59.810 D Spawn Loaded 0 Vehicles [Not Implemented - Fill in Stubs].
22:31:59.810 I Database Successfully loaded 56 commands.
22:31:59.811 I LUA Successfully loaded 2 spawn scripts.
22:31:59.811 I LUA Successfully loaded 0 chunk scripts.
22:31:59.811 D Char Setting all players offline
22:31:59.910 I Database Successfully loaded 123 emotes.
22:32:00.217 I Database Successfully loaded 3086 character abilities.
22:32:00.218 I Database Successfully loaded 119 combat forms.
22:32:00.219 I Net Server listening on 127.0.0.1:10100
22:32:00.458 I Net Connected to login server login.vgoemulator.net:10102
All port are mapped from my router to server...
Char is write to mysql database, but client can't read data ???
Code: Select all
ACCEPT all $FW udp 10100:10101
ACCEPT all $FW udp 10194:10300
ACCEPT all $FW tcp 10102
Re: Compilation problems with rev: 1013
Posted: Sun Mar 22, 2015 3:20 pm
by John Adams
WorldServer: host="localhost"
This is incorrect. Must be the LAN IP if you want outside connections to bind to it.
Database can stay localhost.