Compiling from source

General discussion about TexGen.

Moderators: Martin, Developers

ah
Posts: 7
Joined: Mon Sep 24, 2007 11:22 am

Compiling from source

Post by ah »

I'm just after following the instructions for compiling on windows and I'm getting the following errors when in Visual C++ (version 6)

Also in the instructions you say download and install VTK. Does this refer to the vtk binaries or the vtk source as CMake did not pick up on the binaries but did for the source when I entered their paths?

------------------------------------------------------
Compiling...
Array.cpp
c:\texgensrc\Octree\Array.hpp(66) : error C2629: unexpected 'class hxa7241_general::Array<TYPE> ('
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(66) : error C2238: unexpected token(s) preceding ';'
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(74) : error C2061: syntax error : identifier 'dword'
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(82) : error C2146: syntax error : missing ';' before identifier 'getLength'
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(82) : error C2433: 'dword' : 'virtual' not permitted on data declarations
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(82) : error C2501: 'dword' : missing storage-class or type specifiers
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(84) : error C2146: syntax error : missing ';' before identifier 'getMaxLength'
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(99) : error C2061: syntax error : identifier 'dword'
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(104) : error C2061: syntax error : identifier 'dword'
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(110) : error C2146: syntax error : missing ';' before identifier 'length_m'
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(110) : error C2501: 'dword' : missing storage-class or type specifiers
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(110) : error C2501: 'length_m' : missing storage-class or type specifiers
c:\texgensrc\Octree\Array.hpp(111) : see reference to class template instantiation 'hxa7241_general::Array<TYPE>' being compiled
c:\texgensrc\Octree\Array.hpp(133) : error C2146: syntax error : missing ',' before identifier 'length'
c:\texgensrc\Octree\Array.hpp(133) : error C2061: syntax error : identifier 'length'
c:\texgensrc\Octree\Array.hpp(138) : error C2244: 'Array<TYPE>::Array<TYPE>::Array<TYPE>' : unable to resolve function overload
c:\texgensrc\Octree\Array.hpp(141) : error C2954: template definitions cannot nest
c:\texgensrc\Octree\Array.hpp(179) : error C2146: syntax error : missing ',' before identifier 'length'
c:\texgensrc\Octree\Array.hpp(179) : error C2061: syntax error : identifier 'length'
c:\texgensrc\Octree\Array.hpp(182) : error C2244: 'Array<TYPE>::setLength' : unable to resolve function overload
c:\texgensrc\Octree\Array.hpp(185) : error C2954: template definitions cannot nest
c:\texgensrc\Octree\Array.hpp(262) : error C2143: syntax error : missing ';' before 'tag::id'
c:\texgensrc\Octree\Array.hpp(262) : error C2433: 'dword' : 'inline' not permitted on data declarations
c:\texgensrc\Octree\Array.hpp(262) : error C2501: 'dword' : missing storage-class or type specifiers
c:\texgensrc\Octree\Array.hpp(262) : error C2059: syntax error : ';'
c:\texgensrc\Octree\Array.hpp(262) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Octree.cpp
c:\texgensrc\Octree\OctreeAuxiliary.hpp(258) : error C2258: illegal pure syntax, must be '= 0'
c:\texgensrc\Octree\OctreeAuxiliary.hpp(258) : error C2252: 'ALL_INSIDE' : pure specifier can only be specified for functions
c:\texgensrc\Octree\OctreeAuxiliary.hpp(259) : error C2252: 'ALL_OUTSIDE' : pure specifier can only be specified for functions
OctreeAuxiliary.cpp
c:\texgensrc\Octree\OctreeAuxiliary.hpp(258) : error C2258: illegal pure syntax, must be '= 0'
c:\texgensrc\Octree\OctreeAuxiliary.hpp(258) : error C2252: 'ALL_INSIDE' : pure specifier can only be specified for functions
c:\texgensrc\Octree\OctreeAuxiliary.hpp(259) : error C2252: 'ALL_OUTSIDE' : pure specifier can only be specified for functions
OctreeImplementation.cpp
c:\texgensrc\Octree\OctreeAuxiliary.hpp(258) : error C2258: illegal pure syntax, must be '= 0'
c:\texgensrc\Octree\OctreeAuxiliary.hpp(258) : error C2252: 'ALL_INSIDE' : pure specifier can only be specified for functions
c:\texgensrc\Octree\OctreeAuxiliary.hpp(259) : error C2252: 'ALL_OUTSIDE' : pure specifier can only be specified for functions
c:\texgensrc\Octree\OctreeImplementation.cpp(542) : error C2374: 'i' : redefinition; multiple initialization
c:\texgensrc\Octree\OctreeImplementation.cpp(528) : see declaration of 'i'
OctreeStreamOut.cpp
c:\texgensrc\Octree\OctreeAuxiliary.hpp(258) : error C2258: illegal pure syntax, must be '= 0'
c:\texgensrc\Octree\OctreeAuxiliary.hpp(258) : error C2252: 'ALL_INSIDE' : pure specifier can only be specified for functions
c:\texgensrc\Octree\OctreeAuxiliary.hpp(259) : error C2252: 'ALL_OUTSIDE' : pure specifier can only be specified for functions
c:\texgensrc\Octree\OctreeStreamOut.cpp(209) : error C2374: 'i' : redefinition; multiple initialization
c:\texgensrc\Octree\OctreeStreamOut.cpp(179) : see declaration of 'i'
Vector3f.cpp
c:\texgensrc\Octree\Vector3f.cpp(743) : error C2065: 'FLOAT_ALMOST_ONE' : undeclared identifier
c:\texgensrc\Octree\Vector3f.cpp(743) : warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
c:\texgensrc\Octree\Vector3f.cpp(749) : warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
c:\texgensrc\Octree\Vector3f.cpp(755) : warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
c:\texgensrc\Octree\Vector3f.cpp(770) : warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
c:\texgensrc\Octree\Vector3f.cpp(778) : warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
c:\texgensrc\Octree\Vector3f.cpp(786) : warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
c:\texgensrc\Octree\Vector3f.cpp(824) : error C2065: 'FLOAT_EPSILON' : undeclared identifier
c:\texgensrc\Octree\Vector3f.cpp(849) : error C2065: 'FLOAT_MIN_NEG' : undeclared identifier
c:\texgensrc\Octree\Vector3f.cpp(856) : error C2065: 'FLOAT_MAX' : undeclared identifier
Generating Code...
Error executing cl.exe
ah
Posts: 7
Joined: Mon Sep 24, 2007 11:22 am

Post by ah »

I also tried to compile using the free visual studio express but cmake could not detect it.
Martin
Project Leader
Posts: 70
Joined: Wed Mar 28, 2007 9:05 am
Location: Nottingham
Contact:

Post by Martin »

I am busy updating the compiling guide for windows on the wiki to make things a bit clearer and make sure everything is accurate. It's taking longer than I expected. I will try to briefly answer you questions:
Also in the instructions you say download and install VTK. Does this refer to the vtk binaries or the vtk source as CMake did not pick up on the binaries but did for the source when I entered their paths?
Yes you do actually need the VTK source.

About the other errors, I'm not sure why you are getting those. It may be that the MSVC 6 compiler is too old and the source code uses some of the changes to the C++ language that were not implemented in MSVC 6.

You may have better luck with visual studio express, it shouldn't matter that CMake detects it or not. You can just select to build the appropriate solution files. And then open them with visual studio express. I'm not sure what the limitations are to the express version though so I couldn't tell you if it will work or not.
Martin
Project Leader
Posts: 70
Joined: Wed Mar 28, 2007 9:05 am
Location: Nottingham
Contact:

Post by Martin »

Ok I've finished updating the wiki page. Could you please have a look and make sure you followed all the steps then tell me if you are still having trouble:

http://texgen.sourceforge.net/index.php ... rom_Source
Martin
Project Leader
Posts: 70
Joined: Wed Mar 28, 2007 9:05 am
Location: Nottingham
Contact:

Post by Martin »

One more thing, I've updated the build files today so that you don't need to mess around copying 'FindwxWidgets.cmake' from TexGen/GUI to the '/share/cmake-2.4/Modules'. So I recommend you checkout the latest SVN before compiling.
Ross
Regular
Posts: 12
Joined: Wed Oct 31, 2007 4:57 pm
Location: College Station, TX

