Hi Pavan,

How are you going about trying to compile osgviewerQT?  One should be
compiling this as part of the build of all the rest of the examples,
you enable the compile of the examples by going into ccmake or
CMakeSetup as setting the BUILD_OSG_EXAMPLES flag to ON, then generate
the build system, which from there onwards should work fine.

Robert.

On Mon, Jan 19, 2009 at 5:43 PM, dasari pavan kumar
<[email protected]> wrote:
> Hi,
>     I am unable to compile "osgviewerQT" example .. i am getting the
> following error..
>
> CMake Error at CMakeLists.txt:17 (SETUP_EXAMPLE):
>   Unknown CMake command "SETUP_EXAMPLE".
>
>
> CMake Warning (dev) in CMakeLists.txt:
>   No cmake_minimum_required command is present.  A line of code such as
>
>     cmake_minimum_required(VERSION 2.6)
>
>   should be added at the top of the file.  The version specified may be
> lower
>   if you wish to support older CMake versions for this project.  For more
>   information run "cmake --help-policy CMP0000".
> This warning is for project developers.  Use -Wno-dev to suppress it.
>
> -- Configuring done
>
>
> I tried to discard it and continued with "make osgviewerQT" .. It gave
> another error ..
>
> /tmp/ccJqhYMB.o: In function `main':
> osgviewerQT.cpp:(.text+0x92): undefined reference to
> `QApplication::QApplication(
> int&, char**, int)'
> osgviewerQT.cpp:(.text+0xfc): undefined reference to
> `osg::ArgumentParser::ArgumentParser(int*, char**)'
> osgviewerQT.cpp:(.text+0x133): undefined reference to
> `osg::ArgumentParser::read(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)'
> osgviewerQT.cpp:(.text+0x1b2): undefined reference to
> `mainQOSGWidget(QApplication&, osg::ArgumentParser&)'
> osgviewerQT.cpp:(.text+0x1c9): undefined reference to
> `mainAdapterWidget(QApplication&, osg::ArgumentParser&)'
> osgviewerQT.cpp:(.text+0x211): undefined reference to
> `QApplication::~QApplication()'
> osgviewerQT.cpp:(.text+0x22d): undefined reference to
> `QApplication::~QApplication()'
> /tmp/ccJqhYMB.o: In function `osg::Referenced::unref() const':
> osgviewerQT.cpp:(.text._ZNK3osg10Referenced5unrefEv[osg::Referenced::unref()
> const]+0x77): undefined reference to `osg::Referenced::getDeleteHandler()'
> osgviewerQT.cpp:(.text._ZNK3osg10Referenced5unrefEv[osg::Referenced::unref()
> const]+0x8b): undefined reference to
> `osg::Referenced::deleteUsingDeleteHandler() const'
> collect2: ld returned 1 exit status
> make: *** [osgviewerQT] Error 1
>
> ...
>
> Then I wrote my own makefile including all the files .. then I got a very
> long list of errors ..
>
> I did try googlin it but cudnt solve the prob :( .. someone plzz help me out
> ..
>
> tnx in advance,
> pavan
>
> On Mon, Jan 19, 2009 at 11:03 PM, dasari pavan kumar <[email protected]>
> wrote:
>>
>> Hi,
>>     I am unable to compile "osgviewerQT" example .. i am getting the
>> following error..
>>
>> CMake Error at CMakeLists.txt:17 (SETUP_EXAMPLE):
>>   Unknown CMake command "SETUP_EXAMPLE".
>>
>>
>> CMake Warning (dev) in CMakeLists.txt:
>>   No cmake_minimum_required command is present.  A line of code such as
>>
>>     cmake_minimum_required(VERSION 2.6)
>>
>>   should be added at the top of the file.  The version specified may be
>> lower
>>   if you wish to support older CMake versions for this project.  For more
>>   information run "cmake --help-policy CMP0000".
>> This warning is for project developers.  Use -Wno-dev to suppress it.
>>
>> -- Configuring done
>>
>>
>> I tried to discard it and continued with "make osgviewerQT" .. It gave
>> another error ..
>>
>> /tmp/ccJqhYMB.o: In function `main':
>> osgviewerQT.cpp:(.text+0x92): undefined reference to
>> `QApplication::QApplication(int&, char**, int)'
>> osgviewerQT.cpp:(.text+0xfc): undefined reference to
>> `osg::ArgumentParser::ArgumentParser(int*, char**)'
>> osgviewerQT.cpp:(.text+0x133): undefined reference to
>> `osg::ArgumentParser::read(std::basic_string<char, std::char_traits<char>,
>> std::allocator<char> > const&)'
>> osgviewerQT.cpp:(.text+0x1b2): undefined reference to
>> `mainQOSGWidget(QApplication&, osg::ArgumentParser&)'
>> osgviewerQT.cpp:(.text+0x1c9): undefined reference to
>> `mainAdapterWidget(QApplication&, osg::ArgumentParser&)'
>> osgviewerQT.cpp:(.text+0x211): undefined reference to
>> `QApplication::~QApplication()'
>> osgviewerQT.cpp:(.text+0x22d): undefined reference to
>> `QApplication::~QApplication()'
>> /tmp/ccJqhYMB.o: In function `osg::Referenced::unref() const':
>>
>> osgviewerQT.cpp:(.text._ZNK3osg10Referenced5unrefEv[osg::Referenced::unref()
>> const]+0x77): undefined reference to `osg::Referenced::getDeleteHandler()'
>>
>> osgviewerQT.cpp:(.text._ZNK3osg10Referenced5unrefEv[osg::Referenced::unref()
>> const]+0x8b): undefined reference to
>> `osg::Referenced::deleteUsingDeleteHandler() const'
>> collect2: ld returned 1 exit status
>> make: *** [osgviewerQT] Error 1
>>
>> ...
>>
>> Then I wrote my own makefile including all the files .. then I got a very
>> long list of errors ..
>>
>> I did try googlin it but cudnt solve the prob :( .. someone plzz help me
>> out ..
>>
>> tnx in advance,
>> pavan
>
>
>
> --
>
> ./Pavan
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to