Raised This Month: $12 Target: $400
 3% 

Solved amtl-autoptr include error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fakuivan
Senior Member
Join Date: Nov 2015
Old 01-11-2017 , 11:34   amtl-autoptr include error
Reply With Quote #1

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

Last edited by fakuivan; 01-11-2017 at 11:44.
fakuivan is offline
fakuivan
Senior Member
Join Date: Nov 2015
Old 01-11-2017 , 11:45   Re: amtl-autoptr include error
Reply With Quote #2

moved from "1.8-dev" to "master", that fixed it
fakuivan is offline
fakuivan
Senior Member
Join Date: Nov 2015
Old 01-11-2017 , 23:00   Re: amtl-autoptr include error
Reply With Quote #3

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/
fakuivan is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:33.


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