mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] vtk6 examples (was Re: mxe for windows 7 (64 bit)


From: Tony Theodore
Subject: [Mingw-cross-env-list] vtk6 examples (was Re: mxe for windows 7 (64 bit))
Date: Sat, 29 Jun 2013 22:07:31 +1000

On 28/06/2013, at 2:11 AM, ST <address@hidden> wrote:

> Hi,
> 
>> The examples are building successfully here for all three targets with 
>> "-DBUILD_EXAMPLES=ON", though I didn't try to build them by hand or execute 
>> them.
> 
> I tried to compile/link an app that uses VTK - it went fine. But when I
> try to run it on Windows7 it crashes without any meaningful error
> message.

Is the error you're seeing along the lines of "not a valid application"? This 
may mean you're trying to run a 64-bit program on a 32-bit system.

> So I would like to check whether the standard VTK Examples can
> run on Windows7 and how do I compile/link them...
> 
> I could not find "-DBUILD_EXAMPLES=ON" - could you please tell where it
> is and how do I activate it once I have already installed MXE?
> 
> Where are the examples?


Modify src/vtk6.mk as below[1], run `make vtk6`, and you'll find the examples 
in:

tmp-vtk6/VTK6.0.0.cross_build/bin

Many of them work by double-clicking, some require input files, but I haven't 
seen any errors.

Cheers,

Tony


[1]
diff --git a/src/vtk6.mk b/src/vtk6.mk
index bcb157f..a5295c2 100644
--- a/src/vtk6.mk
+++ b/src/vtk6.mk
@@ -42,9 +42,10 @@ define $(PKG)_BUILD
         -DModule_vtkGUISupportQtOpenGL=TRUE \
         -DQT_QMAKE_EXECUTABLE=$(PREFIX)/$(TARGET)/qt/bin/qmake \
         -DVTK_USE_SYSTEM_HDF5=TRUE \
-        -DBUILD_EXAMPLES=OFF \
+        -DBUILD_EXAMPLES=ON \
         -DCMAKE_VERBOSE_MAKEFILE=TRUE \
         -DBUILD_TESTING=FALSE \
         '$(1)'
     $(MAKE) -C '$(1).cross_build' -j '$(JOBS)' install VERBOSE=1
+    exit 1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]