World Wind Forums

Go Back   World Wind Forums > Support > Technical Support

Technical Support Get help with World Wind.

Reply
 
Thread Tools Display Modes
Old 01-26-2012, 07:36 PM   #11
Genericly
Junior Member
 
Join Date: Jan 2012
Posts: 23
Genericly is on a distinguished road
Default

'TesterAlso' is me prior to registering for the forum. Sorry for the duplicate post.
Genericly is offline   Reply With Quote
Old 01-26-2012, 09:47 PM   #12
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

Regarding building for 64-bit. I don't have a 64-bit OS to test on. I did the build with VS 2005. I'll look to see if I can find any compiler options addressing 64 bit compatibility. If anyone has a suggestions on what to look for that would be appreciated.
James
James_In_Utah is offline   Reply With Quote
Old 01-26-2012, 10:31 PM   #13
Genericly
Junior Member
 
Join Date: Jan 2012
Posts: 23
Genericly is on a distinguished road
Default

James,

Thank you very much for looking into this and helping to keep WW1.4.0 alive and going. Pangloss, maleport, and your efforts are greatly appreciated by me and I'm sure many others. I'd be glad to assist with whatever I can.

To start, here are a couple links to pages that contain information specifically on compiling for 64bit systems and how you might go about doing that.

When compiling C++ code for .net applications (I think we are, correct?), you can use a compiler options of '/clr:safe' to compile an agnostic binary that will run in 64bit and 32bit depending on system that's running it. There are some caveats to this but since the original WW1.4.0 doesn't not contain any special 64bit binaries then there must be a way to compile a single EXE that will correctly run on both architectures.
Source: http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx (see Compiler support for creating 64-bit applications)
Source: http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx (see Remarks / Safe and Pure Images)

Additionally, by default, the 64bit compilers are not installed on 32bit system, but you can manually install them.
Quote:
Goto Add/Remove programs, select Visual Studio, Change, Add/Remove features and add x64 compilers from C++ node. After installing x64 compilers, you should see appropriate options under Platform and shoudl be able to build x64 projects on 32 bit machine.
Source: http://social.msdn.microsoft.com/For...6-f169aff0388d

I don't know how much you changed or added in (by way of dlls), but if it's minimal then the solution may just be a simple recompilation having the 64bit compiler options installed and/or using the /clr:safe agnostic compiler flag turned on.

I don't know but perhaps a simple test would be to compile the vanilla WorldWind 1.4.0 code on your system without any changes to either the code or your VS2005 install, and then test that new EXE on a clean install of WW1.4.0 on a 64bit system just to see if it throws the error. If it does, then take the next step of installing the 64bit compiler additions to VS2005, recompile the vanilla code, and test on 64bit system again. If it throws the error again, then take the next step of adding the /clr:safe compiler flag, recompile the vanilla code, and test yet again on a 64bit system.

If at any point you/we can get the recompiled binary working on a 64bit system then add back your changes to the source code and try the compile again to see if the new binary works on 64bit systems.

I hope this is helpful and not overwhelming. I also hope this doesn't take too much of your time. Thanks again for your help with all of this.
Genericly is offline   Reply With Quote
Old 01-27-2012, 01:11 PM   #14
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

I'm not sure if my install of VS 2005 can do that. I looked around in the build options and didn't see any reference to that flag. I also tried just typing it in on the additional compiler directive box, which threw a warning saying it was invalid and would be ignored. Maybe we should try to find out who built the official release.
James_In_Utah is offline   Reply With Quote
Old 01-27-2012, 10:26 PM   #15
pangloss
Senior Member
 
Join Date: Apr 2005
Posts: 220
pangloss is an unknown quantity at this point
Default

I don't know if it helps any, but a lot of this was discussed in the IRC channel.

http://worldwindcentral.com/chat/irclog/worldwind/
__________________
To view all my addons visit http://www.panglosstech.com/.
pangloss is offline   Reply With Quote
Old 01-27-2012, 10:40 PM   #16
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

That's a lot of monthly log files to search through. Do you remember who did the release build for 1.4?
James_In_Utah is offline   Reply With Quote
Old 01-28-2012, 04:21 PM   #17
m_k
Bored Explorer
 
m_k's Avatar
 
Join Date: Nov 2004
Location: Warsaw, Poland
Posts: 1,808
m_k is an unknown quantity at this point
Default

1.4 was released Feb 2007 (wow! 4 years...), so search afround January, February. And I guess that bull did that release.
__________________
Hot stuff: FAQ, forum search, DirectX, .NET, Video Card Compatibility list
m_k is offline   Reply With Quote
Old 01-28-2012, 05:32 PM   #18
Genericly
Junior Member
 
Join Date: Jan 2012
Posts: 23
Genericly is on a distinguished road
Default

Quote:
Originally Posted by pangloss View Post
I don't know if it helps any, but a lot of this was discussed in the IRC channel.

http://worldwindcentral.com/chat/irclog/worldwind/
Quote:
Originally Posted by m_k View Post
1.4 was released Feb 2007 (wow! 4 years...), so search afround January, February. And I guess that bull did that release.
Thank you both for the heads up and direction in where to start. I'm grabbing the logs now and will search them shortly. I'll post back anything useful I can find. Hopefully the solution will be something very simple (e.g. a checkbox that needs checked ).
Genericly is offline   Reply With Quote
Old 01-28-2012, 06:16 PM   #19
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

The only thing I could find on the build settings page in VS2005 was a choice of x64, x32, or Any CPU. I had it set for Any CPU when I did my build.
James_In_Utah is offline   Reply With Quote
Old 01-28-2012, 06:39 PM   #20
Genericly
Junior Member
 
Join Date: Jan 2012
Posts: 23
Genericly is on a distinguished road
Default

If it's not too time consuming or hard, it might be worth trying to compile specifically for x32 (i.e. x86). Perhaps it's the any-architecture binary that's causing 64bit systems the problem making the system think it can run the binary natively when in fact it cannot. If 64bit systems are forced into using WoW64 then perhaps it will run on those systems (probably at a slower pace than native 32bit system but run nonetheless). Is this something what would be easy to try?
Genericly is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NASA Uses Isilon IQ to Advance Visual Imaging of Earth bull Community Chat 0 03-21-2007 06:29 AM
World Wind RC2 bull Announcements & News 15 12-29-2006 01:14 AM
NASA World Wind 1.3.3.1 Released bull Announcements & News 0 10-31-2005 06:52 PM
World Wind 1.3.3 released Randy Kim Announcements & News 0 10-22-2005 05:37 AM
World Wind 1.3.2 released Beansprout Announcements & News 0 09-07-2005 11:51 PM


All times are GMT +1. The time now is 06:59 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.