kevinswat / JSBSimCommander

JSBSim Commander is a GUI front-end for the development of aircraft flight models for the JSBSim flight dynamics model.
GNU Lesser General Public License v2.1
7 stars 5 forks source link

Build problems #1

Open swampmo opened 5 years ago

swampmo commented 5 years ago

This could be from my ignorance but I get this error when running ./configure. I have so far been unable to find the dependencies possibly due to it being Ubuntu 19.04
`./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for gawk... (cached) gawk checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for ranlib... ranlib checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for windres... no checking for msgfmt... msgfmt checking for xgettext... xgettext checking for wx-config... /usr/bin/wx-config checking for wxWidgets version >= 2.6.0 (--unicode=no)... no configure: error: wxWidgets must be installed on your system but wx-config script couldn't be found.

            Please check that wx-config is in path, the directory
            where wxWidgets libraries are installed (returned by
            'wx-config --libs' command) is in LD_LIBRARY_PATH or
            equivalent variable and wxWidgets version is 2.6.0 or above.

` Here is what I got back from the wx-config --libs command.

wx-config --libs -L/usr/lib/x86_64-linux-gnu -pthread -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 Thanks, Steve

madz-mit commented 4 years ago

Hi, Steve! Try "wx-config --list" to see all possible configurations installed on your system. If there's any without unicode, then there's some other issue. For example, mine (this one is a Debian 9 32 bit system) says

wx-config --list Default config is base-unicode-3.0 Default config will be used for output

This one will not work! You need one without unicode. It should say "ansi" instead of unicode.

Also, check all versions of the wx library installed on your system. On debian based systems, you can use the "update-alternatives" tool to select a different version and check if that one supports a mode without unicode. I got this to build (only yesterday... that's 19Mar2020) by compiling wxGTK 2.8.12 from source with "./configure --disable-unicode" while building. But the JSBSimCommander code required some further edits before I could compile. And fyi, I used a Debian 8 amd64 machine for the build. I want to upload the edited project on github. May take a couple of days. I'll link it in here when I do.