Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Error compiling code from the thread and the master tag version 4.0.1 #11

Closed
proydakov opened this Issue Aug 22, 2011 · 16 comments

Comments

Projects
None yet
6 participants

When I am trying to build code from the master branch get (The same problem occurs when building version 4.0.1 with the label):

[87%] Building CXX object libstageplugin / CMakeFiles / stageplugin.dir / p_gripper.o
[89%] Building CXX object libstageplugin / CMakeFiles / stageplugin.dir / p_simulation.o
[91%] Building CXX object libstageplugin / CMakeFiles / stageplugin.dir / p_fiducial.o
[93%] Building CXX object libstageplugin / CMakeFiles / stageplugin.dir / p_position.o
[94%] Building CXX object libstageplugin / CMakeFiles / stageplugin.dir / p_ranger.o
/ Home / evgeny / software / libs / Stage / libstageplugin / p_simulation.cc: In member function 'virtual int InterfaceSimulation:: ProcessMessage (QueuePointer &, player_msghdr_t , void *)':
/ Home / evgeny / software / libs / Stage / libstageplugin / p_simulation.cc: 155:52: error: 'PLAYER_CAPABILITIES_REQ' was not declared in this scope
/ Home / evgeny / software / libs / Stage / libstageplugin / p_simulation.cc: 451:26: warning: dereferencing type-punned pointer will break strict-aliasing rules
make [2]: *
* [libstageplugin / CMakeFiles / stageplugin.dir / p_simulation.o] Error 1

to use the simulator downloaded and installed version 4.00 - it all builds and runs fine

Owner

rtv commented Aug 22, 2011

I think PLAYER_CAPABILITIES_REQ is required by the recent development version of Player. Please tell me if this is wrong.

Contributor

jpgr87 commented Aug 27, 2011

PLAYER_CAPABILITIES_REQUEST is only defined in the SVN version of Player. PLAYER_CAPBILTIES_REQUEST is the old wrong spelling, I stupidly deleted it at first, but I just replaced today it with the intent of removing it at a later time (v4.0 maybe).

I'm having the same issue. Not sure I understand jpgr87's comment. Regardless, I guess I'll give 4.00 a try.

I downloaded the current release of the svn repository player on http://sourceforge.net/ now everything is going correctly with the version of stage 4.0.1

@proydakov proydakov closed this Sep 3, 2011

Stage 4.0.1 still does not successfully compile for me, even though I have Player 3.0.2 installed.

[100%] /home/peter/workspace/school/player-stage/Stage/libstageplugin/p_graphics.cc: In member function ‘virtual int InterfaceGraphics2d::ProcessMessage(QueuePointer&, player_msghdr_t_, void_)’:
/home/peter/workspace/school/player-stage/Stage/libstageplugin/p_graphics.cc:236:41: error: ‘PLAYER_GRAPHICS2D_CMD_MULTILINE’ was not declared in this scope
/home/peter/workspace/school/player-stage/Stage/libstageplugin/p_graphics.cc: In member function ‘virtual void PlayerGraphics2dVis::RenderItem(Message&)’:
/home/peter/workspace/school/player-stage/Stage/libstageplugin/p_graphics.cc:277:14: error: ‘PLAYER_GRAPHICS2D_CMD_MULTILINE’ was not declared in this scope
/home/peter/workspace/school/player-stage/Stage/libstageplugin/p_graphics.cc:278:17: error: ‘player_graphics2d_cmd_multiline_t’ was not declared in this scope
/home/peter/workspace/school/player-stage/Stage/libstageplugin/p_graphics.cc:279:35: error: ‘data’ was not declared in this scope
/home/peter/workspace/school/player-stage/Stage/libstageplugin/p_graphics.cc:280:67: error: expected type-specifier before ‘player_graphics2d_cmd_multiline_t’
/home/peter/workspace/school/player-stage/Stage/libstageplugin/p_graphics.cc:280:67: error: expected ‘>’ before ‘player_graphics2d_cmd_multiline_t’
/home/peter/workspace/school/player-stage/Stage/libstageplugin/p_graphics.cc:280:67: error: expected ‘(’ before ‘player_graphics2d_cmd_multiline_t’
/home/peter/workspace/school/player-stage/Stage/libstageplugin/p_graphics.cc:280:101: error: expected primary-expression before ‘>’ token
/home/peter/workspace/school/player-stage/Stage/libstageplugin/p_graphics.cc:280:122: error: expected ‘)’ before ‘;’ token

This is from a clean build.

I am setup player 3.1

Contributor

jpgr87 commented Sep 6, 2011

A workaround for the multiline issue can be found at jpgr87/Stage@e133adf

The CAPABILITIES_REQ issue should only happen if you are compiling the latest Stage snapshot against Player 3.0.2 or less. Using the latest Stage snapshot with the latest Player svn will fix the issue.

Owner

rtv commented Sep 23, 2011

To repeat jpgr87's advice when he closed this issue earlier. Please use the latest subversion Player with Stage github master for best results.

I am having the same problem, could some tell me how can I get player 3.1 (or later)? I have only managed to find 3.0.2 (http://sourceforge.net/projects/playerstage/files/Player/)

Contributor

jpgr87 commented Feb 18, 2012

3.1 is the moniker for the current SVN trunk. Until 3.1 is formally released you can check out the source from svn

jefrelan commented Mar 3, 2012

Where exactly is it located? As far as I understand the recent one should be in trunk (I'm not experienced with svn, maybe I'm wrong) http://playerstage.svn.sourceforge.net/viewvc/playerstage/code/player/trunk/ , but if I view the Changelog then I only see 3.0.2

Contributor

jpgr87 commented Mar 5, 2012

You're right, it's the one in trunk. The changelog doesn't get updated until a release happens, and the last release was 3.0.2. When you run CMake you'll see that the project is actually building with the version set to 3.1.0-svn

jefrelan commented Mar 6, 2012

When I try to use "make" I get the following error:
~/playerstage/code/player/trunk/server/drivers/blobfinder/simpleshape/simpleshape.cc:110: fatal error: highgui.h: No such file or directory
compilation terminated.
make[2]: *** [server/libplayerdrivers/CMakeFiles/playerdrivers.dir/__/drivers/blobfinder/simpleshape/simpleshape.o] Error 1
make[1]: *** [server/libplayerdrivers/CMakeFiles/playerdrivers.dir/all] Error 2
make: *** [all] Error 2

Owner

rtv commented Mar 22, 2012

Please use the player mailing lists to find answers to Player build problems.

i had the problem while building stage cmake doesn't include the right path the new player version.
I had to chance every line in CMakeCache.txt from player-3.0x... to player-3.1
I don't know why, or if the file was created by cmake temporarly with a false parameter in CMakeLists.txt(I didn't find it) but with the changes make does the right think and stage was compiled and able to start.

But please check in players 3.1 and sourcecode that is able to compile!!!

Contributor

jpgr87 commented Mar 1, 2013

It sounds like you ran "cmake" or "ccmake" with Player 3.0 installed, and then upgraded to 3.1. You should delete CMakeCache.txt and re-run cmake to force cmake to re-discover system dependencies. There's nothing to change in Stage, CMakeCache.txt is auto-generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment