Howdy. Lua issues

Spre
Posts: 13
Joined: Sat Jan 24, 2015 6:01 pm

Re: Howdy. Lua issues

Post by Spre » Mon Jan 26, 2015 1:22 am

I dunno, I fixed it by just declaring it.


almost finished.

ive run into this, not sure on this one, stackoverflow says context.close shouldnt be used with zcontext but instead use ctx.destroy();

im not sure about all that, i just know i get the error below and its about time for me to crash

Code: Select all

ap/message.cpp' || echo './'`src/map/message.cpp
src/map/message.cpp:40:17: error: no matching function for call to ‘zmq::context_t::context_t()’
src/map/message.cpp:40:17: note: candidates are:
In file included from src/map/message.h:27:0,
                 from src/map/message.cpp:27:
/usr/include/zmq.hpp:241:9: note: zmq::context_t::context_t(const zmq::context_t&)
/usr/include/zmq.hpp:241:9: note:   candidate expects 1 argument, 0 provided
/usr/include/zmq.hpp:210:16: note: zmq::context_t::context_t(zmq::context_t&&)
/usr/include/zmq.hpp:210:16: note:   candidate expects 1 argument, 0 provided
/usr/include/zmq.hpp:202:16: note: zmq::context_t::context_t(int)
/usr/include/zmq.hpp:202:16: note:   candidate expects 1 argument, 0 provided
src/map/message.cpp: In function ‘void message::close()’:
src/map/message.cpp:448:18: error: ‘class zmq::context_t’ has no member named ‘close’
make: *** [dsgame-message.o] Error 1


Spre
Posts: 13
Joined: Sat Jan 24, 2015 6:01 pm

Re: Howdy. Lua issues

Post by Spre » Mon Jan 26, 2015 12:25 pm

searching the forum even though the configure was ok with just zeromq-devel, make is not the error above.

yum search zeromq3-devel, found zmq3 on zeromqs repo.

installed it, now we get a new error

Code: Select all

src/map/message.h:35:5: error: ‘zmq’ does not name a type
src/map/message.h:36:5: error: ‘zmq’ does not name a type
src/map/message.h:37:5: error: ‘zmq’ does not name a type
make: *** [dsgame-alliance.o] Error 1

was zmq added just for chat between zones and thats all? readign when it was merged implies so, if thats the case it should be removable then, quite frankly im getting tired of these zmq errors, it almost seems like its pushed towards winblows and not *nix.


im also in irc and have gotten no response to my queries

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Howdy. Lua issues

Post by kjLotus » Mon Jan 26, 2015 2:43 pm

if your distro doesn't have zmq.hpp, then just include it from the win32/external/zmq folder
Spre wrote:it almost seems like its pushed towards winblows and not *nix.

im also in irc and have gotten no response to my queries
that's a pretty big assumption, I took a lot of care to make sure it worked on nix as well. doesn't help you if you come in irc while i'm asleep!

Spre
Posts: 13
Joined: Sat Jan 24, 2015 6:01 pm

Re: Howdy. Lua issues

Post by Spre » Mon Jan 26, 2015 5:28 pm

i built it in windows in under 2 minutes, would rather build it on centos though


but cant get pass this error with zeromq3

Code: Select all

g++ -std=gnu++0x -DHAVE_CONFIG_H -I. -I./src/common      -DdsUDPSERV   -I/usr/local/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC  -fPIC  -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1  -g -O2 -MT dsgame-alliance.o -MD -MP -MF .deps/dsgame-alliance.Tpo -c -o dsgame-alliance.o `test -f 'src/map/alliance.cpp' || echo './'`src/map/alliance.cpp
In file included from src/map/alliance.cpp:36:0:
src/map/message.h:34:5: error: ‘zmq’ does not name a type
src/map/message.h:35:5: error: ‘zmq’ does not name a type
src/map/message.h:36:5: error: ‘zmq’ does not name a type
make: *** [dsgame-alliance.o] Error 1

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Howdy. Lua issues

Post by kjLotus » Mon Jan 26, 2015 5:52 pm

maybe it's from libczmq?

you'll have to either figure out which package contains the c++ bindings or install them yourself

Zev
Posts: 1
Joined: Fri Jul 12, 2013 10:04 am

Re: Howdy. Lua issues

Post by Zev » Fri Mar 20, 2015 3:04 pm

Did you ever get this to compile on CentOS? I followed your advice here, so far, and was able to get everythign but "make" to run. Getting the following
src/map/lua/../entities/../map.h:160: error: âthread_localâ does not name a type
Any ideas?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Howdy. Lua issues

Post by kjLotus » Fri Mar 20, 2015 6:18 pm

Zev wrote:Did you ever get this to compile on CentOS? I followed your advice here, so far, and was able to get everythign but "make" to run. Getting the following
src/map/lua/../entities/../map.h:160: error: âthread_localâ does not name a type
Any ideas?
your gcc version is not high enough

Post Reply