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 
 
make install trouble

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



Joined: 12 Apr 2008
Posts: 4
Location: Seattle

PostPosted: Sat Apr 12, 2008 7:40    Post subject: make install trouble Reply with quote

I get this. I am not familiar with compiling at all. Please be gentle :)
I'm assuming I'm doing something silly.


===============================
g++ -mcpu=i386 -I.. -c -o NWNXmysql.o NWNXmysql.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from NWNXmysql.h:17,
from NWNXmysql.cpp:20:
../db/dbmysql.h:27:25: error: mysql/mysql.h: No such file or directory
../db/dbmysql.h:40: error: \u2018MYSQL\u2019 does not name a type
../db/dbmysql.h:41: error: ISO C++ forbids declaration of \u2018MYSQL_RES\u2019 with no type
../db/dbmysql.h:41: error: expected \u2018;\u2019 before \u2018*\u2019 token
make[1]: *** [NWNXmysql.o] Error 1
make[1]: Leaving directory `/home/atika/Desktop/plugins/compiling/linnwnx2/db'
make: *** [db] Error 2
Back to top
View user's profile Send private message
atika



Joined: 12 Apr 2008
Posts: 4
Location: Seattle

PostPosted: Sat Apr 12, 2008 7:51    Post subject: Murphy's Law Reply with quote

Murphy's Law has it the moment I post the question (after looking for about a week) that I would find the answer right after.

Thank you for your attention. Wink
Back to top
View user's profile Send private message
reverett



Joined: 28 Jul 2008
Posts: 3

PostPosted: Mon Jul 28, 2008 20:40    Post subject: what did you do to fix it Reply with quote

I was having the same issue....what did you do to correct it?

Here is what I was getting when trying to run the make install.

[root@nwnserver linnwnx2]# make install
g++ -g -mcpu=i386 -c -o nwnx2lib.o nwnx2lib.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
nwnx2lib.cpp: In function \u2018void Configure()\u2019:
nwnx2lib.cpp:362: warning: deprecated conversion from string constant to \u2018char*\u2019
nwnx2lib.cpp:369: warning: deprecated conversion from string constant to \u2018char*\u2019
nwnx2lib.cpp:374: error: \u2018atoi\u2019 was not declared in this scope
nwnx2lib.cpp:379: error: \u2018atoi\u2019 was not declared in this scope
make: *** [nwnx2lib.o] Error 1

Thanks,
Back to top
View user's profile Send private message Yahoo Messenger
futts



Joined: 24 Jan 2008
Posts: 12

PostPosted: Tue Sep 16, 2008 4:14    Post subject: Reply with quote

What was the solution? Can someone PM me on this? I'm having the same trouble.
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue Sep 16, 2008 6:51    Post subject: Reply with quote

If you get the same error as reverett, the solution can be found here:
http://www.nwnx.org/phpBB2/viewtopic.php?t=1125
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
futts



Joined: 24 Jan 2008
Posts: 12

PostPosted: Wed Sep 17, 2008 3:58    Post subject: Reply with quote

Thank you for the prompt response! Razz I appreciate it so much!

I fixed the file that you directed to in the post, but I am getting atika's error still. I also assume it is something silly/stupid, because I'm fairly intelligent with Windows but a fresh face to linux. I am understanding more day by day in the process of learning, so please treat me like a newb! Embarassed

Code:

make -C db
make[1]: Entering directory `/home/futts/Desktop/NWN/NWNXPlugins/NWNXCore2.7-beta4/db'
g++  -mcpu=i386  -I..  -c -o NWNXmysql.o NWNXmysql.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from NWNXmysql.h:17,
                 from NWNXmysql.cpp:20:
../db/dbmysql.h:27:25: error: 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’ does not name a type
../db/dbmysql.h:41: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
../db/dbmysql.h:41: error: expected ‘;’ before ‘*’ token
NWNXmysql.cpp: In constructor ‘CNWNXmysql::CNWNXmysql()’:
NWNXmysql.cpp:23: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [NWNXmysql.o] Error 1
make[1]: Leaving directory `/home/futts/Desktop/NWN/NWNXPlugins/NWNXCore2.7-beta4/db'
make: *** [db] Error 2
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Sep 17, 2008 13:57    Post subject: Reply with quote

It appears that you haven't installed MySQL or MySQL development files package.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
futts



Joined: 24 Jan 2008
Posts: 12

PostPosted: Wed Sep 17, 2008 21:16    Post subject: Reply with quote

MySQL is definitely installed. I did my best to read very carefully and ensure all the correct packages were installed on my new Linux. Perhaps I missed something as I am new to the system... let's see here, MySQL itself?

When you mentioned the development file package, did you mean this? I thought that I read in the tutorial that it was included, but I am probably wrong and misread/made a mistake. I just installed it and everything appears to be in order, the .so installed. Again, thanks for your patience with a Linux newb! I've got a lot to learn. Laughing
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Thu Sep 18, 2008 0:10    Post subject: Reply with quote

futts wrote:
MySQL is definitely installed. I did my best to read very carefully and ensure all the correct packages were installed on my new Linux. Perhaps I missed something as I am new to the system... let's see here, MySQL itself?

When you mentioned the development file package, did you mean this? I thought that I read in the tutorial that it was included, but I am probably wrong and misread/made a mistake. I just installed it and everything appears to be in order, the .so installed. Again, thanks for your patience with a Linux newb! I've got a lot to learn. Laughing
I mean this.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
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