| View previous topic :: View next topic |
| Author |
Message |
bizkyt
Joined: 23 Jun 2010 Last Visit: 20 Jul 2010 Posts: 8
|
Posted: Wed Jun 23, 2010 1:35 am Post subject: QTSIM help |
|
|
Hi,
I'm trying to install qtsim in ubuntu 10.04. I make this commands like in the website told:
Now I have past "qtsim" and past "SpeedKernel" in my home directory.
I make in the terminal:
| Quote: | cd /home/pedro/qtsim
./install |
And appears me this:
| Quote: | Welcome to QtSim.
This script will attempt to automatically install QtSim for you.
BEWARE: Unlike its predecessor, this script is non-interactive.
This means for you: if you want to alter any settings, please
change them in this 'install' before you continue!
[Enter to continue]
Checking for SpeedKernel's source directory...
default, valid.
Error.
I want '../SpeedKernel' to contain SpeedKernel.pro - else I can't bake my cookies.
|
What I have to do?  |
|
| Back to top |
|
 |
TheButcher Developer
Joined: 25 Dec 2004 Last Visit: 07 Sep 2010 Posts: 1163 Location: Germany
|
|
| Back to top |
|
 |
bizkyt
Joined: 23 Jun 2010 Last Visit: 20 Jul 2010 Posts: 8
|
Posted: Wed Jun 23, 2010 12:16 pm Post subject: |
|
|
Thank you for the reply.
I make that, and give me this:
| Quote: |
Welcome to QtSim.
This script will attempt to automatically install QtSim for you.
BEWARE: Unlike its predecessor, this script is non-interactive.
This means for you: if you want to alter any settings, please
change them in this 'install' before you continue!
[Enter to continue]
Checking for SpeedKernel's source directory...
default, valid.
Ok, the source seems to be there.
Qt looks fine. Found QMake version 2.01a.
This means we have some Qt-4 here, too. Along with dev-stuff. I guess.
Creating Makefile for SpeedKernel...
Done.
Compiling SpeedKernel, please wait...
Compiling of SpeedKernel failed.
Have a look at 'SpeedKernel/make.log' for the reasons.
pedro@pedro-pc:~/qtsim$
|
And going to make.log:
| Quote: |
g++ -c -pipe -O0 -g3 -fPIC -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o CIniFile.o CIniFile.cpp
In file included from CIniFile.cpp:21:
CIniFile.h:24: warning: ignoring #pragma warning
CIniFile.cpp: In member function ‘genstr CIniFile::GetNextLine(FILE*)’:
CIniFile.cpp:126: error: ‘strncpy’ was not declared in this scope
CIniFile.cpp:136: error: ‘wcstombs’ was not declared in this scope
CIniFile.cpp:148: error: ‘wcstombs’ was not declared in this scope
CIniFile.cpp:152: warning: the address of ‘str’ will always evaluate as ‘true’
CIniFile.cpp:158: error: ‘strlen’ was not declared in this scope
CIniFile.cpp: In member function ‘bool CIniFile::GetLong(long int&, genstr, genstr)’:
CIniFile.cpp:205: error: ‘strtol’ was not declared in this scope
CIniFile.cpp: In member function ‘bool CIniFile::WriteIniFile(const char*, bool)’:
CIniFile.cpp:245: error: ‘mbstowcs’ was not declared in this scope
CIniFile.cpp:256: error: ‘strncpy’ was not declared in this scope
CIniFile.cpp: In member function ‘void CIniFile::SetLong(long int, genstr, genstr, bool)’:
CIniFile.cpp:285: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
CIniFile.cpp:292: error: ‘strncpy’ was not declared in this scope
In file included from CIniFile.h:33,
from CIniFile.cpp:21:
utf8.h: In function ‘octet_iterator utf8::append(utf8::uint32_t, octet_iterator&) [with octet_iterator = std::back_insert_iterator<std::vector<char, std::allocator<char> > >]’:
utf8.h:400: instantiated from ‘octet_iterator utf8::utf16to8(u16bit_iterator, u16bit_iterator, octet_iterator) [with u16bit_iterator = __gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >, octet_iterator = std::back_insert_iterator<std::vector<char, std::allocator<char> > >]’
CIniFile.cpp:378: instantiated from here
utf8.h:307: warning: suggest parentheses around arithmetic in operand of ‘|’
utf8.h:312: warning: suggest parentheses around arithmetic in operand of ‘|’
utf8.h:313: warning: suggest parentheses around arithmetic in operand of ‘|’
make: *** [CIniFile.o] Error 1
|
|
|
| Back to top |
|
 |
