Board index FlightGear Support Installation Linux

[Script] download_and_compile for TERRAGEAR-CS

Installing FlightGear, scenery, aircraft etc. on Linux systems like Ubuntu.

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby F-JJTH » Thu Jan 19, 2012 11:51 am

Ben,

Ok, personnally I have
Code: Select all
QMake version 2.01a
Using Qt version 4.7.2 in /usr/lib


If someone read these : can you confirm you have successfully compiled TerraGearGUI with QMake Qt version 4.6.2 (the same as Ben version's) ?

New test :
Code: Select all
/home/ben/FGTools/terragear-gui/build && qmake -Wall -d -o log.txt ..

-d option is a big debug option for qmake
-o log.txt option allow to write all in the file log.txt

After that, you can find the file log.txt in your /home/ben/FGTools/terragear-gui/build/log.txt then show me this log ;)

Cheers,
Clément
User avatar
F-JJTH
 
Posts: 697
Joined: Fri Sep 09, 2011 11:02 am

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby Gijs » Thu Jan 19, 2012 12:18 pm

I've got Qt 4.7.4 (and that's also in the project file). I used 4.6 until the recent (2012) changes to the GUI, so maybe that's the issue? 4.6 is two years old...
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9456
Joined: Tue Jul 03, 2007 2:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby btw » Thu Jan 19, 2012 3:00 pm

Her it is Clement:

Code: Select all
DEBUG 1: Resetting dir to: /home/ben/FGTools/terragear-gui/build/
DEBUG 1: QMAKESPEC conf: reading /usr/share/qt4/mkspecs/default/qmake.conf
DEBUG 1: Project Parser: /usr/share/qt4/mkspecs/default/qmake.conf:5 :MAKEFILE_GENERATOR: :=: (UNIX)
DEBUG 1: Project Parser: /usr/share/qt4/mkspecs/default/qmake.conf:6 :TEMPLATE: :=: (app)
DEBUG 1: Project Parser: /usr/share/qt4/mkspecs/default/qmake.conf:7 :CONFIG: :+=: (qt warn_on release incremental link_prl)
DEBUG 1: Project Parser: /usr/share/qt4/mkspecs/default/qmake.conf:8 :QT: :+=: (core gui)
DEBUG 1: Project Parser: /usr/share/qt4/mkspecs/default/qmake.conf:9 :QMAKE_INCREMENTAL_STYLE: :=: (sublib)
DEBUG 1: Running project test: include(../common/g++.conf) [20]
DEBUG 1: Project Parser: include'ing file /usr/share/qt4/mkspecs/linux-g++/../common/g++.conf.
DEBUG 1: Project Parser: g++.conf:5 :QMAKE_CC: :=: (gcc)
DEBUG 1: Project Parser: g++.conf:6 :QMAKE_CFLAGS: :+=: (-pipe)
DEBUG 1: Project Parser: g++.conf:7 :QMAKE_CFLAGS_DEPS: :+=: (-M)
DEBUG 1: Project Parser: g++.conf:8 :QMAKE_CFLAGS_WARN_ON: :+=: (-Wall -W)
DEBUG 1: Project Parser: g++.conf:9 :QMAKE_CFLAGS_WARN_OFF: :+=: (-w)
DEBUG 1: Project Parser: g++.conf:10 :QMAKE_CFLAGS_RELEASE: :+=: (-O2)
DEBUG 1: Project Parser: g++.conf:11 :QMAKE_CFLAGS_DEBUG: :+=: (-g)
DEBUG 1: Project Parser: g++.conf:12 :QMAKE_CFLAGS_SHLIB: :+=: (-fPIC)
DEBUG 1: Project Parser: g++.conf:13 :QMAKE_CFLAGS_STATIC_LIB: :+=: (-fPIC)
DEBUG 1: Project Parser: g++.conf:14 :QMAKE_CFLAGS_YACC: :+=: (-Wno-unused -Wno-parentheses)
DEBUG 1: Project Parser: g++.conf:15 :QMAKE_CFLAGS_HIDESYMS: :+=: (-fvisibility=hidden)
DEBUG 1: Project Parser: g++.conf:16 :QMAKE_CFLAGS_PRECOMPILE: :+=: (-x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT})
DEBUG 1: Project Parser: g++.conf:17 :QMAKE_CFLAGS_USE_PRECOMPILE: :+=: (-include ${QMAKE_PCH_OUTPUT_BASE})
DEBUG 1: Project Parser: g++.conf:19 :QMAKE_CXX: :=: (g++)
DEBUG 1: Project Parser: g++.conf:20 :QMAKE_CXXFLAGS: :+=: (-pipe)
DEBUG 1: Project Parser: g++.conf:21 :QMAKE_CXXFLAGS_DEPS: :+=: (-M)
DEBUG 1: Project Parser: g++.conf:22 :QMAKE_CXXFLAGS_WARN_ON: :+=: (-Wall -W)
DEBUG 1: Project Parser: g++.conf:23 :QMAKE_CXXFLAGS_WARN_OFF: :+=: (-w)
DEBUG 1: Project Parser: g++.conf:24 :QMAKE_CXXFLAGS_RELEASE: :+=: (-O2)
DEBUG 1: Project Parser: g++.conf:25 :QMAKE_CXXFLAGS_DEBUG: :+=: (-g)
DEBUG 1: Project Parser: g++.conf:26 :QMAKE_CXXFLAGS_SHLIB: :+=: (-fPIC)
DEBUG 1: Project Parser: g++.conf:27 :QMAKE_CXXFLAGS_STATIC_LIB: :+=: (-fPIC)
DEBUG 1: Project Parser: g++.conf:28 :QMAKE_CXXFLAGS_YACC: :+=: (-Wno-unused -Wno-parentheses)
DEBUG 1: Project Parser: g++.conf:29 :QMAKE_CXXFLAGS_HIDESYMS: :+=: (-fvisibility=hidden -fvisibility-inlines-hidden)
DEBUG 1: Project Parser: g++.conf:30 :QMAKE_CXXFLAGS_PRECOMPILE: :+=: (-x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT})
DEBUG 1: Project Parser: g++.conf:31 :QMAKE_CXXFLAGS_USE_PRECOMPILE: :=: (-include ${QMAKE_PCH_OUTPUT_BASE})
DEBUG 1: Project Parser: g++.conf:33 :QMAKE_LINK: :=: (g++)
DEBUG 1: Project Parser: g++.conf:34 :QMAKE_LINK_SHLIB: :=: (g++)
DEBUG 1: Project Parser: g++.conf:35 :QMAKE_LINK_C: :=: (gcc)
DEBUG 1: Project Parser: g++.conf:36 :QMAKE_LINK_C_SHLIB: :=: (gcc)
DEBUG 1: Project Parser: g++.conf:37 :QMAKE_LFLAGS: :+=: ()
DEBUG 1: Project Parser: g++.conf:38 :QMAKE_LFLAGS_RELEASE: :+=: (-Wl,-O1)
DEBUG 1: Project Parser: g++.conf:39 :QMAKE_LFLAGS_DEBUG: :+=: ()
DEBUG 1: Project Parser: g++.conf:40 :QMAKE_LFLAGS_APP: :+=: ()
DEBUG 1: Project Parser: g++.conf:41 :QMAKE_LFLAGS_SHLIB: :+=: (-shared)
DEBUG 1: Project Parser: g++.conf:42 :QMAKE_LFLAGS_PLUGIN: :+=: (-shared)
DEBUG 1: Project Parser: g++.conf:43 :QMAKE_LFLAGS_SONAME: :+=: (-Wl,-soname,)
DEBUG 1: Project Parser: g++.conf:44 :QMAKE_LFLAGS_THREAD: :+=: ()
DEBUG 1: Project Parser: g++.conf:45 :QMAKE_LFLAGS_NOUNDEF: :+=: (-Wl,--no-undefined)
DEBUG 1: Project Parser: g++.conf:46 :QMAKE_LFLAGS_RPATH: :=: (-Wl,-rpath,)
DEBUG 1: Project Parser: g++.conf:48 :QMAKE_PCH_OUTPUT_EXT: :=: (.gch)
DEBUG 1: Project Parser: g++.conf:51 :QMAKE_LFLAGS_BSYMBOLIC_FUNC: :=: (-Wl,-Bsymbolic-functions)
DEBUG 1: Project Parser: g++.conf:52 :QMAKE_LFLAGS_DYNAMIC_LIST: :=: (-Wl,--dynamic-list,)
DEBUG 1: Running project test: include(../common/linux.conf) [20]
DEBUG 1: Project Parser: include'ing file /usr/share/qt4/mkspecs/linux-g++/../common/linux.conf.
DEBUG 1: Project Parser: linux.conf:5 :QMAKE_CFLAGS_THREAD: :+=: (-D_REENTRANT)
DEBUG 1: Project Parser: linux.conf:6 :QMAKE_CXXFLAGS_THREAD: :+=: (-D_REENTRANT)
DEBUG 1: Project Parser: linux.conf:8 :QMAKE_INCDIR: :=: ()
DEBUG 1: Project Parser: linux.conf:9 :QMAKE_LIBDIR: :=: ()
DEBUG 1: Project Parser: linux.conf:10 :QMAKE_INCDIR_X11: :=: (/usr/X11R6/include)
DEBUG 1: Project Parser: linux.conf:11 :QMAKE_LIBDIR_X11: :=: (/usr/X11R6/lib)
DEBUG 1: Project Parser: linux.conf:12 :QMAKE_INCDIR_QT: :=: (/usr/include/qt4)
DEBUG 1: Project Parser: linux.conf:13 :QMAKE_LIBDIR_QT: :=: (/usr/lib)
DEBUG 1: Project Parser: linux.conf:14 :QMAKE_INCDIR_OPENGL: :=: (/usr/X11R6/include)
DEBUG 1: Project Parser: linux.conf:15 :QMAKE_LIBDIR_OPENGL: :=: (/usr/X11R6/lib)
DEBUG 1: Project Parser: linux.conf:16 :QMAKE_INCDIR_OPENGL_ES1: :=: (/usr/X11R6/include)
DEBUG 1: Project Parser: linux.conf:17 :QMAKE_LIBDIR_OPENGL_ES1: :=: (/usr/X11R6/lib)
DEBUG 1: Project Parser: linux.conf:18 :QMAKE_INCDIR_OPENGL_ES1CL: :=: (/usr/X11R6/include)
DEBUG 1: Project Parser: linux.conf:19 :QMAKE_LIBDIR_OPENGL_ES1CL: :=: (/usr/X11R6/lib)
DEBUG 1: Project Parser: linux.conf:20 :QMAKE_INCDIR_OPENGL_ES2: :=: (/usr/X11R6/include)
DEBUG 1: Project Parser: linux.conf:21 :QMAKE_LIBDIR_OPENGL_ES2: :=: (/usr/X11R6/lib)
DEBUG 1: Project Parser: linux.conf:22 :QMAKE_INCDIR_EGL: :=: ()
DEBUG 1: Project Parser: linux.conf:23 :QMAKE_LIBDIR_EGL: :=: ()
DEBUG 1: Project Parser: linux.conf:24 :QMAKE_INCDIR_OPENVG: :=: ()
DEBUG 1: Project Parser: linux.conf:25 :QMAKE_LIBDIR_OPENVG: :=: ()
DEBUG 1: Project Parser: linux.conf:27 :QMAKE_LIBS: :=: ()
DEBUG 1: Project Parser: linux.conf:28 :QMAKE_LIBS_DYNLOAD: :=: (-ldl)
DEBUG 1: Project Parser: linux.conf:29 :QMAKE_LIBS_X11: :=: (-lXext -lX11 -lm)
DEBUG 1: Project Parser: linux.conf:30 :QMAKE_LIBS_X11SM: :=: (-lSM -lICE)
DEBUG 1: Project Parser: linux.conf:31 :QMAKE_LIBS_NIS: :=: (-lnsl)
DEBUG 1: Project Parser: linux.conf:32 :QMAKE_LIBS_EGL: :=: (-lEGL)
DEBUG 1: Project Parser: linux.conf:33 :QMAKE_LIBS_OPENGL: :=: (-lGLU -lGL)
DEBUG 1: Project Parser: linux.conf:34 :QMAKE_LIBS_OPENGL_QT: :=: (-lGL)
DEBUG 1: Project Parser: linux.conf:35 :QMAKE_LIBS_OPENGL_ES1: :=: (-lGLES_CM)
DEBUG 1: Project Parser: linux.conf:36 :QMAKE_LIBS_OPENGL_ES1CL: :=: (-lGLES_CL)
DEBUG 1: Project Parser: linux.conf:37 :QMAKE_LIBS_OPENGL_ES2: :=: (-lGLESv2)
DEBUG 1: Project Parser: linux.conf:38 :QMAKE_LIBS_OPENVG: :=: (-lOpenVG)
DEBUG 1: Project Parser: linux.conf:39 :QMAKE_LIBS_THREAD: :=: (-lpthread)
DEBUG 1: Project Parser: linux.conf:41 :QMAKE_MOC: :=: (/usr/bin/moc-qt4)
DEBUG 1: Project Parser: linux.conf:42 :QMAKE_UIC: :=: (/usr/bin/uic-qt4)
DEBUG 1: Project Parser: linux.conf:44 :QMAKE_AR: :=: (ar cqs)
DEBUG 1: Project Parser: linux.conf:45 :QMAKE_OBJCOPY: :=: (objcopy)
DEBUG 1: Project Parser: linux.conf:46 :QMAKE_RANLIB: :=: ()
DEBUG 1: Project Parser: linux.conf:48 :QMAKE_TAR: :=: (tar -cf)
DEBUG 1: Project Parser: linux.conf:49 :QMAKE_GZIP: :=: (gzip -9f)
DEBUG 1: Project Parser: linux.conf:51 :QMAKE_COPY: :=: (cp -f)
DEBUG 1: Project Parser: linux.conf:52 :QMAKE_COPY_FILE: :=: ($(COPY))
DEBUG 1: Project Parser: linux.conf:53 :QMAKE_COPY_DIR: :=: ($(COPY) -r)
DEBUG 1: Project Parser: linux.conf:54 :QMAKE_MOVE: :=: (mv -f)
DEBUG 1: Project Parser: linux.conf:55 :QMAKE_DEL_FILE: :=: (rm -f)
DEBUG 1: Project Parser: linux.conf:56 :QMAKE_DEL_DIR: :=: (rmdir)
DEBUG 1: Project Parser: linux.conf:57 :QMAKE_STRIP: :=: (strip)
DEBUG 1: Project Parser: linux.conf:58 :QMAKE_STRIPFLAGS_LIB: :+=: (--strip-unneeded)
DEBUG 1: Project Parser: linux.conf:59 :QMAKE_CHK_DIR_EXISTS: :=: (test -d)
DEBUG 1: Project Parser: linux.conf:60 :QMAKE_MKDIR: :=: (mkdir -p)
DEBUG 1: Project Parser: linux.conf:61 :QMAKE_INSTALL_FILE: :=: (install -m 644 -p)
DEBUG 1: Project Parser: linux.conf:62 :QMAKE_INSTALL_PROGRAM: :=: (install -m 755 -p)
DEBUG 1: Running project test: include(unix.conf) [20]
DEBUG 1: Project Parser: include'ing file /usr/share/qt4/mkspecs/common/unix.conf.
DEBUG 1: Project Parser: unix.conf:5 :QMAKE_LEX: :=: (flex)
DEBUG 1: Project Parser: unix.conf:6 :QMAKE_LEXFLAGS: :+=: ()
DEBUG 1: Project Parser: unix.conf:7 :QMAKE_YACC: :=: (yacc)
DEBUG 1: Project Parser: unix.conf:8 :QMAKE_YACCFLAGS: :+=: (-d)
DEBUG 1: Project Parser: unix.conf:9 :QMAKE_YACCFLAGS_MANGLE: :+=: (-p $base -b $base)
DEBUG 1: Project Parser: unix.conf:10 :QMAKE_YACC_HEADER: :=: ($base.tab.h)
DEBUG 1: Project Parser: unix.conf:11 :QMAKE_YACC_SOURCE: :=: ($base.tab.c)
DEBUG 1: Running project test: load(qt_config) [21]
DEBUG 1: Project Parser: load'ing file /usr/share/qt4/mkspecs/features/qt_config.prf.
DEBUG 1: Running project test: exists() [5]
DEBUG 1: Project Parser: qt_config.prf:1 : Test (exists($$_QMAKE_CACHE_)) failed.
DEBUG 1: Running project test: isEmpty(QMAKE_QT_CONFIG) [19]
DEBUG 1: Project Parser: qt_config.prf:2 : Test (!exists($$QMAKE_QT_CONFIG)) failed.
DEBUG 1: Project Parser: qt_config.prf:2 : Entering block 2 (0). [isEmpty(QMAKE_QT_CONFIG)|!exists($$QMAKE_QT_CONFIG) {]
DEBUG 1: Running project test: isEmpty(QT_BUILD_TREE) [19]
DEBUG 1: Project Parser: qt_config.prf:3 : Test (!isEmpty(QT_BUILD_TREE)) failed.
DEBUG 1: Project Parser: qt_config.prf:4 : Else considered.
DEBUG 1: Running project test: exists() [5]
DEBUG 1: Project Parser: qt_config.prf:4 : Test (exists($$_QMAKE_CACHE_)) failed.
DEBUG 1: Project Parser: qt_config.prf:5 : Else considered.
DEBUG 1: Running project test: exists(/usr/share/qt4/mkspecs/qconfig.pri) [5]
DEBUG 1: Project Parser: qt_config.prf:5 :QMAKE_QT_CONFIG: :=: (/usr/share/qt4/mkspecs/qconfig.pri)
DEBUG 1: Project Parser: qt_config.prf:6 : Leaving block 2
DEBUG 1: Running project test: exists(/usr/share/qt4/mkspecs/qconfig.pri) [5]
DEBUG 1: Project Parser: qt_config.prf:7 : Test (!exists($$QMAKE_QT_CONFIG)) failed.
DEBUG 1: Running project test: include(/usr/share/qt4/mkspecs/qconfig.pri::::true) [20]
DEBUG 1: Project Parser: include'ing file /usr/share/qt4/mkspecs/qconfig.pri.
DEBUG 1: Project Parser: qconfig.pri:2 :CONFIG: :+=: (exceptions no_mocdepend release stl qt_no_framework)
DEBUG 1: Project Parser: qconfig.pri:3 :QT_ARCH: :=: (x86_64)
DEBUG 1: Project Parser: qconfig.pri:4 :QT_EDITION: :=: (OpenSource)
DEBUG 1: Project Parser: qconfig.pri:5 :QT_CONFIG: :+=: (minimal-config small-config medium-config large-config full-config qt3support phonon accessibility opengl reduce_exports ipv6 clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify system-jpeg system-mng system-png png gif system-tiff system-freetype system-zlib nis cups iconv glib dbus nas openssl x11sm xshape xsync xrender mitshm fontconfig xkb alsa xmlpatterns multimedia audio-backend svg webkit script scripttools release)
DEBUG 1: Project Parser: qconfig.pri:8 :QT_VERSION: :=: (4.6.2)
DEBUG 1: Project Parser: qconfig.pri:9 :QT_MAJOR_VERSION: :=: (4)
DEBUG 1: Project Parser: qconfig.pri:10 :QT_MINOR_VERSION: :=: (6)
DEBUG 1: Project Parser: qconfig.pri:11 :QT_PATCH_VERSION: :=: (2)
DEBUG 1: Project Parser: qconfig.pri:14 :QT_LIBINFIX: :=: ()
DEBUG 1: Project Parser: qconfig.pri:15 :QT_NAMESPACE: :=: ()
DEBUG 1: Project Parser: qconfig.pri:16 :QT_NAMESPACE_MAC_CRC: :=: ()
DEBUG 1: Project Parser: qconfig.pri:18 :QT_GCC_MAJOR_VERSION: :=: (4)
DEBUG 1: Project Parser: qconfig.pri:19 :QT_GCC_MINOR_VERSION: :=: (4)
DEBUG 1: Project Parser: qconfig.pri:20 :QT_GCC_PATCH_VERSION: :=: (3)
DEBUG 1: Project Parser: qt_config.prf:7 : Entering block 2 (1). [!exists($$QMAKE_QT_CONFIG)|!include($$QMAKE_QT_CONFIG, "", true) {]
DEBUG 1: Project Parser: qt_config.prf:8 : Ignored due to block being false.
DEBUG 1: Project Parser: qt_config.prf:9 : Leaving block 2
DEBUG 1: Project Parser: qt_config.prf:9 : Else considered.
DEBUG 1: Project Parser: qt_config.prf:9 : Entering block 2 (0). [else {]
DEBUG 1: Running project test: debug(1::Loaded .qconfig.pri from (/usr/share/qt4/mkspecs/qconfig.pri)) [22]
DEBUG 1: Project DEBUG: Loaded .qconfig.pri from (/usr/share/qt4/mkspecs/qconfig.pri)
DEBUG 1: Project Parser: qt_config.prf:11 : Leaving block 2
DEBUG 1: Running project test: load(qt_functions) [21]
DEBUG 1: Project Parser: load'ing file /usr/share/qt4/mkspecs/features/qt_functions.prf.
DEBUG 1: Project Parser: qt_functions.prf:1 : Entering block 2 (0). [defineReplace(qtLibraryTarget) {]
DEBUG 1: Project Parser: qt_functions.prf:16 : Leaving block 2
DEBUG 1: Project Parser: qt_functions.prf:18 : Entering block 2 (0). [defineTest(qtAddLibrary) {]
DEBUG 1: Project Parser: qt_functions.prf:80 : Leaving block 2
DEBUG 1: Running project test: equals(QT_ARCH::powerpc) [4]
DEBUG 1: Project Parser: /usr/share/qt4/mkspecs/default/qmake.conf:15 : Test (equals(QT_ARCH, powerpc)) failed.
DEBUG 1: Project Parser: /usr/share/qt4/mkspecs/default/qmake.conf:15 : Entering block 2 (1). [equals(QT_ARCH, powerpc) {]
DEBUG 1: Project Parser: /usr/share/qt4/mkspecs/default/qmake.conf:16 : Ignored due to block being false.
DEBUG 1: Project Parser: /usr/share/qt4/mkspecs/default/qmake.conf:17 : Ignored due to block being false.
DEBUG 1: Project Parser: /usr/share/qt4/mkspecs/default/qmake.conf:18 : Leaving block 2
DEBUG 1: Project Parser: /usr/share/qt4/mkspecs/default/qmake.conf:18 : Ignored due to block being false.
DEBUG 1: Processing default_pre:
DEBUG 1: Project Parser: load'ing file /usr/share/qt4/mkspecs/features/default_pre.prf.
DEBUG 1: Running project test: load(exclusive_builds) [21]
DEBUG 1: Project Parser: load'ing file /usr/share/qt4/mkspecs/features/exclusive_builds.prf.
DEBUG 1: Project Parser: exclusive_builds.prf:3 : Entering block 2 (0). [defineTest(fixExclusiveOutputDirs) {]
DEBUG 1: Project Parser: exclusive_builds.prf:27 : Leaving block 2
DEBUG 1: Project Parser: exclusive_builds.prf:31 : Entering block 2 (0). [defineTest(addExclusiveBuilds) {]
DEBUG 1: Project Parser: exclusive_builds.prf:100 : Leaving block 2
DEBUG 1: Project Parser: default_pre.prf:2 :CONFIG: :=: (lex yacc warn_on debug uic resources qt warn_on release incremental link_prl exceptions no_mocdepend release stl qt_no_framework)
DEBUG 1: Project file: reading /home/ben/FGTools/terragear-gui
Error processing project file: ..
btw
 
Posts: 63
Joined: Sun Nov 06, 2011 8:53 pm

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby F-JJTH » Thu Jan 19, 2012 5:59 pm

Ben,

I think Gijs is right : your version of QMAKE seem to be too old :?
Try to install qt4-qmake 4.7.2 from here :
- 32 bits system : http://mirror.ovh.net/ubuntu//pool/main ... 3_i386.deb
- 64 bits system : http://mirror.ovh.net/ubuntu//pool/main ... _amd64.deb

If you have an error about libqt4-dev : remove it with "sudo apt-get remove libqt4-dev" then try again ;)

Cheers,
Clément
User avatar
F-JJTH
 
Posts: 697
Joined: Fri Sep 09, 2011 11:02 am

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby btw » Thu Jan 19, 2012 11:24 pm

Hi Clement,

I think I managed to install the correct version of qt4-make. I then did

I then did: sh terragear_download_and_compile.sh -j 2 TERRAGEARGUI

Here is the end of the output
Code: Select all
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libqt4-dev: Depends: qt4-qmake (= 4:4.6.2-0ubuntu5.3) but 4:4.7.2-0ubuntu6.3 is to be installed
E: Broken packages
btw
 
Posts: 63
Joined: Sun Nov 06, 2011 8:53 pm

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby F-JJTH » Thu Jan 19, 2012 11:32 pm

Hi Ben,

Open the script file (with gedit for example) and look at line 89, remove "qt4-qmake" situated at the end of the line and try again ;)

Cheers,
Clément
User avatar
F-JJTH
 
Posts: 697
Joined: Fri Sep 09, 2011 11:02 am

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby btw » Fri Jan 20, 2012 12:19 am

Same as before
btw
 
Posts: 63
Joined: Sun Nov 06, 2011 8:53 pm

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby btw » Fri Jan 20, 2012 9:48 am

qmake -v responds with

Code: Select all
QMake version 2.01a
Using Qt version 4.7.2 in /usr/lib
btw
 
Posts: 63
Joined: Sun Nov 06, 2011 8:53 pm

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby F-JJTH » Fri Jan 20, 2012 11:42 am

It's good news ;)
In line 89, if "libqt4-dev" exist: erase it then retry.

If it still not working I give you a method to compile it without my script when I'm back to my house.

Cheers,
Clément
User avatar
F-JJTH
 
Posts: 697
Joined: Fri Sep 09, 2011 11:02 am

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby btw » Fri Jan 20, 2012 2:44 pm

Almost, I removed "libqt4-dev" from the script, then did sh terragear_download_and_compile.sh -j 2 TERRAGEARGUI, here is the output:

Code: Select all
****************************************
************* TERRAGEAR GUI ************
****************************************
Initialized empty Git repository in /home/ben/FGTools/terragear-gui/.git/
remote: Counting objects: 218, done.
remote: Compressing objects: 100% (216/216), done.
remote: Total 218 (delta 142), reused 0 (delta 0)
Receiving objects: 100% (218/218), 119.70 KiB, done.
Resolving deltas: 100% (142/142), done.
/home/ben/FGTools
/usr/bin/uic-qt4 ../mainwindow.ui -o ui_mainwindow.h
make: /usr/bin/uic-qt4: Command not found
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I../../terragear-gui -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4 -I. -I. -I../../terragear-gui -I. -o main.o ../main.cpp
make: *** [ui_mainwindow.h] Error 127
make: *** Waiting for unfinished jobs....
../main.cpp:1:30: error: QtGui/QApplication: No such file or directory
In file included from ../main.cpp:2:
../mainwindow.h:4:23: error: QMainWindow: No such file or directory
../mainwindow.h:5:27: error: QListWidgetItem: No such file or directory
In file included from ../main.cpp:2:
../mainwindow.h:12: error: expected class-name before ‘{’ token
../mainwindow.h:13: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
../mainwindow.h:15: error: expected ‘;’ before ‘public’
../mainwindow.h:22: error: expected ‘:’ before ‘slots’
../mainwindow.h:23: error: expected primary-expression before ‘void’
../mainwindow.h:23: error: ISO C++ forbids declaration of ‘slots’ with no type
../mainwindow.h:23: error: expected ‘;’ before ‘void’
../mainwindow.h:32: error: ISO C++ forbids declaration of ‘QString’ with no type
../mainwindow.h:32: error: expected ‘,’ or ‘...’ before ‘&’ token
../mainwindow.h:33: error: ISO C++ forbids declaration of ‘QString’ with no type
../mainwindow.h:33: error: expected ‘,’ or ‘...’ before ‘&’ token
../mainwindow.h:34: error: ISO C++ forbids declaration of ‘QString’ with no type
../mainwindow.h:34: error: expected ‘,’ or ‘...’ before ‘&’ token
../mainwindow.h:55: error: ‘QString’ has not been declared
../mainwindow.h:63: error: ‘QString’ has not been declared
../mainwindow.h:64: error: ‘QString’ has not been declared
../main.cpp: In function ‘int main(int, char**)’:
../main.cpp:6: error: ‘QApplication’ was not declared in this scope
../main.cpp:6: error: expected ‘;’ before ‘a’
../mainwindow.h:17: error: ‘MainWindow::~MainWindow()’ is private
../main.cpp:7: error: within this context
../main.cpp:8: error: ‘class MainWindow’ has no member named ‘show’
../main.cpp:10: error: ‘a’ was not declared in this scope
../main.cpp: At global scope:
../main.cpp:4: warning: unused parameter ‘argc’
../main.cpp:4: warning: unused parameter ‘argv’
make: *** [main.o] Error 1
***********************************************************
***********************************************************
                    COMPILATION ENDED                     
                                                           
  To start TerraGearGUI, run the run_terrageargui.sh file 
                                                           
             TerraGear Root is available in :             
  /home/ben/FGTools/install/terragear-cs/bin                               
                                                           
***********************************************************
***********************************************************
btw
 
Posts: 63
Joined: Sun Nov 06, 2011 8:53 pm

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby F-JJTH » Fri Jan 20, 2012 11:20 pm

Hi Ben,

Hummm I haven't any idea about this problem :?
I think you are condemned to use TerraGear-CS without GUI.
If I found somthing I come back to you.

Cheers,
Clément
User avatar
F-JJTH
 
Posts: 697
Joined: Fri Sep 09, 2011 11:02 am

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby Gijs » Fri Jan 20, 2012 11:33 pm

Could we try to build an older version of the GUI? Eg. from the latest commit in 2011. The project file changed after that...
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9456
Joined: Tue Jul 03, 2007 2:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby btw » Sat Jan 21, 2012 9:40 am

Hi Clement,

Let me know if any ideas come to mind and thanks again for your help, at least I can use terragear now. I know quite a few Linux experts so I'll see if they can help, I'll let you know if I solve it.

Cheers,

Ben.
btw
 
Posts: 63
Joined: Sun Nov 06, 2011 8:53 pm

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby F-JJTH » Sat Jan 28, 2012 7:34 pm

Hi,

I have looked my download statistique about my script "terragear_download_and_compile.sh" and there was 40 downloads.
With these 40 downloads I have meet only 1 problem and it's solved. Now I admit my script is stable.

Since my script is stable, I think it would be good to add it to fg-meta repository...
If fg-meta commiter see my post : you can upload my script to fg-meta repository (my script is GPL so it's compatible with FG repository)

Cheers,
Clément
User avatar
F-JJTH
 
Posts: 697
Joined: Fri Sep 09, 2011 11:02 am

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby athomi » Sat Jul 28, 2012 9:33 pm

Hi,

I've been trying to build terragear for a while but had no luck. I tried on Ubuntu 12.04, 11.10 and 9.10 (all on a VirtualBox) but had different kind of problems while using your script -- resp. there might be problems with the subcomponents and not the script itself (i.e terragear-cs).

Does anybody sucessfully build terragear-cs with the "http://clemaez.fr/flightgear/terragear_download_and_compile.sh" script recently?
Is there a newer installation description for terragear-cs on a ubuntu than the "Building terragear-cs in Ubuntu 910 (32- or 64-bit)" wiki page? (ubuntu 9.10 is actually hard to setup with a working /etc/apt/sources.list)
Is there a crucial point i missed about building terragear-cs like "you fool, you have to have install the flightgear first" (because on my "terrain building" machine is no flightgear installed yet and until now i didn't intend to do so). When i clone the terragear-cs git i can't find any autogen.sh script in the terragear-cs sources. Instead it seems to be using cmake instead.
Which Ubuntu version should i use nowadays?
Does terragear-cs build successfully on a virtual machine?

Aurel
athomi
 
Posts: 3
Joined: Tue May 15, 2012 8:42 pm

PreviousNext

Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest