build release type

Any question about other libraries used in this project
Post Reply
nanshanheelong
Posts: 7
Joined: Mon Aug 12, 2013 11:56 am
Location: wuhan,China

build release type

Post by nanshanheelong »

Hi
I had already build a Debug type,and I've managed to build CloudCompare in release type with VC2010 but it getting the error
like " can't open the include file 'liblas/point.hpp'"
Anyway around this? I'm no expert in these things! Any help you can provide would be great.
heelong
daniel
Site Admin
Posts: 7330
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: build release type

Post by daniel »

It's because you must have enabled the LAS file support in CMake but the library and include path are not set correctly (and it works in Debug mode because LAS is not supported in this mode whatever the CMake configuration is).

So basically you have two options:
  • disable the OPTION_USE_LIBLAS entry in CMake
  • or setup the liblas paths correctly (LIBLAS_INCLUDE_DIR, LIBLAS_RELEASE_LIBRARY_FILE and LIBLAS_SHARED_LIBRARY_FILE)
Daniel, CloudCompare admin
nanshanheelong
Posts: 7
Joined: Mon Aug 12, 2013 11:56 am
Location: wuhan,China

Re: daniel

Post by nanshanheelong »

hi daniel
yes,you was right,and I can build a release type now,but I still can't use it to open LAS file, should I build LIBLAS in release type?
I use LIBLAS with Debug type,but it error:
"000000013F254F63 mov rdi,qword ptr [rax+0B8h] "
can you give me some advice?
thank you very much
heelong
nanshanheelong
Posts: 7
Joined: Mon Aug 12, 2013 11:56 am
Location: wuhan,China

Re: daniel

Post by nanshanheelong »

hi daniel
I had solve this problem.yes I really should build LAS in release type.
thank you very much
heelong
tsyxulei
Posts: 17
Joined: Wed Sep 25, 2013 6:13 am

Re: build release type

Post by tsyxulei »

I have a question: I have set up liblas paths correctly ,just like (LIBLAS_INCLUDE_DIR, LIBLAS_RELEASE_LIBRARY_FILE and LIBLAS_SHARED_LIBRARY_FILE). but I have not success .I guess the problem may be because environment variables . Can you give me some advises?
daniel
Site Admin
Posts: 7330
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: build release type

Post by daniel »

What is your OS? And what is the error?

Note that on Windows/Visual, liblas is only enabled in 'release' mode.
Daniel, CloudCompare admin
Post Reply