Hi,
there is a problem with openEMS install on my new PC (installation on previous one worked fine). I have:
Intel® Core™ i5-4690 CPU @ 3.50GHz × 4
32GB
Intel® Haswell Desktop
with ubuntu 14.04 LTS
I'm doing:
cd /tmp
wget http://openems.de/download/src/openEMS-v0.0.34.tar.bz2
tar jxf openEMS-v0.0.34.tar.bz2
cd openEMS
./update_openEMS.sh ~/opt/openEMS
after that it says:
make failed, build incomplete,...
the log is attached.
Could anyone suggest something?
Can't install on Ubuntu 14.04
Moderators: thorsten, sebastian
Can't install on Ubuntu 14.04
- Attachments
-
build_20160527_151805.log
- log file
- (7.19 KiB) Downloaded 537 times
Re: Can't install on Ubuntu 14.04
Hi,
sounds like you missed to install the devel packages for CGAL?
regards
Thorsten
sounds like you missed to install the devel packages for CGAL?
Code: Select all
sudo apt-get install libcgal-dev
Thorsten
Re: Can't install on Ubuntu 14.04
Hi, Thorsten
thanks for reply!
Indeed I followed step by step instruction from wiki (http://openems.de/index.php/Compile_from_Source) including this line:
sudo apt-get install build-essential git cmake libhdf5-dev libvtk5-dev libboost-all-dev libcgal-dev libtinyxml-dev libqt4-dev libvtk5-qt4-dev
the package libcgal-dev was installed.
It still stops at some CSXCAD step (the log is attached)...
thanks for reply!
Indeed I followed step by step instruction from wiki (http://openems.de/index.php/Compile_from_Source) including this line:
sudo apt-get install build-essential git cmake libhdf5-dev libvtk5-dev libboost-all-dev libcgal-dev libtinyxml-dev libqt4-dev libvtk5-qt4-dev
the package libcgal-dev was installed.
It still stops at some CSXCAD step (the log is attached)...
Re: Can't install on Ubuntu 14.04
UPD:
I have some progress (hopefully) with this.
That problem seemed to be with CGAL, like you suggest. It didn't find AABB_face_graph_triangle_primitive.h in /include/ directory.
I tried to reinstall CGAL from thesource, then I realized that it need some "gmp" and "mpfr" which also were not installed. Finally it was maked and installed without errors.
After that the log from openEMS become much longer, but it shows an error:
/usr/bin/ld: /usr/local/lib/vtk-5.10/libvtkCommon.a(vtkMatrix4x4.cxx.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/vtk-5.10/libvtkCommon.a: error adding symbols: Bad value
I tried to reinstall VTK from source, but installed VTK7 and it seems that was wrong.
Now i'm trying to return to vtk5, but i cant' uninstall vtk7! It still says that it found vtk7 on installation process.
I will appreciate any help...
I have some progress (hopefully) with this.
That problem seemed to be with CGAL, like you suggest. It didn't find AABB_face_graph_triangle_primitive.h in /include/ directory.
I tried to reinstall CGAL from thesource, then I realized that it need some "gmp" and "mpfr" which also were not installed. Finally it was maked and installed without errors.
After that the log from openEMS become much longer, but it shows an error:
/usr/bin/ld: /usr/local/lib/vtk-5.10/libvtkCommon.a(vtkMatrix4x4.cxx.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/vtk-5.10/libvtkCommon.a: error adding symbols: Bad value
I tried to reinstall VTK from source, but installed VTK7 and it seems that was wrong.
Now i'm trying to return to vtk5, but i cant' uninstall vtk7! It still says that it found vtk7 on installation process.
I will appreciate any help...
- Attachments
-
build_20160530_182844.log
- (30.27 KiB) Downloaded 484 times
Re: Can't install on Ubuntu 14.04
Hi,
I use Ubuntu too, but I never installed any libs from source, I always used the Ubuntu ones. Very strange.
CGAL from Ubuntu should work fine. But I haven't used 14.04 for a long time.
I guess you didn't compiled vtk correctly (without Qt support as it seems).
Please just use vtk as supplied by Ubuntu.
That said, I think you can just remove "/usr/local/lib/vtk-5.10" ?
regards
Thorsten
I use Ubuntu too, but I never installed any libs from source, I always used the Ubuntu ones. Very strange.
CGAL from Ubuntu should work fine. But I haven't used 14.04 for a long time.
I guess you didn't compiled vtk correctly (without Qt support as it seems).
Please just use vtk as supplied by Ubuntu.
That said, I think you can just remove "/usr/local/lib/vtk-5.10" ?
regards
Thorsten
Re: Can't install on Ubuntu 14.04
Hi, Thorsten
finally, after a lot of semi-random manipulations (incuding upgrading fo ubuntu from 14.04 to 16.04) everything seems work well.
It seems what really helps is:
1) remove vtk7 physically from /usr/local/lib/cmake - after that the script stoped to refer to VTK7
2) sudo apt-get install libvtk6-dev libvtk6-qt-dev
don't know what does it mean and what of these packages really helped, but after this line openEMS was installed correctly, at least this http://openems.de/index.php/Tutorial:_First_Steps works well!
Many thanks for your help, and for the beautiful code you share!
finally, after a lot of semi-random manipulations (incuding upgrading fo ubuntu from 14.04 to 16.04) everything seems work well.
It seems what really helps is:
1) remove vtk7 physically from /usr/local/lib/cmake - after that the script stoped to refer to VTK7
2) sudo apt-get install libvtk6-dev libvtk6-qt-dev
don't know what does it mean and what of these packages really helped, but after this line openEMS was installed correctly, at least this http://openems.de/index.php/Tutorial:_First_Steps works well!
Many thanks for your help, and for the beautiful code you share!
Re: Can't install on Ubuntu 14.04
Hi,
I found the problem for your Ubuntu 14.04. It was this "fix".
I have committed at fix and updated the linux source package...
If that is the case for you, switch to VTK5.x + Qt4.
VTK6.x + Qt4 would be ok, but is not possible on Ubuntu (unless you build it yourself).
regards
Thorsten
I found the problem for your Ubuntu 14.04. It was this "fix".
I have committed at fix and updated the linux source package...
One more note. I do not recomment using vtk6 on Ubuntu at this time. The combination Qt5+vtk6 on Linux has a nasty bug that makes AppCSXCAD very laggy... It only got fixed with Qt5.6 but even 16.04 does not have this new Qt version...2) sudo apt-get install libvtk6-dev libvtk6-qt-dev
If that is the case for you, switch to VTK5.x + Qt4.
VTK6.x + Qt4 would be ok, but is not possible on Ubuntu (unless you build it yourself).
regards
Thorsten