Osgart 2.0 error in make

Community support forum for users of the GPL-licensed osgART Standard Edition v1.0 and proprietary-licensed osgART Professional Edition v1.1
Ghus
Posts: 2
Joined: Thu Feb 11, 2010 7:26 am

Osgart 2.0 error in make

Postby Ghus » Thu Feb 18, 2010 3:51 am

i have everthing working fine in ubuntu 9.04 but when i run the cmd make it gives this error

instaled: ARtookit 2.72.1, Openscenegraph 2.8.0 trying to run osgart2.0 RC3

please someone help

i don't now what to do

:( :( :(


gmacaes@ubuntu:~/Desktop/osgART$ make
[ 36%] Building CXX object src/osgART/CMakeFiles/osgART.dir/Calibration.o
[ 36%] Building CXX object src/osgART/CMakeFiles/osgART.dir/Foundation.o
[ 36%] Building CXX object src/osgART/CMakeFiles/osgART.dir/ImageStreamCallback.o
[ 36%] Building CXX object src/osgART/CMakeFiles/osgART.dir/Marker.o
[ 36%] Building CXX object src/osgART/CMakeFiles/osgART.dir/MarkerCallback.o
[ 36%] Building CXX object src/osgART/CMakeFiles/osgART.dir/PluginManager.o
[ 36%] Building CXX object src/osgART/CMakeFiles/osgART.dir/Tracker.o
[ 36%] Building CXX object src/osgART/CMakeFiles/osgART.dir/TransformFilterCallback.o
[ 36%] Building CXX object src/osgART/CMakeFiles/osgART.dir/Utils.o
In file included from /home/gmacaes/Desktop/osgART/src/osgART/Utils.cpp:23:
/home/gmacaes/Desktop/osgART/include/osgART/Utils: In function ‘osg::ref_ptr<osgART::TypedField<T> > osgART::SetField(osg::ref_ptr<T>, std::string, ObjType, std::string, bool)’:
/home/gmacaes/Desktop/osgART/include/osgART/Utils:77: error: there are no arguments to ‘exit’ that depend on a template parameter, so a declaration of ‘exit’ must be available
/home/gmacaes/Desktop/osgART/include/osgART/Utils:77: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[2]: *** [src/osgART/CMakeFiles/osgART.dir/Utils.o] Error 1
make[1]: *** [src/osgART/CMakeFiles/osgART.dir/all] Error 2
make: *** [all] Error 2

prabhash
Posts: 5
Joined: Thu Sep 24, 2009 10:28 am

Re: Osgart 2.0 error in make

Postby prabhash » Tue Nov 16, 2010 4:49 am

Hi all,

I'm having the same problem. Using Ubuntu 10.04 with a Logitech camera. Any solution?

Regards,

Prabhash

PeV85
Posts: 1
Joined: Fri Jan 21, 2011 10:21 am

Re: Osgart 2.0 error in make

Postby PeV85 » Fri Jan 21, 2011 10:25 am

Hi!

I think the solution is:
When you do the ccmake go to the toggle mode and add "-fpermissive" next to CMAKE_CXX_FLAGS and "-lgstreamer-0.10" next to both CMAKE_MODULE_LINKER_FLAGS and CMAKE_SHARED_LINKER_FLAGS.

It worked for me!

glennseso
Posts: 5
Joined: Wed Mar 09, 2011 1:45 am

Re: Osgart 2.0 error in make

Postby glennseso » Wed Mar 09, 2011 1:52 am

Hi, i tried your solution and have sucess with make, and install, but when i try to run osgartsimple i got
Plugin '-1' unknown!
Could not initialize video plugin!

Artoolkit and OSG are running well.
Do you have this problema? Some idea??
Thx

glennseso
Posts: 5
Joined: Wed Mar 09, 2011 1:45 am

Re: Osgart 2.0 error in make

Postby glennseso » Wed Mar 09, 2011 7:33 pm

One more thing. When i made the ccmake i got this:

ARTOOLKIT2_INCLUDE_DIR ARTOOLKIT2_INCLUDE_DIR-NOTFOUND
ARTOOLKIT2_LIBAR ARTOOLKIT2_LIBAR-NOTFOUND

This "environment variables" are set NOT FOUND.
Is this the problem??? How i solve this???

Cheers
Glennseso

glennseso
Posts: 5
Joined: Wed Mar 09, 2011 1:45 am

Re: Osgart 2.0 error in make

Postby glennseso » Wed Mar 09, 2011 9:33 pm

I found another solution. I edited the osgART_2.0_RC3/osgART_2.0_RC3/include/osgART/Utils.
I changed the lines 76 and 77:
if (ExitOnerror)
exit(-1);
by
if (ExitOnerror);
//exit(-1);
With this i have no erros using cmake or ccmake.
however I keep getting the same error.
When i'm in user mode
Plugin '-1' unknown!
Could not initialize video plugin!
When i'm in super user mode
./osgartsimple: error while loading shared libraries: libOpenThreads.so.11: cannot open shared object file: No such file or directory

Any idea?

Cheers

Glennseso

glennseso
Posts: 5
Joined: Wed Mar 09, 2011 1:45 am

Re: Osgart 2.0 error in make

Postby glennseso » Wed Mar 09, 2011 9:51 pm

Sory about the numerous posts. I'm trying to solve this :)
I used the command:

ldd /home/moiss/AR/osgART-Build/bin/osgartsimple

and the result is:

linux-vdso.so.1 => (0x00007fffa63ff000)
libosgART.so.65 => /home/moiss/AR/osgART-Build/lib/libosgART.so.65 (0x00007f265df49000)
libosg.so.65 => /usr/local/lib64/libosg.so.65 (0x00007f265daba000)
libosgDB.so.65 => /usr/local/lib64/libosgDB.so.65 (0x00007f265d82e000)
libosgGA.so.65 => /usr/local/lib64/libosgGA.so.65 (0x00007f265d5d7000)
libosgViewer.so.65 => /usr/local/lib64/libosgViewer.so.65 (0x00007f265d31c000)
libOpenThreads.so.11 => /usr/local/lib64/libOpenThreads.so.11 (0x00007f265d113000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00007f265ce86000)
libGL.so.1 => /usr/lib/mesa/libGL.so.1 (0x00007f265cc15000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f265ca0b000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f265c7f0000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f265c4ba000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f265c2a7000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f265bfa1000)
libm.so.6 => /lib/libm.so.6 (0x00007f265bd1e000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f265bb07000)
libc.so.6 => /lib/libc.so.6 (0x00007f265b784000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f265b567000)
libosgUtil.so.65 => /usr/local/lib64/libosgUtil.so.65 (0x00007f265b1e8000)
libosgText.so.65 => /usr/local/lib64/libosgText.so.65 (0x00007f265af99000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007f265ad8f000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007f265ab8c000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007f265a985000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00007f265a77f000)
libdrm.so.2 => /lib/libdrm.so.2 (0x00007f265a574000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f265a36f000)
libuuid.so.1 => /lib/libuuid.so.1 (0x00007f265a16a000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f2659f4d000)
/lib64/ld-linux-x86-64.so.2 (0x00007f265e19e000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f2659d42000)
librt.so.1 => /lib/librt.so.1 (0x00007f2659b3a000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f2659936000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f2659730000)

apparently there is nothing missing library.

I have no idea about what i can try anymore.
Cheers
Glennseso

retrakker
Posts: 125
Joined: Mon Dec 18, 2006 5:00 pm
Contact:

Re: Osgart 2.0 error in make

Postby retrakker » Tue Mar 15, 2011 5:43 am

Plugins are loaded on runtime - hence not visible via ldd. You need to do "make install" so that osgART can actually find them.

glennseso
Posts: 5
Joined: Wed Mar 09, 2011 1:45 am

Re: Osgart 2.0 error in make

Postby glennseso » Tue Mar 15, 2011 7:22 am

Hi.
I already done make, and sudo make install.
The files are copied to /usr/local/bin and lib64, but still not working.
Thanks for replying

enekochan
Posts: 4
Joined: Mon Apr 18, 2011 4:44 am

Re: Osgart 2.0 error in make

Postby enekochan » Mon Apr 18, 2011 4:51 am

You have to configure the path to OSG libraries in LD_LIBRARY_PATH variable. For example in your home directory edit the file ".bashrc" (without quotes) and write:

export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/osgPlugins-2.8.0

Of course the path to OSG plugins depends on version number. Have a look at /usr/local/lib.

Restart the computer may be necesary, or at least start one new terminal window.

May be you also have to run this to update library paths:

sudo ldconfig /etc/ld.so.conf

retrakker
Posts: 125
Joined: Mon Dec 18, 2006 5:00 pm
Contact:

Re: Osgart 2.0 error in make

Postby retrakker » Wed May 25, 2011 7:28 am

Thanks for the hint actually. We can fix that in future releases of osgART using RPATH.

Spirmy25
Posts: 1
Joined: Fri Sep 30, 2011 4:26 am

Re: Osgart 2.0 error in make

Postby Spirmy25 » Fri Sep 30, 2011 4:30 am

Hi,
you need to have artoolkit and osg installed first. for building both use cmake. Compiling with cmake is pretty easy and intuitive, just follow the instructions. once you have those two compilled and installed, then unzip osgart and use cmake again to compile it.buy levitra online

that is the basic step, also it depends on which platform you want to develop.
Last edited by Spirmy25 on Thu Dec 08, 2011 9:23 pm, edited 1 time in total.

enekochan
Posts: 4
Joined: Mon Apr 18, 2011 4:44 am

Re: Osgart 2.0 error in make

Postby enekochan » Sun Oct 02, 2011 6:29 am

Hi retrakker,

Could you explain how to solve it with RPATH? I've never heard about it.

Thanks.

enekochan
Posts: 4
Joined: Mon Apr 18, 2011 4:44 am

Re: Osgart 2.0 error in make

Postby enekochan » Tue Oct 04, 2011 6:38 am

retrakker wrote:Thanks for the hint actually. We can fix that in future releases of osgART using RPATH.


I've been looking around what RPATH is in this link http://www.eyrie.org/~eagle/notes/rpath.html. I'm not sure how that fix could be implemented. Would it be inserted in the Makefiles? So it would detect OSG version and put the correct library path to RPATH in compilation stage? How it would be done? But... what would happen if I change OSG version? I suppose I would have to recompile osgART... or may be I am wrong.

Thank you.


Return to “[ARCHIVED] osgART Standard & Professional Editions”

Who is online

Users browsing this forum: No registered users and 2 guests