peterhuene / sqlite-net-wp8

A C++/CX wrapper for SQLite functions that sqlite-net depends on. Can be used as an alternative to csharp-sqlite on Windows Phone 8. This library is released under the MIT license.
MIT License
74 stars 65 forks source link

Could not build under VS2013 #14

Closed lessneek closed 11 years ago

lessneek commented 11 years ago

When building in VS2013 with Win32 target platform.

1>------ Build started: Project: Sqlite, Configuration: Debug Win32 ------ 1> pch.cpp 1> SqliteWP8.cpp 1>LINK : fatal error LNK1104: cannot open file 'sqlite3.lib' ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Though if change target platform to ARM build succeeds.

lessneek commented 11 years ago

Somehow I found the problem, under VS2013 with platform Win32 there is no $(PlatformTarget) variable, but there is $(PlatformShortName). I have added

$(FrameworkSDKRoot)....\Windows Phone\v8.0\ExtensionSDKs\SQLite.WP80\3.7.17\DesignTime\$(PackageConfiguration)\$(PlatformShortName)

to the library directories and now build succeeds for Win32 platform.

peterhuene commented 11 years ago

When VS2013 gets closer to RTM and people start supporting it in their extensions (last I checked I had to manually update SQLite's extension's manifest to get it to install), I'll make sure this works with VS 2013. Leaving this issue open as a reminder.

peterhuene commented 11 years ago

I was able to build using VS 2013 RC when I manually installed the latest SQLite for Windows Phone extension after downloading it from http://visualstudiogallery.msdn.microsoft.com. I didn't have to modify the extension's manifest this time. It worked just fine.