Skip to content

Commit b889e05

Browse files
committed
- Fix builds using mico (hopefully)
- Updated installation instructions git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14631 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 3e7dbe7 commit b889e05

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

Compiler/runtime/corbaimpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ int CorbaImpl__initialize()
355355
"ORBNoResolve",
356356
"-ORBIIOPAddr",
357357
"inet:127.0.0.1:0" /*, "-ORBDebugLevel", "10", "-ORBIIOPBlocking" */
358-
}
358+
};
359359
#endif
360360

361361
pthread_cond_init(&omc_waitformsg,NULL);

README.Linux.txt

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Debian/Ubuntu Compile Cheat Sheet (or read on for the full guide)
22
=================================================================
33

4+
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.
45
$ sudo su -c "echo deb http://build.openmodelica.org/apt precise nightly >> /etc/apt/sources.list"
56
$ sudo su -c "echo deb-src http://build.openmodelica.org/apt precise nightly >> /etc/apt/sources.list"
67
$ sudo apt-get update
@@ -25,21 +26,19 @@ But first you need to install dependencies:
2526
rml needs smlnj: http://www.smlnj.org (working version v110.xx) and/or mlton (mlton.org)
2627
mico or omniORB:
2728
omniORB:
28-
Is better maintained by Linux distributions, but doesn't print as
29-
good error messages if things go really wrong.
29+
Is well maintained by Linux distributions. This makes it our default choice.
3030
mico:
3131
http://www.mico.org - tested on 2.3.11, 2.3.12, 2.3.13
3232
Note: for newer gcc compilers you might need to add
3333
#include <limits.h> in orb/fast_array.cc
3434
java version > 1.4
35-
gcc (tested with most of the versions; 4.4 or 4.6 recommended over 4.5)
35+
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)
3636
readline & libreadlineX-dev, currently X=5
3737
liblpsolve: http://www.cs.sunysb.edu/~algorith/implement/lpsolve/distrib/lp_solve_5.5.0.11_source.tar.gz
3838
sqlite3
39-
The latest OpenModelica uses Qt for potting and 3D functionality. You will also need:
40-
Qt 4.x.x (http://trolltech.com - >= 4.6)
41-
Coin3D (http://www.coin3d.org - tested with 3.0.0; deprecated)
42-
SoQt (http://www.coin3d.org - tested with 1.4.1; deprecated)
39+
OpenModelica uses Qt for plotting functionality and graphical. You will need:
40+
Qt 4.x.x (http://trolltech.com - >= 4.4.3? 4.6?)
41+
libqwt
4342
OMOptim uses some packages for its optimization algorithms
4443
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)
4544
Note:
@@ -63,9 +62,9 @@ You need:
6362
or
6463
$ sudo apt-get install sun-java6-jre
6564
$ sudo update-java-alternatives -s java-6-sun
66-
Qt+Coin3D+SoQt
65+
Qt and friends
6766
you need readline and Qt dev stuff to compile omc and mosh (OMShell)
68-
$ sudo apt-get install libreadline5-dev libsoqt4-dev
67+
$ sudo apt-get install libreadline5-dev libqt4-dev libqtwebkit-dev libqwt5-qt4-dev
6968
paradiseo
7069
sudo apt-get install paradiseo (using the OpenModelica repository)
7170
sqlite3
@@ -100,8 +99,8 @@ Setting your environment for compiling OpenModelica
10099

101100
To Compile OpenModelica
102101
run:
103-
$ ./configure --with-CORBA=/path/to/mico (if you want omc to use mico corba)
104102
$ ./configure --with-omniORB=/path/to/omniORB (if you want omc to use omniORB corba)
103+
$ ./configure --with-CORBA=/path/to/mico (if you want omc to use mico corba)
105104
$ ./configure --without-CORBA (if you want omc to use sockets)
106105
in the trunk directory
107106
Make sure that all makefiles are created. Check carefully for error messages.

configure.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ if test ! "$WANT_MICO" = "no"; then
422422
USE_CORBA="-DUSE_CORBA -DUSE_MICO"
423423
QT_USE_CORBA="USE_MICO"
424424
AC_MSG_CHECKING([mico settings])
425-
CORBACFLAGS=-I`$MICO --prefix`/include -I.;
426-
CORBA_QMAKE_INCLUDES=`$MICO --prefix`/include -I.;
427-
CORBALIBS=`$MICO --libs`;
425+
CORBACFLAGS="-I`$MICO --prefix`/include -I.";
426+
CORBA_QMAKE_INCLUDES="`$MICO --prefix`/include -I.";
427+
CORBALIBS="`$MICO --libs`";
428428
AC_MSG_RESULT([$CORBACFLAGS $USE_CORBA $QT_USE_CORBA])
429429
DESIRED_CORBA="mico"
430430
elif test ! "$WANT_ORBIT2" = "no"; then

0 commit comments

Comments
 (0)