From: Tom W. <to...@ad...> - 2004-08-28 15:07:39
|
On Saturday 28 August 2004 04:36 am, lin...@ya... wrote: > During the past week I've been working on trying to build gramps on > windows for one of my "distant relations whom haven't yet embraced > linux" -- and I've gotten fairly close to succeeding. I'd finish what > I started, but unfortunately I will have to return the box this weekend > and thus will be unable to invest any more time in this project. > > Ironically, when my relative discovered what went into building > software on a different platform, he lost all interest in trying to use > a Windows build, so -- I hope this helps _someone_. > > I don't think there's too much left to figure out... > > > Gramps source 1.0.7 > Additional dependencies: > * Cygwin (http://cygwin.com/) > * Cygnome2 (http://cygnome2.sourceforge.net/) > * Gnome2 Cygwin Libraries (http://cygwin-gnome2.sourceforge.net/) > * Minimalist GNU for Windows (http://mingw.org/) I am not sure how much the Cygwin world has changes since I stopped using Windows a few years back, but I this is a bit confusing to me. Cygwin is a UNIX style environment which runs on Windows. When you are in this environment, you can do everything like you are in Unix (Linux). For example, shared libraries are compiles with the .so extention. They work because you are already in a Unix like environment. Most of you work is done through a bash (or simular) shell or an X GUI. Mingw - on the other hand is basically a GNU compiler which lets you try to compile Unix style programs on Windows. With this your libraries would have to be .dll's as there is no layer between the program that you are running and the Windows OS. Form what I remember there is no bash shell, and you are simply working from a DOS prompt. You need to choose one or the other as these two styles can not and should be mixed. Also, from the GRAMPS web site: -------------------------------------------------------------------------------------- Requirements GRAMPS requires python 2.2 and the gnome-python and pygtk2 packages. The gnome-python and pygtk2 packages should be versions 1.99.14 or greater. Versions 2.0.0 or higher are recommended. ------------------------------------------------------------------------------------- Did you install these? You did not mention these at all? Tom > > Install Minimalist GNU for Windows > Install Cygwin (download the setup.exe program): > * Select the mirror of your choice > * Add the Cygnome2 and Gnome2 Cygwin Libraries Repositories: > http://cygnome2.sourceforge.net/install > http://cygwin-gnome2.sourceforge.net/install > * On the package selection (for installation) screen click "Default" > next to the word "All" to mark all packages for installation > > Once Cygwin has been installed: > > Launch a bash shell > > $ export DISPLAY=127.0.0.1:0.0 > $ export PATH=/cygdrive/c/Program\ Files/MinGW:$PATH:/opt/gnome2/bin > $ export > ORBIT_TYPELIB_PATH=$ORBIT_TYPELIB_PATH:/opt/gnome2/lib/orbit-2.0 > $ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome2/lib/pkgconfig > > $ tar zxvf gramps-1.0.7.tar.gz > $ cd gramps-1.0.7 > > $ vi ./configure > > Change ALL instances of the form: > > imp.find_module('gnome/ui') > > to the form: > > import gnome > imp.find_module('ui',gnome.__path__) > > NOTE: The 1.0.7 source requires X to be started prior to running > ./configure to aviod a Runtime Error -- While this may not be ideal, it > is necessary for ./configure to detect gtk.glade using the above form. > > $ find /opt/gnome2/ -name '*.exe' | xargs strip && find /opt/gnome2 > -name '*.dll' | xargs strip > > NOTE: The above command only need be run once to configure your > cygnome2 installation (as per the cygnome2 website) > > $ XWin -fullscreen -clipboard & > > $ ./configure > $ vi ./src/Makefile > > Append to LDFLAGS: > -L/lib/python2.3/config -lpython2.3 > > $ make > $ make install > > NOTE: Windows expects shared object libraries to have the extension > dll, NOT so > > $ ln -s /usr/local/lib/gramps/grampslib.so > /usr/local/lib/gramps/grampslib.dll > > $ /usr/local/bin/gramps > > Trying this I get a mysterious Win32 error 5 -- which after googling I > believe to be a permissions error. Probably the result of my trying to > rebuild gramps under a different user to verify these instructions. > Hopefully it'll work without problem for someone who follows the above > instructions... > > Absent that, you can always try: > > $ cd ./src > $ ln -s grampslib.so grampslib.dll > $ python gramps.py > > Which on my latest build returns: > > gobject.GError: Couldn't recognize the image file format for file > './good.png' > > > Evidently there's still _some_ work to be done, but the majority of it > is here. Hopefully I didn't omit anything -- if anyone should have > questions up to this point, feel free to ask. > > Lastly, just a thought that this could be added to the DeveloperWiki. > > Again, hope someone finds this useful -- and thanks to the developers > for a great piece of software! > > > > _______________________________ > Do you Yahoo!? > Win 1 of 4,000 free domain names from Yahoo! Enter now. > http://promotions.yahoo.com/goldrush > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Gramps-users mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-users |