Author |
Message |
Cyan~Fire I'll count you!
Age:36 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Thu Nov 01, 2007 5:13 pm Post subject: |
|
|
|
|
I just tried to build asss 1.4.4 using devcpp 4.9.9.2 on win xp. I have cygwin installed. I have Python 2.5 installed.
First I commented out have_bdb and have_mysql in system.mk, since I don't have those. Then I opened os.mk and pasted this line after the first if statement:
SYS_NAME := MINGW-dev-c++ | I had to do this because I have cygwin installed, otherwise devcpp tries to compile with cygwin makefile settings.
Next I commented this line:
PYTHON := $(WINDEPS)/python.exe | Mainly because that file doesn't exist in asss-1.4.4.zip, but also because I have C:\Python25 on my system path anyway. That's line 48 of the original os.mk.
After this line:
include $(WINDEPS)/system-windeps.mk | I added these 2 lines:
PYTHON_HOME = C:/Python25
PYTHON_INC = $(PYTHON_HOME)/include | This is because system-windeps.mk changes/overrides all the python settings in system.mk (so don't bother editing those), one of them to windeps/pythoninc which is empty.
Finally I copied python24.dll from bin to windeps.
Then I opened asss.dev, ignored the missing file messages and just clicked compile, this generates a few warning messages but asss.exe, turf.dll, funky.dll and pymod.dll do get compiled.
Edit:
I could probably enable have_bdb and have_mysql since the makefile uses the stuff in windeps, no need to separately install win32 dev versions of those. _________________ ss news
Last edited by Smong on Thu Nov 01, 2007 6:29 pm, edited 3 times in total |
|
Back to top |
|
|
CypherJF I gargle nitroglycerin
Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Nov 01, 2007 6:04 pm Post subject: |
|
|
|
|
I found the resolution to DevC++ 'cc1' not found error on Vista(?).
Installed python 2.4
You need to grab MingW separate and install.
Download and install DevC++ without MingW.
Setup DevC++ to use the MingW
Quote: |
(You may end up allowing Bloodshed Dev C to use MinGW Make instead of
GNU Make)
Select the Tools -> Compiler Options menu item
Under the Directories -> Binaries tab add two new paths (for MinGW and
GCC libexec components):-
C:\MinGW\bin
C:\MinGW\libexec\gcc\mingw32\3.4.5
|
Then I began compiling thing's by hand and added the make path to the PATH environmental variable.
Quote: |
PATH=....;C:\MinGW\libexec\gcc\mingw32\3.4.5
|
Then...
Copied Python24.dll into the /windeps/ folder since it didn't exist in the C:\Python24 folder.
system-windeps.mk
PYTHON_HOME = C:\Python24
PYTHON_INC = $(PYTHON_HOME)\include
PYTHON_LIB = $(PYTHON_HOME)\lib
PYTHON_CFLAGS = -I$(PYTHON_INC)
PYTHON_LDFLAGS = -L$(PYTHON_LIB) -lpython24
|
os.mk
ifeq ($(findstring MINGW,$(SYS_NAME)),MINGW)
# set up paths to point to windeps
WINDEPS := ../windeps
INSTALL := $(WINDEPS)/install.exe
PYTHON := C:/Python24/python.exe
symlink_bins := no
include $(WINDEPS)/system-windeps.mk
run_dlltool = yes
PTHREAD_LIB = -L$(WINDEPS) -lpthreadGC2 -lwsock32
ZLIB_LIB = -L$(WINDEPS) -lzdll
SO_LDFLAGS = $(call tobuild,import.imp) $(PTHREAD_LIB)
EXPORT_SYMBOLS = $(call tobuild,export.exp)
EXE = .exe
SO = dll
W32COMPAT = win32compat
EXTRA_INCLUDE_DIRS = -I$(WINDEPS)
EXTRA_INSTALL_FILES = $(WINDEPS)/zlib1.dll $(WINDEPS)/pthreadGC2.dll \
$(WINDEPS)/libdb4.dll $(WINDEPS)/python24.dll
SYS_NAME := ok
endif
|
_________________ Performance is often the art of cheating carefully. - James Gosling
Last edited by CypherJF on Sat Nov 03, 2007 1:22 pm, edited 1 time in total |
|
Back to top |
|
|
Cyan~Fire I'll count you!
Age:36 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sat Nov 03, 2007 2:38 am Post subject: |
|
|
|
|
Ahh thanks cyph, I was trying to figure that out myself. |
|
Back to top |
|
|
CypherJF I gargle nitroglycerin
Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sat Nov 03, 2007 1:27 pm Post subject: |
|
|
|
|
No problem, this issue was driving me crazy. |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:31 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Thu Mar 20, 2008 9:09 am Post subject: |
|
|
|
|
You could try putting the path in double quotes "like this". |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:31 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Thu Mar 20, 2008 6:12 pm Post subject: |
|
|
|
|
ahhh that helped.
new error:
Compiler: Default compiler
Executing make...
make.exe -f "Makefile" all
process_begin: CreateProcess((null), uname -s, ...) failed.
core/core.mk:19: *** multiple target patterns. Stop.
Execution terminated
when making a file for mapdata in core.mk.
you probably need more information? |
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Wed Apr 02, 2008 10:25 am Post subject: |
|
|
|
|
Ignoring the issue where there are spaces in the path, why did you change ASSSHOME? Try putting it back to "..". |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:31 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Sun Apr 06, 2008 6:17 pm Post subject: |
|
|
|
|
i changed it back to ".." and i have this:
Compiler: Default compiler
Executing make...
make.exe -f "Makefile" all
process_begin: CreateProcess((null), uname -s, ...) failed.
make.exe: *** virtual memory exhausted. Stop.
Execution terminated
|
edit:
wow i just changed python version from 2.4 to 24 and ASSSHOME = .. with no "" and it compiled partially. the things that didn't compile were
database.dll
dbtool
scoring
security
asss.batch
i understand the database stuff not compiling but shouldn't scoring and security and especially the batch compile?
compile log:
Compiler: Default compiler
Executing make...
make.exe -f "Makefile" all
gcc -std=gnu99 -pipe -shared -o ../build/pymod.dll ../build/pymod.o ../build/import.imp -L../windeps -lpthreadGC2 -lwsock32 -LC:/python/lib/python24/config -lpython24 -lm
process_begin: CreateProcess((null), uname -s, ...) failed.
gcc -std=gnu99 -pipe -I. -Iinclude -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE -g -Wall -c -o ../build/turf_reward.o turf\turf_reward.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE -g -Wall -c -o ../build/points_turf_reward.o turf\points_turf_reward.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE -g -Wall -c -o ../build/turf_stats.o turf\turf_stats.c
gcc -std=gnu99 -pipe -shared -o ../build/turf.dll ../build/turf_reward.o ../build/points_turf_reward.o ../build/turf_stats.o ../build/import.imp -L../windeps -lpthreadGC2 -lwsock32
../windeps/install.exe core/backtrace ../build/asss.exe ../build/funky.dll ../build/pymod.dll ../build/turf.dll py/exec.py py/fg_turf.py py/fg_wz.py py/fm_password.py py/watchgreen.py ../windeps/zlib1.dll ../windeps/pthreadGC2.dll ../windeps/python24.dll ../windeps/libdb4.dll ../bin
Execution terminated
|
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Tue Apr 08, 2008 7:32 am Post subject: |
|
|
|
|
Looking in a previous post you commented out:
have_bdb := yes
have_mysql := yes
So database, scoring and dbtool won't compile. You can't compile security or asss.bat, instead they come with the archive (asss.zip or whatever). |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:31 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Tue Apr 08, 2008 5:59 pm Post subject: |
|
|
|
|
hmmm, i thought scoring would score. what comment discludes scoring? |
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Thu Apr 10, 2008 3:12 pm Post subject: |
|
|
|
|
Scores (and others stats) are saved using "bdb", which is a database library. dbtool is a program to edit that database.
The database.dll file actually provides a mysql client and an alias module. So database.dll is a separate thing from scoring.
You should be able to enable both have_bdb and have_mysql when compiling with Dev-C++ (all the necessary files are in the windeps directory). |
|
Back to top |
|
|
|