0
May 19, 2013, 05:50:17 AM   
*
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 

- Shoutbox

Pages: [1]
  Print  
Author Topic: NP on opensuse 64 bit  (Read 2361 times)
0 Members and 1 Guest are viewing this topic.
muuseas
Recruit
*
Posts: 10


« on: January 12, 2009, 11:09:39 PM »

HI all people, hi NP-masters!

I've got some strange problems, while trying to play NP. both, stable and svn - can't use them anymore! destiny?!   Roll Eyes
A while ago i installed opensuse 64bit.  (Athlon64 4200+, Nvidia graphic card). I didnt find NP in official and non-official repo's, so, i started manual install.
1. svn
I used advice's from sticky topic (how to install from svn, thnx to Adam and Krom).
At first ./configure gave a lot of errors, then i installed 32bit support, after this ran autogen, configure and jam without any errors. oops, i didnt check jam for errors...
In /netpanzer folder i dont see netpanzer executable, but "netpanzer.desktop" . netpanzer commmand not found, netpanzer.desktop - there is no program to open this file. the same story was with ubuntu last weeks. ( one reason why i moved to opensuse).
2. stable 0.8.2
Opensuse doesn't have np-packages, so i had to use downloaded version and tried to compile it myself. no errors, "netpanzer" executable 25,9Mib created. but system doesnt know, that there is a game netpanzer.

now checked jam output, hmmm:
mihkel@linux-jxp5:~/Downloads/netpanzer-0.8.2$ jam
...patience...                                   
...found 1000 target(s)...                       
...using 74 temp target(s)...                     
...updating 9 target(s)...                       
C++ ./build/x86_64-unknown-linux-gnu/opt/src/Lib/Util/Log.o
src/Lib/Util/Log.cpp: In member function ‘void Logger::cleanLogs()’:
src/Lib/Util/Log.cpp:90: error: ‘sort’ is not a member of ‘std’     

    g++ -c -o ./build/x86_64-unknown-linux-gnu/opt/src/Lib/Util/Log.o  -I. -Isrc/Lib -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -Wall -W -O3 -g3 -O3 -g3   src/Lib/Util/Log.cpp

...failed C++ ./build/x86_64-unknown-linux-gnu/opt/src/Lib/Util/Log.o ...
...skipped libnetpanzerutil.a for lack of libnetpanzerutil.a(Log.o)...   
...skipped libnetpanzerarrayutil.a for lack of libnetpanzerutil.a...     
C++ ./build/x86_64-unknown-linux-gnu/opt/src/Lib/2D/ColorTable.o         
src/Lib/2D/ColorTable.cpp:28: warning: deprecated conversion from string constant to ‘char*’
src/Lib/2D/ColorTable.cpp: In member function ‘void ColorTable::loadTable(const char*)’:   
src/Lib/2D/ColorTable.cpp:285: error: ‘auto_ptr’ is not a member of ‘std’                   
src/Lib/2D/ColorTable.cpp:285: error: expected primary-expression before ‘>’ token         
src/Lib/2D/ColorTable.cpp:285: error: ‘file’ was not declared in this scope                 
src/Lib/2D/ColorTable.cpp: In member function ‘void ColorTable::saveTable(const char*) const’:
src/Lib/2D/ColorTable.cpp:311: error: ‘auto_ptr’ is not a member of ‘std’                     
src/Lib/2D/ColorTable.cpp:311: error: expected primary-expression before ‘>’ token           
src/Lib/2D/ColorTable.cpp:312: error: ‘file’ was not declared in this scope                   

    g++ -c -o ./build/x86_64-unknown-linux-gnu/opt/src/Lib/2D/ColorTable.o  -I. -Isrc/Lib  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -Wall -W -O3 -g3 -O3 -g3   src/Lib/2D/ColorTable.cpp                                                                                                                                                                           

...failed C++ ./build/x86_64-unknown-linux-gnu/opt/src/Lib/2D/ColorTable.o ...
C++ ./build/x86_64-unknown-linux-gnu/opt/src/Lib/2D/Palette.o                 
src/Lib/2D/Palette.cpp: In static member function ‘static void Palette::loadACT(const std::string&)’:
src/Lib/2D/Palette.cpp:341: error: ‘auto_ptr’ is not a member of ‘std’                               
src/Lib/2D/Palette.cpp:341: error: expected primary-expression before ‘>’ token                     
src/Lib/2D/Palette.cpp:341: error: ‘file’ was not declared in this scope                             

    g++ -c -o ./build/x86_64-unknown-linux-gnu/opt/src/Lib/2D/Palette.o  -I. -Isrc/Lib  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -Wall -W -O3 -g3 -O3 -g3   src/Lib/2D/Palette.cpp                                                                                                                                                                                 

...failed C++ ./build/x86_64-unknown-linux-gnu/opt/src/Lib/2D/Palette.o ...
...skipped libnetpanzer2d.a for lack of libnetpanzer2d.a(ColorTable.o)... 
C++ ./build/x86_64-unknown-linux-gnu/opt/src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.o
In file included from src/NetPanzer/Views/../Interfaces/GameConfig.hpp:29,                     
                 from src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.cpp:23:             
src/NetPanzer/Views/../Interfaces/ConfigVariable.hpp:56: warning: type qualifiers ignored on function return type
src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.cpp: In member function ‘int MapSelectionView::loadMaps()’: 
src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.cpp:184: error: ‘auto_ptr’ is not a member of ‘std’         
src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.cpp:184: error: expected primary-expression before ‘>’ token
src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.cpp:185: error: ‘file’ was not declared in this scope       

    g++ -c -o ./build/x86_64-unknown-linux-gnu/opt/src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.o  -I. -Isrc/Lib -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -Isrc/NetPanzer/Views/Game -Isrc/NetPanzer/Views/MainMenu -Isrc/NetPanzer/Views/MainMenu/Multi -Isrc/NetPanzer/Views/MainMenu/Multi/MasterServer -Isrc/NetPanzer/Views/MainMenu/Options -Isrc/NetPanzer/Views/Components -Isrc/NetPanzer/Views/. -Isrc/NetPanzer/Views/../Interfaces -Isrc/NetPanzer/Views/../Classes -Isrc/NetPanzer/Views/../Structs -Isrc/NetPanzer/Views/../Classes/Network -Isrc/NetPanzer/Views/../Classes/Weapons -Isrc/NetPanzer/Views/../Classes/AI -Isrc/NetPanzer/Views/../Particles -Isrc/NetPanzer/Views/../IRCLobby -Isrc/NetPanzer/Views/.. -Wall -W -O3 -g3 -O3 -g3   src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.cpp

...failed C++ ./build/x86_64-unknown-linux-gnu/opt/src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.o ...
...skipped libnetpanzerviews.a for lack of libnetpanzerviews.a(MapSelectionView.o)...
...skipped netpanzer for lack of libnetpanzerutil.a...
...failed updating 4 target(s)...
...skipped 5 target(s)...
mihkel@linux-jxp5:~/Downloads/netpanzer-0.8.2$

This was stable.
now i try svn from wile. Works!!!  a bit slow (maybe graphic problems) and again, cant start in terminal.

mihkel@linux-jxp5:~/netpanzer_svn$ ls
cache  COPYING  docs  maps  netpanzer  pics  powerups  README  RELNOTES  scripts  sound  units  wads
mihkel@linux-jxp5:~/netpanzer_svn$ netpanzer -d
bash: netpanzer: command not found
mihkel@linux-jxp5:~/netpanzer_svn$

maybe its easy, i've used, that this program works if ports are open. now seems like i've missed smthng.... :)
I hope, that i this was described enough good, ehh, it isn't, right?

regards
muuseas





Logged
krom
Administrator
Sergeant
*****
Posts: 493



« Reply #1 on: January 12, 2009, 11:33:18 PM »

mihkel@linux-jxp5:~/netpanzer_svn$ ls
cache  COPYING  docs  maps  netpanzer  pics  powerups  README  RELNOTES  scripts  sound  units  wads
mihkel@linux-jxp5:~/netpanzer_svn$ netpanzer -d
bash: netpanzer: command not found

Try with a './' before netpanzer:
Code:
mihkel@linux-jxp5:~/netpanzer_svn$ ./netpanzer -d

About compilation errors, something is definitely bad  Shocked
Logged

The rabbit doesn't fly alone
krom
Administrator
Sergeant
*****
Posts: 493



« Reply #2 on: January 21, 2009, 04:33:51 PM »

Hi, suddenly I found the reason to your compilation problem.

mihkel@linux-jxp5:~/Downloads/netpanzer-0.8.2$ jam

The problem is that you are compiling netpanzer 0.8.2 and it has some errors that make it not compile on newer gcc, if you use svn version it would work.

The reason of the problems is that some headers has to be included on newer gcc or it will fail. If the error is "something related with 'sort'" then you have to add to the top of the file "#include <algorithm>". If the error is related to "auto_ptr" then you have to add to the top of the file "#include <memory>" then it should work.
Logged

The rabbit doesn't fly alone
krom
Administrator
Sergeant
*****
Posts: 493



« Reply #3 on: July 02, 2009, 06:58:10 PM »

Fixed the explosions problem, thanks for the ssh access, the instructions to fix any version for 64bit would be:

- edit the file src/NetPanzer/Particles/Particle2D.cpp
- near the beginning you will have

Code:
const  size_t MAX_PARTICLE_CLASS_SIZE = 340;

change for

Code:
const  size_t MAX_PARTICLE_CLASS_SIZE = 512;

(only the number)
compile and run
Logged

The rabbit doesn't fly alone
Pages: [1]
  Print  
 
Jump to:  

Theme by m3talc0re. Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines MySQL | PHP | XHTML | CSS
Back To Top