View previous topic :: View next topic |
Author |
Message |
vaudevillian
Joined: 29 Apr 2010 Posts: 1
|
Posted: Thu Apr 29, 2010 20:02 Post subject: NWNX_EASY problems |
|
|
I have followed the readme. Installed the packages that were requested.
Trying to ./install.sh
I get this output:
[: 13: ruby1.8-dev: unexpected operator
[: 13: gtk-clearlooks-gperfection2-theme: unexpected operator
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of void *... 8
checking for a sed that does not truncate output... /bin/sed
checking whether the C compiler accepts the -mtune=i386 flag... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no
configure cannot find necessary include files.
make: *** No rule to make target `distclean'. Stop.
Configuration failed - check the README and ensure you have all required packages installed.
--------------------------------
Edit: I got past that part... I need extra libs that were lot listed in the help me file.
New log:
[: 13: ruby1.8-dev: unexpected operator
[: 13: gtk-clearlooks-gperfection2-theme: unexpected operator
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of void *... 8
checking for a sed that does not truncate output... /bin/sed
checking whether the C compiler accepts the -mtune=i386 flag... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for bzero... yes
checking for getspnam... yes
checking for inflateEnd in -lz... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating plugins/areas/Makefile
config.status: creating plugins/chat/Makefile
config.status: creating plugins/defenses/Makefile
config.status: creating plugins/events/Makefile
config.status: creating plugins/fixes/Makefile
config.status: creating plugins/funcs/Makefile
config.status: creating plugins/functions/Makefile
config.status: creating plugins/hashset/Makefile
config.status: creating plugins/leto/Makefile
config.status: creating plugins/mnx/Makefile
config.status: creating plugins/odmbc/Makefile
config.status: creating plugins/profiler/Makefile
config.status: creating plugins/reset/Makefile
config.status: creating plugins/resman/Makefile
config.status: creating plugins/ruby/Makefile
config.status: creating plugins/spells/Makefile
config.status: creating plugins/structs/Makefile
config.status: creating plugins/system/Makefile
config.status: creating plugins/tmi/Makefile
config.status: creating plugins/tweaks/Makefile
config.status: creating plugins/weapons/Makefile
config.status: creating config.h
g++ -mtune=i386 -pipe -m32 -Iinclude -DHAVE_CONFIG_H -c -o nwnx2lib.o nwnx2lib.cpp
nwnx2lib.cpp: In constructor ‘startstop::startstop()’:
nwnx2lib.cpp:658: warning: format ‘%p’ expects type ‘void*’, but argument 2 has type ‘long unsigned int’
nwnx2lib.cpp:658: warning: format ‘%p’ expects type ‘void*’, but argument 3 has type ‘long unsigned int’
nwnx2lib.cpp:660: warning: format ‘%p’ expects type ‘void*’, but argument 2 has type ‘long unsigned int’
nwnx2lib.cpp:660: warning: format ‘%p’ expects type ‘void*’, but argument 3 has type ‘long unsigned int’
nwnx2lib.cpp: Assembler messages:
nwnx2lib.cpp:463: Warning: indirect jmp without `*'
nwnx2lib.cpp:497: Warning: indirect jmp without `*'
g++ -mtune=i386 -pipe -m32 -Iinclude -DHAVE_CONFIG_H -c -o NWNXBase.o NWNXBase.cpp
g++ -mtune=i386 -pipe -m32 -Iinclude -DHAVE_CONFIG_H -c -o gline.o gline.cpp
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32 -Iinclude -DHAVE_CONFIG_H -c -o lib/nwn_data.o lib/nwn_data.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32 -Iinclude -DHAVE_CONFIG_H -c -o lib/nwn_funcs.o lib/nwn_funcs.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32 -Iinclude -DHAVE_CONFIG_H -c -o lib/nwn_hooks.o lib/nwn_hooks.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32 -Iinclude -DHAVE_CONFIG_H -c -o lib/nx_hook.o lib/nx_hook.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32 -Iinclude -DHAVE_CONFIG_H -c -o lib/nx_log.o lib/nx_log.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32 -Iinclude -DHAVE_CONFIG_H -c -o lib/nx_safe.o lib/nx_safe.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32 -Iinclude -DHAVE_CONFIG_H -c -o lib/nx_signature.o lib/nx_signature.c
g++ -w -fPIC -shared -W -Wall -m32 -o nwnx2.so nwnx2lib.o NWNXBase.o gline.o lib/nwn_data.o lib/nwn_funcs.o lib/nwn_hooks.o lib/nx_hook.o lib/nx_log.o lib/nx_safe.o lib/nx_signature.o -ldl
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.1/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.1/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.1/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.1/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [nwnx2.so] Error 1
for i in plugins/areas plugins/chat plugins/defenses plugins/events plugins/fixes plugins/funcs plugins/functions plugins/hashset plugins/leto plugins/mnx plugins/odmbc plugins/profiler plugins/reset plugins/resman plugins/ruby plugins/spells plugins/structs plugins/tmi plugins/tweaks plugins/weapons ; do make -C $i clean; done
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/areas'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/areas'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/chat'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/chat'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/defenses'
/bin/rm -f *.o */*.o *.so
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/defenses'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/events'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/events'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/fixes'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/fixes'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/funcs'
/bin/rm -f *.o *.so funcs/*/*.o
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/funcs'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/functions'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/functions'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/hashset'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/hashset'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/leto'
/bin/rm -f *.o *.so *~ LetoSo
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/leto'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/mnx'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/mnx'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/odmbc'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/odmbc'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/profiler'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/profiler'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/reset'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/reset'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/resman'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/resman'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/ruby'
/bin/rm -f *.o *.so *~ plugin-t
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/ruby'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/spells'
/bin/rm -f *.o */*.o *.so
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/spells'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/structs'
/bin/rm -f *.o */*.o *.so
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/structs'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/tmi'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/tmi'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/tweaks'
/bin/rm -f *.o */*.o *.so
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/tweaks'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/weapons'
/bin/rm -f *.o */*.o *.so
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/weapons'
/bin/rm -f *.o *.so lib/*.o *~
for i in plugins/areas plugins/chat plugins/defenses plugins/events plugins/fixes plugins/funcs plugins/functions plugins/hashset plugins/leto plugins/mnx plugins/odmbc plugins/profiler plugins/reset plugins/resman plugins/ruby plugins/spells plugins/structs plugins/tmi plugins/tweaks plugins/weapons ; do make -C $i distclean; done
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/areas'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/areas'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/chat'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/chat'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/defenses'
/bin/rm -f *.o */*.o *.so
/bin/rm -f .depend DefensesStrCmds.h DefensesObjCmds.h Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/defenses'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/events'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/events'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/fixes'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/fixes'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/funcs'
/bin/rm -f *.o *.so funcs/*/*.o
/bin/rm -f .depend FuncsStrCmds.h FuncsObjCmds.h Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/funcs'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/functions'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/functions'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/hashset'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/hashset'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/leto'
/bin/rm -f *.o *.so *~ LetoSo
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/leto'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/mnx'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/mnx'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/odmbc'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/odmbc'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/profiler'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/profiler'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/reset'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/reset'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/resman'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/resman'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/ruby'
/bin/rm -f *.o *.so *~ plugin-t
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/ruby'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/spells'
/bin/rm -f *.o */*.o *.so
/bin/rm -f .depend SpellsStrCmds.h SpellsObjCmds.h Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/spells'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/structs'
/bin/rm -f *.o */*.o *.so
/bin/rm -f .depend StructsStrCmds.h StructsObjCmds.h Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/structs'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/tmi'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/tmi'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/tweaks'
/bin/rm -f *.o */*.o *.so
/bin/rm -f .depend TweaksStrCmds.h TweaksObjCmds.h Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/tweaks'
make[1]: Entering directory `/home/vaudevillian/nwnx-easy/plugins/weapons'
/bin/rm -f *.o */*.o *.so
/bin/rm -f .depend WeaponsStrCmds.h WeaponsObjCmds.h Makefile
make[1]: Leaving directory `/home/vaudevillian/nwnx-easy/plugins/weapons'
/bin/rm -f Makefile config.h config.status config.cache config.log *.o *.so lib/*.o *~
Compilation failed. Please refer to the NWNX forums at nwnx.org for help. |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Thu Apr 29, 2010 21:15 Post subject: |
|
|
You're missing the standard C++ library (libstdc++). What distribution are you using? The suggested package for Debian and Debian-derivative (such as Ubuntu) users is build-essential, which includes all the standard libraries needed to build C++ applications. Also note that NWNX will not build with G++ 4.4, you must use 4.3 or earlier. If you already have 4.4 installed, you can install 4.3 alongside it, then before running ./install.sh use the following commands:
export CC=gcc-4.3
export CXX=g++-4.3 |
|
Back to top |
|
|
cieciwa
Joined: 09 Aug 2005 Posts: 33 Location: Cracov, Poland
|
Posted: Tue Oct 05, 2010 14:02 Post subject: |
|
|
I use gcc 4.5.1 and have the same problem ...
Code: | [cieciwa@home nwnx-easy]$ gcc --version
gcc (PLD-Linux) 4.5.1 20100829 (release)
|
What can I do, to use this gcc?
I can't install gcc-4.3 without reinstall half of system |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Tue Oct 05, 2010 23:26 Post subject: |
|
|
You can... use gcc-4.3 or else update most of the codebase to work with 4.4+. Those are really your only two options.
You can usually install 4.3 alongside any other version, there are usually packages available in distributions. Then when compiling all you need to do is run the following commands before the install script:
Code: | export CC=gcc-4.3
export CXX=g++-4.3 |
|
|
Back to top |
|
|
cieciwa
Joined: 09 Aug 2005 Posts: 33 Location: Cracov, Poland
|
Posted: Thu Oct 07, 2010 1:03 Post subject: |
|
|
Not work ....
Code: | Server: Module loaded
FAILED: NWNX!INIT has not been initialized.
FAILED: NWNX!INIT has not been initialized.
FAILED: NWNX!INIT has not been initialized.
FAILED: NWNX!INIT has not been initialized.
|
Building by:
Code: | [cieciwa@home nwn]$ gcc-4.3 --version
gcc-4.3 (GCC) 4.3.3 20090331 (release)
Copyright (C) 2008 Free Software Foundation, Inc.
|
Any ideas ??
Code: | [cieciwa@home nwnx-easy]$ ./configure
checking for gcc... gcc-4.3
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc-4.3 accepts -g... yes
checking for gcc-4.3 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc-4.3 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of void *... 4
checking for a sed that does not truncate output... /bin/sed
checking whether the C compiler accepts the -mtune=i386 flag... yes
checking for gcc... (cached) gcc-4.3
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc-4.3 accepts -g... (cached) yes
checking for gcc-4.3 option to accept ISO C89... (cached) none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++-4.3 accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for bzero... yes
checking for getspnam... yes
checking for inflateEnd in -lz... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating plugins/areas/Makefile
config.status: creating plugins/chat/Makefile
config.status: creating plugins/defenses/Makefile
config.status: creating plugins/events/Makefile
config.status: creating plugins/fixes/Makefile
config.status: creating plugins/funcs/Makefile
config.status: creating plugins/functions/Makefile
config.status: creating plugins/hashset/Makefile
config.status: creating plugins/leto/Makefile
config.status: creating plugins/mnx/Makefile
config.status: creating plugins/odmbc/Makefile
config.status: creating plugins/profiler/Makefile
config.status: creating plugins/reset/Makefile
config.status: creating plugins/resman/Makefile
config.status: creating plugins/ruby/Makefile
config.status: creating plugins/spells/Makefile
config.status: creating plugins/structs/Makefile
config.status: creating plugins/system/Makefile
config.status: creating plugins/tmi/Makefile
config.status: creating plugins/tweaks/Makefile
config.status: creating plugins/weapons/Makefile
config.status: creating config.h
|
And:
Code: | [cieciwa@home nwnx-easy]$ make
g++-4.3 -mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H -c -o nwnx2lib.o nwnx2lib.cpp
nwnx2lib.cpp: Assembler messages:
nwnx2lib.cpp:497: Warning: indirect jmp without `*'
nwnx2lib.cpp:463: Warning: indirect jmp without `*'
g++-4.3 -mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H -c -o NWNXBase.o NWNXBase.cpp
... |
|
|
Back to top |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Thu Oct 07, 2010 1:07 Post subject: |
|
|
Everything is working. Just add to your OnModuleLoad script:
Code: | SetLocalString(OBJECT_SELF, "NWNX!INIT", "1");
GetLocalObject(OBJECT_SELF, "NWNX!INIT");
DeleteLocalString(OBJECT_SELF, "NWNX!INIT"); |
And combined for odmbc plugin:
Code: | #include "aps_include"
void main() {
SetLocalString(OBJECT_SELF, "NWNX!INIT", "1");
GetLocalObject(OBJECT_SELF, "NWNX!INIT");
DeleteLocalString(OBJECT_SELF, "NWNX!INIT");
SQLInit();
} |
|
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Fri Oct 08, 2010 18:42 Post subject: |
|
|
Alternatively, in nwnx2.ini:
Code: | [NWNX]
disablenwnxinit=y |
Odd though... I thought that was set by default. You have copied nwnx2.ini over to your NWN folder as well as the plugins you want, right? |
|
Back to top |
|
|
cieciwa
Joined: 09 Aug 2005 Posts: 33 Location: Cracov, Poland
|
Posted: Tue Oct 12, 2010 18:58 Post subject: |
|
|
Didn't work ...
Code: |
[NWNX]
disablenwnxinit=y
|
Can't use NWNX.
In "OnModuleLoad" I have something like this:
Code: | // tablica gracza
SQLExecDirect("DESCRIBE player_data;");
iResult = SQLFetch();
DEBUG("[DEBUG] Result of player_data: " + IntToString(iResult));
if (iResult != SQL_SUCCESS){
DEBUG("Tablica graczy nie istnieje. Tworze ...");
// Player table not exist. Creating ....
SQLExecDirect("create table player_data ("+
"numer_id int(11) NOT NULL,"+
"token tinyint(4) NOT NULL default '0',"+
"HP int(11) default NULL,"+
"miejsce_startu text NOT NULL,"+
");" );
}
|
And in database I don't have table player_data.
When module is loading NWNX didn't create player_data table.
WHY ? |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Wed Oct 13, 2010 9:42 Post subject: |
|
|
I think you need SQLInit() in there somewhere. Try running the aps_demo module as a control.
Also, tables don't just create themselves, you need to create them yourself using a syntax like for example:
Code: | CREATE TABLE tablename(column1 INT(11), column2 VARCHAR(255) NOT NULL, column3 TINYINT(1) DEFAULT 1); |
aps_demo contains code to create the pwdata and pwobjdata tables which are needed for the SetPersistent and GetPersistent functions. |
|
Back to top |
|
|
cieciwa
Joined: 09 Aug 2005 Posts: 33 Location: Cracov, Poland
|
Posted: Wed Oct 13, 2010 22:18 Post subject: |
|
|
Full listing of OnModuleLoad script:
Why din't work ??
Code: |
#include "__default"
// #include "setting"
#include "aps_include"
#include "cnr_persist_inc"
#include "cnr_config_inc"
void main()
{
string sQuery;
// initialize SQL
SQLInit();
// connected to database ?
SQLExecDirect("DESCRIBE world_time;");
int iResult = SQLFetch();
DEBUG("Result of world_time: " + IntToString(iResult));
if (iResult != SQL_SUCCESS){
DEBUG("Tablica czasu nie istnieje. Tworze ...");
//Time table not exist. Creating ...
SQLExecDirect("create table world_time ("+
" hour integer not NULL, "+
" day integer not NULL, "+
" month integer not NULL, "+
"year integer not NULL"+
");" );
} else {
sQuery="SELECT hour,day,month,year FROM world_time;";
SQLExecDirect(sQuery);
if (SQLFetch() == SQL_SUCCESS){
SetCalendar(StringToInt(SQLGetData(4)),StringToInt(SQLGetData(3)),StringToInt(SQLGetData(2)));
SetTime(StringToInt(SQLGetData(1)),0,0,0);
}
else {
DEBUG("[DEBUG] Czasu nie udalo sie ustawic - przyjmuje domyslny.");
// Can't set date - use default
SetCalendar(1300,6,1);
SetTime(0,0,0,0);
}
}
// tablica identyfikujaca graczy - player id table
SQLExecDirect("DESCRIBE player_id");
iResult = SQLFetch();
DEBUG("[DEBUG] Result of player_id: " + IntToString(iResult));
if (iResult != SQL_SUCCESS){
DEBUG("Tablica identyfikacji graczy nie istnieje. Tworze ...");
// Player ID table not exist. Creating ...
SQLExecDirect("create table player_id ("+
"numer_id int(11) NOT NULL auto_increment,"+
"gracz varchar(128),"+
"postac varchar(128),"+
"CDKey char(16),"+
"IP char(16),"+
"KEY `numer_id` (`numer_id`)"+
");" );
}
// tablica gracza - player table
SQLExecDirect("DESCRIBE player_data;");
iResult = SQLFetch();
DEBUG("[DEBUG] Result of player_data: " + IntToString(iResult));
if (iResult != SQL_SUCCESS){
DEBUG("Tablica graczy nie istnieje. Tworze ...");
// Plater table not exist. Creating ...
SQLExecDirect("create table player_data ("+
"numer_id int(11) NOT NULL,"+
"token tinyint(4) NOT NULL default '0',"+
"HP int(11) default NULL,"+
"miejsce_startu text NOT NULL,"+
");" );
}
// tablica klas. - class table
SQLExecDirect("DESCRIBE class_data");
iResult = SQLFetch();
if (iResult != SQL_SUCCESS){
DEBUG("Tablica klas nie istnieje. Tworze ...");
// Class table not exist. Creating ...
SQLExecDirect("CREATE TABLE class_data ("+
"numer_id int(11) NOT NULL,"+
"first_class tinyint(4),"+
"second_class tinyint(4),"+
"third_class tinyint(4),"+
"prestige_class tinyint(4)"+
");" );
}
SQLExecDirect("DESCRIBE exp_data");
iResult = SQLFetch();
if (iResult != SQL_SUCCESS){
DEBUG("Tablica doswiadczenia nie istnieje. Tworze ...");
// Expirience table not exist. Creating ...
SQLExecDirect("CREATE TABLE exp_data ("+
"numer_id int(11) NOT NULL,"+
"exp longint"+
");" );
}
SQLExecDirect("DESCRIBE config_table");
iResult = SQLFetch();
DEBUG("Tablica konfiguracji nie istnieje. Tworze ...");
// Config table not exist. Creating ...
if (iResult != SQL_SUCCESS){
SQLExecDirect("CREATE TABLE config_table ("+
"conf_type varchar(16) NOT NULL,"+
"conf_value varchar(8) NOT NULL"+
");" );
}
// CNR initialize
///ExecuteScripts("cnr_module_
// if cnr_misc table does not exist, create it
CnrSQLExecDirect("DESCRIBE cnr_misc");
if (CnrSQLFetch() != CNR_SQL_SUCCESS)
{
// for MySQL
CnrSQLExecDirect("CREATE TABLE cnr_misc (" +
"`player` VARCHAR(64) default NULL," +
"`tag` VARCHAR(64) default NULL," +
"`name` VARCHAR(64) default NULL," +
"`val` TEXT," +
"`expire` SMALLINT UNSIGNED default NULL," +
"`last` TIMESTAMP(14) NOT NULL," +
"KEY idx (player,tag,name)" +
")" );
}
if (CNR_BOOL_RECIPE_DATA_IS_PERSISTENT_IN_SQL_DATABASE == TRUE)
{
// if cnr_devices table does not exist, create it
CnrSQLExecDirect("DESCRIBE cnr_devices");
if (CnrSQLFetch() != CNR_SQL_SUCCESS)
{
// for MySQL
CnrSQLExecDirect("CREATE TABLE `cnr_devices` (" +
"`sDeviceTag` varchar(16) NOT NULL default ''," +
"`sAnimation` varchar(16) default NULL," +
"`bSpawnInDevice` integer default '0'," +
"`sInvTool` varchar(16) default NULL," +
"`sEqpTool` varchar(16) default NULL," +
"`nTradeType` integer default '0'," +
"`fInvToolBP` float default '0'," +
"`fEqpToolBP` float default '0'," +
"PRIMARY KEY (sDeviceTag)" +
")" );
}
// if cnr_submenus table does not exist, create it
CnrSQLExecDirect("DESCRIBE cnr_submenus");
if (CnrSQLFetch() != CNR_SQL_SUCCESS)
{
// for MySQL
CnrSQLExecDirect("CREATE TABLE `cnr_submenus` (" +
"`sKeyToMenu` varchar(64) NOT NULL default ''," +
"`sKeyToParent` varchar(64) NOT NULL default ''," +
"`sTitle` varchar(64) NOT NULL default ''," +
"`sDeviceTag` varchar(16) NOT NULL default ''," +
"PRIMARY KEY (`sKeyToMenu`)," +
"INDEX `sDeviceTag` (`sDeviceTag`)" +
")" );
}
// if cnr_recipes table does not exist, create it
CnrSQLExecDirect("DESCRIBE cnr_recipes");
if (CnrSQLFetch() != CNR_SQL_SUCCESS)
{
// for MySQL
CnrSQLExecDirect("CREATE TABLE `cnr_recipes` (" +
"`sKeyToRecipe` varchar(64) NOT NULL default ''," +
"`sDeviceTag` varchar(16) NOT NULL default ''," +
"`sDescription` varchar(64) NOT NULL default ''," +
"`sTag` varchar(16) NOT NULL default ''," +
"`nQty` integer default '1'," +
"`sKeyToParent` varchar(64) NOT NULL default ''," +
"`sFilter` varchar(32) default NULL," +
"`nStr` integer default '0'," +
"`nDex` integer default '0'," +
"`nCon` integer default 0," +
"`nInt` integer default '0'," +
"`nWis` integer default '0'," +
"`nCha` integer default '0'," +
"`nLevel` integer default '1'," +
"`nGameXP` integer default '0'," +
"`nTradeXP` integer default '0'," +
"`bScalarOverride` integer default '0'," +
"`sAnimation` varchar(16) default NULL," +
"`sBiTag` varchar(16) default NULL," +
"`nBiQty` integer default '0'," +
"`nOnFailBiQty` integer default '0'," +
"PRIMARY KEY (`sKeyToRecipe`)," +
"INDEX `sDeviceTag` (`sDeviceTag`)" +
")" );
}
// if cnr_components table does not exist, create it
CnrSQLExecDirect("DESCRIBE cnr_components");
if (CnrSQLFetch() != CNR_SQL_SUCCESS)
{
// for MySQL
CnrSQLExecDirect("CREATE TABLE `cnr_components` (" +
"`sKeyToComponent` varchar(64) NOT NULL default ''," +
"`sTag` varchar(16) NOT NULL default ''," +
"`nQty` integer default '1'," +
"`nRetainQty` integer default '0'," +
"`sKeyToRecipe` varchar(64) NOT NULL default ''," +
"`sDeviceTag` varchar(16) NOT NULL default ''," +
"PRIMARY KEY (`sKeyToComponent`)," +
"INDEX `sDeviceTag` (`sDeviceTag`)" +
")" );
}
}
PrintString("Launching cnr_recipe_init");
ExecuteScript("cnr_recipe_init", OBJECT_SELF);
PrintString("Launching cnr_book_init");
ExecuteScript("cnr_book_init", OBJECT_SELF);
PrintString("Launching cnr_plant_init");
ExecuteScript("cnr_plant_init", OBJECT_SELF);
PrintString("Launching cnr_source_init");
ExecuteScript("cnr_source_init", OBJECT_SELF);
PrintString("Launching cnr_merch_init");
ExecuteScript("cnr_merch_init", OBJECT_SELF);
} |
|
|
Back to top |
|
|
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|