AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Solved amtl-autoptr include error (https://forums.alliedmods.net/showthread.php?t=292664)

fakuivan 01-11-2017 11:34

amtl-autoptr include error
 
I wrote a small extension that exposes hooks to IServerGameDLL::Think for plugins to use, it's pretty much a copy paste from this pr. I can't get it to compile, strange enougth, the pr compiles and smn_functions.cpp initializes it the same way.

Here's the output from ambuild:


And
Code:

LIBS_DIR="~/projects/sourcemod/libs"
git clone https://github.com/alliedmodders/ambuild.git $LIBS_DIR/ambuild && cd $LIBS_DIR/ambuild && python setup.py build && sudo python setup.py install
git clone https://github.com/alliedmodders/metamod-source.git -b 1.10-dev $LIBS_DIR/metamod-source
git clone https://github.com/alliedmodders/hl2sdk.git -b tf2 $LIBS_DIR/hl2sdk-tf2
git clone https://github.com/alliedmodders/sourcemod.git --recursive -b 1.8-dev $LIBS_DIR/sourcemod
git clone https://github.com/alliedmodders/amtl.git $LIBS_DIR/amtl

I'll leave the source on the attachments section, I hope you can help me solve this. Thanks for reading and have a nice day :D

fakuivan 01-11-2017 11:45

Re: amtl-autoptr include error
 
moved from "1.8-dev" to "master", that fixed it :P

fakuivan 01-11-2017 23:00

Re: amtl-autoptr include error
 
Here's the solution, from #sourcemod@GameSurge. Thanks to asherkin

Code:

[16:04:04] <asherkin> In file included from /home/code/projects/sourcemod/libs/amtl/amtl/am-autoptr.h
[16:04:12] <asherkin> fakuivan: that path does not look correct
[16:04:24] <asherkin> your amtl should be coming from inside the sourcemod checkout
[16:04:41] <asherkin> since a SM version is pinned against a specific AMTL commit
[16:09:05] <fakuivan> yep, but 1.8 has no am-autoptr.h
[16:09:49] <fakuivan> AutoPtr used to be on am-utility.h since https://github.com/alliedmodders/sourcemod/commit/3cccfc15da4eda796d79b3b50cadd081ba308bc4
[16:10:09] <fakuivan> is now on am-autoptr.h*
[16:27:06] <fakuivan> #ifdef LATEST_AMTL
[16:27:06] <fakuivan> #include "am-utility.h"
[16:27:06] <fakuivan> #else
[16:27:06] <fakuivan> #include "amtl/am-autoptr.h"
[16:27:06] <fakuivan> #endif
[16:27:48] <fakuivan> asherkin, that could be a solution 🤔
[16:29:38] <asherkin> you should just pick 1.8 as the target minimum and build against that
[16:29:45] <asherkin> all my shit is built against 1.6 \o/



All times are GMT -4. The time now is 02:06.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.