Re: Ubuntu Edgy vs wxWidgets
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Mar 19, 2007
- 602 views
Matt Lewis wrote: > > Once I get the vm installed, I'll try to figure out exactly what is > needed from a vanilla install. > OK, I got it to work on an Ubuntu Edgy (6.10) VMWare appliance (and this post should be considered guide for other distros, too): http://www.vmware.com/vmtn/appliances/directory/693 You have to have these things installed: gcc g++ libgtk2.0-dev Don't try to use the Applications->Add/Remove, because it doesn't have them. I had to go into synaptic to add these. Then do the $ ./configure && make && sudo make install for wxWidgets. The binary of my library didn't work, [probably] because for whatever reason, it decided differently on whether to use the system or wx supplied libraries for tiff and jpeg. So I had to compile from source. There were several changes I had to make to the Makefile to get it to build: 1. Change top_srcdir and top_builddir to point to the correct directory 2. Change the definitions of __LIB_TIPP_p and __LIB_JPEG_p to use the wx-supplied libaries. There could be others on your system that have the same issue, but the fix is pretty easy: Find the _LIB_TIPP_p definition in the Makefile. It should look something like this: __LIB_TIFF_p \ = -ltiff # -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) Basically, you want it to be defined to the value that's commented out: __LIB_TIFF_p \ = -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) # = -ltiff Note that thw -lwxtiff might be missing the 'wx' (my fault). If so, you need to put it back. Once you've made these changes: $ make && sudo make install ...and you should be ready to go. It's not ideal, but it should at least work for now. We need to come up with a better way to automate this (some sort of a configure script, ideally), but I'm not sure exactly how to go about it, so if anyone has any ideas, I'd really appreciate it. Matt