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

Building Socket Ext


Post New Thread Reply   
 
Thread Tools Display Modes
sahapro33
Member
Join Date: Mar 2014
Old 03-27-2016 , 01:07   Re: Building Socket Ext
Reply With Quote #11

// DEL

Code:
   root@vds-for-test:/home/a_sm/sourcemod# git clone --recursive https://github.com/alliedmodders/so
urcemod.git && cd sourcemod && git checkout 1.7-dev && cd ../
Cloning into 'sourcemod'...                                                                      
remote: Counting objects: 53338, done.                                                           
remote: Compressing objects: 100% (23/23), done.                                                 
remote: Total 53338 (delta 7), reused 0 (delta 0), pack-reused 53315                             
Receiving objects: 100% (53338/53338), 34.24 MiB | 15.07 MiB/s, done.                            
Resolving deltas: 100% (39485/39485), done.                                                      
Checking connectivity... done.                                                                   
Submodule 'public/amtl' (https://github.com/alliedmodders/amtl) registered for path 'public/amtl'
Submodule 'sourcepawn' (https://github.com/alliedmodders/sourcepawn) registered for path 'sourcep
awn'                                                                                             
Cloning into 'public/amtl'...                                                                    
remote: Counting objects: 865, done.                                                             
remote: Compressing objects: 100% (14/14), done.                                                 
remote: Total 865 (delta 3), reused 0 (delta 0), pack-reused 851                                 
Receiving objects: 100% (865/865), 266.62 KiB | 0 bytes/s, done.                                 
Resolving deltas: 100% (629/629), done.                                                          
Checking connectivity... done.                                                                   
Submodule path 'public/amtl': checked out 'ae57753e79a957d8578421f37043e6bea1603f65'             
Cloning into 'sourcepawn'...                                                                     
remote: Counting objects: 2603, done.                                                            
remote: Total 2603 (delta 0), reused 0 (delta 0), pack-reused 2603                               
Receiving objects: 100% (2603/2603), 1.95 MiB | 416.00 KiB/s, done.                              
Resolving deltas: 100% (1674/1674), done.                                                        
Checking connectivity... done.                                                                   
Submodule path 'sourcepawn': checked out '594bfbb5e46a47ed57af28786254e9fb8c2c506f'              
Submodule 'third_party/amtl' (https://github.com/alliedmodders/amtl) registered for path 'third_p
arty/amtl'                                                                                       
Cloning into 'third_party/amtl'...                                                               
remote: Counting objects: 865, done.                                                             
remote: Compressing objects: 100% (14/14), done.                                                 
remote: Total 865 (delta 3), reused 0 (delta 0), pack-reused 851                                 
Receiving objects: 100% (865/865), 266.62 KiB | 454.00 KiB/s, done.                              
Resolving deltas: 100% (629/629), done.                                                          
Checking connectivity... done.                                                                   
Submodule path 'sourcepawn/third_party/amtl': checked out 'ae57753e79a957d8578421f37043e6bea1603f
65'                                                                                              
error: The following untracked working tree files would be overwritten by checkout:              
        sourcepawn/compiler/AMBuilder                                                            
        sourcepawn/compiler/Makefile                                                             
        sourcepawn/compiler/amx.h                                                                
        sourcepawn/compiler/amxdbg.h                                                             
        sourcepawn/compiler/binreloc.c                                                           
        sourcepawn/compiler/binreloc.h                                                           
        sourcepawn/compiler/getch.h                                                              
        sourcepawn/compiler/libpawnc.cpp                                                         
        sourcepawn/compiler/lstring.cpp                                                          
        sourcepawn/compiler/lstring.h                                                            
        sourcepawn/compiler/memfile.cpp                                                          
        sourcepawn/compiler/memfile.h                                                            
        sourcepawn/compiler/memory-buffer.h                                                      
        sourcepawn/compiler/osdefs.h                                                             
        sourcepawn/compiler/pawn.ico                                                             
        sourcepawn/compiler/pawncc.cpp                                                           
        sourcepawn/compiler/sc.h                                                                 
        sourcepawn/compiler/sc1.cpp                                                              
        sourcepawn/compiler/sc2.cpp                                                              
        sourcepawn/compiler/sc3.cpp                                                              
        sourcepawn/compiler/sc4.cpp                                                              
        sourcepawn/compiler/sc5-in.scp                                                           
        sourcepawn/compiler/sc5.cpp                                                              
        sourcepawn/compiler/sc6.cpp                                                              
        sourcepawn/compiler/sc7-in.scp                                                           
        sourcepawn/compiler/sc7.cpp                                                              
        sourcepawn/compiler/sci18n.cpp                                                           
        sourcepawn/compiler/sclinux.h                                                            
        sourcepawn/compiler/sclist.cpp                                                           
        sourcepawn/compiler/scmemfil.cpp                                                         
        sourcepawn/compiler/sctracker.cpp                                                        
        sourcepawn/compiler/sctracker.h                                                          
        sourcepawn/compiler/scvars.cpp                                                           
        sourcepawn/compiler/smx-builder.cpp                                                      
        sourcepawn/compiler/smx-builder.h                                                        
        sourcepawn/compiler/sp_symhash.cpp                                                       
        sourcepawn/compiler/sp_symhash.h                                                         
        sourcepawn/compiler/string-pool.h                                                        
        sourcepawn/compiler/tests/disabled/fail-mix-methodmap-and-class-1.sp                     
        sourcepawn/compiler/tests/disabled/fail-mix-methodmap-and-class-1.txt                    
        sourcepawn/compiler/tests/disabled/fail-mix-methodmap-and-class-2.sp                     
        sourcepawn/compiler/tests/disabled/fail-mix-methodmap-and-class-2.txt                    
        sourcepawn/compiler/tests/disabled/fail-none-to-obj.sp                                   
        sourcepawn/compiler/tests/disabled/fail-none-to-obj.txt                                  
        sourcepawn/compiler/tests/disabled/fail-obj-to-any.sp                                    
        sourcepawn/compiler/tests/disabled/fail-obj-to-any.txt                                   
        sourcepawn/compiler/tests/disabled/fail-obj-to-multitag.sp                               
        sourcepawn/compiler/tests/disabled/fail-obj-to-multitag.txt                              
        sourcepawn/compiler/tests/disabled/fail-obj-to-none.sp                                   
        sourcepawn/compiler/tests/disabled/fail-obj-to-none.txt                                  
        sourcepawn/compiler/tests/disabled/fail-obj-to-varargs.sp                                
        sourcepawn/compiler/tests/disabled/fail-obj-to-varargs.txt                               
        sourcepawn/compiler/tests/disabled/fail-object-keyword-as-name.sp                        
        sourcepawn/compiler/tests/disabled/fail-object-keyword-as-name.txt                       
        sourcepawn/compiler/tests/disabled/fail-relabel-int-to-obj.sp                            
        sourcepawn/compiler/tests/disabled/fail-relabel-int-to-obj.txt                           
        sourcepawn/compiler/tests/disabled/fail-relabel-obj-to-int.sp                            
        sourcepawn/compiler/tests/disabled/fail-relabel-obj-to-int.txt                           
        sourcepawn/compiler/tests/disabled/this-eval-ordering.sp                                 
        sourcepawn/compiler/tests/fail-assign-null-to-any.sp                                     
        sourcepawn/compiler/tests/fail-assign-null-to-any.txt                                    
        sourcepawn/compiler/tests/fail-assign-string-and-nonstring.sp                            
        sourcepawn/compiler/tests/fail-assign-string-and-nonstring.txt                           
        sourcepawn/compiler/tests/fail-assign-to-this.sp                                         
        sourcepawn/compiler/tests/fail-assign-to-this.txt                                        
        sourcepawn/compiler/tests/fail-bad-arg-decls.sp                                          
        sourcepawn/compiler/tests/fail-bad-arg-decls.txt                                         
        sourcepawn/compiler/tests/fail-bad-array-decls.sp                                        
        sourcepawn/compiler/tests/fail-bad-array-decls.txt                                       
        sourcepawn/compiler/tests/fail-bad-array-initializer.sp                                  
        sourcepawn/compiler/tests/fail-bad-array-initializer.txt                                 
        sourcepawn/compiler/tests/fail-bad-void.sp                                               
        sourcepawn/compiler/tests/fail-bad-void.txt                                              
        sourcepawn/compiler/tests/fail-call-non-static-on-type.sp                                
        sourcepawn/compiler/tests/fail-call-non-static-on-type.txt                               
        sourcepawn/compiler/tests/fail-call-static-via-instance.sp                               
        sourcepawn/compiler/tests/fail-call-static-via-instance.txt                              
        sourcepawn/compiler/tests/fail-cannot-view-as-void.sp                                    
        sourcepawn/compiler/tests/fail-cannot-view-as-void.txt                                   
        sourcepawn/compiler/tests/fail-coerce-ref-string-to-any.sp                               
        sourcepawn/compiler/tests/fail-coerce-ref-string-to-any.txt                              
        sourcepawn/compiler/tests/fail-coerce-string-to-any.sp                                   
        sourcepawn/compiler/tests/fail-coerce-string-to-any.txt                                  
        sourcepawn/compiler/tests/fail-default-args-in-public.sp                                 
        sourcepawn/compiler/tests/fail-default-args-in-public.txt                                
        sourcepawn/compiler/tests/fail-delete-no-dtor.sp                                         
        sourcepawn/comp                                                                          
Aborting                                                                                         
root@vds-for-test:/home/a_sm/sourcemod/sourcemod#
/ del

Last edited by sahapro33; 03-27-2016 at 04:20.
sahapro33 is offline
sahapro33
Member
Join Date: Mar 2014
Old 03-27-2016 , 04:47   Re: Building Socket Ext
Reply With Quote #12

All fixed now compiles.

Errors were:
Quote:
root@vds-for-test:/home/a_sm/sm-ext-socket# make
mkdir -p Release/sdk
make extension
make[1]: Entering directory '/home/a_sm/sm-ext-socket'
gcc -I. -I/home/a_sm/metamod-source -I/home/a_sm/metamod-source/sourcehook -I/home/a_sm/metamod-source/sourcemm -I/home/a_sm/sourcemod/public -I/home/a_sm/sourcemod/public/sourcepawn -I/home/a_sm/sourcemod/public/extensions -I/home/a_sm/sourcemod/public/sourcepawn/include -D_LINUX -DSOURCEMOD_BUILD -Wall -fPIC -m32 -O3 -funroll-loops -s -pipe -fno-strict-aliasing -o Release/SocketHandler.ox -c SocketHandler.cpp
In file included from /home/a_sm/sourcemod/public/IShareSys.h:40:0,
from /home/a_sm/sourcemod/public/IExtensionSys.h5,
from sdk/smsdk_ext.h:41,
from Socket.h:11,
from SocketHandler.h:8,
from SocketHandler.cpp:1:
/usr/include/sp_vm_types.h: In constructor 'sp_native_t::sp_native_t()':
/usr/include/sp_vm_types.h:162:14: error: 'nullptr' was not declared in this scope
: unused1(nullptr),
^
In file included from /home/a_sm/sourcemod/public/IShareSys.h:41:0,
from /home/a_sm/sourcemod/public/IExtensionSys.h5,
from sdk/smsdk_ext.h:41,
from Socket.h:11,
from SocketHandler.h:8,
from SocketHandler.cpp:1:
/usr/include/sp_vm_api.h: At global scope:
/usr/include/sp_vm_api.h:256:40: error: 'nullptr' was not declared in this scope
virtual bool Invoke(cell_t *rval = nullptr) = 0;
^
Makefile:55: recipe for target 'Release/SocketHandler.ox' failed
make[1]: *** [Release/SocketHandler.ox] Error 1
make[1]: Leaving directory '/home/a_sm/sm-ext-socket'
Makefile:61: recipe for target 'all' failed
make: *** [all] Error 2
root@vds-for-test:/home/a_sm/sm-ext-socket#
To do so -
Quote:
g++ -std=c++11 -I. -I/home/a_sm/metamod-source -I/home/a_sm/metamod-source/sourcehook -I/home/a_sm/metamod-source/sourcemm -I/home/a_sm/sourcemod/public -I/home/a_sm/sourcemod/public/sourcepawn -I/home/a_sm/sourcemod/public/extensions -I/home/a_sm/sourcemod/public/sourcepawn/include -D_LINUX -DSOURCEMOD_BUILD -Wall -fPIC -m32 -O3 -funroll-loops -s -pipe -fno-strict-aliasing -o Release/Socket.ox -c Socket.cpp
Just do not understand why the expansion - .ox (Socket.ox)

Last edited by sahapro33; 03-27-2016 at 04:48.
sahapro33 is offline
sahapro33
Member
Join Date: Mar 2014
Old 03-29-2016 , 07:34   Re: Building Socket Ext
Reply With Quote #13

What am I doing wrong? I'm not running a compiled file ..
sahapro33 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-29-2016 , 07:38   Re: Building Socket Ext
Reply With Quote #14

Quote:
Originally Posted by sahapro33 View Post
What am I doing wrong? I'm not running a compiled file ..
I don't understand that.
WildCard65 is offline
sahapro33
Member
Join Date: Mar 2014
Old 03-29-2016 , 10:05   Re: Building Socket Ext
Reply With Quote #15

Quote:
Originally Posted by sahapro33 View Post
Just do not understand why the expansion - .ox (Socket.ox)
sahapro33 is offline
sahapro33
Member
Join Date: Mar 2014
Old 03-30-2016 , 08:12   Re: Building Socket Ext
Reply With Quote #16

Hello, after compiling I get a don't (not) working extension.

----
Sorry , I do not know English very well ..
sahapro33 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-30-2016 , 13:23   Re: Building Socket Ext
Reply With Quote #17

How is it not working?
WildCard65 is offline
sahapro33
Member
Join Date: Mar 2014
Old 03-30-2016 , 13:51   Re: Building Socket Ext
Reply With Quote #18

Sm does not load the ext.
sahapro33 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-30-2016 , 19:41   Re: Building Socket Ext
Reply With Quote #19

Got a plugin that requires the extension failing to load? What does "sm exts list" say?
WildCard65 is offline
sahapro33
Member
Join Date: Mar 2014
Old 04-02-2016 , 06:06   Re: Building Socket Ext
Reply With Quote #20

sm exts list
[SM] Displaying 7 extensions:
[01] CS Tools (1.7.3-dev+5280): CS extended functionality
[02] BinTools (1.7.3-dev+5280): Low-level C/C++ Calling API
[03] SDK Tools (1.7.3-dev+5280): Source SDK Tools
[04] Top Menus (1.7.3-dev+5280): Creates sorted nested menus
[05] Client Preferences (1.7.3-dev+5280): Saves client preference settings
[06] SQLite (1.7.3-dev+5280): SQLite Driver
[07] SDK Hooks (1.7.3-dev+5280): Source SDK Hooks
sahapro33 is offline
Reply



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 22:23.


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