Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-103

QT-Eclipse-Integration need to specify two different ECLIPSEDIR vars due to the installation of the CDT plugin into a custom home directory

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Release 6
    • Other
    • None
    • JAVADIR="/opt/sun-jdk-1.6.0.17/"
      QTDIR="/usr/"
      ECLIPSEDIR="/usr/lib64/eclipse-3.5/"
      ECLIPSEDIR_1="/home/$USER/.eclipse/org.eclipse.platform_3.5.0_272132066/"

    Description

      Hy, I've a little trick/suggestion for you.
      I'm installing qt-eclipse-integration from source into mine X86_64 Gentoo Linux box.
      I've this configuration:

      • QT-4.6-SVN
      • Eclipse-x86_64-3.5.1
        (export ECLIPSEDIR="/usr/lib64/eclipse-3.5/")
      • CDT-x86_64-source_5.1.0.200909110608 plugin
        (export ECLIPSEDIR_1="/home/$USER/.eclipse/org.eclipse.platform_3.5.0_272132066/")
      • Other tipical tools (jdk-1.6 and ant).

      So as you can see I need to specify 2 different ECLIPSEDIR variables due to the installation of the CDT plugin into the user home.
      This is done making some modification to:
      1:
      qt-eclipse-integration-linux.x86_64-1.6.0/build.sh:(row 13)
      -----------------------------------------------------
      -|ls -1 ${ECLIPSEDIR}/plugins/ |grep "org[.]eclipse[.]cdt.*[.]jar" > /dev/null ||

      { echo Couldn\'t find the CDT jar files in \$\{ECLIPSEDIR\}/plugins/ - wrong ECLIPSEDIR variable or CDT missing? ; exit ; }

      -----------------------------------------------------
      +|ls -1 ${ECLIPSEDIR_1}/plugins/ |grep "org[.]eclipse[.]cdt.*[.]jar" > /dev/null ||

      { echo Couldn\'t find the CDT jar files in \$\{ECLIPSEDIR_1\}/plugins/ - wrong ECLIPSEDIR_1 variable or CDT missing? ; exit ; }

      -----------------------------------------------------
      2:
      qt-eclipse-integration-linux.x86_64-1.6.0/com.trolltech.qtcppproject/build.xml:(row 61)
      -----------------------------------------------------
      +|<fileset dir="${env.ECLIPSEDIR_1}/plugins">
      +| <include name="*/.jar"/>
      +|</fileset>
      -----------------------------------------------------
      Doing these modification all works:
      $cd /home/$USER/Downloads/qt-eclipse-integration-linux.x86_64-1.6.0/
      $./build.sh
      Checking environment...
      Building native components...
      Building plugins ...
      [javac] Note: /home/bianco/Downloads/qt-eclipse-integration-linux.x86_64-1.6.0/com.trolltech.qtcpp/src/com/trolltech/qtcppcommon/editors/EditorInputWatcher.java uses or overrides a deprecated API.
      [javac] Note: Recompile with -Xlint:deprecation for details.

      BUILD SUCCESSFUL
      Total time: 2 seconds

      BUILD SUCCESSFUL
      Total time: 3 seconds

      BUILD SUCCESSFUL
      Total time: 3 seconds

      BUILD SUCCESSFUL
      Total time: 2 seconds

      BUILD SUCCESSFUL
      Total time: 3 seconds
      [javac] Note: Some input files use or override a deprecated API.
      [javac] Note: Recompile with -Xlint:deprecation for details.
      [javac] Note: Some input files use unchecked or unsafe operations.
      [javac] Note: Recompile with -Xlint:unchecked for details.

      BUILD SUCCESSFUL
      Total time: 4 seconds

      BUILD SUCCESSFUL
      Total time: 2 seconds
      Collecting files to /home/$USER/Downloads/qt-eclipse-integration-linux.x86_64-1.6.0/eclipse/ ...

      Hope this will be useful for next qt-eclipse-integration version of the plugin installation script.
      thank's
      carlo cancellieri

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            ccancellieri carlo cancellieri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes