TF2Items icon indicating copy to clipboard operation
TF2Items copied to clipboard

Having issues compiling with ambuilder

Open bottiger1 opened this issue 4 years ago • 0 comments

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?

bottiger1 avatar Apr 01 '21 21:04 bottiger1