Unitsync for windows?

Unitsync for windows?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Unitsync for windows?

Post by hollowsoul »

Was quicky tryin to compile this for windows earlier (using MinGW),
(using the svn tagged release for 72b1)

But if anyone is able to fix it, plz give me a shout.
i.e if u are using scons
u type

Code: Select all

 scons omni 
to compile it.
Need it if i gonna port pygtk to windows...

Code: Select all

g++ -mwindows -shared -o omni\unitsync.dll build\tools\unitsync\pybind.o build\t
ools\unitsync\stdafx.o build\tools\unitsync\Syncer.o build\tools\unitsync\SyncSe
rver.o build\tools\unitsync\unitsync.o rts\System\TdfParser.o rts\System\FileSys
tem\Archive7Zip.o rts\System\FileSystem\ArchiveBuffered.o rts\System\FileSystem\
ArchiveFactory.o rts\System\FileSystem\ArchiveHPI.o rts\System\FileSystem\Archiv
eScanner.o rts\System\FileSystem\ArchiveZip.o rts\System\FileSystem\FileHandler.
o rts\System\FileSystem\VFSHandler.o rts\lib\7zip\7zAlloc.o rts\lib\7zip\7zBuffe
r.o rts\lib\7zip\7zCrc.o rts\lib\7zip\7zDecode.o rts\lib\7zip\7zExtract.o rts\li
b\7zip\7zHeader.o rts\lib\7zip\7zIn.o rts\lib\7zip\7zItem.o rts\lib\7zip\7zMetho
dID.o rts\lib\7zip\LzmaDecode.o rts\lib\hpiutil2\hpientry.o rts\lib\hpiutil2\hpi
file.o rts\lib\hpiutil2\hpiutil.o rts\lib\hpiutil2\scrambledfile.o rts\lib\hpiut
il2\sqshstream.o rts\lib\hpiutil2\substream.o rts\lib\minizip\ioapi.o rts\lib\mi
nizip\unzip.o rts\lib\minizip\zip.o -Lmingwlibs\lib -LC:\Dev-Cpp\lib -LC:\Python
24\libs -lopengl32 -lglu32 -lz -lfreetype -lopenal32 -lpython24 -lglew32 -lboost
_filesystem-mt -lboost_thread-mt -lboost_regex-mt -lIL -lgdi32 -lwinmm -lwsock32
 -lmingw32 -lSDLmain -lSDL -Wl,--out-implib,omni\unitsync.a -Wl,--output-def,omn
i\unitsync.def
Creating library file: omni\unitsync.a
rts\System\FileSystem\ArchiveZip.o(.text+0xd1):ArchiveZip.cpp: undefined referen
ce to `fill_win32_filefunc'
rts\System\FileSystem\ArchiveZip.o(.text+0x8a9):ArchiveZip.cpp: undefined refere
nce to `fill_win32_filefunc'
collect2: ld returned 1 exit status
scons: *** [omni\unitsync.dll] Error 1
scons: building terminated because of errors.
Last edited by hollowsoul on 20 Jul 2006, 21:57, edited 2 times in total.
Torrasque
Posts: 1022
Joined: 05 Oct 2004, 23:55

Post by Torrasque »

You need the last from svn ? Or the one of the latest version? Cause unitsync.dll is in the installed TASpring directory. It's in the installer.

(So every windows boy have it)

Edit : sorry, I thinked you only needed unitsync.dll
Last edited by Torrasque on 20 Jul 2006, 22:07, edited 1 time in total.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

edited:-
no good :(

looks like theres no python bindings for the one released with TASpring (windows)

Added compile error to first post
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

The VS file for unitsync in windows is incompelte, ir needs archivedir.h/cpp added.
Also including pybind.cpp generates hundreds of compile errors, so there are no python bindings for windows atm.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Am using MinGW & scons & port of gcc for windows.
So the whole VS file doesnt effect me !!!

Tvo wrote the python bindings so will ask when he is back.

Why the negative attitude?
I was asking about help solvin this 1 error
Btw third time in less than 24 hours ( i think @ most 48 hours ) sayin unitsync doesnt work for u using vs2003.

edit:- Unless u happen to know which compiler dev's use for windows release & if its available free. That would actually be some nice info?
Or even PM the error's u get when u try to compile unitsync with python bindings
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

They use vs 2003, same version as I have
User avatar
Michilus_nimbus
Posts: 634
Joined: 19 Nov 2004, 20:38

Post by Michilus_nimbus »

If you can't get it to work, I'll try and implement my little unitsync class using the ctypes module. It isn't as good as the python bindings for sure, but it works. I can take a look at it tommorow evening if you want.
I tried to compile it myself now, and I got the exact same error.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

I guess the win32 libs/minizip source file is missing in the list in SConstruct, will try to remember looking at it when on windows again.
Post Reply

Return to “Engine”