[vtkusers] VTK 6.0.0 / 5.8.0 missing header files Reeb Graphs

Bill Lorensen bill.lorensen at gmail.com
Fri Sep 13 08:20:22 EDT 2013


These is no "main" in TestReeb.cxx.

TestReeb is a vtk test. To compile it outside of the testing framework change:
int TestReebGraph(int vtkNotUsed(argc), char* vtkNotUsed(argv)[] )
to
int main ()


On Fri, Sep 13, 2013 at 6:57 AM, bropesda <bropesda at googlemail.com> wrote:
> Thanks very much Marcus it worked. I could have sworn I had ticked it (guess
> not...). I also had to install the Boost libraries at http://www.boost.org/.
> But now I get a linker error;
>
> 2>ClCompile:
> 2>  All outputs are up-to-date.
> 2>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main
> referenced in function ___tmainCRTStartup
> 2>C:\Users\*****\Desktop\VTK\Example
> code\Graphs\ReebGraph\build\Debug\TestReebGraph.exe : fatal error LNK1120: 1
> unresolved externals
> 2>
> 2>Build FAILED.
> 2>
> 2>Time Elapsed 00:00:06.74
> 3>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32
> ------
> 3>Project not selected to build for this solution configuration
> ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========
>
> I believe its an error with my makefile. Do you happen to know the correct
> format? I have been using;
>
> cmake_minimum_required(VERSION 2.8)
>
> PROJECT(TestReebGraph)
>
> find_package(VTK REQUIRED)
> include(${VTK_USE_FILE})
>
> add_executable(TestReebGraph MACOSX_BUNDLE TestReebGraph)
>
> if(VTK_LIBRARIES)
>   target_link_libraries(TestReebGraph ${VTK_LIBRARIES})
> else()
>   target_link_libraries(TestReebGraph vtkHybrid)
> endif()
>
> The CMakeLists for the TestReebGraph.cxx class looks like;
>
> vtk_add_test_cxx(TestReebGraph.cxx NO_DATA NO_VALID NO_OUTPUT)
> vtk_test_cxx_executable(${vtk-module}CxxTests)
>
> but I get unknown command errors in CMake when I try and use it. Thanks.
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-0-0-5-8-0-missing-header-files-Reeb-Graphs-tp5723323p5723456.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtkusers mailing list