First of all, your English looks pretty good!

OK, let's see if I can address all of the issues:

1. Make sure you downloaded the 3 files that were needed for installing
   Qt 4.8.2, namely the file "qt-win64-opensource-4.8.2-vs2008.exe" and
   the two associated "*.bin" files. The 3 files should be placed in
   the same folder before running the installer.
2. In CMake, define the variable "QT_MAKE_EXECUTABLE" to use the path
   "C:/Qt/4.8.2_x64/bin/qmake.exe" (adjust accordingly if necessary)
   and then click on "Configure" once again. Hopefully it will now pick
   up everything related to Qt.
    1. Mmm... still regarding this point, if you in fact gave the
       correct path, it might not work properly if the Qt installation
       is somehow incomplete. This happened to me when I tried to
       configure the project with CMake, while I was still midway of
       the installation of Qt.
    2. Furthermore, there was a detail I forgot to write on the wiki
       page, but when using MSVC 2008 Express, by default it does not
       provide the ability to compile 64-bit applications. Instructions
       on how to do so can be found online, for example here:
       
https://github.com/enGits/engrid/wiki/Configure-Microsoft-Visual-Studio-2008-Express-to-also-build-for-Windows-x64
    3. And there is yet another import detail: when you configure the
       project in CMake's GUI for the first time, it asks you which
       compiler to use. Make sure you pick "Visual Studio 9 2008
       Win64". If you pick the standard non-Win64, it's natural that
       the 64-bit "qmake.exe" is incompatible with the 32-bit Visual
       Studio build options.
3. Regarding the files you've provided in attachment:
    1. The XML looks OK. I only have some experience with creating
       these types of XML file, so I'm not yet able to point out any
       major flaws without looking into ParaView's own XML
       filter/reader files. The complete XML file I'm referring to is
       in the folder
       "ParaViewCore\ServerManager\SMApplication\Resources" in
       ParaView's source code.
    2. The "CMakeLists.txt" looks OK as well, but again, I don't have
       enough experience on this. Only by trial and error would I be
       able to see if your file is working properly.
    3. I suggest that you first try building the plug-in
       "vtkPOFFReader", just to confirm if you have a working building
       environment. This way it'll be easier to isolate the origin of
       any problems.
4. "I have Visual C++ Express 2008 on my computer so is it normal to
   get this message ?"*/
   /*
     * Yes, it's normal. It happens to me as well and it works without
       any problems.
5. Due to how ParaView was built in this case, I think it's best to use
   Qt 4.8.2 (namely with the respective architecture), just in case. I
   say this because there are a lot of library dependencies that are
   automatically configured and it might get a bit complicated to push
   aside the existing dependencies on Qt.

I hope I didn't miss anything.

Best regards,
Bruno

On 11-08-2014 17:01, Jérémy Santina wrote:
Thank you very much for your answer.

I am sorry for my awful English and I hope you'll understand what I am writing.

I read the email you sent and I tried to build my reader following the instructions provided here : https://code.google.com/p/unofficial-paraview-dev-install/wiki/vtkPOFFReaderBuilds

First of all, I downloaded this archive : ParaView-4.1.0-win64-complete_dev-r2.exe <http://sourceforge.net/projects/bluecfd-sc/files/unofficial-paraview-dev-install/ParaView-4.1.0/ParaView-4.1.0-win64-complete_dev-r2.exe/download> Then I installed Qt 4.8.2 from here : https://code.google.com/p/qt-msvc-installer/. Finally when I am trying to configure my reader with the CMake GUI, the QT_MAKE_EXECUTABLE can't be found even if I select qmake.exe directly from the path.

In fact I am a beginner and I don't really know how to use CMake. I modified the CMakeLists.txt that I found here : http://sourceforge.net/p/of-interfaces/code/HEAD/tree/trunk/vtkPOFFReader/ but I am not sure about what I wrote. My CMakeLists file is joined with this message.

Besides, I noticed that when I am executing /qt-win64-opensource-4.8.2-vs2008.exe, /a dialog box with the following message is opened :

/A installation of Visual Studio 2008 was not found in the registry , guessing path.../

In spite of that, the installation seems to work perfectly fine but : I have Visual C++ Express 2008 on my computer so is it normal to get this message ?

To finish, I would like to ask you one last question :
Given I didn't develop any GUI feature for my reader, do I still need QT ?

I thank you again for your help.

Jérémy


2014-08-08 18:49 GMT+02:00 Bruno Santos <bruno.san...@bluecape.com.pt <mailto:bruno.san...@bluecape.com.pt>>:

    Greetings Jérémy,

    If you had provided the XML file, it would have been a bit easier
    to diagnose this ourselves.
    Nonetheless, it seems to me that the issue is that the
    class/library "vtkPTecplotBinaryReader" is simply not loadable. A
    bit of searching online and in ParaView's source code leads me to
    believe that only the class "vtkTecplotReader" is available for
    loading through an XML only plug-in.

    If the class "vtkPTecplotBinaryReader" is a custom library you've
    built/created from source code, then have a look at a recent email
    I sent to this very same mailing list:
    http://public.kitware.com/pipermail/paraview/2014-August/031817.html

    Best regards,
    Bruno


    On 05-08-2014 15:48, Jérémy Santina wrote:
    Hello,

    I have written my own reader for ParaView and I am facing with
    some issues.

    My version of ParaView is 4.1 for Windows-64 bit and I didn't
    build it from sources.

    As the wiki
    <http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_a_Reader>
    describes, I wrote a Server Manager XML file.
    Then I set the environment flag PV_PLUGIN_DEBUG.

    Everything seems to work fine when I load the reader with Plugin
    Manager as the output messages dialog box indicates :

    ***************************************************

    Attempting to load
    
C:\Users\Windows\Documents\Travail\ParaviewProject\VTKReaders\Plugin\TecplotBinaryReader.xml

    Loading XML plugin

    Plugin instance located successfully. Now loading components from
    the plugin instance based on the interfaces it implements.

    ----------------------------------------------------------------

    Plugin Information:

    Name : TecplotBinaryReader

    Version : 1.0

    ReqOnServer : 1

    ReqOnClient : 0

    ReqPlugins :

    ServerManager Plugin : Yes

    Python Plugin : No


    But when I try to open a file, ParaView crashes and I get the
    following error message :

    ERROR: In
    
C:\DBD\pvs-x64\paraview\src\paraview\ParaViewCore\ServerImplementation\Core\vtkSIProxy.cxx,
    line 307

    vtkSISourceProxy (000000000B340ED0): Failed to create
    vtkPTecplotBinaryReader. Aborting for debugging purposes.


    What am I doing wrong ?


    Thanks in advance for your help.


    Jérémy





    _______________________________________________
    Powered bywww.kitware.com  <http://www.kitware.com>

    Visit other Kitware open-source projects 
athttp://www.kitware.com/opensource/opensource.html

    Please keep messages on-topic and check the ParaView Wiki 
at:http://paraview.org/Wiki/ParaView

    Follow this link to subscribe/unsubscribe:
    http://public.kitware.com/mailman/listinfo/paraview




_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to