pvsexample:Warning: could not bind to port 5050 s=-1 以及 VTK&CMAKE的安装

118 篇文章 2 订阅

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

推荐文章:
http://blog.csdn.net/linxi_hnh/article/details/8556511
 

pvbrower Q&A

分类: 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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值