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

How to build OpenModelica v1.17.0 with OpenSceneGraph on Linux ?

How to build OpenModelica v1.17.0 with OpenSceneGraph on Linux ?

Hi,

What is the configure option to build OpenModelica with OpenSceneGraph dependency to have 3D support ?

I work on Linux.

Many thanks

Re: How to build OpenModelica v1.17.0 with OpenSceneGraph on Linux ?

What Linux distro do you have?

Re: How to build OpenModelica v1.17.0 with OpenSceneGraph on Linux ?

My distro is centos 8.

I build OpenModelica from git repo. I clone recursively OpenModelica and all its dependencies from github. My build works well.

But when I analyze the makefile for the component "OMEditLIB", the makefile contains the flag "-DWITHOUT_OSG".  I would like to know what is the configure option to change this flag .

Many thanks

Extract of the makefile
------------------------------

MAKEFILE      = Makefile

EQ            = =

####### Compiler, tools and options

CC            = /devops/AGL/Linux/x86_64/CSCI_COMPILER-master/release/bin/clang
CXX           = /devops/AGL/Linux/x86_64/CSCI_COMPILER-master/release/bin/clang++
DEFINES       = -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_SVG_LIB -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB
CFLAGS        = -g -O2 -DWITHOUT_OSG -g -fPIC -Wall -Wextra -D_REENTRANT $(DEFINES)
CXXFLAGS      = -DWITHOUT_OSG -isystem . -isystem ../ -isystem /devops/SOFT/CLUSTER/CLUSTER_OPENMODELICA/master/build/clang/Qt_5.15.1/Linux/x86_64/

Re: How to build OpenModelica v1.17.0 with OpenSceneGraph on Linux ?

As far as I know we do have WITH_OSG on by default so it seems to be some configure issue when detecting how to use osg + qt.
Search in OMEdit/config.log for OSG and see where it fails to use OSG. There should be some compilation tries with OSG and one of them is failing.

Re: How to build OpenModelica v1.17.0 with OpenSceneGraph on Linux ?

Start looking here: https://github.com/OpenModelica/OpenMod … ure.ac#L70
You can also look in OMEdit/config.log to see what is happening there.

Re: How to build OpenModelica v1.17.0 with OpenSceneGraph on Linux ?

HI,

I find an issue in https://github.com/OpenModelica/OpenMod … nfigure.ac file.

On my computer, OpenSceneGraph is installed in a non standard path.

So, my script to build is :

export CPPFLAGS="-I/path/to/OSG/include"
export LDFLAGS="-L/path/to/OSG//lib64"

CONFIGURE_OPTIONS="--prefix=/path/to/my/prefix"
       
CONFIGURE_OPTIONS="${CONFIGURE_OPTIONS} CC=/path/to/my C compiler"
CONFIGURE_OPTIONS="${CONFIGURE_OPTIONS} CXX=/path/to/my C++ compiler"

./configure ${CONFIGURE_OPTIONS}

I see in the config.log file that "ac_cv_env_CPPFLAGS_value" and "ac_cv_env_LDFLAGS_value" variables are well initialized but these variables are not used to generate makefile.

I continue to investigate.

There are 0 guests and 0 other users also viewing this topic
You are here: