Building with vs2010 Express

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Building with vs2010 Express

Postby Bird » Tue Jul 03, 2012 2:01 pm

Newton applications like DemosSandbox don't build with vs2010 Express because the Express version doesn't support solution folders for projects Image

Any chance you could make a separate solution for us 2010 Express users ...

-Bird
Bird
 
Posts: 636
Joined: Tue Nov 22, 2011 1:27 am

Re: Building with vs2010 Express

Postby Julio Jerez » Tue Jul 03, 2012 2:07 pm

Oh no solution folder in VS express?
they are such a cool feature because let you make virtual directory structure and still keep the file in one forlder.
I love that feaure in xcode. and then I fouend taht VS2009 and 2010 also have then

how where you building it before? where you using VS2009? because that project also use solution folders.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Building with vs2010 Express

Postby Bird » Tue Jul 03, 2012 3:36 pm

how where you building it before? where you using VS2009? because that project also use solution folders

I have VS2009 Standard Edition, so that's what I have been using. But I'm trying to move up to VS2010 now. I have had all sorts of problems In my LW 64bit plugin compiled with VS2008 64 bit unless I disabled optimizations in Release mode. I am hoping they will go away with VS1020.

-Bird
Bird
 
Posts: 636
Joined: Tue Nov 22, 2011 1:27 am

Re: Building with vs2010 Express

Postby Julio Jerez » Tue Jul 03, 2012 4:17 pm

Ha I see, I know that standrd editro do no even come with optimizing compiler options.
so by moving VS10 express your code will also run faster.

I see if I make the change to the project.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Building with vs2010 Express

Postby Bird » Tue Jul 03, 2012 4:47 pm

Great! Thanks a bunch.

-Bird
Bird
 
Posts: 636
Joined: Tue Nov 22, 2011 1:27 am

Re: Building with vs2010 Express

Postby Julio Jerez » Thu Jul 05, 2012 10:42 am

Um I am having a prblem tryin to install VS2010 express in an old laptop. I can only find web intallation, this laptop is not connected to the internet.
for some reason the wireless conection fail. Is there a download that is self contained?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Building with vs2010 Express

Postby Julio Jerez » Thu Jul 05, 2012 10:55 am

never mind, I plug a cable, but now this machine has to go over updates. Thsi machine is so old that still have XP and VS2005

I will let it update, and then try to install VS 2010 express. the download speed of this laptop is in teh oder of kilobyte persecunds, update take many hours.
In any case it will be many by saturday
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Building with vs2010 Express

Postby Julio Jerez » Mon Jul 09, 2012 11:49 am

Oh I added VS express solutions, for VS2008 and VS 2010
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Building with vs2010 Express

Postby Bird » Mon Jul 09, 2012 12:45 pm

Julio Jerez wrote:Oh I added VS express solutions, for VS2008 and VS 2010

Great!. Thanks for going to the trouble to add Express support. I tried it and it worked fine. In order for the 64bit versions to link properly, it's necessary to provide a path to the Windows SDK 64bit libraries in the VC++Directories/Library Directories option in the project configuration properties. The default location is "C:\Program Files/Microsoft SDKs/Windows/v7.1/Lib/x64"

-Bird
Bird
 
Posts: 636
Joined: Tue Nov 22, 2011 1:27 am

Re: Building with vs2010 Express

Postby Julio Jerez » Mon Jul 09, 2012 2:04 pm

But that's is a global path, I do not thonk VS save the list of glbal path with teh solution, it save it withe teh editor settings.

My laptop is 32 bit, I think that VS installer recognize that and does the setting for 32 bit developemnet only.
I say this because when I open the normal solution it says that I can not do 64 bit development on that system.
It tells me to install the 64 bit part, but I do not find that anywhere over NS.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Building with vs2010 Express

Postby Bird » Mon Jul 09, 2012 2:43 pm

The path to the SDK 64 libs is saved in the project(demoSandbox) settings. If I don't add that path, then the 64 bit versions fail because the opengl library can't be found.

Here's where I learned how to fix it.
http://stackoverflow.com/questions/9821700/visual-studio-2010-express-win-sdk-cannot-open-input-file-kernel32-lib

Here's where I downloaded the windows sdk
http://stackoverflow.com/questions/1865069/how-to-compile-a-64-bit-application-using-visual-c-2010-express
http://msdn.microsoft.com/en-us/windowsserver/bb980924.aspx

-Bird
Bird
 
Posts: 636
Joined: Tue Nov 22, 2011 1:27 am

Re: Building with vs2010 Express

Postby Julio Jerez » Tue Jul 10, 2012 9:57 am

Oh I see what the problem is. Basically VS does not let you develop 64 bit code in a 32 32 bit machine.

Basicaly all I did was copy teh solution and rename it to VS_express.sln an dthw was fine in my normal PC, but when I open the solution in teh laptop, VS say that it will disable 64 bit developement .
I beleive that mean that it ill mopdific teh project, I test it and check it in form teh laptop. but the when I open again thise macro $(VCInstallDir)lib was removed leavind only these thre
$(VCInstallDir)atlmfc\lib
$(WindowsSdkDir)lib
$(FrameworkSDKDir)\lib

The solution is to mak eteh project in VS profesional and open in VS express but not checkin in from VS express.
xcode does similar things between xcode3 and xcode 2.5 projects.
try again I think it works now.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Building with vs2010 Express

Postby Bird » Tue Jul 10, 2012 11:04 am

Still not working in svn 2285. It's really no big deal though, it only takes a second to fix.

-Bird

Code: Select all
------ Build started: Project: fox, Configuration: Release x64 ------
  fox.vcxproj -> E:\Koa\dependencies\Newton\packages\thirdParty\fox\fox-1.6.44\windows\vcpp\foxVS_2010\x64/fox/Release\fox.lib
------ Build started: Project: fox, Configuration: Release Win32 ------
  fox.vcxproj -> E:\Koa\dependencies\Newton\packages\thirdParty\fox\fox-1.6.44\windows\vcpp\foxVS_2010\Win32/fox/Release\fox.lib
------ Build started: Project: fox, Configuration: Debug x64 ------
  fox.vcxproj -> E:\Koa\dependencies\Newton\packages\thirdParty\fox\fox-1.6.44\windows\vcpp\foxVS_2010\x64/fox/Debug\fox_d.lib
------ Build started: Project: fox, Configuration: Debug Win32 ------
  fox.vcxproj -> E:\Koa\dependencies\Newton\packages\thirdParty\fox\fox-1.6.44\windows\vcpp\foxVS_2010\Win32/fox/Debug\fox_d.lib
------ Build started: Project: demosSandbox, Configuration: release x64 ------
LINK : fatal error LNK1181: cannot open input file 'opengl32.lib'
------ Build started: Project: demosSandbox, Configuration: debug x64 ------
LINK : fatal error LNK1104: cannot open file 'opengl32.lib'
========== Build: 4 succeeded, 2 failed, 62 up-to-date, 0 skipped ==========
Bird
 
Posts: 636
Joined: Tue Nov 22, 2011 1:27 am

Re: Building with vs2010 Express

Postby Julio Jerez » Tue Jul 10, 2012 11:39 am

maybe opengl32.lib for 64 bit is not part of $(VCInstallDir)lib
It may be that the SDK put it somewhere else. Ok I will add that path to the solution later.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron