instructions to compile OpenVSP for Ubuntu_18.04 and Mint_19

1,095 views
Skip to first unread message

marco

unread,
Oct 7, 2018, 5:25:48 AM10/7/18
to OpenVSP
This is the recipe that got OpenVSP compiled on my Linux Mint 19 machine.
That should also work for Ubuntu 18.04 as Mint is based on that distro.
Warning I have no real idea what I am doing, I just followed known recipes.
Compiled for python interfacing but untested as I have no idea how to work with python yet.


OpenVSP_for_ Ubuntu_18.04_instructions.txt

Saulo Barbosa Oliveira

unread,
Mar 12, 2019, 8:09:50 PM3/12/19
to OpenVSP
hi marco, 

i'm stuck at:

CMakeFiles/Makefile2:680: recipe for target 'vsp_graphic/CMakeFiles/vsp_graphic.dir/all' failed


Seems to be related to this library:

/usr/include/glm/gtc/matrix_transform.inl:11:37: note:   template argument deduction/substitution failed:

i'm really lost here, if someone have any idea about it..

Saulo Barbosa Oliveira

unread,
Mar 12, 2019, 11:05:27 PM3/12/19
to OpenVSP
OK, i delete everything and very painfully i was able to solve most of paths errors and stuff, no i'm stuck in:


[ 83%] Linking CXX shared module _vsp_g.so
/usr/bin/ld: /home/sbo/OpenVSP/buildlibs/LIBXML2-prefix/lib/libxml2.a(uri.o): relocation R_X86_64_PC32 against symbol `xmlFree' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
python_api/CMakeFiles/_vsp_g.dir/build.make:146: recipe for target 'python_api/_vsp_g.so' failed
make[2]: *** [python_api/_vsp_g.so] Error 1
CMakeFiles/Makefile2:2405: recipe for target 'python_api/CMakeFiles/_vsp_g.dir/all' failed
make[1]: *** [python_api/CMakeFiles/_vsp_g.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Seems to bem related to libXML2.so again. i had to remake the symbolic link to libXML2.so.1. the buildlibs was compiled with diferent libxml2 ?

should i use -DVSP_USE_SYSTEM_LIBXML2=true on cmake to compile the buildlibs?

Em terça-feira, 12 de março de 2019 21:09:50 UTC-3, Saulo Barbosa Oliveira escreveu:
hi marco, 

i'm stuck at:

CMakeFiles/Makefile2:680: recipe for target 'vsp_graphic/CMakeFiles/vsp_graphic.dir/all' failed

marco

unread,
Mar 13, 2019, 2:49:46 PM3/13/19
to OpenVSP
uhmm,. i'm not a real wizzard with compiling stuff and it's been a while since I did this the last time, so i am sorry i can't help you here.
Please tell us what you did if you do get it going on your computer.
Do you really need the python_api? as I understand it is only needed if you wish to interface with OpenVSP through your own scripts.
If I would come across the above error I would first try to get it working without the python api.

Liam McQuellin

unread,
Apr 19, 2019, 9:34:31 AM4/19/19
to OpenVSP
Hi Marco,

Just letting you know this procedure worked for me as directed and successfully built in Ubuntu Mate 18.04.

Thanks for this!

Liam
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

marco

unread,
Apr 28, 2019, 5:13:40 AM4/28/19
to OpenVSP
Thanks for the feedback Liam, glad it was of use, though I can't really take credit cuz it is just a mix'nmatch from other peoples instructions.

To Saulo Barbosa Olivaira, I just finished reinstalling and followed the same instruction set, I did not encounter your problem, I hope things worked out for you in the end.

I recently read that OpenVSP will also compile with python3 and as I've just freshly installed Linux_Mint_19.1 on my computer and had to get OpenVSP back I decided to update the instruction set. I've attached it to this post.
Most notable change is the quick FLTK fix that didn't work anymore, I added
$ sudo cp ../buildlibs/FLTK-prefix/bin/fluid /usr/bin/fluid
that seemed to take care of it.
The rest of the instructions are unchanged except for some updated paths.
and I added some stuff that got the python_API working for me without errors

Again the disclaimer: I don't know what I am doing and things are untested.
OpenVSP-3.17.0_for_ LinuxMint-19.1_instructions.txt

Saulo Barbosa Oliveira

unread,
Apr 30, 2019, 8:28:44 PM4/30/19
to OpenVSP
It works on ubuntu 19.04 (at least on my desktop, i will try on my notebook too!) ! 
thanks marco! really appreciate your help!

i believe it's time to some PPA for OpenVSP.. i really don't know how to create it but i will start to study about it

best regards,
sbo

Saulo Barbosa Oliveira

unread,
Apr 30, 2019, 8:31:36 PM4/30/19
to OpenVSP
I forgot to say:

i don't have Anaconda installed, so i had to tweak a little more!

Rob McDonald

unread,
Apr 30, 2019, 8:59:07 PM4/30/19
to ope...@googlegroups.com
I would love for someone to pursue creating a proper *.deb package for OpenVSP.

I believe it could be integrated into the CMake build system and when combined with TravisCI and/or another build service, we could readily have *.deb packages for a variety of versions of Linux.

Rob


--
You received this message because you are subscribed to the Google Groups "OpenVSP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

marco

unread,
May 1, 2019, 2:00:03 AM5/1/19
to OpenVSP
I just noticed this commit

Fixes bug caused by CMake >v3.9 using LIBXML2_LIBRARY instead of LIBXML2_LIBRARIES

So presumably the part for LIBXML patch in my instructions can be omitted now
Reply all
Reply to author
Forward
0 new messages