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

Build - AmeisenNavigation.Pack.lib not found - AntTcp was built by different compiler #592

Closed
KevSchi opened this issue Jun 7, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@KevSchi
Copy link

KevSchi commented Jun 7, 2024

Description

While building the AmeisenServer it closes due to not finding
LNK1104 Datei "AmeisenNavigation.Pack.lib" cant be opened

Cataclysm classic

Addon Version

actual

World of Warcraft Client

The Burning Crusade Classic

Reproduction Steps

Just the standard Steps out of the readme

Last Good Version

No response

Screenshots

No response

Logs

No response

@KevSchi KevSchi added the bug Something isn't working label Jun 7, 2024
@Xian55
Copy link
Owner

Xian55 commented Jun 7, 2024

Hello, be sure to follow the mentioned #585 guide about how to build it.

If you still having isses heres a x64 release binary.
#585 (comment)

If you still ran into an issue please provide more info about your setup.

Like complilation errors.
Active projects
Target platform
Windows version

@KevSchi
Copy link
Author

KevSchi commented Jun 7, 2024

I followed every step. I had to download the AnTCP.Client nuget and placed it locally. The Exporter is unloaded
image
When trying to build for debug or release the same error occurs
image

I wanted to modify the server a bit so thats why i wanted to build it on my own.

It works with the precompiled binary but like i said i wanted to build it on my own :)

@Xian55
Copy link
Owner

Xian55 commented Jun 7, 2024

Have you tried to build AmeisenNavigation.Pack project ?

I'm using the following settings for the Pack project
image
image

Command line:

/permissive- /ifcOutput "build\x64\int\Release\" /GS /GL /W3 /Gy /Zc:wchar_t /Zi /Gm- /O2 /sdl /Fd"build\x64\Release\AmeisenNavigation.Pack.pdb" /Zc:inline /fp:precise /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /errorReport:prompt /WX- /Zc:forScope /Gd /Oi /MD /std:c++latest /FC /Fa"build\x64\int\Release\" /EHsc /nologo /Fo"build\x64\int\Release\" /Fp"build\x64\int\Release\AmeisenNavigation.Pack.pch" /diagnostics:column 

Be sure to set the Set As Startup Project as AmeisenNavigation.Server

@KevSchi
Copy link
Author

KevSchi commented Jun 7, 2024

I managed it by loading Exporter and trying to build it. After that, I got errors that my AntTcp was built by different compilers. I then unloaded it and built the .Server again. It worked that way.

I also wanted to say thank you for your crazy project. I actually fell in love with what you are doing here. Also the support is crazy dude

@Xian55
Copy link
Owner

Xian55 commented Jun 7, 2024

i've just checked out the repo from git, by default the target platform going to be Any CPU, which does not work.
image

Be sure to set the target platform either x86 or x64
image

Set start up Project AmeisenNavigation.Server

The rebuild solution should work.

Note: For the final version be sure to use Release.

Rebuild started at 11:52...
1>------ Rebuild All started: Project: AmeisenNavigation.Pack, Configuration: Debug x64 ------
2>------ Rebuild All started: Project: recastnavigation, Configuration: Debug x64 ------
Restored T:\help\AmeisenNavigation\AmeisenNavigation.Tester\AmeisenNavigation.Tester.csproj (in 12 ms).
1>miniz.c
2>DetourAlloc.cpp
2>DetourAssert.cpp
2>DetourCommon.cpp
2>DetourCrowd.cpp
2>DetourLocalBoundary.cpp
2>DetourNavMesh.cpp
1>AmeisenNavigation.Pack.vcxproj -> T:\help\AmeisenNavigation\AmeisenNavigation.Pack\build\x64\Debug\AmeisenNavigation.Pack.lib
2>DetourNavMeshBuilder.cpp
2>DetourNavMeshQuery.cpp
2>DetourNode.cpp
2>DetourObstacleAvoidance.cpp
2>DetourPathCorridor.cpp
2>DetourPathQueue.cpp
2>DetourProximityGrid.cpp
2>DetourTileCache.cpp
2>DetourTileCacheBuilder.cpp
2>Recast.cpp
2>RecastAlloc.cpp
2>RecastArea.cpp
2>RecastAssert.cpp
2>RecastContour.cpp
2>Generating Code...
2>Compiling...
2>RecastFilter.cpp
2>RecastLayers.cpp
2>RecastMesh.cpp
2>RecastMeshDetail.cpp
2>RecastRasterization.cpp
2>RecastRegion.cpp
2>Generating Code...
2>recastnavigation.vcxproj -> T:\help\AmeisenNavigation\recastnavigation\build\x64\Debug\recastnavigation.lib
3>------ Rebuild All started: Project: AmeisenNavigation, Configuration: Debug x64 ------
3>AmeisenNavigation.cpp
3>T:\help\AmeisenNavigation\AmeisenNavigation.Pack\src\Anp.hpp(83,85): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
3>T:\help\AmeisenNavigation\AmeisenNavigation\src\NavSources\Mmap\MmapNavSource.hpp(54,19): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
3>AmeisenNavigation.vcxproj -> T:\help\AmeisenNavigation\AmeisenNavigation\build\x64\Debug\AmeisenNavigation.lib
3>Done building project "AmeisenNavigation.vcxproj".
4>------ Rebuild All started: Project: AmeisenNavigation.Server, Configuration: Debug x64 ------
4>Main.cpp
4>T:\help\AmeisenNavigation\AmeisenNavigation.Pack\src\Anp.hpp(83,85): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
4>T:\help\AmeisenNavigation\AmeisenNavigation\src\NavSources\Mmap\MmapNavSource.hpp(54,19): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
4>AmeisenNavigation.Server.vcxproj -> T:\help\AmeisenNavigation\AmeisenNavigation.Server\build\x64\Debug\AmeisenNavigationServer.exe
4>Done building project "AmeisenNavigation.Server.vcxproj".
5>------ Rebuild All started: Project: AmeisenNavigation.Tester, Configuration: Debug Any CPU ------
5>AmeisenNavigation.Tester -> T:\help\AmeisenNavigation\AmeisenNavigation.Tester\bin\Debug\net8.0-windows7.0\AmeisenNavigation.Tester.dll
========== Rebuild All: 5 succeeded, 0 failed, 0 skipped ==========
========== Rebuild completed at 11:52 and took 09.785 seconds ==========

@KevSchi
Copy link
Author

KevSchi commented Jun 7, 2024

i forgot to say above that i also compiled for x64

but before the "fix" i was not be able to compile for x86 or x64

@Xian55
Copy link
Owner

Xian55 commented Jun 7, 2024

As long as you learn something new and keeps you pushing forward, i think everyone is happy. :)

@KevSchi KevSchi closed this as completed Jun 7, 2024
@Xian55 Xian55 changed the title Problems building AmeisenNav Build AmeisenNav - AmeisenNavigation.Pack.lib not found - AntTcp was built by different compiler Jun 7, 2024
@Xian55 Xian55 changed the title Build AmeisenNav - AmeisenNavigation.Pack.lib not found - AntTcp was built by different compiler Build - AmeisenNavigation.Pack.lib not found - AntTcp was built by different compiler Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants