|
well, I've got Gtk-Gnutella to at least compile and run nativly on
win32 and msys. However here are some of the problems: *mingw define wasn't added to program. *FIRST I created dummies to fork() kill() mmap() munmap() alarm() bcopy() writev()
sleep() truncate() readv() getppid() getguid() getuid() getpwuid()
getgid() NOTE: sleep I defined to _sleep
NOTE: the only above functions I'm familiar with are fork, sleep, and get*id (get*id shouldn't be used on windows)
IDEA: replace all instances of fork with pthread_create, pthread is portable to win32, with pthread-win32 or NT POSIX
*I hacked out some defines MAP_ANONYMOUS, MAP_somethingmore to simple
values of 0, 1, 2....I have no clue what this would do, but it works.*I hacked adns to return 0 immediatly at ands_resolve. (I know of better ways, made program useless, however it runs) *regex.h doesn't exist, I added it *winsock init stuff needed to be added along with winsock2.h (Also I used /C/Dev-Cpp/Include for my header directory, because it is easier to update uses mingw too.) (For GTK i installed gladewin32.sf.net dev kit) Ran the program! can't download anything, or connnect, but it "works" The program crashes on exit, because of my changes to adns system(on cache free) I HAVE MANY LIBRARIES FOR WIN32/UNIX STUFF: *You may release any code you take from this project under LGPL or GPL* If you "svn co https://svn.sourceforge.net/svnroot/distweb distweb", then go into distweb folder, you will find many useful libraries, and header definitions. Please check portable_socket.h (psocket_init/defines/includes), env.h, home.h(needs to use registry queries, however it will work). Also, try looking and compile.bat I am currently in the process of writing a batch file for mingw/dev-cpp to compile GTK-gnutella, perhaps with make if possible. Also, some of the above code needs to be migrated into GTK-gnutella anyways for the crash agent. |
- [Gtk-gnutella-devel]GTK-Gnutella Nativly on Win32 Karlan Mitchell
- Re: [Gtk-gnutella-devel]GTK-Gnutella Nativly on Win32 Christian Biere
