Installing the Intel Compiler Suite Professional Edition 10.x
As none of these information is supported in pure C, Qt uses the Meta Object Compiler (moc) to do all the tricks. It reads each header file, and generates a C source file (moc.cpp) containing the code for meta-object, if it finds a QOBJECT macro used in any class declaration.
To install the gcc and g++ compilers, you will need the build-essential package. This will also install GNU make.
build-essential contains a list of packages which are essential for building Ubuntu packages including gcc compiler, make and other required tools.
Now, you should able to compile software using C / C++ compilers.
To install the manpages for c and c++ development, install the manpages-dev package.
Note that GNU's Java compiler is not the same as the one developed and distributed by Sun Microsystems, and will not provide Java to the firefox browser. For that, please see Java. To install gcj, the GNU Java compiler, install the following package: gcj.
gcj can be used to:
compile .java files to bytecode (.class files).
compile .java files to a linux-executable.
To install the GNU Java bytecode interpreter, you need the gij package.
To have gcj compile to executables, install libgcj6-dev (otherwise an error during compilation occurs: libgcj.spec: No such file or directory). Use synaptic to install libgcj6-dev.
To install the GNU Fortran 77 compiler - g77, you need the g77 package.
To install the GNU Fortran 95 compiler - gfortran, the package is: gfortran.
To install autoconf and automake, you need the autoconf and automake packages.
Apt-get will tell you to explicitly choose a version of automake. If, for example, you decide to use automake1.9, you need to specify the version, such as the automake1.9 package.
The GNU compilers have options that allow them to create 32-bit object and executable files on 64-bit operating systems, and vica versa. The critical options are -m32 (to build 32-bit) and -m64 (to build 64-bit).
These options will be present when you install the compiler of your choice. However, they won't actually work unless you install several additional packages.
The first thing you will need is the multilib package for the compiler you are using. For example, to add multilib support to the default version of g++ (4.1 in gutsy), you would install {g++-multilib}. For 4.2, you would need {g++-4.2-multilib}.
The multilib packages are compiler runtime packages. Now, you need 32-bit (or 64-bit) versions of whatever libraries you need to link your application program. 64-bit packages have names that start with lib64. Install these on 32-bit systems to support 64-bit builds. 32-bit packages have names that start with lib32. Install these on 64-bit systems to support 32-bit builds. Whatever else you are doing, you will probably need {libNNgcc1}. If you are using g++, you will need {libNNstdc++6}.
Using the Intel compilers for C, C++, and FORTRAN requires installing 32-bit libraries for Ubuntu if you are using a 64-bit system. Please ensure you have these packages:
gcc, build-essential, libc6-dev (see above)
ia32-libs, g++-multilib, and libc6-dev-i386 (for 64-bit systems)
32-bit packages starting with lib32 (for 64-bit systems)
alien and rpm for installing the RPM packages that Intel distributes.
libstdc++5 and libstdc++5-3.3-dev for good measure because Intel's builds depend on these runtimes.
before you attempt installing the Intel Compiler Suite.
Get the License Number and Extract to a path without spaces
Ensure that you have obtained the license number for your installation and extracted the downloaded installation archive into a path that does not contain any spaces. This last statement is utterly important. The installer script that comes with the package has a bug that does not allow you to install the compiler suite if you have any spaces in the installer script path.
On 64-bit systems you may also need to issue these commands
because the chklic_32_64 license checking utility from Intel dynamically links to these libraries.
Once you're done preparing to install the compiler suite, it's time to go to the installer directory and install the compiler (be sure to also read through accompanying documentation; e.g., README, INSTALL.txt):
Run the Installation Script
After installing the compiler, you need to tell your shell the location of these executables by adding their parent paths to the PATH environment variable.
Edit /etc/bash.bashrc to add the installation path to the PATH environment variable
Where 10.1.012 is the version of the compiler suite installed.
For more information: Intel Compiler Suite 10.x support page for Ubuntu Linux
Install script for X11 development libs
Meta Object System is a part of Qt framework core provided to support Qt extensions to C++ like signals/slots for inter-object communication, run-time type information, and the dynamic property system.[1]
Architecture[edit]
The Meta object system consists of 3 things: QObject class, Q_OBJECT macro and a tool called moc (Meta-Object Compiler). QObject is the base class for all Qt classes, Q_OBJECT macro is used to enable meta-object features in classes and finally moc is a preprocessor that changes Q_OBJECT macro instances to C++source code to enable meta object system mechanism in the class in which it is used.[2]
Using the meta object system has brought some criticism. In Qt documentation, several reasons have been given for the use of the meta object system, including benefits of code generation, dynamism of GUIs, automatic binding to scripting languages, not adding limitations and also reasonable performance in signal/slot implementation with moc.[3] There are some efforts to make Qt needless of a preprocessor. These efforts include re-implementing Qt moc using libclang.[4]