Raised This Month: $32 Target: $400
 8% 

Meta_api.o error on compiling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 03-29-2015 , 08:23   Meta_api.o error on compiling
Reply With Quote #1

Hi, I'm try to compile amxmodx using last SDK's from alliedmodders github and cygwin.
And I have this errors:
PHP Code:
In file included from meta_api.cpp:28:0:
CLibrarySys.hIn instantiation of «bool GET_IFACE(const char*, T*&, const char*) [with T IFileSystem]»:
meta_api.cpp:1494:87:   required from here
CLibrarySys
.h:165:53: ошибка: call to «CLibrary* LibrarySystem::OpenLibrary(const char*, char*, size_t)» uses the default argument for parameter 2, which is not yet defined
  
ke::AutoPtr<CLibrarylib(g_LibSys.OpenLibrary(path));
                                                     ^
/
cygdrive/x/users/gigabyte/desktop/amx/amxmodx-master/amxmodx/Makefile:131: &#1086;шибка выполнения рецепта для цели «Release/meta_api.o»
make[1]: *** [Release/meta_api.o] &#1054;шибка 1
make[1]: &#1074;ыход из каталога «/cygdrive/x/users/gigabyte/desktop/amx/amxmodx-master/amxmodx»
Makefile:134: &#1086;шибка выполнения рецепта для цели «all»
make: *** [all] &#1054;шибка 2 
How to solve this problem?
FromTheFuture is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-29-2015 , 08:31   Re: Meta_api.o error on compiling
Reply With Quote #2

MakeFile way is not more updated, and will be likely removed at some point.

To compile properly, use AMBuild. It's cross-platform.

Here: https://wiki.alliedmods.net/Building_AMX_Mod_X

Note you must use the HLSDK and metamod version from the link.
__________________

Last edited by Arkshine; 03-29-2015 at 08:52.
Arkshine is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 03-29-2015 , 09:52   Re: Meta_api.o error on compiling
Reply With Quote #3

I'm done, but how to make linux .so with it?
FromTheFuture is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-29-2015 , 10:42   Re: Meta_api.o error on compiling
Reply With Quote #4

Like said, It's cross-platform, so it's the same command to config and build.

I don't know how works cygwin, but if you are able to use MakeFile, then from this console, just do the same, but use AMBuild command instead.
__________________
Arkshine is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 03-29-2015 , 11:23   Re: Meta_api.o error on compiling
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
Like said, It's cross-platform, so it's the same command to config and build.
I'm think I need start-shell-gcc.bat for .so module compiling.
FromTheFuture is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-29-2015 , 11:29   Re: Meta_api.o error on compiling
Reply With Quote #6

How did you do to compile with MakeFile? You have likely opened a console, right?

Di you try to configure and build? What happens?

I can't help you if you don't show what you're doing.
__________________
Arkshine is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 03-29-2015 , 13:24   Re: Meta_api.o error on compiling
Reply With Quote #7

Quote:
Originally Posted by Arkshine View Post
What happens?
I'm show it in first post.
FromTheFuture is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-29-2015 , 16:16   Re: Meta_api.o error on compiling
Reply With Quote #8

No, I'm asking you what happens when you're using AMBuild command in the console where you would use MakeFile, and so far you don't want to answer.
__________________
Arkshine is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 03-29-2015 , 16:35   Re: Meta_api.o error on compiling
Reply With Quote #9

Quote:
Originally Posted by Arkshine View Post
No, I'm asking you what happens when you're using AMBuild command in the console where you would use MakeFile, and so far you don't want to answer.
When I'm use AMBuild command - the MinGW is successfully compiled amxmodx with output .dll
FromTheFuture is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 03-29-2015 , 17:30   Re: Meta_api.o error on compiling
Reply With Quote #10

So, I'm import gcc to mozilla-build and have a one million errors when compiling amxmodx.
Think, nice to be a create virtual box, making .so libraries on windows - impossible mission with many problems.
FromTheFuture 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 19:08.


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