Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » rsamurti
  • » Profile

Posts

Posts

Sep-15-15 03:00:19
When I start OMEdit, I get this segment fault error message.

Hello,

To see detailed error messages when I try OMEdit -- help in a terminal, I got this error message:

Caught signal 6QWidget: Must construct a QApplication before a QPaintDevice
Caught signal 6QWidget: Must construct a QApplication before a QPaintDevice
Caught signal 6QWidget: Must construct a QApplication before a QPaintDevice
Caught signal 6QWidget: Must construct a QApplication before a QPaintDevice
Caught signal 6QWidget: Must construct a QApplication before a QPaintDevice
Caught signal 6QWidget: Must construct a QApplication before a QPaintDevice
Caught signal 6QWidget: Must construct a QApplication before a QPaintDevice
Caught signal 6Segmentation fault

What is the solution?

Anand

Sep-13-15 03:21:37
Configure error --- checking for libraries directory... configure: err

Hello,

Trying to build OpenModelica-1.9.3 on Slackware Current.

When I do

./configure CC=clang CXX=clang++ LDFLAGS="-lncurses" --with-cppruntime \
  --prefix=/usr \
  --build=$ARCH-slackware-linux \
  --with-lapack="-llapack -lblas"

checking for gcc... clang
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 clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking build system type... i486-slackware-linux-gnu
checking host system type... i486-slackware-linux-gnu
checking target system type... i486-slackware-linux-gnu
build_short: i486-linux-gnu
host_short: i486-linux-gnu
checking if cppruntime is requested... yes
checking for omlibrary target... core
checking for libraries directory... configure: error: no

How to correct this?

Thanks for your help.

Anand

Sep-06-15 09:46:29
When I start OMEdit, I get this segment fault error message.

Hello,

Finally I am alble to create the compiled package GIT version of OpenModelica for Slackware Current:

This is my buildscript:

#!/bin/sh

# Slackware build script for openmodelica

# Copyright 2014 R. S. Ananda Murthy, Mysore, India
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=openmodelica
VERSION=${VERSION:-git20150905}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

LIBS="-lreadline"

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf ${PRGNAM}
tar xvf $CWD/${PRGNAM}-$VERSION.tar.gz
cd ${PRGNAM}
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

autoconf

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-lncurses"  \
./configure CC=clang CXX=clang++ \
  --prefix=/usr/ \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --build=$ARCH-slackware-linux \
  --disable-modelica3d \
  --without-omc \
  --with-omniORB \
  --without-paradiseo \
  --with-lapack='-llapack -lblas'
make
make install DESTDIR=$PKG

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

mv $PKG/usr/share/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cp -a OMCompiler/COPYING $PKG/usr/doc/$PRGNAM-$VERSION/COPYING

mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc

install -D -m644 "OMEdit/OMEdit/OMEditGUI/Resources/icons/omedit.ico" "$PKG/usr/share/openmodelica/icons/omedit.ico"
install -D -m644 "OMNotebook/OMNotebook/OMNotebookGUI/Resources/OMNotebook_icon.ico" "$PKG/usr/share/openmodelica/icons/omnotebook.ico"
install -D -m644 "OMOptim/OMOptim/GUI/Resources/omoptim.ico" "$PKG/usr/share/openmodelica/icons/omoptim.ico"
install -D -m644 "OMShell/OMShell/OMShellGUI/Resources/omshell.ico" "$PKG/usr/share/openmodelica/icons/omshell.ico"
install -D -m644 "OMPlot/OMPlot/OMPlotGUI/Resources/icons/omplot.ico" "$PKG/usr/share/openmodelica/icons/omplot.ico"

mkdir -p $PKG/usr/share/applications

cat <<EOF > $PKG/usr/share/applications/omedit.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=OMEdit
GenericName=Physical modeling and simulation tool
Comment=A Modelica connection editor
TryExec=OMEdit
Exec=OMEdit %f
Icon=omedit.png
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;Education;Science;Math;
MimeType=text/x-onb;application/x-omnotebook;
EOF

cat <<EOF > $PKG/usr/share/applications/omnotebook.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=OMNotebook
GenericName=Physical modeling and simulation tool
Comment=An open-source software tool for an electronic notebook\nsupporting Modelica.
TryExec=OMNotebook
Exec=OMNotebook %f
Icon=OMNotebook_icon.svg
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;Education;Science;Math;
MimeType=text/x-onb;application/x-omnotebook;
EOF

cat <<EOF > $PKG/usr/share/applications/omshell.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=OMShell
GenericName=Physical modeling and simulation tool
Comment=A complete Modelica modeling, compilation and simulation environment based on free software.
TryExec=OMShell
Exec=OMShell
Icon=omshell-large.svg
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;IDE;
EOF

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}


But when I run OMEdit in a terminal I get this error message:

Caught signal 11Segmentation fault

Any clues to solve this problem?

Thanks for your help.

Anand

Sep-03-15 14:40:20
Building OpenModelica on Slackware Current

Hello,

To make configure detect, I had to do this:

LDFLAGS="-lncurses" \
./configure CC=clang CXX=clang++ \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --build=$ARCH-slackware-linux \
  --with-omniORB \
  --disable-modelica3d \
  --without-paradiseo \
  --without-omc \
  --with-lapack="-llapack -lblas" \
  --disable-python-interface

Now after compilation, and installation, if I try to start OMEdit I get this error message:

Caught signal 11Segmentation fault

But OMShell and OMShell-terminal are starting properly

Anand

Sep-01-15 14:08:42
Building OpenModelica on Slackware Current

Hello,

Earlier I was able to disable OMShell during configure to avoid this problem. But now, in the GIT version I am not able to disable OMShell. How to do this?

Anand

Aug-30-15 13:14:37
Building OpenModelica on Slackware Current

Hello,

When I try to compile the GIT version I got this error message:

checking for sys/time.h... yes
checking for antlr.Tool support... ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
yes
checking if the user wants to compile OMShell-terminal... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for library containing readline... no
configure: error: readline missing
configure: error: ./configure failed for OMCompiler

This is my buildscript:

#!/bin/sh

# Slackware build script for openmodelica

# Copyright 2014 R. S. Ananda Murthy, Mysore, India
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=openmodelica
VERSION=${VERSION:-git20150830}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf ${PRGNAM}
tar xvf $CWD/${PRGNAM}-$VERSION.tar.gz
cd ${PRGNAM}
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

autoconf

./configure --prefix=/usr/ --without-omc --with-omniORB  \
--with-cppruntime --with-lapack='-llapack -lblas' \
--without-omshell
make NOLIBRARIES=Yes all
make install DESTDIR=$PKG

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

mv $PKG/usr/share/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.txt COPYING REVISION $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc

mkdir -p $PKG/usr/share/applications
mkdir -p $PKG/usr/share/pixmaps
cp ./OMEdit/OMEditGUI/Resources/icons/omedit.png $PKG/usr/share/pixmaps/omedit.png
cp ./OMNotebook/OMNotebookGUI/Resources/OMNotebook_icon.svg $PKG/usr/share/pixmaps/OMNotebook_icon.svg
cp ./OMShell/OMShellGUI/Resources/omshell-large.svg $PKG/usr/share/pixmaps/omshell-large.svg

cat <<EOF > $PKG/usr/share/applications/omedit.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=OMEdit
GenericName=Physical modeling and simulation tool
Comment=A Modelica connection editor
TryExec=OMEdit
Exec=OMEdit %f
Icon=omedit.png
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;Education;Science;Math;
MimeType=text/x-onb;application/x-omnotebook;
EOF

cat <<EOF > $PKG/usr/share/applications/omnotebook.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=OMNotebook
GenericName=Physical modeling and simulation tool
Comment=An open-source software tool for an electronic notebook\nsupporting Modelica.
TryExec=OMNotebook
Exec=OMNotebook %f
Icon=OMNotebook_icon.svg
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;Education;Science;Math;
MimeType=text/x-onb;application/x-omnotebook;
EOF

cat <<EOF > $PKG/usr/share/applications/omshell.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=OMShell
GenericName=Physical modeling and simulation tool
Comment=A complete Modelica modeling, compilation and simulation environment based on free software.
TryExec=OMShell
Exec=OMShell
Icon=omshell-large.svg
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;IDE;
EOF

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}

Aug-30-15 03:45:38
Building OpenModelica on Slackware Current

Hello,

Building openmodelica  SVN25917 fails with the following error message on Slackware Current:

Installing OpenModelica...
# Application directory (OSX)
if [ "" = ".app" ]; then cp -rp ./build/Applications/ /tmp/SBo/package-openmodelica/Applications/MacPorts/; fi
# Binaries
cp -a ././build/bin/* /tmp/SBo/package-openmodelica/usr/bin
# Libraries
cp -a ././build/lib/* /tmp/SBo/package-openmodelica/usr/lib/
# Includes
cp -a ././build/include/omc/* /tmp/SBo/package-openmodelica/usr/include/omc
cp -a ././build/include/omc/i486-linux-gnu/omc/antlr3 /tmp/SBo/package-openmodelica/usr/include/i486-linux-gnu/omc/antlr3
cp: cannot stat ‘././build/include/omc/i486-linux-gnu/omc/antlr3’: No such file or directory
make: *** [install] Error 1

Any solutions?

Anand

Hello,

Please read some basics of modeling of systems and then tutorials on Modelica and OpenModelica. Without a basic knowledge of system modeling you will not be able to understand the usage of OpenModelica properly.

Liniks for tutorials are here in this site.

If you want to install OpenModelica on Slackware GNU Linux, you can get the build scripts to compile and create the required packages from http://www.slackbuilds.org/

RSA

Hello,

What subjects did you study in the first year? What are you studying now?

RSA

Hello,

What course are you doing in the University? What courses have you already studied?

R S Ananda Murthy

Mar-10-15 01:57:34
How to obtain the frequency response of a system?

Hello,

Thanks for your reply. The example you have given is working in OpenModelica (SVN Version 1.9.2+dev (r24888).

Can you please explain what is the function of the ramp block and the constant k block?

Anand

Mar-09-15 14:50:13
How to obtain the frequency response of a system?

Hello,

In Modelica, whenever we give the command for simulation, the variables in the system are computed as functions of time.

But, suppose we want to determine the frequency response of a system and plot the magnitude and phase angle plot, we need to plot these two quantities with respect to frequency. How is this possible in Modelica?

Thanks for your help.

R S Ananda Murthy

Mar-05-15 02:03:58
How to conduct steady-state analysis of A.C. circuits using phasors?

Hello,

How to conduct simulation of steady-state analysis of A.C. circuits using phasors for voltages, currents, and impedances?

Thanks for your help.

Anand

Mar-02-15 15:50:56
Loading parameter values from a file.

Hello,

How to load different parameter values from an external file? For example, if a create class called TransmissionLine, how to create instances of TransmissionLine with different parameter values taken from an external file?

Anand

Mar-02-15 15:47:56
What actually happens when we instantiateModel?

Hello,

What actually happens when we use the command
instantiateModel(ModelName)

Anand

Dec-23-14 03:37:46
svn23899 stops building on Slackware Current.
Category: Developer

Hello,

Here is the build log:
svn23899-build.log

metis-4.0.3 is installed and I have /usr/include/metis/metis.h.

Anand

Dec-05-14 04:07:25
BouncingBall simulation stops at 3% on GNU Slackware Current.

Hello,

I am running BouncingBall simulation on OpenModelica 1.9.2+dev (r23627) on Slackware GNU Linux (32-bit).

When I start simulation it does not complete. It stops at 3%. These are the messages:


Under Compilation Tab:

BouncingBall_records.o BouncingBall_01exo.o BouncingBall_02nls.o BouncingBall_03lsy.o BouncingBall_04set.o BouncingBall_05evt.o BouncingBall_06inz.o BouncingBall_07dly.o BouncingBall_08bnd.o BouncingBall_09alg.o BouncingBall_10asr.o BouncingBall_11mix.o BouncingBall_12jac.o BouncingBall_13opt.o BouncingBall_14lnz.o -I"/usr/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -L"/usr/doc/omc/testmodels"      -O0 -falign-functions -march=native     -L"/usr/doc/omc/testmodels" -L"/usr/lib/omc" -L"/usr/lib" -Wl,-rpath,"/usr/lib/omc" -Wl,-rpath,"/usr/lib"     -lSimulationRuntimeC -llapack -lblas -lm -lgc -lpthread -rdynamic
Compilation process exited with code 0

Under Output Tab:

stdout | OMEditInfo | /tmp/OpenModelica_anand/OMEdit/BouncingBall -port=36688 -logFormat=xml -override=startTime=0,stopTime=1,tolerance=1e-6,solver=dassl,outputFormat=mat,variableFilter=.* -dasslJacobian=coloredNumerical -w -lv=LOG_STATS

Any solutions?

Thanks for your help.

Anand

Nov-20-14 14:31:03
What is the correct public directory to place the omlibraries?
Category: Developer

Hello,

I am trying to package omlibraries for Slackware Current. I am placing the libraries in /usr/lib/omlibrary. Is this correct?

Here is my build script:

#!/bin/sh

# Slackware build script for omlibraries

# Copyright 2014 R. S. Ananda Murthy, Mysore, India
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=omlibraries
VERSION=${VERSION:-svn20141118}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf openmodelicalibraries_20141118-193049
tar xvf $CWD/openmodelicalibraries_20141118-193049.tar.xz
cd openmodelicalibraries_20141118-193049
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

autoconf

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr
make install DESTDIR=$PKG

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}

Nov-19-14 15:39:08
SVN Version-23443 build fails on Slackware Current.

Hello sjoelund.se,

SVN23451 built properly. Thank you for your help.

Anand

Nov-19-14 03:04:09
SVN Version-23443 build fails on Slackware Current.

Hello,

Build log is here:


Anand

Nov-04-14 17:58:22
Is it not possible to enable building as root?
Category: Developer

Hello,

Is it possible to enable building this as root? Please note that this is a requirement at www.slackbuilds.org for the buildscript to be included in the repository.

Anand

Nov-03-14 15:21:01
svn23143 build problem.
Category: Developer

Is cppruntime essential?

Can I just do make all?

Anand

Nov-03-14 10:32:01
svn23143 build problem.
Category: Developer

Hello,

On Slackware Current the build log is given below:





Anand

Nov-01-14 16:48:21
svn23120 does not build on Slackware Current.
Category: Developer

Hello,

With --without-omc it worked! Thank you.

Anand

Nov-01-14 01:33:40
svn23120 does not build on Slackware Current.
Category: Developer

Hello,

This is the log:





Anand

Oct-31-14 16:10:31
What is bootstrapping? Why is it needed?
Category: Developer

So,

make NOLIBRARIES=Yes all-runtimeCPPinstall

Is this correct?

Oct-31-14 15:59:46
What is bootstrapping? Why is it needed?
Category: Developer

So, should it be

make NOLIBRARIES=Yes all runtimeCPPinstall

For what purpose is C++ runtime?

Anand

Oct-31-14 15:49:26
What is bootstrapping? Why is it needed?
Category: Developer

In my openmodelica.SlackBuild script file I have:

autoconf

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --build=$ARCH-slackware-linux \
  --with-omniORB \
  --disable-modelica3d \
  --disable-omshell-terminal \
  --without-paradiseo \
  --disable-rml-trace \
  --with-lapack="-llapack -lblas" \
  --with-METIS=/usr \
  --disable-python-interface

make NOLIBRARIES=Yes all
make install DESTDIR=$PKG

Is this not alright?  Should I change it to the lines given in Debian rules file?

Oct-31-14 12:47:14
What is bootstrapping? Why is it needed?
Category: Developer

Hello,

Thank you so much for your reply.

In Debian rules file we have

$(MAKE) $(MAKEFLAGS) NOLIBRARIES=Yes release mosh omlibrary qtclients
$(MAKE) $(MAKEFLAGS) NOLIBRARIES=Yes runtimeCPPinstall
mv build/bin/omc build/bin/omc-bootstrapped

Why cannot we use

make NOLIBRARIES=Yes all

Anand

Oct-31-14 03:46:37
What is bootstrapping? Why is it needed?
Category: Developer

Hello,

This may be a very basic question. Please pardon me. What is the meaning of this? Why is it needed in respect of omc?

Anand

Oct-27-14 04:16:53
Building openmodelica as root is not permitted?
Category: Developer

What is the reason for this restriction?

Anand

Oct-26-14 12:24:15
Building openmodelica as root is not permitted?
Category: Developer

Hello,

When I try to build openmodelica as root it stops with a warning that openmodelica should not be run as root. Can we not build it as root?

Anand

Oct-25-14 16:18:33
Links to download the 1.9.1 Source.
Category: Developer

Hello,

Please give the links for downloading the Version 1.9.1 source file in tar.gz format.

Anand

Oct-25-14 07:15:20
Build Scripts for OpenModelica and OMLibraries available at www.slackbuilds.org
Category: Developer

Hello,

Build scripts for creating packages of OpenModelica and OMLibraries for Slackware 14.1 and Current are now available at www.slackbuilds.org.

Anand

Oct-24-14 15:28:38
SVN-22898 fails to build on Slackware Current.
Category: Developer

Hello,

It worked after I removed the old package. Thanks for your help.

Anand

Oct-24-14 08:40:30
SVN-22898 fails to build on Slackware Current.
Category: Developer

Hello,

Here is the log.




Anand

Oct-19-14 17:35:32
Build Script for packaging OpenModelica Libraries [SUCCESS]
Category: Developer

Hello,

I have successfully built the libraries using the build script given below. I will be upload this at www.slackbuiilds.org.

#---------------------------------------------------------------------
#!/bin/sh

# Slackware build script for omlibrary

# Copyright 2014 R. S. Ananda Murthy, Mysore, India
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=omlibraries
VERSION=${VERSION:-svn190812}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf openmodelicalibraries_20141016-190812
tar xvf $CWD/openmodelicalibraries_20141016-190812.tar.xz
cd openmodelicalibraries_20141016-190812
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

autoconf

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr
make -j2 install DESTDIR=$PKG

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
#-----------------------------------------------------------------------------------

Oct-19-14 17:30:49
Please suggest proper method of building from SVN version.
Category: Developer

Hello,

I have successfully built OpenModelica-SVN22802 on Slackware Current using the build script given below:

I will be uploading this build script at http://www.slackbuilds.org/

#-----------------------------------------------------------------------------------------
#!/bin/sh

# Slackware build script for openmodelica

# Copyright 2014 R. S. Ananda Murthy, Mysore, India
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=openmodelica
VERSION=${VERSION:-svn22802}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf ${PRGNAM}_22802
tar xvf $CWD/${PRGNAM}_22802.orig.tar.gz
cd ${PRGNAM}_22802
fakeroot chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

autoconf

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --build=$ARCH-slackware-linux \
  --with-omniORB \
  --disable-modelica3d \
  --disable-omshell-terminal \
  --without-paradiseo \
  --disable-rml-trace \
  --with-lapack="-llapack -lblas" \
  --with-METIS=/usr \
  --with-qwt \
  --with-BOOST \
  --disable-python-interface
 
make -j2 NOLIBRARIES=Yes all
make -j2 install DESTDIR=$PKG

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

mv $PKG/usr/share/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.txt COPYING REVISION $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc

mkdir -p $PKG/usr/share/applications
mkdir -p $PKG/usr/share/pixmaps
cp ./OMEdit/OMEditGUI/Resources/icons/omedit.png $PKG/usr/share/pixmaps/omedit.png
cp ./OMNotebook/OMNotebookGUI/Resources/OMNotebook_icon.svg $PKG/usr/share/pixmaps/OMNotebook_icon.svg
cp ./OMShell/OMShellGUI/Resources/omshell-large.svg $PKG/usr/share/pixmaps/omshell-large.svg

cat <<EOF > $PKG/usr/share/applications/omedit.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=OMEdit
GenericName=Physical modeling and simulation tool
Comment=A Modelica connection editor
TryExec=OMEdit
Exec=OMEdit %f
Icon=/usr/share/pixmaps/omedit.png
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;Education;Science;Math;
MimeType=text/x-onb;application/x-omnotebook;
EOF

cat <<EOF > $PKG/usr/share/applications/omnotebook.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=OMNotebook
GenericName=Physical modeling and simulation tool
Comment=An open-source software tool for an electronic notebook\nsupporting Modelica.
TryExec=OMNotebook
Exec=OMNotebook %f
Icon=/usr/share/pixmaps/OMNotebook_icon.svg
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;Education;Science;Math;
MimeType=text/x-onb;application/x-omnotebook;
EOF

cat <<EOF > $PKG/usr/share/applications/omshell.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=OMShell
GenericName=Physical modeling and simulation tool
Comment=A complete Modelica modeling, compilation and simulation environment based on free software.
TryExec=OMShell
Exec=OMShell
Icon=/usr/share/pixmaps/omshell-large.svg
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;IDE;
EOF

cd $PKG
fakeroot /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
#---------------------------------------------------------------------------------------------------------------------------

Oct-17-14 01:22:55
Please suggest proper method of building from SVN version.
Category: Developer

Hello,

I installed omniORBpy. After this I did

make -j2 install DESTDIR=/tmp/SBo/package

and got this error message:

(time make -C PythonInterface -f Makefile)
if [ "" = ".app" ]; then mkdir -p /tmp/SBo/package/Applications/MacPorts/; fi
make[1]: Entering directory `/home/anand/Downloads/openmodelica/openmodelica_22761/PythonInterface'
# create directories
mkdir -p /tmp/SBo/package/usr/bin
mkdir -p /tmp/SBo/package/usr/lib/
mkdir -p /tmp/SBo/package/usr/include/omc
mkdir -p /tmp/SBo/package/usr/share/doc//omc/testmodels
mkdir -p /tmp/SBo/package/usr/share/man//man1/
mkdir -p /tmp/SBo/package/usr/share/locale
test ! -d ./build/share/doc/omedit/ || mkdir -p /tmp/SBo/package/usr/share/doc//omedit/
mkdir -p ..//build/lib/python/omniORB
mkdir -p ..//build/share/omc/scripts/PythonInterface/OMPython/OMParser
! which python2.6 || python2.6 setup.py install --no-compile `test -d /etc/apt && echo --install-layout=deb` --prefix=..//build
test ! -d ./build/share//omnotebook/ || mkdir -p /tmp/SBo/package/usr/share//omnotebook/
which: no python2.6 in (/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/blender:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde3/lib/qt3/bin:/opt/kde3/bin:/usr/lib/qt/bin:/opt/sage:/opt/scilab/bin:/usr/lib/smlnj/bin)
! which python2.7 || python2.7 setup.py install --no-compile `test -d /etc/apt && echo --install-layout=deb` --prefix=..//build
test ! -d ./build/share//omshell/nls/ || mkdir -p /tmp/SBo/package/usr/share//omshell/nls/
/usr/bin/python2.7
test ! -d ./build/share//omedit/nls/ || mkdir -p /tmp/SBo/package/usr/share//omedit/nls/
mkdir -p /tmp/SBo/package/usr/share//omc/scripts /tmp/SBo/package/usr/share/omc/java
running install
Checking .pth file support in ..//build/lib/python2.7/site-packages/
/usr/bin/python2.7 -E -c pass
TEST FAILED: ..//build/lib/python2.7/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    ..//build/lib/python2.7/site-packages/

and your PYTHONPATH environment variable currently contains:

    ''

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

  https://pythonhosted.org/setuptools/eas … -locations

Please make the appropriate changes for your system and try again.
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/anand/Downloads/openmodelica/openmodelica_22761/PythonInterface'

real    0m0.185s
user    0m0.152s
sys    0m0.020s
make: *** [install-python] Error 2

Oct-16-14 04:44:11
Please suggest proper method of building from SVN version.
Category: Developer

Hello,

I am now able to build SVN Version 22761 on Slackware Current  by following the same sequence given in rules for Debian build!!

But when I try to

make -j2 install DESTDIR=/tmp/SBo/package > out-6.log 2>&1

I get the error message given in the log file below:

(time make -C PythonInterface -f Makefile)
if [ "" = ".app" ]; then mkdir -p /tmp/SBo/package/Applications/MacPorts/; fi
make[1]: Entering directory `/home/anand/Downloads/openmodelica/openmodelica_22761/PythonInterface'
# create directories
mkdir -p /tmp/SBo/package/usr/bin
mkdir -p /tmp/SBo/package/usr/lib/
mkdir -p /tmp/SBo/package/usr/include/omc
mkdir -p /tmp/SBo/package/usr/share/doc//omc/testmodels
mkdir -p /tmp/SBo/package/usr/share/man//man1/
mkdir -p /tmp/SBo/package/usr/share/locale
test ! -d ./build/share/doc/omedit/ || mkdir -p /tmp/SBo/package/usr/share/doc//omedit/
mkdir -p ..//build/lib/python/omniORB
mkdir -p ..//build/share/omc/scripts/PythonInterface/OMPython/OMParser
omniidl -bpython -Wbglobal=_OMCIDL -Wbpackage=OMPythonIDL ..//Compiler/runtime/omc_communication.idl
test ! -d ./build/share//omnotebook/ || mkdir -p /tmp/SBo/package/usr/share//omnotebook/
test ! -d ./build/share//omshell/nls/ || mkdir -p /tmp/SBo/package/usr/share//omshell/nls/
test ! -d ./build/share//omedit/nls/ || mkdir -p /tmp/SBo/package/usr/share//omedit/nls/
mkdir -p /tmp/SBo/package/usr/share//omc/scripts /tmp/SBo/package/usr/share/omc/java
omniidl: Could not import back-end 'python'
omniidl: Maybe you need to use the -p option?
omniidl: (The error was 'No module named python')
make[1]: *** [OMPythonIDL/omc_communication_idl.py] Error 1
make[1]: Leaving directory `/home/anand/Downloads/openmodelica/openmodelica_22761/PythonInterface'

real    0m0.027s
user    0m0.020s
sys    0m0.003s
make: *** [install-python] Error 2

Any solutiions?

Anand

Oct-14-14 04:58:30
Please suggest proper method of building from SVN version.
Category: Developer

Hello,

One more trial of compiling. Here are the log files:





I did ./configure --prefix=/usr --disable-omshell-terminal --with-omniORB --disable-modelica3d --without-paradiseo --disable-rml-trace --with-lapack="-llapack -lblas"

Then,

make -j2 NOLIBRARIES=Yes release mosh omlibrary qtclients > out-4.log 2>&1

After make stops build/bin does not contain any files !!

What is going on?

Anand

Oct-13-14 19:06:41
Please suggest proper method of building from SVN version.
Category: Developer

Hello,

Again failed to build even --without-paradiseo. Here are the logs.







Anand

Oct-13-14 16:00:37
Please suggest proper method of building from SVN version.
Category: Developer

Hello,

Which version of paradiseo should I use?

Anand

Oct-13-14 15:53:06
Please suggest proper method of building from SVN version.
Category: Developer

Hello,

Even SVN Version 22729 failed to build with the error messages shown below.







Should I disable RML-MMC?

Anand

Oct-13-14 02:41:32
Please suggest proper method of building from SVN version.
Category: Developer

Hello,

Please see the log files here:





Anand

Oct-12-14 17:40:53
Please suggest proper method of building from SVN version.
Category: Developer

How do I log the messages generated by make?

Oct-12-14 14:41:10
Please suggest proper method of building from SVN version.
Category: Developer

Hello,

This is the error message:

ar -s -r libomcruntime.a Error_omc.o Print_omc.o System_omc.o Settings_omc.o IOStreamExt_omc.o ErrorMessage.o FMI_omc.o systemimplmisc.o UnitParserExt_omc.o unitparser.o BackendDAEEXT_omc.o Socket_omc.o matching.o matching_cheap.o Database_omc.o Dynload_omc.o SimulationResults_omc.o TaskGraphResults_omc.o HpcOmSchedulerExt_omc.o HpcOmBenchmarkExt_omc.o ptolemyio_omc.o Lapack_omc.o getMemorySize.o GraphStreamExt_omc.o omc_communication.o omc_communication_impl.o Corba_omc.o
ar: creating libomcruntime.a
cp libomcruntime.a ../../build/lib/omc/
make[4]: Leaving directory `/home/anand/Downloads/openmodelica/openmodelica_22725/Compiler/runtime'
make[3]: Leaving directory `/home/anand/Downloads/openmodelica/openmodelica_22725/Compiler/omc_release'
make[2]: Leaving directory `/home/anand/Downloads/openmodelica/openmodelica_22725/Compiler/omc_release'
make[1]: Leaving directory `/home/anand/Downloads/openmodelica/openmodelica_22725'
make: *** [all] Error 2

This is the config.log:


I did make -j4 while building.

Anand

Oct-12-14 10:00:07
Please suggest proper method of building from SVN version.
Category: Developer

Hello,

I have been struggling to build the SVN-22725 version on Slackware Current. I have all the dependencies installed as per instructions given in README.Linux.txt. This is my configure line:

./configure --prefix=/usr --disable-omshell-terminal --with-omniORB --disable-modelica3d

After this I am giving the command

make

Build runs for some time and stops after about nearly one and half hour with error message.

Please suggest the correct method to configure and make and also all the dependencies which are essential to build. This would help a lot to make pre-compiled package of OpenModelica for Slackware.

Thanks for your help.

Anand

Oct-10-14 17:22:50
Can you please provide facility to generate a .tar.gz or .tar.bz2 file of the svn version of the...
Category: Developer

Hello,

Can you please provide .tar.gz or .tar.bz2 file of the svn version of the source? Or is there already a link to it for downloading?

Anand

Oct-10-14 17:03:36
Why is RML-MMC needed?
Category: Developer

So, is it recommended to use ./configure --without-rml?

Anand

Oct-10-14 15:35:20
Why is RML-MMC needed?
Category: Developer

Hello,

What functionalities will be provided by rml-mmc in OpenModelica? What are the disadvantages of building OpenModelica with the configure option --without-rml?

Thanks for your information.

Anand

Oct-07-14 08:33:18
How does OpenModelica differ from Xcos?

Hello,

Does OpenModelica have same capabilities as Xcos? Is there any comparative study?

Thank you for your help.

Anand

Oct-05-14 13:40:39
SVN version configure does not find libreadline in Slackware Current.

Hello,

Do you suggest recompiling readline with some modified switches as it is in Debian?

Anand

Oct-05-14 13:25:07
SVN version configure does not find libreadline in Slackware Current.

Hello,

I have attached config.log file here.



Anand

Oct-05-14 12:25:32
SVN version configure does not find libreadline in Slackware Current.

link /usr/lib/libreadline.so to /usr/lib/libreadline.so.5.2 is already present.

Anand

Oct-05-14 12:20:41
How do I install nightly builds?

Hello,

I am trying to run nightly builds on Slackware Current machine.

Anand

Oct-05-14 11:46:47
How do I install nightly builds?

Hello,

Please explain how to install nightly builds. Are they self-contained or do they need any dependencies to be installed?

Anand

Oct-05-14 11:43:27
SVN version configure does not find libreadline in Slackware Current.

Hello,

I have

/usr/lib/libreadline.so.5.2
/usr/lib/libreadline.a
/usr/lib/libhistory.so.5.2
/usr/lib/libhistory.so.a

Anand

Oct-05-14 08:30:49
SVN version configure does not find libreadline in Slackware Current.

The Slackware system on which I am trying to build OpenModelica has readline-5.2. It has all header files located in /usr/include/readline.
It also has /usr/include/readline/history.h file.

As you can notice in the messages output by configure, it is even detecting /usr/include/readline/history.h file. But later it is reporting that readline is not found.

Anand

Oct-05-14 07:25:22
SVN version configure does not find libreadline in Slackware Current.

Hello,

I am trying to create a pre-built package of OpenModelica on Slackware Current. After getting the source from SVN if I try to configure I get this error message:

checking for antlr.Tool support... ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
yes
checking if the user wants to compile OMShell-terminal... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for library containing readline... no
configure: error: readline missing

I am sure that readline is installed. Any solutions?

Thanks in advance.

Anand

  • Index
  • » Users
  • » rsamurti
  • » Profile
You are here: