Code: Select all
checking whether to enable usage of map editor... yes
checking for Qt4 headers... /usr/include/qt4
checking for Qt4 libraries... no
configure: error: in `/home/olsent/dev/allacrost/trunk/game':
configure: error: Qt4 development libraries not found
See `config.log' for more details
I spent some time this evening doing some investigation and trying to fix this myself, but haven't had any luck so far. What I did figure out was that the file which does all the QT4 library discovery/testing is in m4/qt.m4. In that file there are some code blocks that do this work, "AC_DEFUN([HOA_FIND_QT4]" is the one we care about (I think). There is a variable that contains a list of locations to search for headers and libraries:
Code: Select all
qt4_incdirs="/usr/local/qt/include /usr/include/qt4 /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib/qt/include /usr/lib/qt4/include"
qt4_libdirs="/usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt/lib /usr/lib/qt4/lib /usr/lib/qt4"
In my distribution, I noticed that my QT4 development libraries appear to be installed at "/usr/lib/x86_64-linux-gnu", so I added that path in the qt4_libdirs string. However, the same problem still occurred.
And that's as far as I was able to get. I'm not an expert at m4 code or GNU autotools so I'm not sure what I need to do here. I may play around with it more later, but I'm hoping that someone else can take a look at it and figure out what's wrong.
The workaround for this problem is to simply not compile the map editor. Running ./configure with the option "--disable-editor" will remove the QT4 requirements. Until this problem is fixed, I'm unable to use or work on the map editor code.