Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors while building the solution in VS2017 #1

Closed
adarshrao opened this issue Mar 28, 2018 · 1 comment
Closed

Errors while building the solution in VS2017 #1

adarshrao opened this issue Mar 28, 2018 · 1 comment

Comments

@adarshrao
Copy link

adarshrao commented Mar 28, 2018

Hi,

These are the errors I faced while trying to build IPMSG from the source code.

Note : I have installed the latest Visual Studio 17 Community with the appropriate SDKs.

Action Taken : "Build IPMSG"

## Error #1 :
image

In Text : "STL1001: Unexpected Compiler Version, expected MSVC 19.12"

Build Log : https://justpaste.it/1iwaw

Comments : My compiler version is "Microsoft (R) C/C++ Optimizing Compiler Version 19.13.26129 for x64" so it's definitely not <1912

Solution :
In the taskbarui.cpp file that is loaded just before the error, "#define _MSC_VER 1500" is used. I changed the 1500 to be 1913. The error disappears.

##Error #2 :

image

in text: "cannot open file "lib/sqlite3.lib"

In my debug folder, I can see a file 'sqlite3.lib' however, it cannot seem to be opened. I've tried running Visual Studio as administrator but that did not have any effect.

I've also tried googling the error "LNK1104 cannot open file lib/sqlite3.lib" but that didn't help either.

I found this Stack Overflow board and tried this but that didn't help either - https://stackoverflow.com/questions/133698/why-does-fatal-error-lnk1104-cannot-open-file-c-program-obj-occur-when-i-c

Solution : I had to manually copy the generated sqlite3.lib file from the /Debug/ folder to the /Lib/ folder outside and 'Build IPMSG' again. It generated the .exe file this time.

I'm unsure of how one can solve these issues in general or if my way of doing it was correct. Figured I would put it here so that it might help someone in the future.

Cheers.

@huawei-nos
Copy link

error2 can be resolved by modify the vcxproj file:

NativeRecommendedRules.ruleset
$(SolutionDir)$(Configuration)..\lib

@shirouzu shirouzu closed this as completed Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants