1、问题:
[redsir@localhost pvsexample]$ ./pvsexample
pvserver_version 4.7.5
Warning: could not bind to port 5050 s=-1
2、解决办法:
[redsir@localhost pvsexample]$ ./pvsexample -gui
3、扩展:VTK及其下载安装(三维可视化工具包)
http://vtk.org/VTK/resources/software.html
UNIX / Cygwin / Mac OSX
CMake should be run from the command line on these platforms. The current working directory should be set to the desired binary tree location in which the build system should be generated. One command-line argument is used to specify the location of the source tree. CMake will usually choose the system C and C++ compilers automatically but it can be told to use specific compilers through the "CC" and "CXX" environment variables.
A typical in-source build for VTK might look like this:
$ ls -d VTK
VTK/
$ cd VTK
$ ccmake .
$ make
A typical out-of-source build for VTK might look like this:
$ ls -d VTK
VTK/
$ mkdir VTK-build
$ cd VTK-build
$ ccmake ../VTK
$ make
In the above examples the call to ccmake may be replaced by
$ env CC=/your/c/compiler CXX=/your/C++/compiler ccmake /path/to/VTK
in order to tell CMake to use specific C and C++ compilers. Setting the environment in this way will only change the compilers the first time CMake is run for a specific build tree. Do not attempt to change the compiler of an existing build tree. Instead one should create a separate build tree for each desired compiler.
4、cmake下载安装:
http://www.cmake.org/cmake/resources/software.html
./bootstrap
make
make install
推荐文章:
分类: c
> I run ./start_pvbapp example.ini.linux
> there below errors:
> guo@guo-desktop:~/test/power/pvb/start_pvbapp$ sh:
/opt/pvb/pvsexample/pvsexample: cannot execute binary file
> tcp_con 2: error for localhost port=5050
It seems /opt/pvb/pvsexample/pvsexample is not executable on your system. This
might be because pvsexample is compiled for 64Bit and you are using 32Bit.
Solution:
Recompile /opt/pvb/pvsexample/pvsexample
su
cd /opt/pvb/pvsexample
make clean
make
exit
PS: Meanwhile there is a more convenient method to start a pvserver + pvbrowser
to make it behave like a normal desktop app.
You can use the "-gui" option.
Example:
cd pvb/pvsexample
./pvsexample -gui
The "start_pvbapp" is especially usefull on Windows because no DOS-Box-Window
will be shown.
> there below errors:
> guo@guo-desktop:~/test/power/pvb/start_pvbapp$ sh:
/opt/pvb/pvsexample/pvsexample: cannot execute binary file
> tcp_con 2: error for localhost port=5050
It seems /opt/pvb/pvsexample/pvsexample is not executable on your system. This
might be because pvsexample is compiled for 64Bit and you are using 32Bit.
Solution:
Recompile /opt/pvb/pvsexample/pvsexample
su
cd /opt/pvb/pvsexample
make clean
make
exit
PS: Meanwhile there is a more convenient method to start a pvserver + pvbrowser
to make it behave like a normal desktop app.
You can use the "-gui" option.
Example:
cd pvb/pvsexample
./pvsexample -gui
The "start_pvbapp" is especially usefull on Windows because no DOS-Box-Window
will be shown.

本文详细介绍了如何解决在不同操作系统(UNIX/Cygwin/MacOSX)上使用pvserver遇到的问题,包括配置和安装VTK软件包、CMake使用方法及pvserver错误解决策略。同时提供了一个方便快捷的方法来启动pvserver+pvbrowser,使其更像桌面应用程序。

被折叠的 条评论
为什么被折叠?



