logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
g++ -w =fPIC -shared -W -Wall (ETC ETC)

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
Tone Eternal



Joined: 06 Mar 2005
Posts: 5

PostPosted: Sun Mar 06, 2005 18:11    Post subject: g++ -w =fPIC -shared -W -Wall (ETC ETC) Reply with quote

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
View user's profile Send private message
mfx



Joined: 13 Feb 2005
Posts: 19
Location: Stockholm, Sweden

PostPosted: Sun Mar 06, 2005 19:29    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Tone Eternal



Joined: 06 Mar 2005
Posts: 5

PostPosted: Mon Mar 07, 2005 3:12    Post subject: Reply with quote

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
View user's profile Send private message
DarkstarsDad



Joined: 17 Jan 2005
Posts: 59
Location: Overland Park, Kansas USA

PostPosted: Mon Mar 14, 2005 18:29    Post subject: yep Reply with quote

looks like it compiled correctly.
_________________
Just because you think you can't. Is the best reason to try it anyway.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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