View previous topic :: View next topic |
Author |
Message |
Tone Eternal
Joined: 06 Mar 2005 Posts: 5
|
Posted: Sun Mar 06, 2005 18:11 Post subject: g++ -w =fPIC -shared -W -Wall (ETC ETC) |
|
|
as soon as make install does that command: I get this:
g++ -w -fPIC -shared -W -Wall -g -o nwnx2.so nwnx2lib.o NWNXBase.o gline.o -ldl
-DHAVE_CONFIG_H
make -C db
make[1]: Entering directory `/var/nwnx2-install/linnwnx2/db'
g++ -g -mcpu=i386 -I.. -c -o NWNXmysql.o NWNXmysql.cpp
In file included from NWNXmysql.h:17,
from NWNXmysql.cpp:20:
../db/dbmysql.h:27:25: mysql/mysql.h: No such file or directory
In file included from NWNXmysql.h:17,
from NWNXmysql.cpp:20:
../db/dbmysql.h:40: error: 'MYSQL' is used as a type, but is not defined as a
type.
../db/dbmysql.h:41: error: syntax error before `*' token
make[1]: *** [NWNXmysql.o] Error 1
make[1]: Leaving directory `/var/nwnx2-install/linnwnx2/db'
make: *** [db] Error 2
Since that happens I'm so sure that I wont be able to install nwnx2.. can someone tell me what I am doing wrong, or what I can do to prevent this? |
|
Back to top |
|
|
mfx
Joined: 13 Feb 2005 Posts: 19 Location: Stockholm, Sweden
|
Posted: Sun Mar 06, 2005 19:29 Post subject: |
|
|
Quote: |
../db/dbmysql.h:27:25: mysql/mysql.h: No such file or directory
|
You need to install the mysql header files. They are not a part of the mysql install. Usually they come in packages like mysql-developer or the alike. _________________ MNXJ - Java API for NWN : https://www.sourceforge.net/projects/mnxj/ |
|
Back to top |
|
|
Tone Eternal
Joined: 06 Mar 2005 Posts: 5
|
Posted: Mon Mar 07, 2005 3:12 Post subject: |
|
|
did this:
Code: |
yum install mysql-devel
|
ok the make install seems to have given no errors
it did a hude dump of entering directories, leaving directories, and at the last it said this:
Code: |
install nwnx2.so /var/nwn/
if [ ! -f /var/nwn/nwnx2.ini ]; then install nwnx2.ini /var/nwn/; fi
|
that ok??? |
|
Back to top |
|
|
DarkstarsDad
Joined: 17 Jan 2005 Posts: 59 Location: Overland Park, Kansas USA
|
Posted: Mon Mar 14, 2005 18:29 Post subject: yep |
|
|
looks like it compiled correctly. _________________ Just because you think you can't. Is the best reason to try it anyway. |
|
Back to top |
|
|
|