Create account / Log in

Roadmap for VASSAL 4

Discussion area for the development team.

Moderators: Tim M, uckelman

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby mcbeth » May 5th, 2011, 12:58 pm

On Thu, May 05, 2011 at 02:53:41AM -0700, Joel Uckelman wrote:
> Thus spake lancel:
> > Got it working on Ubuntu. It looks great. I can zoom in and out
> > without any problem.
>
> Did you need to make any changes in order to get it working?
>

I ran the original fine on Ubuntu with no changes needed.

Jeff

--
"The man who does not read good books has no advantage over
the man who cannot read them."
-- Mark Twain
User avatar
mcbeth
 
Posts: 22
Joined: December 20th, 2007, 7:27 pm

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby lancel » May 7th, 2011, 2:50 am

uckelman wrote:Thus spake lancel:
> Is OpenGL and GLUT open-source? Where can one get the libraries
> otherwise?
>

Both are open-source.

The GLUT implementation I'm linking against is Freeglut:

http://freeglut.sourceforge.net/

Freeglut uses the X License.

If you're compiling on and for Linux, you'll most likely already
have both OpenGL and GLUT. If you're compiling on Windows, I'm not
exactly sure where you get the headers you need; I haven't had
time to look yet. I don't have access to a Mac, but I suspect that
the Mac situation is similar to Linux.

--
J.


I tried to use Visual Studio 2010 C++ Express to see how far I can go. I was able to compile all the way but whenever I ran it, I would run into a crash at the following line inside map.cpp:

glDrawArrays(GL_TRIANGLE_FAN, 0, 4);

I got the GLee SDK from http://www.opengl.org/sdk/libs/GLee/ and recompiled it with VS2010. I got the Win32 version of freeglut. I even recompiled its source but the outcome was the same. I got the jpeglib versions 8c and 6b but both got me the same error. I am curious to see if you also run into the same error with MinGW.

Lance
lancel
 
Posts: 93
Joined: August 30th, 2010, 3:47 pm
Location: NY, NY

Re: [messages] [Developers] Re: [Developers] Re: Roadmap for

Postby uckelman » May 7th, 2011, 12:56 pm

Thus spake lancel:
>
> I tried to use Visual Studio 2010 C++ Express to see how far I can go.
> I was able to compile all the way but whenever I ran it, I would run
> into a crash at the following line inside map.cpp:
>
> glDrawArrays(GL_TRIANGLE_FAN, 0, 4);

Any idea why that would cause a crash? The vertex VBO has 4 vertices in
it, so I don't think the problem is that we're overrunning the end of
the VBO.

> I got the GLee SDK from http://www.opengl.org/sdk/libs/GLee/[2] and
> recompiled it with VS2010. I got the Win32 version of freeglut. I even
> recompiled its source but the outcome was the same. I got the jpeglib
> versions 8c and 6b but both got me the same error. I am curious to see
> if you also run into the same error with MinGW.
>

I haven't been able to successfully compile with MinGW yet, due to my
MinGW headers not having all the extension definitions that my Linux
ones do. I'm just about to try GLEW (http://glew.sourceforge.net/) for
handling that, so I'll let you know how it turns out.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8138
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: [messages] [Developers] Re: [Developers] Re: Roadmap for

Postby uckelman » May 7th, 2011, 1:42 pm

Thus spake Joel Uckelman:
>
> I haven't been able to successfully compile with MinGW yet, due to my
> MinGW headers not having all the extension definitions that my Linux
> ones do. I'm just about to try GLEW (http://glew.sourceforge.net/) for
> handling that, so I'll let you know how it turns out.
>

Huh. On switching to GLEW, I'm now getting a segfault on the first
glGenBuffersARB() call. No idea why.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8138
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: [messages] [Developers] Re: [Developers] Re: Roadmap for

Postby uckelman » May 7th, 2011, 2:03 pm

Thus spake Joel Uckelman:
> Thus spake Joel Uckelman:
> >
> > I haven't been able to successfully compile with MinGW yet, due to my
> > MinGW headers not having all the extension definitions that my Linux
> > ones do. I'm just about to try GLEW (http://glew.sourceforge.net/) for
> > handling that, so I'll let you know how it turns out.
> >
>
> Huh. On switching to GLEW, I'm now getting a segfault on the first
> glGenBuffersARB() call. No idea why.
>

Aha, got it. I was neglecting to initialize GLEW before the call to
glGenBuffers().

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8138
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Roadmap for VASSAL 4

Postby lancel » May 7th, 2011, 10:25 pm

I moved the executables to my gaming desktop (Windows 7 Pro) that has a real graphics card and it worked. I was making the builds on my netbook (Windows 7 Starter), whose graphic card may be the problem. Let me see if I can find out what that is.

