Date: Wed, 11 Aug 2004 18:30:52 -0700 (PDT) From: eps+guikachu@ana.com (Eric P. Scott) To: gnome@FreeBSD.org Cc: ports@FreeBSD.org Subject: Need advanced help producing a 4.x palm/guikachu port Message-ID: <200408120130.i7C1Uqas006300@anna.ana.com>
next in thread | raw e-mail | index | archive | help
Guikachu is a graphical tool for laying out Palm OS user interfaces. Its only real competition is the Java-based pilrcedit, which hasn't been updated in about four years. Guikachu has two branches: "stable" releases are designated 1.4.x; "development" releases, 1.5.x. There are significant differences between them, which suggests creating separate palm/guikachu and palm/guikachu-devel ports. Note that the 1.4.x series is based on GNOME 1.4, while the 1.5.x series expects GNOME 2.6. The remainder of this document concerns the most recent stable version, Guikachu 1.4.1. My intended goal is to have a port that will work on FreeBSD 4.10-RELEASE. There are specific issues here that may not pertain to FreeBSD 5.x, so those of you who only develop for -CURRENT can stop reading now. Guikachu is a nontrivial application, with hundreds of source files and dependencies on about five dozen shared libraries. The first obstacle you'll run into is that Guikachu will not build with the compiler in the base system, gcc 2.95.4. It requires some flavor of gcc 3.x. The problem here is that gcc 2 and gcc 3 produce different (i.e. incompatible) objects from C++ sources, and they will not link together. This means that simply declaring USE_GCC=3.3 is not sufficient; the configure script will fail. If you try adding --disable-gtkmmtest and --disable-sigctest to CONFIGURE_ARGS, the sources will compile, but the build will die when it gets to the link stage. Fortunately, only four of the libraries Guikachu needs are C++-based, so if those can be built statically, it's possible to produce viable executables. For the record, Guikachu's expected prerequisites "should be" LIB_DEPENDS= gnomemm-1.2.10:${PORTSDIR}/x11-toolkits/gnome-- \ Magick++.6:${PORTSDIR}/graphics/ImageMagick USE_GNOME= libglade gnomevfs Guikachu's use of ImageMagick (specifically, libMagick++) makes things particularly unpleasant. At the moment, I have a manual package-building procedure. I'm almost certainly taking The Wrong Approach, so I'm putting what I have out there in the hope that someone will figure out The Right Way and submit it for inclusion in the Ports collection. How to reproduce what I have on a 4.10-RELEASE system: Run /stand/sysinstall Go to Configure > Packages Select and install the following packages (which should bring in their dependencies): gnome > gnomevfs-1.0.5_5 gnome > libglade-0.17_3 graphics > ImageMagick-5.5.7.16_1 lang > gcc-3.3.4_20040411 It is not necessary to install the gnome > gnomemm-1.2.4_2 package. You may also find it convenient to fetch an extra copy of ImageMagick-5.5.7.16_1.tgz at this time. Delete the installed copy of ImageMagick: pkg_delete -v ImageMagick-5.5.7.16_1 (Obviously, if you've installed anything else that depends on ImageMagick, you'll need to remove it first.) Make a copy of /usr/ports/graphics/ImageMagick/ somewhere with enough space to build from source. You'll need to modify this copy to build only a static libMagick++ while keeping libMagick shared. First, add this patch: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # files/patch-cxxstatic # echo x - files/patch-cxxstatic sed 's/^X//' >files/patch-cxxstatic << 'END-of-files/patch-cxxstatic' X--- Magick++/lib/Makefile.in.orig Thu Feb 5 16:19:42 2004 X+++ Magick++/lib/Makefile.in Mon Aug 9 15:06:23 2004 X@@ -76,7 +76,7 @@ X $(AM_CXXFLAGS) $(CXXFLAGS) X CXXLD = $(CXX) X CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ X- $(AM_LDFLAGS) $(LDFLAGS) -o $@ X+ $(AM_LDFLAGS) $(LDFLAGS) -static -o $@ X SOURCES = $(libMagick___la_SOURCES) X DIST_SOURCES = $(libMagick___la_SOURCES) X RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ X@@ -403,8 +403,8 @@ X X X # Add -no-undefined once Cygwin supports throwing C++ exceptions from DLLs. X-libMagick___la_LDFLAGS = \ X- -version-info $(LIBRARY_CURRENT):$(LIBRARY_REVISION):$(LIBRARY_AGE) X+#libMagick___la_LDFLAGS = \ X+# -version-info $(LIBRARY_CURRENT):$(LIBRARY_REVISION):$(LIBRARY_AGE) X X libMagick___la_LIBADD = ../../magick/libMagick.la X include_HEADERS = Magick++.h END-of-files/patch-cxxstatic exit Next, adjust the packing list accordingly: *** pkg-plist.orig Fri Feb 13 15:10:11 2004 --- pkg-plist *************** *** 433,440 **** lib/ImageMagick/type.mgk lib/libMagick++.a lib/libMagick++.la ! lib/libMagick++.so ! lib/libMagick++.so.6 lib/libMagick.a lib/libMagick.la lib/libMagick.so --- 433,440 ---- lib/ImageMagick/type.mgk lib/libMagick++.a lib/libMagick++.la ! @comment lib/libMagick++.so ! @comment lib/libMagick++.so.6 lib/libMagick.a lib/libMagick.la lib/libMagick.so Build and install this version of the port temporarily: make USE_GCC=3.3 NOPORTDOCS=yes make install Now, we're ready to build Guikachu. "Be afraid. Be very afraid." begin 644 guikachu-port.tar.gz M'XL("(:X&D$``V=U:6MA8VAU+7!O<G0N=&%R`.U<>W?:N!*__^)/H:7IW613 M`^:5EF[VA(!#N.5U@#2]]_34Q]B">./7L4V3]/'=[TCR$PC@;)KNMJ@/+,W\ MI)%F-!K)#UO6C?R_OFTJ%,J%HTH%?FE:_*770H&P%*O%ZA&4"\5"L?*ORC>6 MBZ:YZ\D.-.E8EK>.;Q,]V:GBXPKY[9)-]#^;:]>R<C7_1H:PG?Z%0K5T5!4* M5/^EJE#>Z?\)4E+_7?D:3S4=/VX;H-I"M5R^3_^52C74?Z5<+!']5XH5L(/' M%6-U^LGU_PSU\`VR+<=SD6+I.E8\S3*1X1L"FEI.+1/8!_<,-64/(\7!\*/6 M,AFA@.KS&2K"%`?BY95E0&'FO];<03W9P.@<.QC][EH&GECJW8EJ&;)FYA3+ M^(-[!H"],P?CTU%S#W+<H#\<]^I=\3AJCQ2]%8>C=K]WG!%RY9S`->ICL=4? MML71<888+YJ94#O7K8_&XE`:M<>$<.5Y=BV?5V3%F[LY9Z[C3SG+F>5MQ_H3 M>NA&%J]:-Z9NR6J>@RK:O3'\$X=0,QF0$U\Z`N4:_6Y7[(V/,T/L0O<4C$15 M\RR'C!`:$$'Z(^3>N1XV7(X[$\>-<ZDI#L1>$^39^]SK]\1W;9"Q-_Y:V_M, M.C9JM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7'P"E`,2/<&@0+$O:\%/TB'[S`#C:5-/TAVS!>A?_(][]2PC0U M)8`\DI`.D<ZD&,36TG:$;:4>!**[WW1`NC5."6&;_TV@\`@`#'2SMPNXMW#\ M<Y>,ST8V_ZAEF3%\KRCR\>2-HDT\]`6C.(]_<A6M+>O?NED'C3,DCI[`*<\F MEJ[FO%OO7@;ZC,_]#`!?SZ'C#0RNMXGASH!F-M$%81/'T2H&>G(7#17-+O+$ MS]LP6:YY/1<J@!$W0^PT$!*B\XJE@Q=-B5KB?_Z\UQD]?\Y@[(`S+W_*&5:^ MTY"ZXFA4;XFCF"%:*Q&*G!KAID7`1C`E`IM2H_X`4.LT+6B6NO]73FK$/"WB MS]12&=>I$7I:A)D:8:='>.D1TNDP+<A)K1(WM=I=YZ0C>V9JV,>T""^U://4 MUG*SP2*#+W8]AQ3[AM;SY_G&E6S.<,>:K>4*OV"V#5-.-K;CT\RU?$.QWNR* M:UE<^D$QLDAO)V*,G\;9),;/*>DA5UM#(#!/T0#AWKIN"*_FNN>F[$0"M75; MT>7V+<4PX;E'''JB:HYCH/MKV(*;\XNWB72WX-W(LL"0B'?NH;'89C4M%D:L 7YOC9#TUW:9=V:9=^@/1_F!ORC0!F```` ` end Run make as a non-root user. Be warned: this part will probably take a long time! As root: make install make package The resulting guikachu-1.4.1.tgz can be redistributed at this point, but we really should put things back to normal on the build system: pkg_delete -v guikachu-1.4.1 pkg_delete -v ImageMagick-5.5.7.16_1 Now you can: pkg_add -v /path/to/ImageMagick-5.5.7.16_1.tgz [the real one, if you saved it earlier; otherwise, use sysinstall as before] pkg_add -v guikachu-1.4.1.tgz You should now have a properly installed Guikachu! Hints: HTML help installs in /usr/X11R6/share/gnome/help/guikachu/C/ If you're using WindowMaker, copy guikachu.png (/usr/X11R6/share/gnome/pixmaps/) to ~/GNUstep/Library/Icons/ so you can display an appropriate icon on its application tile. What's next? Again, I'm looking for someone else to take over all responsibility for this port; I've spent as much time on it as I care to. Important: I don't recommend committing something without first figuring out why it crashes (badly!) if you select a font for a label that uses code points that aren't in the font. Minimal case: Launch guikachu. Click Add, OK. Double-click on FORM1. Click the large A on the Widget palette. Then click somewhere on the form to place the object. Click again to bring up the label's Properties. Change the Font from Regular to Symbol11. This will generate either a Bus error or a Segmentation fault. It's probably really simple to fix, but someone else is going to have to pursue this. Please continue discussion on the freebsd-gnome mailing list; any replies sent directly to me will most likely be discarded unread due to [necessarily] highly aggressive spam-filtering. Thanks in advance for your time, and congratulations are in order for anyone who achieves a successful outcome. Cheers, -=EPS-
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408120130.i7C1Uqas006300>