Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Windows / Help me! Can't compile AGK2 programs in tier 2

Author
Message
8BitGen
3
Years of Service
User Offline
Joined: 22nd May 2020
Location:
Posted: 10th Sep 2020 04:03
Hello,

I have followed every instructions to compile in tier 2, but I got some linker errors.

My AGK2 path is located at D:\Steam\steamapps\common\App Game Kit 2\Tier 2

I copy the template_windows_vs2017_64 on my desktop under a folder named C++ Projects

I updated both DEBUG X64 and RELEASE X64 properties as follow:

For the Additional Include Directories under the configurations properties/c/c++/general.
D:\Steam\steamapps\common\App Game Kit 2\Tier 2\Tier 2\common\Include
D:\Steam\steamapps\common\App Game Kit 2\Tier 2\Tier 2\common
D:\Steam\steamapps\common\App Game Kit 2\Tier 2\Tier 2\bullet
D:\Steam\steamapps\common\App Game Kit 2\Tier 2\Tier 2\bullet\BulletCollision\CollisionShapes

For the Additional Library Directories. under Linker / general (DEBUG X64)
D:\Steam\steamapps\common\App Game Kit 2\Tier 2\Tier 2\platform\windows\Lib\VS2017\Debug64

For the Additional Library Directories. under Linker / general (RELEASE X64)
D:\Steam\steamapps\common\App Game Kit 2\Tier 2\Tier 2\platform\windows\Lib\VS2017\Release64

My Visual Studio instalation is located at:
D:\Program Files (x86)\Microsoft Visual Studio\2017\Community

After building in both DEBUG X64 and RELEASE X64 I got the following errors

1>------ Build started: Project: Template, Configuration: Debug x64 ------
1>AGKWindows64.lib(FBXConverter.obj) : error LNK2019: unresolved external symbol __std_swap_ranges_trivially_swappable_noalias referenced in function "private: void __cdecl Assimp::FBX::Converter::ConvertAnimationStack(class Assimp::FBX::AnimationStack const &)" (?ConvertAnimationStack@Converter@FBX@Assimp@@AEAAXAEBVAnimationStack@23@@Z)
1>Final\Template64.exe : fatal error LNK1120: 1 unresolved externals
1>Done building project "Template.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

It also report the following

Severity Code Description Project File Line Suppression State
Error LNK1120 1 unresolved externals Template D:\Desktop\C++ projects\template_windows_vs2017_64\Final\Template64.exe 1
Error LNK2019 unresolved external symbol __std_swap_ranges_trivially_swappable_noalias referenced in function "private: void __cdecl Assimp::FBX::Converter::ConvertAnimationStack(class Assimp::FBX::AnimationStack const &)" (?ConvertAnimationStack@Converter@FBX@Assimp@@AEAAXAEBVAnimationStack@23@@Z) Template D:\Desktop\C++ projects\template_windows_vs2017_64\AGKWindows64.lib(FBXConverter.obj) 1

Could someone help me to fix this.

Best regards

Marc
8BitGen
3
Years of Service
User Offline
Joined: 22nd May 2020
Location:
Posted: 10th Sep 2020 22:29
Well I finally got it. It's working but I still have some minor issues. The programs compile and run but it seems to freeze when I try to use a for statement in the AGK::begin method. It might be simply because I declared the wrong type of variable for my 3D objects. Anyone have an idea what could cause this?

Login to post a reply

Server time is: 2024-03-29 16:01:59
Your offset time is: 2024-03-29 16:01:59