Wesnoth on Irix
Moderator: Forum Moderators
Re: more compiler errors on IRIX
I'm sorry, I can't help you here, I'm at loss. This file should not need this symbol. If you are couragous, you can take a look at the assembly output the compiler creates and find in which functions this symbol is used. Maybe it will give us a clue as to why this symbol appears.Joerg wrote:Code: Select all
ld32: ERROR 33 : Unresolved text symbol "image::locator::locator(const image::locator&)" -- 1st referenced by variable.o.
Because VC++6 requires floor instead of std::floor. Can you tell us if changing #include <cmath> to #include <math.h> at the top of the file fixes the problem in Irix?Joerg wrote:Is there any reason why the irix related fixes reverted from todays cvs?
mapgen.cpp and sdl_utils.cpp doesnt contain the std::floor entries anymore which are needed for compiling with the mips cc compiler.
David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
This was my first solutionen to pass the problem when i remember correctly. But i w'll check this again.Dave wrote:Because VC++6 requires floor instead of std::floor. Can you tell us if changing #include <cmath> to #include <math.h> at the top of the file fixes the problem in Irix?Joerg wrote:Is there any reason why the irix related fixes reverted from todays cvs?
mapgen.cpp and sdl_utils.cpp doesnt contain the std::floor entries anymore which are needed for compiling with the mips cc compiler.
David
Whats about with some #ifdefine __sgi to wrap around the problem?
regards
Joerg
There are a few possible solutions we can use if #include <math.h> doesn't work.
Since it's really VC++ that exhibits non-conforming behavior, I guess it should be the compiler that is 'special cased'.
One possible solution is to have a header file of our own, "cmath.hpp", which is defined as #include <cmath> on all systems, except for VC++, on which it is defined as,
which I believe would work...
David
Since it's really VC++ that exhibits non-conforming behavior, I guess it should be the compiler that is 'special cased'.
One possible solution is to have a header file of our own, "cmath.hpp", which is defined as #include <cmath> on all systems, except for VC++, on which it is defined as,
Code: Select all
namespace std {
#include <cmath>
}
David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
Here is another proposal. No idea if it will work correctly though. In global.hpp for example.Dave wrote:Since it's really VC++ that exhibits non-conforming behavior, I guess it should be the compiler that is 'special cased'.
One possible solution is to have a header file of our own, "cmath.hpp", which is defined as #include <cmath> on all systems, except for VC++, on which it is defined as,
Code: Select all
namespace std { #include <cmath> }
Code: Select all
#ifdef _MSC_VER
#include <cmath>
namespace std {
using ::floor;
using ::sqrt;
};
#endif
Problem when using xinerama
When runing wesnoth on irix machine which have 2 GFX boards that using the xinerama feature to span the desktop over both screens the game wont start. A message like is shown. It also dont work when use the '-w' flag.
It works when xinerama is disabled.
regards
Joerg
Code: Select all
[user@chainsaw:/usr/people/user$/usr/nekoware/bin/wesnoth
started game: 892796734
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 128 (XINERAMA)
Minor opcode of failed request: 4 ()
Serial number of failed request: 10
Current serial number in output stream: 10
user@chainsaw:/usr/people/user$
regards
Joerg
Re: Problem when using xinerama
Hmm... except for clipboard handling, we never mess directly with X. So I would say it is a SDL issue. Are you able to run any other SDL program on this machine when Xinerama is enabled?Joerg wrote:When runing wesnoth on irix machine which have 2 GFX boards that using the xinerama feature to span the desktop over both screens the game wont start. A message like is shown.
Re: Problem when using xinerama
Yes.... other programms have the same problem . I take further information to find out whats going wrong. But its good to know that the error is not in wesnoth. Thank you.silene wrote:Hmm... except for clipboard handling, we never mess directly with X. So I would say it is a SDL issue. Are you able to run any other SDL program on this machine when Xinerama is enabled?Joerg wrote:When runing wesnoth on irix machine which have 2 GFX boards that using the xinerama feature to span the desktop over both screens the game wont start. A message like is shown.
regards
Joerg
Re: Problem when using xinerama
Have you got wesnoth to work with Xinerama now?Joerg wrote: Yes.... other programms have the same problem . I take further information to find out whats going wrong. But its good to know that the error is not in wesnoth.
Joerg
I'd like to have a solution, i have the same problems with Solaris/Sparc....
wys
SirTobi
Re: Problem when using xinerama
No.sirtobi wrote:Have you got wesnoth to work with Xinerama now?Joerg wrote: Yes.... other programms have the same problem . I take further information to find out whats going wrong. But its good to know that the error is not in wesnoth.
Joerg
I havent the 2 gfx setup anymore so the problem went away . But maybe its time to kick the libSDL guys.I'd like to have a solution, i have the same problems with Solaris/Sparc....
regards
Joerg