Lance
lancel
 
Posts: 93
Joined: August 30th, 2010, 3:47 pm
Location: NY, NY

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby uckelman » May 8th, 2011, 12:37 pm

Thus spake lancel:
> I moved the executables to my gaming desktop (Windows 7 Pro) that has a
> real graphics card and it worked. I was making the builds on my netbook
> (Windows 7 Starter), whose graphic card may be the problem. Let me see
> if I can find out what that is.
>
> Lance

It would be good to know what's not working/not supported on what
hardware. What kind of graphics card does your netbook have?

I do all of my development on my laptop, which has an Intel 965GM
chipset. That's pretty old at this point (I bought it in 2007), and it
was a rather anemic video chipset when it was new. Because of that, my
working assumption is that if it performs adequately on my laptop, it
will perform adequately on anything else still in use.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8138
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Roadmap for VASSAL 4

Postby uckelman » May 8th, 2011, 12:42 pm

I have what I think is a working Windows demo now:

http://www.vassalengine.org/~uckelman/c ... indows.zip

To use, unpack and run 'test.exe map.jpg' from a terminal.

This runs for me in Wine, which tends to be a good indicator that it will work in real Windows.
User avatar
uckelman
Site Admin
 
Posts: 8138
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby Tim M » May 8th, 2011, 1:18 pm

Running from terminal pops up the following message on WinXP64

"The application failed to initialize properly (0xc0000142). Click on OK to
terminate the application"

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of uckelman
Sent: Sunday, May 08, 2011 7:42 AM
To: messages@vassalengine.org
Subject: [messages] [Developers] Re: Roadmap for VASSAL 4

I have what I think is a working Windows demo now:

http://www.vassalengine.org/~uckelman/c ... indows.zip[1]

To use, unpack and run 'test.exe map.jpg' from a terminal.

This runs for me in Wine, which tends to be a good indicator that it
will work in real Windows.

[1] http://www.vassalengine.org/~uckelman/c ... indows.zip


_______________________________________________
Read this topic online here:
viewtopic.php?p=22917#p22917
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1777
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: Roadmap for VASSAL 4

Postby lancel » May 8th, 2011, 3:11 pm

I got the same error on both of my Windows 7 (netbook and desktop) machines.
My netbook is an Acer Aspire One 532h series machine. It has an integrated Intel Graphics Media Accelerator 3150 video processor. I think this kind of setup is typical of netbook.

Lance
lancel
 
Posts: 93
Joined: August 30th, 2010, 3:47 pm
Location: NY, NY

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby uckelman » May 8th, 2011, 3:18 pm

Thus spake "Tim McCarron":
> Running from terminal pops up the following message on WinXP64
>
> "The application failed to initialize properly (0xc0000142). Click on OK to
> terminate the application"

It doesn't work in my XP VM, either. Trying to determine why now.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8138
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby uckelman » May 8th, 2011, 3:33 pm

Thus spake lancel:
> I got the same error on both of my Windows 7 (netbook and desktop)
> machines.
> My netbook is an Acer Aspire One 532h series machine. It has an
> integrated Intel Graphics Media Accelerator 3150 video processor. I
> think this kind of setup is typical of netbook.
>

It has something to do with an exception being thrown. From where, I'm
not sure yet.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8138
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby uckelman » May 8th, 2011, 4:05 pm

Thus spake Joel Uckelman:
> Thus spake lancel:
> > I got the same error on both of my Windows 7 (netbook and desktop)
> > machines.
> > My netbook is an Acer Aspire One 532h series machine. It has an
> > integrated Intel Graphics Media Accelerator 3150 video processor. I
> > think this kind of setup is typical of netbook.
> >
>
> It has something to do with an exception being thrown. From where, I'm
> not sure yet.
>

I see what it is now: This is something I read about somewhere, namely
that everything beyond OpenGL 1.1 is supported in Windows as extensions.
I have the demo throwing an exception if OpenGL 2.0 isn't supported.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8138
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Roadmap for VASSAL 4

Postby uckelman » May 8th, 2011, 4:09 pm

I've uploaded a new test.exe which doesn't do the OpenGL 2.0 check. Replace the test.exe from cpp-test-windows.zip with this one, and try again.

http://www.vassalengine.org/~uckelman/test.exe
User avatar
uckelman
Site Admin
 
Posts: 8138
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Roadmap for VASSAL 4

Postby lancel » May 8th, 2011, 4:48 pm

Unfortunately, it still fails on my machines with the same error.

Lance
lancel
 
Posts: 93
Joined: August 30th, 2010, 3:47 pm
Location: NY, NY

PreviousNext

Return to Developers

Who is online

Users browsing this forum: No registered users and 0 guests