installation problem imac G5 PPC osx Tiger 10.4.11

Help
Sergio
2014-03-29
2014-04-21
1 2 > >> (Page 1 of 2)
  • Sergio

    Sergio - 2014-03-29

    First of all: I'm a new member,thank you for this opportunity.

    Description of the problem:
    I followed install instructiions for Qucs, included on the page: http://qucs.sourceforge.net/install.html

    1) I started with the first option: Building Qucs from downloaded source tarball
    I installed Xcode (ver.2.5), I installed QT 4.3.5, I downloaded qucs-0.0.15 I followed instructions indicated on readme file, so from Terminal I typed:
    "./configure". The result is "checking for Qt headers... configure: error: not found"

    2) I tried with the second option: Building using MacPorts
    I installed Macports 2.2.1. I typed:
    sudo port -d selfupdate and sudo port install qucs
    It takes a lot of time to build all the components.
    After that it stops. It seems is impossible to install qt4-mac.

    I saved the log reports, I can send to you if necessary.

    Can you help me?
    I'd like to install qucs, for is a great software.
    Thank you!

     
    • Frans

      Frans - 2014-03-29

      <html>
      <head>
      <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
      </head>
      <body bgcolor="#FFFFFF" text="#000000">
      Dear Sergio,



      Qucs 0.0.15 or 0.0.16 needs Qt3

      Qucs 0.0.17 or later needs Qt4.

      If you want to compile using Qt4.3.5 you will need to download at
      least 0.0.17.



      Frans


      </body>
      </html>

       
      Last edit: Guilherme 2014-03-29
      • Sergio

        Sergio - 2014-03-29

        Thank you Frans,
        I get 0.0.17, now after ./configure, the following messages appear:

        configure: error: Package requirements (QtCore QtGui QtXml Qt3Support) were not met:
        No package 'QtCore' found
        No package 'QtGui' found
        No package 'QtXml' found
        No package 'Qt3Support' found
        Consider adjusting the PKG_CONFIG_PATH environment variable if you
        installed software in a non-standard prefix.
        Alternatively, you may set the environment variables QT_CFLAGS
        and QT_LIBS to avoid the need to call pkg-config.
        See the pkg-config man page for more details.

        How can I install Qucs?
        Is there a simple way (dmg, pkg) for 10.4.11 to install it?
        Thanks
        Sergio

         
  • Guilherme

    Guilherme - 2014-03-29

    Hi Sergio,

    How did you install Qt? If you got if from Digia, last time I checked it did not include pkg-config files. MacPorts might also not install them, I do not know. Homebrew does install, but might be hard to get it to run on your system.

    From your previous email to qucs-help (which I replied to the list), I assume your are using Macports. Is that right?

    For the above reason, on the latest version we do now use pkg-config to find Qt anymore.
    This is how the latest configure.ac looks like : https://sourceforge.net/p/qucs/git/ci/master/tree/qucs/configure.ac

    The changes bellow should get you to find the Qt libs:
    https://sourceforge.net/p/qucs/git/ci/330d8944b102399e1554069dd99eb601457850ae/

    Regards,
    Guilherme

     
    • Sergio

      Sergio - 2014-03-30

      Dear Guilherme,
      thank you for your reply, but for me is very difficult to understand. Unfortunately I'm not an expert... for me installing applications is normally click on dmg file...
      But for my osx it is impossible to do it for a lot of applications.

      I tried to install qucs following instructions on your documentation pages, but probably I did a lot of mistakes and confusion: installations, uninstallations, etc..

      What I suppose is that QT3 and QT4 (necessary for Qucs), do not run on my osx. When I try to install it (through Macports or downloading it from QT) I find always errors that i am not able to solve.

      So the only way for me to install Qucs is to receive from someone a simple step by step instruction list.

      In any case Thank you for your help.
      Bye.
      Sergio

       
  • Guilherme

    Guilherme - 2014-03-30

    Hi Sergio,
    Unfortunately there is no dmg or pkg for OSX 10.4 (PPC).
    The only pkg's available are for Intel Macs. I am afraid the only way to get it running is to compile it yourself.

    That said. Qt4 can be compiled for OSX 10.4 (PPC). If you post the errors maybe we can help you.

    Regards,
    Guilherme

     
    • Sergio

      Sergio - 2014-03-30

      Hi Guilherme,
      If it is possible,i can try.
      I tried with a lot of confused installations (Qt4.3, QT4.8, Qt4-mac with macports, QT3, etc..), for this reasons I have to start with the correct way
      Preliminary questions:
      1) I downloaded directly from Qt web site the file: qt-everywhere-opensource-src-4.8.5.tar.gz. Is it good?
      2) Before installing it, is it necessary to prepare the system (uninstallations, cleaning,et.)?
      Thank you!
      Sergio

       
  • Guilherme

    Guilherme - 2014-03-31

    Hi Sergio,

    Is your system PPC or PPC64?
    Yes, It makes sense to remove/uninstall failed Qt installs.

    I believe what you need is to compile the latest from Qt4.7 series, for PPC, with Carbon and Qt3Support. Note that compiling can be quite time consuming [6]. Information about Qt on the Mac [0].

    Supporting reasons:
    - Qt4.7 is the last to support OS X Tiger / Carbon [1].
    - In Qt4.8 the support for Carbon was dropped [2].
    - Recent Qucs versions are know to work with Qt4.6+

    Reason to compile from source:
    - It is unclear if the provided dmg [3][5] is for PPC or Intel.
    - Macports might handle that, but further hacks are needed [4]

    Alternative:
    - Maybe this dmg is ok for your PPC [5], I don't know for sure.

    Uninstall previous versions:
    - Perhaps uninstalling previous versions is better. The compilation should be relatively straightforward, but could be quite time consuming. See [6]


    My suggestion is that you remove any previously installed Qt. What did you do so far?

    1)
    Take a look at [5]. This one might already be the one you need! It is unclear if it is for Intel or PPC...

    2)
    If [5] does not work for you, download the source [7].
    Unpack [7] (tar xvfz [file].gz), cd into the extracted directory and run:

    configure -h                       # for information on available switches
    configure -carbon -arch ppc        # to configure the package (qt3support is on by default)
    make
    make install
    

    This might take several hours!
    It will be installed by default into /usr/local/Trolltech/Qt-4.7.4, or into a -prefix /somewhere/you/like if you provide it to configure. See configure -h.

    Later on, this directory can be passed to Qucs via the QTDIR variable. And Qucs will then find the libs it need. But that is for later, first you have to get Qt to run on your system.

    If you are still willing to give it a try, these are the instructions I can provide right now.
    If you find issues, post attach the full logs.

    Once you get Qt4.7 installed, it should be relatively easy to build Qucs.

    Regards,
    Guilherme

    [0] http://qt-project.org/doc/qt-4.8/developing-on-mac.html
    [1] http://qt-project.org/doc/qt-4.7/supported-platforms.html
    [2] http://qt-project.org/doc/qt-4.8/supported-platforms.html
    [3] ftp://ftp.qt.nokia.com/qt/source/
    [4] http://trac.macports.org/ticket/36497
    [5] ftp://ftp.qt.nokia.com/qt/source/qt-mac-carbon-opensource-4.7.3.dmg
    [6] http://rcl-rs-vvg.blogspot.be/2011/08/getting-qtcreator-to-work-on-powerpc.html?m=1
    [7] ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz

     
    • Sergio

      Sergio - 2014-04-01

      Hi Guilherme,
      Thank you for your instructions.
      I downloaded the .dmg [5].
      I installed it: no problem, installation done without errors.
      I extracted qucs-0.0.17.tar.gz
      I typed cd qucs-0.0.17 and after ./configure.
      The configuration failed.
      This is what appeared on terminal window:

      ./configure
      checking build system type... powerpc-apple-darwin8.11.0
      checking host system type... powerpc-apple-darwin8.11.0
      checking target system type... powerpc-apple-darwin8.11.0
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for a thread-safe mkdir -p... ./install-sh -c -d
      checking for gawk... no
      checking for mawk... no
      checking for nawk... no
      checking for awk... awk
      checking whether make sets $(MAKE)... yes
      checking whether to enable maintainer-specific portions of Makefiles... no
      checking for g++... g++
      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 g++ accepts -g... yes
      checking for style of include used by make... GNU
      checking dependency style of g++... gcc3
      checking for gcc... gcc
      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 for ranlib... ranlib
      checking for ar... ar
      checking for lrelease-qt4... no
      checking for lrelease... /usr/bin/lrelease
      checking for lupdate-qt4... no
      checking for lupdate... /usr/bin/lupdate
      checking for moc-qt4... no
      checking for moc... /usr/bin/moc
      checking for uic-qt4... no
      checking for uic... /usr/bin/uic
      checking for pkg-config... /opt/local/bin/pkg-config
      checking pkg-config is at least version 0.9.0... yes
      checking for QT... no
      configure: error: Package requirements (QtCore QtGui QtXml Qt3Support) were not met:

      No package 'QtCore' found
      No package 'QtGui' found
      No package 'QtXml' found
      No package 'Qt3Support' found

      Consider adjusting the PKG_CONFIG_PATH environment variable if you
      installed software in a non-standard prefix.

      Alternatively, you may set the environment variables QT_CFLAGS
      and QT_LIBS to avoid the need to call pkg-config.
      See the pkg-config man page for more details.

      What I have to do now?
      Thank you again!
      Sergio

       
  • Guilherme

    Guilherme - 2014-04-04

    Sorry I was busy with work.

    Great, you got Qt. The issue now is that the dmg does not install pkg-config scripts, and Qucs 0.0.17 expects to use pkg-config to find Qt...

    My suggestion to try the latest master branch from our repository. It was fixed not to use pkg-config.

    Have a look at [1]. Read 'Get the Qucs source code' (option 2-repo snapshot might be easier), and 'Build with Autotools' sections.

    I am hoping it will work. If not, let me know.

    [1] https://github.com/Qucs/qucs/wiki/Build-Darwin

     
    • Sergio

      Sergio - 2014-04-04

      Hi Guilherme,
      following your instructins; i downloaded the zip file from option2.
      But I can not extract it. Using Utility decompressor of OSX,it stops during extracting. Why?
      Can you suggest to me a way to decompress it from terminal?
      Thanks!
      Sergio

       
      • Guilherme

        Guilherme - 2014-04-04

        Hum, double-click on Finder worked for me...
        Try unzip qucs-git-db932a90ac3244f4b34edbfa410b1f331bd6152f.zip from Terminal?
        Maybe your download is corrupted?
        Running shasum qucs-git-db932a90ac3244f4b34edbfa410b1f331bd6152f.zip gives me
        f877b8f54aa2b8a2ea4e6ba7d318e414d6d698ef
        This value should be the same for you...

         
        • Sergio

          Sergio - 2014-04-05

          Hi Guilherme,
          I downloaded the zip file again (I supposed was corrupted), but it is impossible to extract it.
          I tried with finder and with terminal unzip command.
          The command shasum is not found on my system.
          Why the same file is ok for you, and not ok for me?
          Can be a download problem? In that case can I take it in another way? (example ftp server).
          Thank you!

           
          • Guilherme

            Guilherme - 2014-04-05

            That is weird. Maybe your unzip is too old? The snapshot is created by SourceForge, and it should work fine everywhere.
            For the reference my unzip is:
            $ unzip --version
            UnZip 5.52 of 28 February 2005, by Info-ZIP.

            I don't know if you can ftp to the repository.
            You can either try to find other tool to unzip or try the other option (1) cloning the repository with git.

             
  • Sergio

    Sergio - 2014-04-05

    My Unzip is 5.51. I do not know how to install new versions.
    But I'm not sure, it is a problem of Unzip version.
    I tried with other tools and for all the message is the same: file corrupted.
    I tried also with option 1, but terminal says that git is a command unknown.
    Maybe i'm doing mistakes about commands, paths, etc...
    Thanks

     
    • Sergio

      Sergio - 2014-04-05

      Hi,
      this is what appears after Unzip command:

      unzip qucs-git-db932a90ac3244f4b34edbfa410b1f331bd6152f.zip
      Archive: qucs-git-db932a90ac3244f4b34edbfa410b1f331bd6152f.zip
      End-of-central-directory signature not found. Either this file is not
      a zipfile, or it constitutes one disk of a multi-part archive. In the
      latter case the central directory and zipfile comment will be found on
      the last disk(s) of this archive.
      unzip: cannot find zipfile directory in one of qucs-git-db932a90ac3244f4b34edbfa410b1f331bd6152f.zip or
      qucs-git-db932a90ac3244f4b34edbfa410b1f331bd6152f.zip.zip, and cannot find qucs-git-db932a90ac3244f4b34edbfa410b1f331bd6152f.zip.ZIP, period.

      Never ending story...

       
  • Sergio

    Sergio - 2014-04-05

    Hi,
    news: I used the command jar xvf file.zip
    It extracts something, but seems not complete...
    I find a new folder called "examples" (containing examples circuits that I will never be able to open... ) and a file "readme".
    As indicated on Build with , I typed sh autogen.sh but terminal says file not found.
    I'm near to throw in the sponge...

     
  • Sergio

    Sergio - 2014-04-05

    Hi Gulherme,
    zip problem solved! I suppose It depended on download from safari: the file seemed good, but was uncomplete...
    I downloaded from Firefox: ok
    I extracted it: ok
    From terminal: sh autogen.sh : ok
    ./configure: failed
    this is the final line:
    configure: error: clang++ required but not found.

    How to solve it?
    Thank you!

     
  • Guilherme

    Guilherme - 2014-04-10

    Hi Sergio,
    Sorry I forgot about this.

    Two issues. I word on the first, you work on the second ;)

    1) The latest qucs version is configured to use clang++ on the Mac. This can be fixed, I am looking into it. I'll let you know.

    2) Please let me know the following things. Which version of gcc do you have? g++ --version. Qucs recently introduced newer C++ features that old Apple compilers do not support. Please try to figure out which version of GCC MacPorts can give you GCC 4.6+ should be good enough. Getting a new compiler might be easier/faster than fixing Qucs to provide a compatibility layer.
    port search gcc should give you a hint.

    Regards, Guilherme

     
    • Sergio

      Sergio - 2014-04-11

      Hi Guilherme,
      my gcc version is:
      powerpc-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370).
      I typed port search gcc, but it found 100 different ports!!!
      Can you suggest me the correct port for my system?
      Thanks

       
  • Sergio

    Sergio - 2014-04-13

    Hi Guilherme,
    I installed gcc 4.6 using macports.
    After 12 hours of installation, the results is always the same:
    configure: error: clang++ required but not found.
    I will try with clang 3.3...

     
  • Sergio

    Sergio - 2014-04-13

    Hi Guilherme,
    clang 3.3 installation failed (log file attached).
    I wait for your instruction.
    Goodbye.
    Sergio

     
    • Guilherme

      Guilherme - 2014-04-13

      The error:

      configure:12399: error: found python 2.3.5 (/usr/bin/python); required >= 2.5
      

      Should give you a hint... Anyway, let us not go there. Lets try with GCC since you have it installed... I will send you instructions in a bit.

       
  • Guilherme

    Guilherme - 2014-04-13

    Ok. The clang++ required but not found should be fixed now. I just pushed the changes to our master branch. Let us continue with GCC 4.6.

    You have 3 options:
    1) clone the repository (need to install git), see Get the Qucs source code in [1]
    2) download another repository snapshot as you did already, also mentioned in [1]
    3) fix two files by hand, see diff in [2]

    I recommend either 1) or 2). As you will use master option 1) is better, if further changes are needed it is faster and easier for you to git pull new changes.

    If you go for 3) you need to edit the files as in [2] and rerun the autogen.sh and boostrap.sh scripts in qucs and qucs-core subdirs. Then you go for the part where you run the configure script.

    Note, it might be necessary to tell the configure script which C and C++ compiler you want to use.

    Something like:

    CXX=g++-4.6 CC=gcc-4.6 ./configure --enable-maintainer --prefix=[install path]

    You run gcc-4.6 from Terminal, right?

    Fingers crossed for the other dependencies... let us see where it stops next! ;)

    Regards, Guilherme

    [1] https://github.com/Qucs/qucs/wiki/Build-Darwin
    [2] https://github.com/guitorri/qucs/commit/15b9a317562484b7c72a5fbe85e9c5b826ab58fa

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.