Hi,

It's a Qt purpose.

To fill the LIBS variable, prefix the paths with -L and the library names with 
-l
So,
LIBS += -LD:/openscenegraph/OpenSceneGraph/lib -losg -lOpenThreads



Cordialement,
Eric Zaremba
--------------------------------------------
European Rail Software Applications
5, rue Maurice Blin
67500 HAGUENAU
FRANCE
E-mail : <mailto:[email protected]>
Tel : (+33)3 88 07 15 54
Fax: (+33)3 88 07 15 51
Internet: <http://www.ersa-france.com>
--------------------------------------------

-----Message d'origine-----
De : [email protected] 
[mailto:[email protected]] De la part de Maxim Gammer
Envoyé : mardi 7 décembre 2010 12:10
À : [email protected]
Objet : Re: [osg-users] QT undefined reference to

+
CONFIG += opengl
QT +=  opengl


2010/12/7 Maxim Gammer <[email protected]>:
> in my .pro file
>
> ....
>
> win32 {
>    LIBS =     -lOpenThreads \
>        -lopengl32 \
>        -losg \
>        -losgDB \
>        -losgGA \
>        -losgUtil \
>        -losgText \
>        -losgViewer \
>        -losgShadow \
>        -losgParticle \
>        -losgAnimation \
>
> .....
>
> 2010/12/7 Cracj Kurt <[email protected]>:
>> Hi,
>>
>>
>> i have *.pro
>>
>> Code:
>> QT       += core
>>
>> QT       -= gui
>>
>> TARGET = untitled
>> CONFIG   += console
>> CONFIG   -= app_bundle
>>
>> TEMPLATE = app
>>
>>
>> SOURCES += main.cpp
>> INCLUDEPATH += D:/openscenegraph/OpenSceneGraph/include/
>> INCLUDEPATH += D:/openscenegraph/OpenSceneGraph/include/osg
>>
>> INCLUDEPATH += C:/Qt/2010.05/qt/src/opengl
>> LIBS +=D:/openscenegraph/OpenSceneGraph/lib/osgd.lib
>>
>>
>>
>>
>> path
>> D:/openscenegraph/OpenSceneGraph/lib/
>> is exist.
>> But have error
>>
>> Code:
>> error: undefined reference to `_imp___ZN3osg8GeometryC1Ev
>>
>> '
>>
>> Code is very easy
>>
>> Code:
>> #include <QtCore/QCoreApplication>
>>
>> #include <osg/Geode>
>> #include <osg/Geometry>
>>
>> #include <iostream>
>>
>>
>> osg::ref_ptr<osg::Node> createSceneGraph()
>> {
>>    osg::ref_ptr<osg::Geometry> geom = new osg::Geometry;
>>
>> }
>>
>> int main(int argc, char *argv[])
>> {
>>    QCoreApplication a(argc, argv);
>>    return a.exec();
>> }
>>
>>
>>
>> Whats wrong?
>>
>> Thank you!
>>
>> Cheers,
>> Cracj[/code][/quote]
>>
>> ------------------
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=34574#34574
>>
>>
>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
>
> --
> Maxim Gammer
>



-- 
Maxim Gammer
_______________________________________________
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