Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling error #5

Closed
egabancho opened this issue Jan 25, 2011 · 9 comments
Closed

compiling error #5

egabancho opened this issue Jan 25, 2011 · 9 comments

Comments

@egabancho
Copy link

on Mac OS 10.6.6, compiling rtv-Stage-508538b I got this error:

[ 98%] Building CXX object libstageplugin/CMakeFiles/stageplugin.dir/p_graphics.o
/rtv-Stage-508538b/libstageplugin/p_graphics.cc: In member function ‘virtual int InterfaceGraphics2d::ProcessMessage(QueuePointer&, player_msghdr_t_, void_)’:
/rtv-Stage-508538b/libstageplugin/p_graphics.cc:236: error: ‘PLAYER_GRAPHICS2D_CMD_MULTILINE’ was not declared in this scope
/rtv-Stage-508538b/libstageplugin/p_graphics.cc: In member function ‘virtual void PlayerGraphics2dVis::RenderItem(Message&)’:
/rtv-Stage-508538b/libstageplugin/p_graphics.cc:277: error: ‘PLAYER_GRAPHICS2D_CMD_MULTILINE’ was not declared in this scope
/rtv-Stage-508538b/libstageplugin/p_graphics.cc:278: error: ‘player_graphics2d_cmd_multiline_t’ was not declared in this scope
/rtv-Stage-508538b/libstageplugin/p_graphics.cc:279: error: ‘data’ was not declared in this scope
s/rtv-Stage-508538b/libstageplugin/p_graphics.cc:280: error: expected type-specifier before ‘player_graphics2d_cmd_multiline_t’
/rtv-Stage-508538b/libstageplugin/p_graphics.cc:280: error: expected >' before ‘player_graphics2d_cmd_multiline_t’ /rtv-Stage-508538b/libstageplugin/p_graphics.cc:280: error: expected(' before ‘player_graphics2d_cmd_multiline_t’
/rtv-Stage-508538b/libstageplugin/p_graphics.cc:280: error: expected primary-expression before ‘>’ token
/rtv-Stage-508538b/libstageplugin/p_graphics.cc:280: error: expected `)' before ‘;’ token
make[2]: *** [libstageplugin/CMakeFiles/stageplugin.dir/p_graphics.o] Error 1
make[1]: *** [libstageplugin/CMakeFiles/stageplugin.dir/all] Error 2
make: *** [all] Error 2

I'm getting the same compiling error if I work with Stage-4.0.0 or the latest version cloned with git. But Stage 3.2.2 works fine for me.

@richmattes
Copy link
Contributor

The PLAYER_GRAPHICS2D_CMD_MULTILINE command is in the Player svn, but not 3.0.2. I surrounded the sections that referenced it with #ifdefs, but I must not have submitted a pull request. Pulling commit e133adf from my fork should fix it.

@egabancho
Copy link
Author

I've try with the Player svn (3.0.3-svn) and still having the same problem. Although if I use your commit, as you said, it works.

Thank you.

@richmattes
Copy link
Contributor

Just an fyi, the latest svn version of Player is the trunk version (3.1.0-svn)

@egabancho
Copy link
Author

Ups, sorry, I've update to the LAST trunk version and the problem has gone.

Thank you again

@sakiKnin
Copy link

Hello, when I use your p_graphic.cc I get this:

boris@boris:/Downloads/rtv-Stage-508538b$ sudo make
[ 58%] Built target stage
[ 60%] Built target stagebinary
[ 62%] Built target dynamic
[ 63%] Built target fasr
[ 67%] Built target fasr2
[ 68%] Built target lasernoise
[ 70%] Built target pioneer_flocking
[ 72%] Built target rasterize
[ 74%] Built target sink
[ 75%] Built target source
[ 77%] Built target wander
[ 79%] Built target expand_pioneer
[ 81%] Built target expand_swarm
[ 82%] Building CXX object libstageplugin/CMakeFiles/stageplugin.dir/p_graphics.o
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc: In member function ‘virtual int InterfaceGraphics2d::ProcessMessage(QueuePointer&, player_msghdr_t_, void_)’:
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:241: error: ‘PLAYER_GRAPHICS2D_CMD_MULTILINE’ was not declared in this scope
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc: In member function ‘virtual void PlayerGraphics2dVis::RenderItem(Message&)’:
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:281: error: expected primary-expression before ‘<<’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:281: error: expected primary-expression before ‘<<’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:281: error: expected primary-expression before ‘<<’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:281: error: expected primary-expression before ‘<’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:281: error: expected primary-expression before ‘.’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:301: error: expected primary-expression before ‘==’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:301: error: expected primary-expression before ‘==’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:301: error: expected primary-expression before ‘=’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:303: error: expected primary-expression before ‘>>’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:303: error:
expected primary-expression before ‘>>’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:303: error: expected primary-expression before ‘>>’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:303: error: expected primary-expression before ‘>’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:303: error: expected primary-expression before ‘.’ token
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:308: error: expected ‘;’ before ‘case’
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:451: error: expected ‘}’ at end of input
/home/boris/Downloads/rtv-Stage-508538b/libstageplugin/p_graphics.cc:451: error: expected ‘}’ at end of input
make[2]: *** [libstageplugin/CMakeFiles/stageplugin.dir/p_graphics.o] Error 1
make[1]: *** [libstageplugin/CMakeFiles/stageplugin.dir/all] Error 2
make: *** [all] Error 2
boris@boris:
/Downloads/rtv-Stage-508538b$

@sakiKnin
Copy link

I am new, so I dont know how to fix this...

@sakiKnin
Copy link

Hy,
I have done as you tell up there but I cant run player now:

boris@boris:/usr/local/share$ player
player: error while loading shared libraries: libplayerdrivers.so.3.1: cannot open shared object file: No such file or directory

I can not break this loop of fails...

@richmattes
Copy link
Contributor

This isn't an appropriate forum to discuss runtime errors; this bug only applies to compilation errors in Stage's p_graphics.cc. I recommend that you check the Player documentation and tutorials at http://playerstage.sourceforge.net/wiki/Tutorials. Specifically, you should look at http://playerstage.sourceforge.net/wiki/Local_installation for help to solve your current problem (you need to set the LD_LIBRARY_PATH environment variable to reflect where you installed Player's libraries).

@sakiKnin
Copy link

I am sorry for inconvenience,
I have solved this problem, google do all the work :)
My problem was with new stage release v 4.0.0 because of new laser sonar definition in cfg file. I hope thet new release v4.0.1 will do the work...

thx!!!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants