[ptx] Compile problems in conjuction with wxgtk

Erik Hovland erik at hovland.org
Thu Jul 29 16:42:17 BST 2004


On Wed, Jul 28, 2004 at 08:56:45PM +0200, Christian Schmitt wrote:
> Hi guys!
> 
> I have downloaded the latest cvs version of hugin. Since I have a LFS 
> system, I have to compile all the dependencies of hugin by hand. But I 
> have trouble to get the xrc extension of wxgtk to work. I am using 
> version 2.4.2 and followed the instructions of the INSTALL file of 
> hugin. The main part of wxgtk compiles and installs without any 
> problems, but the contrib dir makes problems. The INSTALL instructions 
> tell me to cd contrib, configure and make. But make doesn't work in this 
> dir. I have to cd to contrib/src/xrc to start make. But before this I 
> must apply the following patch:
> 
> 
> --- wxGTK-2.4.1/contrib/src/xrc/Makefile.in	2003-09-09 
> 16:46:13.468009816 +0100
> +++ wxGTK-2.4.1/contrib/src/xrc/Makefile.in	2003-09-09 
> 16:46:50.065446160 +0100
> @@ -17,7 +17,9 @@
>  HEADER_SUBDIR=xrc
> 
>  EXPAT_DEFS=-I$(expat_dir)/xmlparse -I$(expat_dir)/xmltok
> -EXPAT_OBJECTS=xmltok.o xmlrole.o xmlparse.o
> +EXPAT_OBJECTS=$(expat_dir)/xmltok/xmltok.o \
> +	   $(expat_dir)/xmltok/xmlrole.o \
> +	   $(expat_dir)/xmlparse/xmlparse.o
> 
>  HEADERS=xh_all.h xh_bttn.h xh_chckb.h xh_chckl.h xh_choic.h xh_combo.h \
>          xh_dlg.h xh_gauge.h xh_html.h xh_menu.h xh_notbk.h xh_panel.h \

Nice. I ended up building expat on my own and copying in the object
files. I like your solution better.

> Without it I get the following error:
> make: *** No rule to make target `xmltok.o', needed by 
> `../../../lib/lib_xrc-.so...'.  Stop.
> 
> As you can already see in the above error message, the xrc-lib has a 
> very strange name. An that is my problem. When I go on now and compile 
> the xrc stuff, I end up with a lib called "lib_xrc-.so...". Hugin 
> doesn't like this:
> ---- Creating application hugin
> /usr/bin/ld: cannot find -lwx_gtk_xrc-2.4
> collect2: ld returned 1 exit status
> make[2]: *** [hugin] Error 1
> 
> I don't know if this error is related to my xrc problem, but since my 
> knowledge about this stuff is very low, I hope that you can help me in 
> any way.

You can rename the .so to what hugin expects. At least that is what I
did. And I was able to build and use hugin:
http://hovland.org/pics/index.cgi?mode=image&album=/%2309_Bike_Rides/%2305_Up_Mana_Road&image=mana-road-looking-back.jpg

Regardless, something is not quite right w/ the contrib building in
wxwindows.

E

-- 
Erik Hovland
mail: erik AT hovland DOT org
web: http://hovland.org/
PGP/GPG public key available on request


More information about the ptX mailing list