Skip to content

Commit

Permalink
- Fix builds using mico (hopefully)
Browse files Browse the repository at this point in the history
- Updated installation instructions


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14631 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 3, 2013
1 parent 3e7dbe7 commit b889e05
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Compiler/runtime/corbaimpl.cpp
Expand Up @@ -355,7 +355,7 @@ int CorbaImpl__initialize()
"ORBNoResolve",
"-ORBIIOPAddr",
"inet:127.0.0.1:0" /*, "-ORBDebugLevel", "10", "-ORBIIOPBlocking" */
}
};
#endif

pthread_cond_init(&omc_waitformsg,NULL);
Expand Down
19 changes: 9 additions & 10 deletions README.Linux.txt
@@ -1,6 +1,7 @@
Debian/Ubuntu Compile Cheat Sheet (or read on for the full guide)
=================================================================

Note: $ means run this command as *non-root*. If you must run the command as super-user (you don't), do it under sudo and hope omc did not detect it or your build might fail.
$ sudo su -c "echo deb http://build.openmodelica.org/apt precise nightly >> /etc/apt/sources.list"
$ sudo su -c "echo deb-src http://build.openmodelica.org/apt precise nightly >> /etc/apt/sources.list"
$ sudo apt-get update
Expand All @@ -25,21 +26,19 @@ But first you need to install dependencies:
rml needs smlnj: http://www.smlnj.org (working version v110.xx) and/or mlton (mlton.org)
mico or omniORB:
omniORB:
Is better maintained by Linux distributions, but doesn't print as
good error messages if things go really wrong.
Is well maintained by Linux distributions. This makes it our default choice.
mico:
http://www.mico.org - tested on 2.3.11, 2.3.12, 2.3.13
Note: for newer gcc compilers you might need to add
#include <limits.h> in orb/fast_array.cc
java version > 1.4
gcc (tested with most of the versions; 4.4 or 4.6 recommended over 4.5)
gcc (tested with most of the versions; 4.4 is preferred over 4.5, 4.6 or 4.7 because the newer compilers are *much* slower)
readline & libreadlineX-dev, currently X=5
liblpsolve: http://www.cs.sunysb.edu/~algorith/implement/lpsolve/distrib/lp_solve_5.5.0.11_source.tar.gz
sqlite3
The latest OpenModelica uses Qt for potting and 3D functionality. You will also need:
Qt 4.x.x (http://trolltech.com - >= 4.6)
Coin3D (http://www.coin3d.org - tested with 3.0.0; deprecated)
SoQt (http://www.coin3d.org - tested with 1.4.1; deprecated)
OpenModelica uses Qt for plotting functionality and graphical. You will need:
Qt 4.x.x (http://trolltech.com - >= 4.4.3? 4.6?)
libqwt
OMOptim uses some packages for its optimization algorithms
paradisEO (http://paradiseo.gforge.inria.fr/ - tested with 1.3; see the Debian installer for the directory structure or send openmodelica <at> ida.liu.se a listing of the files paradiseo installs to /usr/local/ to have the Makefiles updated)
Note:
Expand All @@ -63,9 +62,9 @@ You need:
or
$ sudo apt-get install sun-java6-jre
$ sudo update-java-alternatives -s java-6-sun
Qt+Coin3D+SoQt
Qt and friends
you need readline and Qt dev stuff to compile omc and mosh (OMShell)
$ sudo apt-get install libreadline5-dev libsoqt4-dev
$ sudo apt-get install libreadline5-dev libqt4-dev libqtwebkit-dev libqwt5-qt4-dev
paradiseo
sudo apt-get install paradiseo (using the OpenModelica repository)
sqlite3
Expand Down Expand Up @@ -100,8 +99,8 @@ Setting your environment for compiling OpenModelica

To Compile OpenModelica
run:
$ ./configure --with-CORBA=/path/to/mico (if you want omc to use mico corba)
$ ./configure --with-omniORB=/path/to/omniORB (if you want omc to use omniORB corba)
$ ./configure --with-CORBA=/path/to/mico (if you want omc to use mico corba)
$ ./configure --without-CORBA (if you want omc to use sockets)
in the trunk directory
Make sure that all makefiles are created. Check carefully for error messages.
Expand Down
6 changes: 3 additions & 3 deletions configure.in
Expand Up @@ -422,9 +422,9 @@ if test ! "$WANT_MICO" = "no"; then
USE_CORBA="-DUSE_CORBA -DUSE_MICO"
QT_USE_CORBA="USE_MICO"
AC_MSG_CHECKING([mico settings])
CORBACFLAGS=-I`$MICO --prefix`/include -I.;
CORBA_QMAKE_INCLUDES=`$MICO --prefix`/include -I.;
CORBALIBS=`$MICO --libs`;
CORBACFLAGS="-I`$MICO --prefix`/include -I.";
CORBA_QMAKE_INCLUDES="`$MICO --prefix`/include -I.";
CORBALIBS="`$MICO --libs`";
AC_MSG_RESULT([$CORBACFLAGS $USE_CORBA $QT_USE_CORBA])
DESIRED_CORBA="mico"
elif test ! "$WANT_ORBIT2" = "no"; then
Expand Down

0 comments on commit b889e05

Please sign in to comment.