SCM

Discussion Forums: help

Monitor Forum | Start New Thread Start New Thread

 

RE: Pb Compilation RendererWidget [ reply ]
By: Emmanuel Promayon on 2016-11-15 07:14
[forum:3841]
Great news!

It is bizarre that a problem with accents in directory can lead to compilation error.
Make sure that you have ".UTF-8" at the end of all your locale.
E.g. on my machine:
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_IE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

I don't know how to change this on gentoo, but it should be similar to this (for debian):
$ sudo locale-gen "en_US.UTF-8" # you can replace en_US by fr_FR for instance
$ sudo dpkg-reconfigure locales # this is where you will have to find the gentoo equivalent

Have a nice CamiTK time!
Mahnu

RE: Pb Compilation RendererWidget [ reply ]
By: Guillaume Claus on 2016-11-15 00:05
[forum:3840]
Oh shame on me !

Your last minute though leads me to the solution :
my path for the camitk build directory has accented characters : (".../Téléchargements/...")
When I compile in a path without such chars, there's no problem..

Thank you again for all your help.
I could begin to work....

Regards,
Guillaume

RE: Pb Compilation RendererWidget [ reply ]
By: Emmanuel Promayon on 2016-11-13 21:39
[forum:3839]
Whoopsidaisies!
Everything seems to be fine on all the logs. I am quite puzzled.

Can you send the log of the following:
VERBOSE=1 make &> make.log

That might help us find the culprit.
And last minute thought, as I can see that your system is in french (not sure if it has do not anything, but there is no obvious other thing): can you send the result of the "locale" command?

Thank you in advance,
Mahnu

RE: Pb Compilation RendererWidget [ reply ]
By: Guillaume Claus on 2016-11-08 06:36
[forum:3838]

logs.tar (7) downloads
I use the 4.0.3 camitk version from the tar.gz file

you can find the two log files in the joined tar file.

I've try with the correction in the CMakeList.txt file but with no improvement.

Regards,
Guillaume

RE: Pb Compilation RendererWidget [ reply ]
By: Emmanuel Promayon on 2016-11-07 21:01
[forum:3837]
Gasp!

One question:
- which version of camitk are your trying to compile? 4.0.3 downloaded from the tar.gz or the develop version from a git clone?

The best to help you would be to follow this procedure:
1. Let say that CAMITK_SRC is the directory where you have cloned/untar the camitk source
2. In a bash shell type:
BUILD_DIR=$(mktemp -d)
cd $BUILD_DIR
cmake $CAMITK_SRC &> cmake.log
make &> make.log
3. Attach $BUILD_DIR/*.log files to your post (or a zip version if they are too big for the forum size limit)

Thank you in advance,
Mahnu


PS : just one last thing, the 4.0.3 tarball has one little bug in the top directory CMakeLists.txt that override the compiler flags. It is not a problem in most cases, but it might be worse try to patch it.
Here is how:
Line 38 of the top directory CMakeLists.txt in the 4.0.3 tarball is:
set(CMAKE_CXX_FLAGS "-std=c++11")
Please try to change it to:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")


RE: Pb Compilation RendererWidget [ reply ]
By: Guillaume Claus on 2016-11-07 06:40
[forum:3836]
My system is a 64bits
my g++ version is 4.9.3
my xsd version was 3.3.0. I have installed the 4.0.0 version but the problem is still there....

Regards
Guillaume

RE: Pb Compilation RendererWidget [ reply ]
By: Emmanuel Promayon on 2016-11-04 22:41
[forum:3835]
Great news about VTK 6.3. Glad to hear it was solved by upgrading the VTK version.
Your new problem might be of similar origin. I have never seen this one before with xsdcxx.length_error is very unusual!

By any chance are you on a 32bits system?

What version of CodeSynthesis XSD are you using? On my machine, it is version 4.0.0.
What is the result of "xsdcxx --version" ?

Mahnu

RE: Pb Compilation RendererWidget [ reply ]
By: Guillaume Claus on 2016-11-04 07:13
[forum:3834]
I have installed VTK 6.3.0 and now the compilation of RendererWidget is now OK.
But now another problem emerge :

Generating ClassName.hxx, ClassName.cxx
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::resize
/bin/sh : ligne 1 : 23376 Abandon /usr/bin/xsdcxx cxx-tree --generate-polymorphic --generate-serialization --namespace-map =cepcoreschema --polymorphic-type Method --polymorphic-type Criteria /home/guill/Documents/Téléchargements/Logiciels/camitk-4.0.3-Source/sdk/libraries/cepcoreschema/ClassName.xsd
sdk/libraries/cepcoreschema/CMakeFiles/library-cepcoreschema.dir/build.make:271 : la recette pour la cible « sdk/libraries/cepcoreschema/ClassName.hxx » a échouée
make[2]: *** [sdk/libraries/cepcoreschema/ClassName.hxx] Erreur 134
CMakeFiles/Makefile2:1414 : la recette pour la cible « sdk/libraries/cepcoreschema/CMakeFiles/library-cepcoreschema.dir/all » a échouée
make[1]: *** [sdk/libraries/cepcoreschema/CMakeFiles/library-cepcoreschema.dir/all] Erreur 2
Makefile:160 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2

any idea ?
Many thanks again for your help

Guillaume

RE: Pb Compilation RendererWidget [ reply ]
By: Emmanuel Promayon on 2016-11-02 12:30
[forum:3833]
Oh, yes, I now remember the gentoo philosophy!

Could you try with VTK 6.3. I am just guessing here, but it might be some problem with the version 6.1 and macros.
On my machine (debian jessie), I am using VTK6.3 compiled from source and I did not get this error.

I used this cmake command line to configure VTK:
cmake ../VTK-6.3.0 -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DVTK_QT_VERSION=5 -DVTK_Group_Qt=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/opt/vtk6 ../VTK-6.3.0

(modify CMAKE_INSTALL_PREFIX as you wish of course)

The current version of g++ on my machine is 4.9.2

Let me know if it helps.
Mahnu

RE: Pb Compilation RendererWidget [ reply ]
By: Guillaume Claus on 2016-11-02 11:10
[forum:3832]
Hello Emmanuel,

The gentoo philosophy is to install all software from source.

The VTK version seems to be right :
Found suitable version of VTK : 6.1.0 (required is at least 6.0.0)

Thank you for your help

Best regards,
Guillaume


RE: Pb Compilation RendererWidget [ reply ]
By: Emmanuel Promayon on 2016-11-02 09:35
[forum:3831]
Hello Guillaume,

The error message you have seems to come from a vtk macro:
At line 101 of RendererWidget, the code read:
vtkStandardNewMacro(vtkInteractorStylePick);

I am not familiar with gentoo, but it seems that you may not have the right version of VTK.
Did you install VTK 6.x or 7.x ?
If VTK6 or VTK7 are not directly supported with package on your Gentoo version, you might have to compile it from source.

What are the first lines of output you have when you run cmake to configure CamiTK? (I am looking for a line that gives the VTK version)?

Best regards,
Mahnu

Pb Compilation RendererWidget [ reply ]
By: Guillaume Claus on 2016-10-30 11:21
[forum:3830]
Hello,

I'm Guillaume, and I'm doing my Master 1 training course at TIMC-GMCAO.

I'm trying to compile CamiTK from sources (I'm under Linux-Gentoo)
and I get this error :
[...]/camitk-4.0.3-Source/sdk/libraries/core/viewer/RendererWidget.cpp:101:1: error:
redefinition of 'vtkInstantiatorvtkInteractorStylePickNew'

Have you any idea to solve that problem ?
Thank you for your help.

Guillaume



   
Powered By FusionForge