asherkin / TF2Items

Items with custom attributes.
https://forums.alliedmods.net/forumdisplay.php?f=146
32 stars 10 forks source link

Having issues compiling with ambuilder #13

Open bottiger1 opened 3 years ago

bottiger1 commented 3 years ago

Hello I am having a lot of issues compiling with ambuilder.

It seems like it is made for some old build of sourcemod. I had to include additional directories for files that moved such as:

/sourcemod/sourcepawn/include/sp_vm_types.h /sourcemod/public/amtl/amtl/am-string.h

    compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache['SOURCEMOD14'], 'build', 'includes'))
    compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache['SOURCEMOD14'], 'public'))
    compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache['SOURCEMOD14'], 'public', 'amtl'))
    compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache['SOURCEMOD14'], 'public', 'amtl', 'amtl'))
    compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache['SOURCEMOD14'], 'sourcepawn', 'include'))

And also comment out "AMBuild.Include(os.path.join('buildbot', 'Versioning'), globals)".

Then smsdk_config.hpp complains about SM_VERSION not being defined.

Is this intended? Will there be any effort to get it to compile with a recent version of sourcemod?