More Issues

Post by Ross »

Okay, I have resolved some of the issues, but not all. I built xwWidgets and rebuilt VTK with some simpler settings than I used in the past. Now, when I build TexGen in VS, I get the following list of errors:

error C2491: 'wxVTKRenderWindowInteractor::ms_classInfo' : definition of dllimport static data member not allowed

error C2491: 'wxVTKRenderWindowInteractor::sm_eventTable' : definition of dllimport static data member not allowed

error C2491: 'wxVTKRenderWindowInteractor::sm_eventHashTable' : definition of dllimport static data member not allowed

error C2491: 'wxVTKRenderWindowInteractor::sm_eventTableEntries' : definition of dllimport static data member not allowed

My In CMake, the only thing that is questionable for me is whether or not my VTK directory setting is correct. I have used

C:/Documents and Settings/Ross McLendon/My Documents/Research/VTK/Binaries

as the VTK directory as this is where I placed the binaries when I ran CMake to build VTK using the recommended options. I also tried

C:/Program Files/VTK/lib/vtk-5.0

with no success. If you have a clear idea as to what the problem may be, I'd appreciate, but please don't commit too much time to figuring this out.
Ross McLendon
Graduate Researcher
Texas A&M University
Martin
Project Leader
Posts: 70
Joined: Wed Mar 28, 2007 9:05 am
Location: Nottingham
Contact:

Post by Martin »

Hi Ross,

Your VTK directory in CMake is set up correctly I think. Because VTK is also compiled with CMake it can read the VTK's CMake project settings directly (which are stored in VTKConfig.cmake I believe). So you don't need to tell it where your source directory is.

From the information you gave me I don't know what to say, I never had any similar error. All I can say is that the wxVTKRenderWindowInteractor code comes from the following website:

http://wxvtk.sourceforge.net/

At what point do you get those errors? compiling what files?
Ross
Regular
Posts: 12
Joined: Wed Oct 31, 2007 4:57 pm
Location: College Station, TX

Post by Ross »

It's running into these errors trying to compile the TexGenGUI project. The error codes including the file paths and lines are as follows:

..\..\TexGen Source\TexGen\trunk\GUI\wxVTKRenderWindowInteractor.cxx(87) : error C2491: 'wxVTKRenderWindowInteractor::ms_classInfo' : definition of dllimport static data member not allowed
..\..\TexGen Source\TexGen\trunk\GUI\wxVTKRenderWindowInteractor.cxx(94) : error C2491: 'wxVTKRenderWindowInteractor::sm_eventTable' : definition of dllimport static data member not allowed
..\..\TexGen Source\TexGen\trunk\GUI\wxVTKRenderWindowInteractor.cxx(94) : error C2491: 'wxVTKRenderWindowInteractor::sm_eventHashTable' : definition of dllimport static data member not allowed
..\..\TexGen Source\TexGen\trunk\GUI\wxVTKRenderWindowInteractor.cxx(94) : error C2491: 'wxVTKRenderWindowInteractor::sm_eventTableEntries' : definition of dllimport static data member not allowed

Thanks again for your help
Ross McLendon
Graduate Researcher
Texas A&M University
Martin
Project Leader
Posts: 70
Joined: Wed Mar 28, 2007 9:05 am
Location: Nottingham
Contact:

Post by Martin »

Ross wrote:It's running into these errors trying to compile the TexGenGUI project. The error codes including the file paths and lines are as follows:
Hmm... It seems to be something to do with wxWidgets. All I can think is that there are several ways to compile wxWidgets, and you may not have compiled it the same way that I have.

I don't know what else to say, its difficult to solve issues without being in front of the computer. I will probably be releasing a new version of TexGen in the next week or so though. You will be able to get the binaries at that time. Although it's always nice to be able to get the latest development release.
Dr_ajr
Posts: 3
Joined: Wed Nov 07, 2007 3:24 pm

Post by Dr_ajr »

Hi Martin,

I too have been trying to build TexGen from source.

I decided to try and use Visual Studio C++ 2005 Express, after a lot of Google searching I think I now have it set-up correctly. If I'm successful I will post a guide for this particular compiler.

Anyway, I'm having a few problems I hope you can help me with.

The first is configuring cmake, I have set it up as you show in the wiki directions. However, I get the error message "wxWidgets, please specify its location".

Second problem is with OpenCascade, I'm using version 6.2.0 and do not have a libd folder in ros/win32. All I have is bin and lib folders.

Anyway despite these problems I've tried to build TexGen - I do however get the following build errors:


Build started: Project: _Renderer, Configuration: Release|Win32

Command Lines


Creating temporary file "c:\MyTexGenBuild\Python\_Renderer.dir\Release\RSP00000F35401712.rsp" with contents
[
/O2 /Ob2 /I "C:\Python25\include" /I "C:\VTK" /I "C:\VTK\Utilities" /I "C:\VTK\VolumeRendering" /I "C:\VTK\Rendering" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\VolumeRendering" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Hybrid" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Widgets" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Rendering" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Rendering\Testing\Cxx" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\IO" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Imaging" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Graphics" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\GenericFiltering" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Filtering" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Common" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Utilities" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Common\Testing\Cxx" /I "C:\VTK\Utilities\DICOMParser" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Utilities\DICOMParser" /I "C:\VTK\Utilities\vtkfreetype\include" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Utilities\vtkfreetype\include" /I "C:\VTK\Utilities\vtknetcdf" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Utilities\vtknetcdf" /I "C:\VTK\Utilities\vtkexodus2\include" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Utilities\vtkexodus2\include" /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "SWIG_NO_CRT_SECURE_NO_DEPRECATE" /D "_CRT_SECURE_NO_DEPRECATE" /D "TIXML_USE_STL" /D "CMAKE_INTDIR=\"Release\"" /D "_Renderer_EXPORTS" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MD /Fo"_Renderer.dir\Release\\" /Fd"C:/MyTexGenBuild/Release/_Renderer.pdb" /W3 /c /TP /Zm1000

..\..\SVN\TexGen\Python\Renderer_wrap.cxx
]
Creating command line "cl.exe @c:\MyTexGenBuild\Python\_Renderer.dir\Release\RSP00000F35401712.rsp /nologo /errorReport:prompt"

Output Window


Compiling...
Renderer_wrap.cxx
c:\svn\texgen\python\../Renderer/PrecompiledHeaders.h(33) : fatal error C1083: Cannot open include file: 'vtkOrientationMarkerWidget.h': No such file or directory

Results


Build log was saved at "file://c:\MyTexGenBuild\Python\_Renderer.dir\Release\BuildLog.htm"
_Renderer - 1 error(s), 0 warning(s)



Build started: Project: TexGenGUI, Configuration: Release|Win32

Command Lines


TexGenGUI : warning PRJ0041 : Cannot find missing dependency 'wx/msw/wx.rc' for file 'GUI.rc'. Your project may still build, but may continue to appear out of date until this file is found.


TexGenGUI : warning PRJ0041 : Cannot find missing dependency 'wx/msw/amd64.manifest' for file 'GUI.rc'. Your project may still build, but may continue to appear out of date until this file is found.


TexGenGUI : warning PRJ0041 : Cannot find missing dependency 'wx/msw/ia64.manifest' for file 'GUI.rc'. Your project may still build, but may continue to appear out of date until this file is found.


TexGenGUI : warning PRJ0041 : Cannot find missing dependency 'wx/msw/wx.manifest' for file 'GUI.rc'. Your project may still build, but may continue to appear out of date until this file is found.

Creating temporary file "c:\MyTexGenBuild\GUI\TexGenGUI.dir\Release\RSP00001035401384.rsp" with contents
[
/O2 /Ob2 /I "C:\VTK" /I "C:\VTK\Utilities" /I "C:\VTK\VolumeRendering" /I "C:\VTK\Rendering" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\VolumeRendering" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Hybrid" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Widgets" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Rendering" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Rendering\Testing\Cxx" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\IO" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Imaging" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Graphics" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\GenericFiltering" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Filtering" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Common" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Utilities" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Common\Testing\Cxx" /I "C:\VTK\Utilities\DICOMParser" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Utilities\DICOMParser" /I "C:\VTK\Utilities\vtkfreetype\include" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Utilities\vtkfreetype\include" /I "C:\VTK\Utilities\vtknetcdf" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Utilities\vtknetcdf" /I "C:\VTK\Utilities\vtkexodus2\include" /I "C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Utilities\vtkexodus2\include" /I "C:\Python25\include" /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "SWIG_NO_CRT_SECURE_NO_DEPRECATE" /D "_CRT_SECURE_NO_DEPRECATE" /D "TIXML_USE_STL" /D "CMAKE_INTDIR=\"Release\"" /D "_MBCS" /FD /EHsc /MD /Fo"TexGenGUI.dir\Release\\" /Fd"C:/MyTexGenBuild/Release/TexGenGUI.pdb" /W3 /c /TP /Zm1000

..\..\SVN\TexGen\GUI\wxVTKRenderWindowInteractor.cxx

..\..\SVN\TexGen\GUI\YarnSectionSelect.cpp

..\..\SVN\TexGen\GUI\WeaveWizard.cpp

..\..\SVN\TexGen\GUI\WeavePatternCtrl.cpp

..\..\SVN\TexGen\GUI\TexGenRenderWindow.cpp

..\..\SVN\TexGen\GUI\TexGenMainFrame.cpp

..\..\SVN\TexGen\GUI\TexGenApp.cpp

..\..\SVN\TexGen\GUI\SectionSelect.cpp

..\..\SVN\TexGen\GUI\PythonWrapper.cpp

..\..\SVN\TexGen\GUI\PythonConverter.cpp

..\..\SVN\TexGen\GUI\PythonConsole.cpp

..\..\SVN\TexGen\GUI\PrecompiledHeaders.cpp

..\..\SVN\TexGen\GUI\Modeller.cpp

..\..\SVN\TexGen\GUI\EmbeddedPythonFunctions.cpp

..\..\SVN\TexGen\GUI\DropTarget.cpp

..\..\SVN\TexGen\GUI\DomainPlanesDialog.cpp

..\..\SVN\TexGen\GUI\CustomWidget.cpp

..\..\SVN\TexGen\GUI\ControlsWindow.cpp

..\..\SVN\TexGen\GUI\CompleteDialog.cpp

..\..\SVN\TexGen\GUI\CircleRangeCtrl.cpp
]
Creating command line "cl.exe @c:\MyTexGenBuild\GUI\TexGenGUI.dir\Release\RSP00001035401384.rsp /nologo /errorReport:prompt"

Output Window


Compiling...
wxVTKRenderWindowInteractor.cxx
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
YarnSectionSelect.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
WeaveWizard.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
WeavePatternCtrl.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
TexGenRenderWindow.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
TexGenMainFrame.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
TexGenApp.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
SectionSelect.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
PythonWrapper.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
PythonConverter.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
PythonConsole.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
PrecompiledHeaders.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
Modeller.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
EmbeddedPythonFunctions.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
DropTarget.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
DomainPlanesDialog.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
CustomWidget.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
ControlsWindow.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
CompleteDialog.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
CircleRangeCtrl.cpp
c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
Generating Code...

Results


Build log was saved at "file://c:\MyTexGenBuild\GUI\TexGenGUI.dir\Release\BuildLog.htm"
TexGenGUI - 20 error(s), 0 warning(s)


Just thought you might be able to help - I will keep trying.

cheers
Martin
Project Leader
Posts: 70
Joined: Wed Mar 28, 2007 9:05 am
Location: Nottingham
Contact:

Post by Martin »

Dr_ajr wrote:The first is configuring cmake, I have set it up as you show in the wiki directions. However, I get the error message "wxWidgets, please specify its location".
A few things to check here:
1) Have you download wxWidgets and extracted it to your hard disk?
2) Have you compiled it in debug and release modes?
3) Have you specified the wxWidgets_XXX cache variables manually in CMake?
Dr_ajr wrote:Second problem is with OpenCascade, I'm using version 6.2.0 and do not have a libd folder in ros/win32. All I have is bin and lib folders.
Right, actually you can ignore this problem if you don't intend to compile the debug version of TexGen (Most likely you will only want to compile the release version). If however you do want to compile TexGen in debug mode then you must also compile OpenCASCADE from source, for information on that please refer to the OpenCASCADE documentation.
Dr_ajr wrote:Anyway despite these problems I've tried to build TexGen - I do however get the following build errors:

