Well on all the items that have the following:

   ${OSGVIEWER_INCLUDE_DIR

They all need to be have a closing brace, "}".  Putting that at the end
should get rid of that error.

On Sat, 2013-02-02 at 11:12 +0530, om prakash Paliwal wrote:
> one more problem i have ... when i complile/build using cmake and then
> use make i get an error .. i have to modify the code genereted by
> cmake to get is corrected .. why so ... the error that is genereted
> are pasted below .... is there any problem with installation .. 
> 
> 
> 
> 
> 
> 
> 
> heart-hacker@hearthacker-HP-Pavilion-g6-Notebook-PC:~/osgproject/program-2$ 
> cmake ./
> -- Configuring done
> -- Generating done
> -- Build files have been written
> to: /home/heart-hacker/osgproject/program-2
> heart-hacker@hearthacker-HP-Pavilion-g6-Notebook-PC:~/osgproject/program-2$ 
> make
> CMake Warning (dev) at CMakeFiles/MyProject.dir/DependInfo.cmake:16
> (SET):
>   Syntax error in cmake code at
> 
> 
> 
>   
> /home/heart-hacker/osgproject/program-2/CMakeFiles/MyProject.dir/DependInfo.cmake:17
> 
> 
>   when parsing string
> 
> 
>     ${OPENTHREADS_INCLUDE_DIR
> 
> 
>   syntax error, unexpected $end, expecting } (25)
> 
> 
>   Policy CMP0010 is not set: Bad variable reference syntax is an
> error.  Run
>   "cmake --help-policy CMP0010" for policy details.  Use the
> cmake_policy
>   command to set the policy and suppress this warning.
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> 
> CMake Warning (dev) at CMakeFiles/MyProject.dir/DependInfo.cmake:16
> (SET):
>   Syntax error in cmake code at
> 
> 
> 
>   
> /home/heart-hacker/osgproject/program-2/CMakeFiles/MyProject.dir/DependInfo.cmake:19
> 
> 
>   when parsing string
> 
> 
>     ${OSG_INCLUDE_DIR
> 
> 
>   syntax error, unexpected $end, expecting } (17)
> 
> 
>   Policy CMP0010 is not set: Bad variable reference syntax is an
> error.  Run
>   "cmake --help-policy CMP0010" for policy details.  Use the
> cmake_policy
>   command to set the policy and suppress this warning.
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> 
> CMake Warning (dev) at CMakeFiles/MyProject.dir/DependInfo.cmake:16
> (SET):
>   Syntax error in cmake code at
> 
> 
> 
>   
> /home/heart-hacker/osgproject/program-2/CMakeFiles/MyProject.dir/DependInfo.cmake:20
> 
> 
>   when parsing string
> 
> 
>     ${OSGDB_INCLUDE_DIR
> 
> 
>   syntax error, unexpected $end, expecting } (19)
> 
> 
>   Policy CMP0010 is not set: Bad variable reference syntax is an
> error.  Run
>   "cmake --help-policy CMP0010" for policy details.  Use the
> cmake_policy
>   command to set the policy and suppress this warning.
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> 
> CMake Warning (dev) at CMakeFiles/MyProject.dir/DependInfo.cmake:16
> (SET):
>   Syntax error in cmake code at
> 
> 
> 
>   
> /home/heart-hacker/osgproject/program-2/CMakeFiles/MyProject.dir/DependInfo.cmake:21
> 
> 
>   when parsing string
> 
> 
>     ${OSGUTIL_INCLUDE_DIR
> 
> 
>   syntax error, unexpected $end, expecting } (21)
> 
> 
>   Policy CMP0010 is not set: Bad variable reference syntax is an
> error.  Run
>   "cmake --help-policy CMP0010" for policy details.  Use the
> cmake_policy
>   command to set the policy and suppress this warning.
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> 
> CMake Warning (dev) at CMakeFiles/MyProject.dir/DependInfo.cmake:16
> (SET):
>   Syntax error in cmake code at
> 
> 
> 
>   
> /home/heart-hacker/osgproject/program-2/CMakeFiles/MyProject.dir/DependInfo.cmake:22
> 
> 
>   when parsing string
> 
> 
>     ${OSGVIEWER_INCLUDE_DIR
> 
> 
>   syntax error, unexpected $end, expecting } (23)
> 
> 
>   Policy CMP0010 is not set: Bad variable reference syntax is an
> error.  Run
>   "cmake --help-policy CMP0010" for policy details.  Use the
> cmake_policy
>   command to set the policy and suppress this warning.
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> 
> [100%] Building CXX object CMakeFiles/MyProject.dir/test.cpp.o
> /home/heart-hacker/osgproject/program-2/test.cpp:1:23: fatal error:
> osg/ref_ptr: No such file or directory
> compilation terminated.
> make[2]: *** [CMakeFiles/MyProject.dir/test.cpp.o] Error 1
> make[1]: *** [CMakeFiles/MyProject.dir/all] Error 2
> make: *** [all] Error 2
> 
> 
> 
> 
> any correction you suggest ? thanks for the help ...... 
> 
> 
> i am also pasting the CMakeLists.txt file 
> 
> 
> cmake_minimum_required( VERSION 2.6 )
> project( MyProject )
> 
> 
> find_package( OpenThreads )
> find_package( osg )
> find_package( osgDB )
> find_package( osgUtil )
> find_package( osgViewer )
> 
> 
> macro( config_project PROJNAME LIBNAME )
>         include_directories(${${LIBNAME}_INCLUDE_DIR } )
>         target_link_libraries(${PROJNAME} ${${LIBNAME}_LIBRARY})
> endmacro()
> 
> 
> add_executable( MyProject test.cpp )
> config_project( MyProject OPENTHREADS )
> config_project( MyProject OSG )
> config_project( MyProject OSGDB )
> config_project( MyProject OSGUTIL )
> config_project( MyProject OSGVIEWER )
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> On Sat, Feb 2, 2013 at 10:55 AM, om prakash Paliwal
> <omprakash.paliwa...@gmail.com> wrote:
>         #include <osg/Referenced>
>         #include <iostream>
>         
>         
>         class MonitoringTarget : public osg:Referenced {
>                 public:
>                         MonitoringTarget(int id) : _id(id) {
>                                 std::cout << "Constructing target
>         "<<_id<<std::endl;
>                         }
>         
>         
>                 protected:
>                         virtual ~MonitoringTarget() {
>                                 std::cout << "Destroying target
>         "<<_id<<std::endl;
>                         }
>         
>         
>                         int _id;
>         };
>         
>         
>         int main() {
>         
>         
>                 osg::ref_ptr<MonitoringTarget> target =new
>         MonitoringTarget(0);
>                 std::cout << "Referenced count before referring: "
>                           << target->referenceCount() << std::endl;
>         
>         
>                 osg::ref_ptr<MonitoringTarget> anotherTarget = target;
>                 std::cout << "Referenced count after referring: "
>                           << target->referenceCount() <<std::endl;
>         
>         
>                 for (unsigned int i=1;i<5;i++) {
>                         osg::ref_ptr<MonitoringTarget> subTarget = new
>         MonitoringTarget(i);
>                 }
>         }
>         
>         
>         
>         
>         
>         
>         On Sat, Feb 2, 2013 at 4:54 AM, Michael W. Hall
>         <hal...@att.net> wrote:
>                 Sounds like you may have missed an include file in
>                 your test.cpp file,
>                 or you have included something that it does not know
>                 about.  If your
>                 program is short you may want to paste it into a reply
>                 and then people
>                 could maybe determine the problem.
>                 
>                 Michael
>                 
>                 On Fri, 2013-r2-01 at 19:10 +0530, om prakash Paliwal
>                 wrote:
>                 > i am a beggineer ... and i stuck at very begining .
>                 i created my first
>                 > OSG program in ubuntu i get this error message ...
>                 >
>                 >
>                 >
>                 >
>                 > Scanning dependencies of target MyProject
>                 > [100%] Building CXX object
>                 CMakeFiles/MyProject.dir/test.cpp.o
>                 > /home/heart-hacker/osgproject/program-2/test.cpp:1:23: 
> fatal error:
>                 > osg/ref_ptr: No such file or directory
>                 > compilation terminated.
>                 > make[2]: *** [CMakeFiles/MyProject.dir/test.cpp.o]
>                 Error 1
>                 > make[1]: *** [CMakeFiles/MyProject.dir/all] Error 2
>                 > make: *** [all] Error 2
>                 >
>                 >
>                 > .... i have used cmake to build CMakeLists.txt ..
>                 suceeded
>                 >
>                 >
>                 >  but when run make command , above errors occured.
>                 >
>                 >
>                 >
>                 >
>                 >
>                 >
>                 >
>                 >
>                 >
>                 >
>                 >
>                 
>                 > _______________________________________________
>                 > osg-users mailing list
>                 > osg-users@lists.openscenegraph.org
>                 >
>                 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>                 
>                 
>                 _______________________________________________
>                 osg-users mailing list
>                 osg-users@lists.openscenegraph.org
>                 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>         
>         
> 
> 
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to