Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: anterma <anterma@oz...> - 2010-07-01 15:48:19
|
Hello, I'm working with Player 3.0.1. I'm developing my own driver. I my driver is based on exampleDriver. I write some messages in main() and I've seen that it doesn't run it. What do I have to do? Thanks -- View this message in context: http://old.nabble.com/Problem-with-main-in-my-new-driver-tp29047344p29047344.html Sent from the playerstage-developers mailing list archive at Nabble.com. |
From: Paul Osmialowski <newchief@ki...> - 2010-07-02 06:40:59
|
Is it possible for cmake to check if some C++ stream modifier is defined? I doubt CHECK_SYMBOL_EXISTS is capable to do that. I'd like to modify CMakeLists.txt for epuck driver so it could check if std::showbase is defined in <iostream> (which is not in older g++). Paul |
From: anterma <anterma@oz...> - 2010-07-02 07:27:30
|
I don't know. Why are you asking here? Paul Osmialowski wrote: > > Is it possible for cmake to check if some C++ stream modifier is defined? > I doubt CHECK_SYMBOL_EXISTS is capable to do that. I'd like to modify > CMakeLists.txt for epuck driver so it could check if std::showbase is > defined in <iostream> (which is not in older g++). > > Paul > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Playerstage-developers mailing list > Playerstage-developers@... > https://lists.sourceforge.net/lists/listinfo/playerstage-developers > > -- View this message in context: http://old.nabble.com/Problem-with-main-in-my-new-driver-tp29047344p29053225.html Sent from the playerstage-developers mailing list archive at Nabble.com. |
From: Geoffrey Biggs <geoffrey.biggs@ai...> - 2010-07-02 06:51:13
|
You can supply CMake with a short program and instruct it to see if it compiles, then based on the result decide if the feature that program uses is supported or not. Geoff On 02/07/10 15:40, Paul Osmialowski wrote: > Is it possible for cmake to check if some C++ stream modifier is defined? > I doubt CHECK_SYMBOL_EXISTS is capable to do that. I'd like to modify > CMakeLists.txt for epuck driver so it could check if std::showbase is > defined in <iostream> (which is not in older g++). > > Paul |
From: Rich Mattes <jpgr87@gm...> - 2010-07-02 13:48:48
|
There's an example of this in the check for TIMESPEC in cmake/internal/SearchForStuff.cmake. It's also how CMake does things like CHECK_INCLUDE_FILES internally. http://www.cmake.org/Wiki/CMake:How_To_Write_Platform_Checks might help, CHECK_C_SOURCE_COMPILES is at the bottom. Rich -----Original Message----- From: Geoffrey Biggs [mailto:geoffrey.biggs@...] Sent: Friday, July 02, 2010 2:51 AM To: playerstage-developers@... Subject: Re: [Playerstage-developers] CHECK_SYMBOL_EXISTS and C++ You can supply CMake with a short program and instruct it to see if it compiles, then based on the result decide if the feature that program uses is supported or not. Geoff On 02/07/10 15:40, Paul Osmialowski wrote: > Is it possible for cmake to check if some C++ stream modifier is defined? > I doubt CHECK_SYMBOL_EXISTS is capable to do that. I'd like to modify > CMakeLists.txt for epuck driver so it could check if std::showbase is > defined in <iostream> (which is not in older g++). > > Paul ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Playerstage-developers mailing list Playerstage-developers@... https://lists.sourceforge.net/lists/listinfo/playerstage-developers |
From: Paul Osmialowski <newchief@ki...> - 2010-07-05 15:12:43
|
On Fri, 2 Jul 2010, Rich Mattes wrote: > There's an example of this in the check for TIMESPEC in > cmake/internal/SearchForStuff.cmake. It's also how CMake does things like > CHECK_INCLUDE_FILES internally. > > http://www.cmake.org/Wiki/CMake:How_To_Write_Platform_Checks might help, > CHECK_C_SOURCE_COMPILES is at the bottom. > > Rich I looked at SearchForStuff.cmake and found some good examples, however, I wonder why in one file two different approaches are used: 1. CHECK_C_SOURCE_COMPILES (for me it would be CHECK_CXX_SOURCE_COMPILES): INCLUDE (CheckCSourceCompiles) SET (CHECK_TIMESPEC_SOURCE_CODE "#include <time.h> int main () { struct timespec *tmp; return 0; }") CHECK_C_SOURCE_COMPILES ("${CHECK_TIMESPEC_SOURCE_CODE}" HAVE_STRUCT_TIMESPEC) 2. TRY_COMPILE (how does it know if it is C or C++?!): SET (testSTLSource ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp/test_stl.cpp) FILE (WRITE ${testSTLSource} "#include <string>\nint main () {std::string a = \"blag\"; return 0;}\n") TRY_COMPILE (HAVE_STL ${CMAKE_CURRENT_BINARY_DIR} ${testSTLSource}) Personally, I would take CHECK_CXX_SOURCE_COMPILES as it explicitly picks the right compiler. Both aproaches seem to be answers for my problem. Paul > > -----Original Message----- > From: Geoffrey Biggs [mailto:geoffrey.biggs@...] > Sent: Friday, July 02, 2010 2:51 AM > To: playerstage-developers@... > Subject: Re: [Playerstage-developers] CHECK_SYMBOL_EXISTS and C++ > > You can supply CMake with a short program and instruct it to see if it > compiles, then based on the result decide if the feature that program > uses is supported or not. > > Geoff > > On 02/07/10 15:40, Paul Osmialowski wrote: >> Is it possible for cmake to check if some C++ stream modifier is defined? >> I doubt CHECK_SYMBOL_EXISTS is capable to do that. I'd like to modify >> CMakeLists.txt for epuck driver so it could check if std::showbase is >> defined in <iostream> (which is not in older g++). >> >> Paul > > ---------------------------------------------------------------------------- > -- > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Playerstage-developers mailing list > Playerstage-developers@... > https://lists.sourceforge.net/lists/listinfo/playerstage-developers > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Playerstage-developers mailing list > Playerstage-developers@... > https://lists.sourceforge.net/lists/listinfo/playerstage-developers > |
From: Paul Osmialowski <newchief@ki...> - 2010-07-05 16:49:14
|
Looking through SearchForStuff.cmake I've found one more thing: CHECK_LIBRARY_EXISTS (rt clock_gettime "${PLAYER_EXTRA_LIB_DIRS}" HAVE_LIBRT) SET (CMAKE_REQUIRED_LIBRARIES rt) CHECK_FUNCTION_EXISTS (clock_gettime HAVE_CLOCK_GETTIME_FUNC) SET (CMAKE_REQUIRED_LIBRARIES) IF (HAVE_LIBRT AND HAVE_CLOCK_GETTIME_FUNC) SET (HAVE_CLOCK_GETTIME TRUE) ENDIF (HAVE_LIBRT AND HAVE_CLOCK_GETTIME_FUNC) On QNX clock_gettime is a part of libc. Due to last if, HAVE_CLOCK_GETTIME is set wrong way on QNX and replacement is (successfully at least!) used. I'll try to prepare patch that correct it soon. Paul On Mon, 5 Jul 2010, Paul Osmialowski wrote: > On Fri, 2 Jul 2010, Rich Mattes wrote: > >> There's an example of this in the check for TIMESPEC in >> cmake/internal/SearchForStuff.cmake. It's also how CMake does things like >> CHECK_INCLUDE_FILES internally. >> >> http://www.cmake.org/Wiki/CMake:How_To_Write_Platform_Checks might help, >> CHECK_C_SOURCE_COMPILES is at the bottom. >> >> Rich > > I looked at SearchForStuff.cmake and found some good examples, however, I > wonder why in one file two different approaches are used: > > 1. CHECK_C_SOURCE_COMPILES (for me it would be CHECK_CXX_SOURCE_COMPILES): > > INCLUDE (CheckCSourceCompiles) > SET (CHECK_TIMESPEC_SOURCE_CODE "#include <time.h> > int main () { struct timespec *tmp; return 0; }") > CHECK_C_SOURCE_COMPILES ("${CHECK_TIMESPEC_SOURCE_CODE}" > HAVE_STRUCT_TIMESPEC) > > 2. TRY_COMPILE (how does it know if it is C or C++?!): > > SET (testSTLSource ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp/test_stl.cpp) > FILE (WRITE ${testSTLSource} > "#include <string>\nint main () {std::string a = \"blag\"; return > 0;}\n") > TRY_COMPILE (HAVE_STL ${CMAKE_CURRENT_BINARY_DIR} ${testSTLSource}) > > Personally, I would take CHECK_CXX_SOURCE_COMPILES as it explicitly > picks the right compiler. Both aproaches seem to be answers for my > problem. > > Paul > >> >> -----Original Message----- >> From: Geoffrey Biggs [mailto:geoffrey.biggs@...] >> Sent: Friday, July 02, 2010 2:51 AM >> To: playerstage-developers@... >> Subject: Re: [Playerstage-developers] CHECK_SYMBOL_EXISTS and C++ >> >> You can supply CMake with a short program and instruct it to see if it >> compiles, then based on the result decide if the feature that program >> uses is supported or not. >> >> Geoff >> >> On 02/07/10 15:40, Paul Osmialowski wrote: >>> Is it possible for cmake to check if some C++ stream modifier is defined? >>> I doubt CHECK_SYMBOL_EXISTS is capable to do that. I'd like to modify >>> CMakeLists.txt for epuck driver so it could check if std::showbase is >>> defined in <iostream> (which is not in older g++). >>> >>> Paul >> >> ---------------------------------------------------------------------------- >> -- >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Playerstage-developers mailing list >> Playerstage-developers@... >> https://lists.sourceforge.net/lists/listinfo/playerstage-developers >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Playerstage-developers mailing list >> Playerstage-developers@... >> https://lists.sourceforge.net/lists/listinfo/playerstage-developers >> > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Playerstage-developers mailing list > Playerstage-developers@... > https://lists.sourceforge.net/lists/listinfo/playerstage-developers > |
From: Paul Osmialowski <newchief@ki...> - 2010-07-05 19:54:51
|
On Mon, 5 Jul 2010, Paul Osmialowski wrote: > Looking through SearchForStuff.cmake I've found one more thing: > > CHECK_LIBRARY_EXISTS (rt clock_gettime "${PLAYER_EXTRA_LIB_DIRS}" > HAVE_LIBRT) > SET (CMAKE_REQUIRED_LIBRARIES rt) > CHECK_FUNCTION_EXISTS (clock_gettime HAVE_CLOCK_GETTIME_FUNC) > SET (CMAKE_REQUIRED_LIBRARIES) > IF (HAVE_LIBRT AND HAVE_CLOCK_GETTIME_FUNC) > SET (HAVE_CLOCK_GETTIME TRUE) > ENDIF (HAVE_LIBRT AND HAVE_CLOCK_GETTIME_FUNC) > > On QNX clock_gettime is a part of libc. Due to last if, HAVE_CLOCK_GETTIME > is set wrong way on QNX and replacement is (successfully at least!) used. > > I'll try to prepare patch that correct it soon. > > Paul > Oh My God! Fixing this solved biggest mystery I had with Player on QNX! Patch will be released as soon as I complete regression tests on other QNX and Linux machines (I don't want to break anything). Paul > On Mon, 5 Jul 2010, Paul Osmialowski wrote: > >> On Fri, 2 Jul 2010, Rich Mattes wrote: >> >>> There's an example of this in the check for TIMESPEC in >>> cmake/internal/SearchForStuff.cmake. It's also how CMake does things like >>> CHECK_INCLUDE_FILES internally. >>> >>> http://www.cmake.org/Wiki/CMake:How_To_Write_Platform_Checks might help, >>> CHECK_C_SOURCE_COMPILES is at the bottom. >>> >>> Rich >> >> I looked at SearchForStuff.cmake and found some good examples, however, I >> wonder why in one file two different approaches are used: >> >> 1. CHECK_C_SOURCE_COMPILES (for me it would be CHECK_CXX_SOURCE_COMPILES): >> >> INCLUDE (CheckCSourceCompiles) >> SET (CHECK_TIMESPEC_SOURCE_CODE "#include <time.h> >> int main () { struct timespec *tmp; return 0; }") >> CHECK_C_SOURCE_COMPILES ("${CHECK_TIMESPEC_SOURCE_CODE}" >> HAVE_STRUCT_TIMESPEC) >> >> 2. TRY_COMPILE (how does it know if it is C or C++?!): >> >> SET (testSTLSource ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp/test_stl.cpp) >> FILE (WRITE ${testSTLSource} >> "#include <string>\nint main () {std::string a = \"blag\"; return >> 0;}\n") >> TRY_COMPILE (HAVE_STL ${CMAKE_CURRENT_BINARY_DIR} ${testSTLSource}) >> >> Personally, I would take CHECK_CXX_SOURCE_COMPILES as it explicitly >> picks the right compiler. Both aproaches seem to be answers for my >> problem. >> >> Paul >> >>> >>> -----Original Message----- >>> From: Geoffrey Biggs [mailto:geoffrey.biggs@...] >>> Sent: Friday, July 02, 2010 2:51 AM >>> To: playerstage-developers@... >>> Subject: Re: [Playerstage-developers] CHECK_SYMBOL_EXISTS and C++ >>> >>> You can supply CMake with a short program and instruct it to see if it >>> compiles, then based on the result decide if the feature that program >>> uses is supported or not. >>> >>> Geoff >>> >>> On 02/07/10 15:40, Paul Osmialowski wrote: >>>> Is it possible for cmake to check if some C++ stream modifier is defined? >>>> I doubt CHECK_SYMBOL_EXISTS is capable to do that. I'd like to modify >>>> CMakeLists.txt for epuck driver so it could check if std::showbase is >>>> defined in <iostream> (which is not in older g++). >>>> >>>> Paul >>> >>> ---------------------------------------------------------------------------- >>> -- >>> This SF.net email is sponsored by Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> Playerstage-developers mailing list >>> Playerstage-developers@... >>> https://lists.sourceforge.net/lists/listinfo/playerstage-developers >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> Playerstage-developers mailing list >>> Playerstage-developers@... >>> https://lists.sourceforge.net/lists/listinfo/playerstage-developers >>> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Playerstage-developers mailing list >> Playerstage-developers@... >> https://lists.sourceforge.net/lists/listinfo/playerstage-developers >> > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Playerstage-developers mailing list > Playerstage-developers@... > https://lists.sourceforge.net/lists/listinfo/playerstage-developers > |