Visual Studio 2010 project properties

5 posts / 0 new
Last post
SamHobbs
SamHobbs's picture
Offline
Joined: 12 Feb 2011
Posts:
Visual Studio 2010 project properties

I tried to follow the instructions in:

http://www.mosync.com/documentation/manualpages/mosync-visual-studio-2010

However I get many link errors; most of which are unresolved external symbols for the C++ standard classes in MoSync libraries.

I have read:

http://www.mosync.com/content/how-can-we-configure-vs-2010-mozync

Which indicates that VS 2010 is not supported, yet there are instructions for it as indicated above.

I don't know what version of MoSync I have; the "About" box does not make it clear. However when I use the Find and Install in Software Updates it says there are no updates.

I assume I have not set the project properties correctly. The instructions are wrong for the libraries directory; the directory in the instructions don't match what I have. I have "$(LibraryPath);C:\Software\MoSync\lib\w32" for the Library Directories. I switched the MoSync library to the end due to the other thread, but I get the same errors either way.

I am new to MoSync. I am also new to Android programmming. There are many ways to do Android programmming and I can't decide which to use. I am willing to use Eclipse but if I can use VS then I prefer that.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

Hi. the nature of forums is that you can go back and read what people wrote historically. When the thread http://www.mosync.com/content/how-can-we-configure-vs-2010-mozync was written, then VS2010 wasn't supported. It is now, but not necessarily with all the functionality.

I've just been through the documentation from http://www.mosync.com/documentation/manualpages/mosync-visual-studio-2010 and created a project as it described. I had no errors.

You can see the version of MoSync you are running on the splash screen when Eclipse starts.

The instructions for the libraries directory seem right to me - I have the VS2010 directory, which may be why you've got some errors. Check that you've got MoSync 2.6 downloaded and installed.

I know what you mean about wanting to use VS though. I find it a much richer environment and easier to develop in. However, Eclipse isn't completely awful and the Eclipse debugger works with enough functionality to be useful. Given that not all of the libraries appear to be supported in VS2010, and because it uses a different compiler to that which you will use for production code, then I would recommend that you do use Eclipse. I would also like to see more support for VS2010.

SamHobbs
SamHobbs's picture
Offline
Joined: 12 Feb 2011
Posts:

The nature of forums is that those of us that attempt to help others (I have, many thousands of times in other forums) always have comments about doing things differently in forums. I know that in the "How To Ask Questions The Smart Way" page the advice is to provide references to what we have already tried and that is what I did. How many times do we tell people to search for previous answers? I often do search for previous answers before posting. So I wanted to make it clear that I did try.

So I have to execute Eclipse to see the version of MoSync even if I am not using Eclipse? And the only way to check the version is to watch the splash screen? Note that I looked at the "About" box; I don't see why the version is not there.

I appear to have version 2.4. So it is strange that the check for updates says that there is no new version.

Another point of confusion is that I have Eclipse installed so that I can use the Android SDK. I installed them according to instructions relevant to them. After that I installed MoSync, and it appears to have a customized Eclipse, different from the one I already had. I wish that Eclipse had a better installer so it could find itself without installing additional copies.

I seem to also have two copies of the Android SDK; that might have confused me too. I am not sure which one is the later version, but I am not asking for help here with that.

I will update MoSync and then try again.

Thank you for your assistance so far.

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:
SamHobbs wrote:

The nature of forums is that those of us that attempt to help others (I have, many thousands of times in other forums) always have comments about doing things differently in forums. I know that in the "How To Ask Questions The Smart Way" page the advice is to provide references to what we have already tried and that is what I did. How many times do we tell people to search for previous answers? I often do search for previous answers before posting. So I wanted to make it clear that I did try.

Fair enough :-) - I wasn't trying to start an argument. Thanks for researching before you ask a question.

SamHobbs wrote:

So I have to execute Eclipse to see the version of MoSync even if I am not using Eclipse? And the only way to check the version is to watch the splash screen? Note that I looked at the "About" box; I don't see why the version is not there.

Yep, you're right. I'll see about getting that fixed.

SamHobbs wrote:

I appear to have version 2.4. So it is strange that the check for updates says that there is no new version.

I'll look into that as well.

SamHobbs wrote:

Another point of confusion is that I have Eclipse installed so that I can use the Android SDK. I installed them according to instructions relevant to them. After that I installed MoSync, and it appears to have a customized Eclipse, different from the one I already had. I wish that Eclipse had a better installer so it could find itself without installing additional copies.

Yeah, MoSync requires its own build process and addons to Eclipse, so the MoSync Eclipse is different to any other Eclipse you may have. It may not work with any version of Eclipse, so it is bundled with an environment we know works

SamHobbs
SamHobbs's picture
Offline
Joined: 12 Feb 2011
Posts:

Thank you, that worked. I had to change the path for the lib directory (from w32 to vs2010 I think) but otherwise everything that I had done is now working.

I got many linker warnings about the mosync object files not having debug information. If there is a debug version that I need to use instead then I will find that; I have not looked. Other than that everything is working great.

I did not know how to install the new version. I did not know if it would do an upgrade or something like that. So when it began the install of 2.6 it asked me where to put it. I renamed the directory that 2.4 was in and created a new directory with the same name that I had had MoSync in and installed 2.6 there, so the path of 2.6 is now the same as it was for 2.4. I hope that works; I realize that there might be remnants of 2.4 mingled within 2.6. If there is an upgrade that I should have done instead that I apologize for missing that. I hope the worst case will be that I simply uninstall everything and re-install.

I do understand that it is better to use the MoSync IDE with Eclipse. If I continue to use MoSync I will also use the MoSync IDE but I sure feel better being able to start off using VS.

And yes, there is no need to start an argument. It is simply expression of frustration. I am usually the one answering questions but it is frustrating that when I ask a question, there is always a comment about doing it differently; I don't want to say too little and be vague so I try to be thorough in my question and then that causes problems too.