You are here

running the first mrpt example : error

3 posts / 0 new
Last post
activex
activex's picture
running the first mrpt example : error

hi

i just downled the mrpt using the exe file. i also installed the Cmake. both are added to the variable path.

now, can someone give me step by step of what to do to run one/ any of the sample in the mrpt package?

i am using win7 x64. i have Visual C++ express

 

 

Though, this is was i did, and it gives me error:

i load up Cmake, and enter"

where is teh source code: C:/Program Files/mrpt-0.9.5/samples/gridMapLikelihoodCharacterization

where to build the binary: C:/mrpt Stuff/test/test

and hit generate

 

and the error i got is as follow:

 

The C compiler identification is unknown

The CXX compiler identification is unknown

Check for working C compiler: bcc32

CMake Error: your C compiler: "bcc32" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.

CMake Error: Internal CMake error, TryCompile configure of cmake failed

Check for working C compiler: bcc32 -- broken

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):

The C compiler "bcc32" is not able to compile a simple test program.

It fails with the following output:

 

 

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt:13 (PROJECT)

CMake Error: your C compiler: "bcc32" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.

CMake Error: your CXX compiler: "bcc32" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

 

 

thanks

activex
activex's picture
Update - new problem

Ok, So forget what I said above, as it nolong there.

Here is the current problem:

So i am following the tutorial

Writing your first C++ program with MRPT

 

I download the mrpt_example1 and store it it C:\Users\xxx\Documents\mrpt Stuff\

I create a empty file in the called EX1 and store it in

C:\Users\xxx\Documents\mrpt Stuff\

Now using CMake-gui

I enter the following:

Where is teh source code: C:/Users/xxx/Documents/mrpt Stuff/mrpt_example1

Where to build the binaries: C:/Users/xxx/Documents/mrpt Stuff/EX1

I hit the Configure button, and no error, and then I hit the Generate button. Everything is OK up to now.

Now, in the EX1 folder, I have list of files and folders in which I think its exptected to be generated by CMake.

Now, lauching MSV C++ Express and Open -> Project/Solution/C:\Users\xxx\Documents\mrpt Stuff\EX1\mrpt_example1.sln

In C++ EXpress Solution Explorer, I see ALL_BUILD, mrpt_example1, and ZERO_CHECK folder, with sub folders in them.

Now, when after I do the Build Sulotion, I got this

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
2>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------
2>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 1 skipped ==========

note, 1 skipped.

And now, I hit F5 (start debuggin) and I got a prompt message

it says "This project is out of date: ZERO_CHECK - Debug x64... would you like to build it"

and i click Yes

and another prompt message appears, this time it says

"Unable to start program 'C:\Users\xxx\Documents\mrpt Stuff\EX1\x64\Debug\ALL_BUILD. The system cannot find teh file specified.' "

 

.....so that is all about the problem, any helps in solving this is appriciate

 

 

jlblanco
jlblanco's picture
Hi there, I think that your

Hi there, 

I think that your problem is that, by default, in Visual Studio the "active" project is "ALL_BUILD". You should right click the real project (the one with the executable target) and select it as "active". Then you'll be able to debug it ;-)

JL

Log in or register to post comments
Subscribe to Comments for "running the first mrpt example : error"