c:\svn\texgen\python\../Renderer/PrecompiledHeaders.h(33) : fatal error C1083: Cannot open include file: 'vtkOrientationMarkerWidget.h': No such file or directory
vtkOrientationMarkerWidget.h file should be located in your VTK/Widgets subdirectory. Looking at the information you posted it should be in:

"C:\Documents and Settings\oxo\My Documents\TEXGEN BUILD\vtk\VTKsource\Widgets"

Perhaps you could check if the file is actually there or not.
Dr_ajr wrote:c:\svn\texgen\gui\PrecompiledHeaders.h(52) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
This is linked to your first problem. Make sure wxWidgets is extracted, compiled and set in CMake correctly.

I hope that helps.
ah
Posts: 7
Joined: Mon Sep 24, 2007 11:22 am

Post by ah »

Hi Martin,

I had the same problem that Ross had with wxvtkRenderWindowInteractor.cxx. I eventually overcame that by changing the way I compiled VTK by switching the BUILD_SHARED_LIBS value from ON to OFF.
Texgen compiled into an executable and I then compiled the Install config but when i tried to run Texgengui.exe from the c:\prog files\texgen directory it just gives me the following error. "The Parameter is Incorrect"
Martin
Project Leader
Posts: 70
Joined: Wed Mar 28, 2007 9:05 am
Location: Nottingham
Contact:

Post by Martin »

ah wrote:Hi Martin,

I had the same problem that Ross had with wxvtkRenderWindowInteractor.cxx. I eventually overcame that by changing the way I compiled VTK by switching the BUILD_SHARED_LIBS value from ON to OFF.
Texgen compiled into an executable and I then compiled the Install config but when i tried to run Texgengui.exe from the c:\prog files\texgen directory it just gives me the following error. "The Parameter is Incorrect"
Ah right, yes that may have been an error on my part. I've updated the instructions to have BUILD_SHARED_LIBS OFF now.

About the incorrect parameter error, what version of wxWidgets are you using? I seem to remember I had some similar trouble with an older version of wxWidgets.
ah
Posts: 7
Joined: Mon Sep 24, 2007 11:22 am

Post by ah »

Martin wrote: Ah right, yes that may have been an error on my part. I've updated the instructions to have BUILD_SHARED_LIBS OFF now.

About the incorrect parameter error, what version of wxWidgets are you using? I seem to remember I had some similar trouble with an older version of wxWidgets.
I compiled from version 2.8.6
Martin
Project Leader
Posts: 70
Joined: Wed Mar 28, 2007 9:05 am
Location: Nottingham
Contact:

Post by Martin »

That's the same version that Jon is using so that shouldn't be the problem. I'm not sure where that error could be coming from. You might try commenting out the following code in "GUI/TexGenApp.h":

Code: Select all

	bool OnCmdLineParsed(wxCmdLineParser& parser);
	void OnInitCmdLine(wxCmdLineParser& parser);
and in "GUI/TexGenApp.cpp":

Code: Select all

void CTexGenApp::OnInitCmdLine(wxCmdLineParser& parser)
{
	parser.AddParam(wxT("Filename(s) of TexGen file(s) or Python script(s)"), wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL|wxCMD_LINE_PARAM_MULTIPLE);
	wxApp::OnInitCmdLine(parser);
}

bool CTexGenApp::OnCmdLineParsed(wxCmdLineParser& parser)
{
	int i;
	wxArrayString filenames;
	for (i = 0; i < (int)parser.GetParamCount(); i++)
	{
		filenames.Add(parser.GetParam(i));
	}
	if (m_pMainFrame)
	{
		m_pMainFrame->ProcessFiles(filenames);
	}
	return wxApp::OnCmdLineParsed(parser);
}
Let me know if that helps.
Post Reply