bizkyt
Joined: 23 Jun 2010 Last Visit: 20 Jul 2010 Posts: 8
|
Posted: Thu Jun 24, 2010 12:58 pm Post subject: |
|
|
Anyone? I'm needing the simulator  |
|
| Back to top |
|
 |
TheButcher Developer
Joined: 25 Dec 2004 Last Visit: 07 Sep 2010 Posts: 1163 Location: Germany
|
Posted: Fri Jun 25, 2010 8:49 am Post subject: |
|
|
| bizkyt wrote: | Anyone? I'm needing the simulator  |
Uhm... looks like the gcc is a bit newer.. Try using the CIniFile.cpp/.h from the SpeedKernel trunk (https://speedsim.svn.sourceforge.net/svnroot/speedsim/SpeedKernel/trunk/) _________________ Programming is like sex, if you make a mistake you'll have to support it your whole life! |
|
| Back to top |
|
 |
bizkyt
Joined: 23 Jun 2010 Last Visit: 20 Jul 2010 Posts: 8
|
Posted: Fri Jun 25, 2010 12:18 pm Post subject: |
|
|
Compiling failed again:
| Quote: |
g++ -c -pipe -O0 -g3 -fPIC -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o CIniFile.o CIniFile.cpp
In file included from CIniFile.cpp:21:
CIniFile.h:24: warning: ignoring #pragma warning
CIniFile.cpp: In member function ‘genstr CIniFile::GetNextLine(FILE*)’:
CIniFile.cpp:152: warning: the address of ‘str’ will always evaluate as ‘true’
CIniFile.cpp: In member function ‘void CIniFile::SetLong(long int, genstr, genstr, bool)’:
CIniFile.cpp:285: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
In file included from CIniFile.h:35,
from CIniFile.cpp:21:
utf8.h: In function ‘octet_iterator utf8::append(utf8::uint32_t, octet_iterator&) [with octet_iterator = std::back_insert_iterator<std::vector<char, std::allocator<char> > >]’:
utf8.h:400: instantiated from ‘octet_iterator utf8::utf16to8(u16bit_iterator, u16bit_iterator, octet_iterator) [with u16bit_iterator = __gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >, octet_iterator = std::back_insert_iterator<std::vector<char, std::allocator<char> > >]’
CIniFile.cpp:378: instantiated from here
utf8.h:307: warning: suggest parentheses around arithmetic in operand of ‘|’
utf8.h:312: warning: suggest parentheses around arithmetic in operand of ‘|’
utf8.h:313: warning: suggest parentheses around arithmetic in operand of ‘|’
g++ -c -pipe -O0 -g3 -fPIC -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o SKernel_Misc.o SKernel_Misc.cpp
In file included from SKernel_Misc.cpp:20:
SpeedKernel.h:23: warning: ignoring #pragma warning
In file included from SpeedKernel.h:41,
from SKernel_Misc.cpp:20:
CIniFile.h:24: warning: ignoring #pragma warning
SKernel_Misc.cpp:74:2: error: #error Your machine is not supported!
SKernel_Misc.cpp:369: warning: ignoring #pragma warning
SKernel_Misc.cpp:418: warning: ignoring #pragma warning
In file included from SpeedKernel.h:40,
from SKernel_Misc.cpp:20:
SKernel_Structs.h: In constructor ‘BattleResult::BattleResult()’:
SKernel_Structs.h:402: error: ‘memset’ was not declared in this scope
SKernel_Structs.h: In constructor ‘TargetInfo::TargetInfo()’:
SKernel_Structs.h:571: error: ‘memset’ was not declared in this scope
SKernel_Structs.h: In member function ‘const TargetInfo& TargetInfo::operator=(const TargetInfo&)’:
SKernel_Structs.h:584: error: ‘memcpy’ was not declared in this scope
In file included from SKernel_Misc.cpp:20:
SpeedKernel.h: At global scope:
SpeedKernel.h:413: warning: unused parameter ‘s’
SKernel_Misc.cpp: In function ‘unsigned int _lrotl(unsigned int, int)’:
SKernel_Misc.cpp:63: warning: unused variable ‘bit’
SKernel_Misc.cpp: At global scope:
SKernel_Misc.cpp:61: warning: unused parameter ‘shift’
SKernel_Misc.cpp: In member function ‘int CSpeedKernel::GetFleetSpeed(int, const std::vector<SItem, std::allocator<SItem> >&)’:
SKernel_Misc.cpp:466: error: ‘INT_MAX’ was not declared in this scope
SKernel_Misc.cpp: In member function ‘void CSpeedKernel::FillRFTable(RFTYPE)’:
SKernel_Misc.cpp:1029: warning: enumeration value ‘RF_NONE’ not handled in switch
SKernel_Misc.cpp:1029: warning: enumeration value ‘RF_058’ not handled in switch
SKernel_Misc.cpp:1029: warning: enumeration value ‘RF_059’ not handled in switch
SKernel_Misc.cpp:1029: warning: enumeration value ‘RF_062’ not handled in switch
SKernel_Misc.cpp:1029: warning: enumeration value ‘RF_USER’ not handled in switch
make: *** [SKernel_Misc.o] Error 1
|
|
|
| Back to top |
|
 |
TheButcher Developer
Joined: 25 Dec 2004 Last Visit: 07 Sep 2010 Posts: 1163 Location: Germany
|
Posted: Fri Jun 25, 2010 1:10 pm Post subject: |
|
|
What kind of processor do you have? And which linux distribution?
its weird that INT_MAX is not defined  _________________ Programming is like sex, if you make a mistake you'll have to support it your whole life! |
|
| Back to top |
|
 |
bizkyt
Joined: 23 Jun 2010 Last Visit: 20 Jul 2010 Posts: 8
|
Posted: Fri Jun 25, 2010 1:22 pm Post subject: |
|
|
| Intel Core 2 Duo T9550 2.66GHz CPU. And i'm using ubuntu 10.04 |
|
| Back to top |
|
 |
TheButcher Developer
Joined: 25 Dec 2004 Last Visit: 07 Sep 2010 Posts: 1163 Location: Germany
|
Posted: Sun Jun 27, 2010 12:44 pm Post subject: |
|
|
| bizkyt wrote: | | Intel Core 2 Duo T9550 2.66GHz CPU. And i'm using ubuntu 10.04 |
Hm, have you tried the trunk version of SpeedKernel? _________________ Programming is like sex, if you make a mistake you'll have to support it your whole life! |
|
| Back to top |
|
 |
bizkyt
Joined: 23 Jun 2010 Last Visit: 20 Jul 2010 Posts: 8
|
Posted: Sun Jun 27, 2010 12:51 pm Post subject: |
|
|
| Yes, and copy the "SpeedKernel.pro" from the "https://speedsim.svn.sourceforge.net/svnroot/speedsim/SpeedKernel/branches/qtsim/" source and happens the same error. |
|
| Back to top |
|
 |
TheButcher Developer
Joined: 25 Dec 2004 Last Visit: 07 Sep 2010 Posts: 1163 Location: Germany
|
Posted: Sun Jun 27, 2010 6:02 pm Post subject: |
|
|
| bizkyt wrote: | | Yes, and copy the "SpeedKernel.pro" from the "https://speedsim.svn.sourceforge.net/svnroot/speedsim/SpeedKernel/branches/qtsim/" source and happens the same error. |
well.. I'll take a look at this next week, if you can wait (If I forget, send me a message) _________________ Programming is like sex, if you make a mistake you'll have to support it your whole life! |
|
| Back to top |
|
 |
bizkyt
Joined: 23 Jun 2010 Last Visit: 20 Jul 2010 Posts: 8
|
Posted: Tue Jun 29, 2010 3:29 am Post subject: |
|
|
Ok, don't forget it  |
|
| Back to top |
|
 |
Luthy
Joined: 06 Jul 2010 Last Visit: 06 Jul 2010 Posts: 1
|
Posted: Tue Jul 06, 2010 7:48 pm Post subject: |
|
|
| bizkyt wrote: | Thank you for the reply.
I make that, and give me this:
|
I have the same problem.
| Quote: | | Uhm... looks like the gcc is a bit newer.. Try using the CIniFile.cpp/.h from the SpeedKernel trunk (speedsim.svn.sourceforge(dot)net/svnroot/speedsim/SpeedKernel/trunk/) |
I replaced the files in the SpeedKernel-folder (I hope thats right, I'm a Linux beginner and I never used the svn co command before), but nothing changed. |
|
| Back to top |
|
 |
|