View previous topic :: View next topic |
Author |
Message |
atika
Joined: 12 Apr 2008 Posts: 4 Location: Seattle
|
Posted: Sat Apr 12, 2008 7:40 Post subject: make install trouble |
|
|
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 |
|
|
atika
Joined: 12 Apr 2008 Posts: 4 Location: Seattle
|
Posted: Sat Apr 12, 2008 7:51 Post subject: Murphy's Law |
|
|
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. |
|
Back to top |
|
|
reverett
Joined: 28 Jul 2008 Posts: 3
|
Posted: Mon Jul 28, 2008 20:40 Post subject: what did you do to fix it |
|
|
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 |
|
|
futts
Joined: 24 Jan 2008 Posts: 12
|
Posted: Tue Sep 16, 2008 4:14 Post subject: |
|
|
What was the solution? Can someone PM me on this? I'm having the same trouble. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
|
Back to top |
|
|
futts
Joined: 24 Jan 2008 Posts: 12
|
Posted: Wed Sep 17, 2008 3:58 Post subject: |
|
|
Thank you for the prompt response! 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!
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Sep 17, 2008 13:57 Post subject: |
|
|
It appears that you haven't installed MySQL or MySQL development files package. |
|
Back to top |
|
|
futts
Joined: 24 Jan 2008 Posts: 12
|
Posted: Wed Sep 17, 2008 21:16 Post subject: |
|
|
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. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Thu Sep 18, 2008 0:10 Post subject: |
|
|
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. | I mean this. |
|
Back to top |
|
|
|