Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Building pymod

 
Post new topic   Reply to topic Printable version
 View previous topic  Maximum chat length Post :: Post Turret bug.  View next topic  
Author Message
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Wed Jun 30, 2004 5:35 pm    Post subject: Building pymod Reply to topic Reply with quote

When I try to build pymod, I get
LINK : fatal error LNK1104: cannot open file 'python23.lib'

any ideas?
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Wed Jun 30, 2004 5:41 pm    Post subject: Reply to topic Reply with quote

you need python on your comp. Im told that you can compile asss without pythod support?
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Wed Jun 30, 2004 5:44 pm    Post subject: Reply to topic Reply with quote

EDIT: NM, I set the include for the compiler, not the linker
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
linux_terror
Newbie


Age:52
Gender:Gender:Male
Joined: Jul 03 2004
Posts: 10
Location: Montana
Offline

PostPosted: Sat Jul 03, 2004 7:16 pm    Post subject: Python Reply to topic Reply with quote

You can compile asss without python by uncommenting src/Makefile line 36....


before
#no_python = yes

after
no_python = yes


you can also toggle Mysql and DB4 functionality this way.

note:
I have noticed that with mysql 4.0.20, the lib paths are not correct...this is due to mysql changing the libs directory to /var/lib/mysql.....change your paths all!! The libs are no longer in $(mysql_home). This has been a major mysql issue for compiling all mysql dependant programs on linux(not just an ASSS problem). I do believe it effects anything after mysql 3.23.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Sat Jul 03, 2004 11:14 pm    Post subject: Reply to topic Reply with quote

thats ok though, I wanted pymod, and I got it to build. Now I just need to do 2 things:
1. learn python
2. find the commands that load the py modules
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
-Smong-
Guest


Offline

PostPosted: Sun Jul 04, 2004 6:31 pm    Post subject: Reply to topic Reply with quote

I downloaded Python a while back but could never figure out how to make it compile. I edited the paths in the Makefile but I don't know if they are correct:
Quote:
PYTHON_INC = /usr/local/Python-2.3.2/Include
PYTHON_LIB = /usr/local/lib/python2.3

Quote:
$ make pymod.o
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic -I/usr/local/Python-2.3.2/Include -c -o pymod.o pymod.c
In file included from pymod.c:4:
/usr/local/Python-2.3.2/Include/Python.h:8:22: pyconfig.h: No such file or directory
/usr/local/Python-2.3.2/Include/Python.h:21:2: #error "limits.h is required by std C -- why isn't HAVE_LIMITS_H defined?"
In file included from /usr/local/Python-2.3.2/Include/Python.h:48,
from pymod.c:4:
/usr/local/Python-2.3.2/Include/pyport.h:4:48: pyconfig.h: No such file or directory
/usr/local/Python-2.3.2/Include/pyport.h:536:2: #error "could not set LONG_MAX in pyport.h"
make: *** [pymod.o] Error 1

Also trying a py module using prebuilt binaries doesn't do much but kill parts of the server. A lot of stuff like this seen in the log:
Quote:
E <pymod> python error building args for callback CB_CHATMSG
Back to top
-Smong-
Guest


Offline

PostPosted: Sun Jul 04, 2004 6:34 pm    Post subject: Reply to topic Reply with quote

Sorry for double post.
I think the command to load a py module is:
?insmod <py> whatever
No need for .py extension, ?insmod it twice if you get an error the first time (generating .pyc I believe).
Back to top
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Mon Jul 05, 2004 8:14 pm    Post subject: Reply to topic Reply with quote

I know in catids' vs project, I had to add util.c to it
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 44 page(s) served in previous 5 minutes.

phpBB Created this page in 0.505065 seconds : 32 queries executed (94.4%): GZIP compression disabled