Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » OpenLayer and MSVC 8

This thread is locked; no one can reply to it. rss feed Print
OpenLayer and MSVC 8
ixilom
Member #7,167
April 2006
avatar

So, I've reinstalled windows, with MSVC8 ... skipped 7.1 .NET which I used before.
Now I need to rebuild OpenLayer for MSVC8.
I've built all the deps without any problems, ran cmakesetup to generate a sollution.
But when I try to compile the OpenLayer project, I get a bunch of errors like this:

Quote:

C:\temp\build\openlayer\include\OpenLayer\Transforms.hpp(85) : error C2487: 'y' : member of dll interface class may not be declared with dll interface

WTF does that mean?
I've tried to build a static version and a DLL version with the same error.

@£$!%!!!

[edit]
Remade the solution with cmakesetup, AFAIK exactly the same way I did before but now it compiled ... go figure.
Lets see if it actually made me a working .lib ::)

[edit]
Ok, I got it working... but that error message is still weird >:(

___________________________________________
Democracy in Sweden? Not since 2008-Jun-18.
<someone> The lesbians next door bought me a rolex for my birthday.
<someone> I think they misunderstood when I said I wanna watch...

av0k23
Member #7,284
May 2006

glad i am not alone in this

ixilom
Member #7,167
April 2006
avatar

I posted this a bit before your post about MSVC and OpenLayer.
It seems in my OP here that I got it all working, but the truth is that my debug builds crash just like you describe it in the other thread

___________________________________________
Democracy in Sweden? Not since 2008-Jun-18.
<someone> The lesbians next door bought me a rolex for my birthday.
<someone> I think they misunderstood when I said I wanna watch...

Neil Walker
Member #210
April 2000
avatar

I've never used the new cmake version, but all I have done is created a new lib project, dumped in all the files and compiled. When I did that many moons ago I found a few bugs which I passed back to Flad and the others and assume they are in the new build (mainly faults with min/max in the standard template library).

Why not just try that?

Neil.
MAME Cabinet Blog / AXL LIBRARY (a games framework) / AXL Documentation and Tutorial

wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie

ixilom
Member #7,167
April 2006
avatar

I guess that would work aswell.
The reason I've been using cmake is that I got the intructions on how to build OL for MSVC over IRC and I'm guessing the person who taught me thought it would be easier this way.

The neat thing about cmake is that you can "point and click" customize OpenLayer for your liking, rather than reading the sources, figuring out which directives you need to change in order to disable/enable some features.

Of course, you can do the same by hand but it takes more time. I'm one of those who would rather get stuff working ASAP and get working on my game.
On that note, it would be neat if someone made precompiled versions of OL for MSVC 7.1 and 8. I know there are a few precompiled versions out there, but AFAIK, they are somewhat outdated :-/
Perhaps I should try to contribute with that myself, lets see if I can make the time to build both release and debug versions :)

___________________________________________
Democracy in Sweden? Not since 2008-Jun-18.
<someone> The lesbians next door bought me a rolex for my birthday.
<someone> I think they misunderstood when I said I wanna watch...

Go to: