SdkTrays setParamValue

Problems building or running the engine, queries about how to use features etc.
Post Reply
qu1ze
Gnoblar
Posts: 3
Joined: Tue Mar 03, 2015 10:16 am

SdkTrays setParamValue

Post by qu1ze »

Hello to everyone!

I've built ogre3d from source on my Ubuntu 14.04 and trying to use test framework under Eclipse IDE.
So I have:

Code: Select all

mDetailsPanel->setParamValue(9, "Bilinear");
and the error is:

Code: Select all

Invalid arguments 'Candidates are:void setParamValue(const ? &, const ? &) void setParamValue(unsigned int, const ? &) BaseApplication.cpp
Also there is one more error which I couldn't resolve:
Code:

Code: Select all

mDetailsPanel->getParamValue(9).asUTF8()[0]
Error:

Code: Select all

Method 'asUTF8' could not be resolved
Thank you for help in advance!
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: SdkTrays setParamValue

Post by spacegaier »

Which Ogre version are you using?
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
qu1ze
Gnoblar
Posts: 3
Joined: Tue Mar 03, 2015 10:16 am

Re: SdkTrays setParamValue

Post by qu1ze »

I cloned it by:

Code: Select all

hg clone ssh://hg@bitbucket.org/sinbad/ogre
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: SdkTrays setParamValue

Post by spacegaier »

Okay, no explicit branch in the clone command --> default branch = Ogre 1.10

Is there a specific sample that causes the trouble?
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
qu1ze
Gnoblar
Posts: 3
Joined: Tue Mar 03, 2015 10:16 am

Re: SdkTrays setParamValue

Post by qu1ze »

I just found that building process had a lot of failed statements like

Code: Select all

Linking CXX executable
or

Code: Select all

Linking CXX shared library ../../lib/Sample_Isosurf.so
What it can be? I configured make file with CMake.

There is an output:

Code: Select all

-- Configuring OGRE 1.9.0
-- Detected g++ 4.8

-- Enabling GCC visibility flags
-- Search path: /home/oleg/ogre3d/build/Dependencies;/home/oleg/ogre3d/Dependencies;/home/oleg/ogre3d/build/../Dependencies;/home/oleg/ogre3d/../Dependencies
-- Looking for ZLIB...
-- Found ZLIB: optimized;/usr/lib/x86_64-linux-gnu/libz.so;debug;/usr/lib/x86_64-linux-gnu/libz.so
-- Looking for ZZip...
-- Found ZZip: optimized;/usr/lib/x86_64-linux-gnu/libzzip.so;debug;/usr/lib/x86_64-linux-gnu/libzzip.so
-- Looking for FreeImage...
-- checking for module 'freeimage'
--   package 'freeimage' not found
-- Found FreeImage: optimized;/usr/lib/libfreeimage.so;debug;/usr/lib/libfreeimage.so
-- Looking for FREETYPE...
-- CMAKE_PREFIX_PATH: /home/oleg/ogre3d/build/Dependencies;/home/oleg/ogre3d/Dependencies;/home/oleg/ogre3d/build/../Dependencies;/home/oleg/ogre3d/../Dependencies;/usr/local;/usr/lib/x86_64-linux-gnu
-- CMAKE_PREFIX_PATH: /home/oleg/ogre3d/build/Dependencies;/home/oleg/ogre3d/Dependencies;/home/oleg/ogre3d/build/../Dependencies;/home/oleg/ogre3d/../Dependencies;/usr/local;/usr/lib/x86_64-linux-gnu
-- Found FREETYPE: optimized;/usr/lib/x86_64-linux-gnu/libfreetype.so;debug;/usr/lib/x86_64-linux-gnu/libfreetype.so
-- Looking for Cg...
-- checking for module 'Cg'
--   package 'Cg' not found
-- Found Cg: optimized;/usr/lib/x86_64-linux-gnu/libCg.so;debug;/usr/lib/x86_64-linux-gnu/libCg.so
-- Looking for POCO...
-- checking for module 'POCO'
--   package 'POCO' not found
-- Found POCO: optimized;/usr/lib/libPocoFoundation.so;debug;/usr/lib/libPocoFoundationd.so
-- Looking for POCO_Util...
-- Found POCO_Util: optimized;/usr/lib/libPocoUtil.so;debug;/usr/lib/libPocoUtild.so
-- Looking for POCO_Net...
-- Found POCO_Net: optimized;/usr/lib/libPocoNet.so;debug;/usr/lib/libPocoNetd.so
-- Looking for POCO_NetSSL...
-- Found POCO_NetSSL: optimized;/usr/lib/libPocoNetSSL.so;debug;/usr/lib/libPocoNetSSLd.so
-- Looking for POCO_XML...
-- Found POCO_XML: optimized;/usr/lib/libPocoXML.so;debug;/usr/lib/libPocoXMLd.so
-- Looking for TBB...
-- Found TBB: optimized;/usr/lib/libtbb.so;debug;/usr/lib/libtbb.so
-- Looking for TBB_MALLOC...
-- Found TBB_MALLOC: optimized;/usr/lib/libtbbmalloc.so;debug;/usr/lib/libtbbmalloc.so
-- Looking for TBB_MALLOC_PROXY...
-- Found TBB_MALLOC_PROXY: optimized;/usr/lib/libtbbmalloc_proxy.so;debug;/usr/lib/libtbbmalloc_proxy.so
-- Looking for GLSL_Optimizer...
-- checking for module 'GLSL_Optimizer'
--   package 'GLSL_Optimizer' not found
-- Could not locate GLSL_Optimizer
-- Looking for HLSL2GLSL...
-- checking for module 'HLSL2GLSL'
--   package 'HLSL2GLSL' not found
-- Could not locate HLSL2GLSL
-- Looking for OIS...
-- Found OIS: optimized;/usr/lib/x86_64-linux-gnu/libOIS.so;debug;/usr/lib/x86_64-linux-gnu/libOIS.so
-- Looking for Softimage...
-- Could not locate Softimage
-- Could NOT find TinyXML (missing:  TINYXML_INCLUDE_DIR TINYXML_LIBRARIES) 
-- Looking for CppUnit...
-- Found CppUnit: optimized;/usr/lib/x86_64-linux-gnu/libcppunit.so;debug;/usr/lib/x86_64-linux-gnu/libcppunit.so
-- 
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ zlib
+ zziplib
+ freeimage
+ freetype
+ X11
+ Xt
+ Xaw
+ OpenGL
+ OpenGL 3+
+ OpenGL ES 2.x
+ OpenGL ES 3.x
+ cg
+ boost
+ boost-thread
+ boost-date_time
+ boost-system
+ boost-chrono
+ boost-atomic
+ POCO
+ tbb
+ OIS
+ Doxygen
+ CppUnit
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ OpenGL ES 1.x: Support for the OpenGL ES 1.x render system (DEPRECATED) <http://www.khronos.org/opengles/>
+ GLSL Optimizer: GLSL Optimizer <http://github.com/aras-p/glsl-optimizer/>
+ HLSL2GLSL: HLSL2GLSL <http://hlsl2glslfork.googlecode.com/>
+ Softimage: Softimage SDK needed for building XSIExporter <FALSE>
+ TinyXML: TinyXML needed for building OgreXMLConverter <FALSE>
-----------------------------------------------------------------------------

-- 
----------------------------------------------------------------------------
  FEATURE SUMMARY
----------------------------------------------------------------------------

Building components:
  + Paging
  + Property
  + Terrain
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
  + Volume
  + Overlay
Building plugins:
  + BSP scene manager
  + Cg program manager
  + Octree scene manager
  + Portal connected zone scene manager
  + Particle FX
Building rendersystems:
  + OpenGL
Building executables:
  + Samples
  + Tools
Building core features:
  + DDS image codec
  + FreeImage codec
  + ZIP archives

Build type:                      dynamic
Threading support:               background (boost)
Use double precision:            disabled
Assert mode:                     standard
Allocator type:                  nedmalloc (pooling)
STL containers use allocator:    enabled
Strings use allocator:           disabled
Memory tracker (debug):          disabled
Memory tracker (release):        disabled
Use Boost:                       enabled

----------------------------------------------------------------------------

-- Configuring done
CMake Warning in CMakeLists.txt:
  The build directory is a subdirectory of the source directory.

  This is not supported well by Eclipse.  It is strongly recommended to use a
  build directory which is a sibling of the source directory.


-- Generating done
-- Build files have been written to: /home/oleg/ogre3d/build
abarone77
Gnoblar
Posts: 4
Joined: Sun Mar 08, 2015 2:47 am

Re: SdkTrays setParamValue

Post by abarone77 »

Hi there,
I am having the same problem here.
But also:

Code: Select all

Method 'injectMouseDown' could not be resolved	BaseApplication.cpp	/testing	line 417	Semantic Error
Am my missing any library? Below are all the libraries I have set
OgreOverlay
OgreMain
OIS
boost_system

Best regards.
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: SdkTrays setParamValue

Post by spacegaier »

So same Ogre version, same IDE, same OS? And you compiled Ogre yourself and are now trying to create a custom application based on the BaseApplication? Is that the only method that cannot be resolved?
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
abarone77
Gnoblar
Posts: 4
Joined: Sun Mar 08, 2015 2:47 am

Re: SdkTrays setParamValue

Post by abarone77 »

Sorry spacegaier,
I think I wasn't clear.
I have the setParamValue issue.
Also

Code: Select all

Method 'asUTF8' could not be resolved	BaseApplication.cpp	/testing	line 334	Semantic Error
Method 'injectMouseDown' could not be resolved	BaseApplication.cpp	/testing	line 416	Semantic Error
Method 'injectMouseDown' could not be resolved	BaseApplication.cpp	/testing	line 417	Semantic Error
Method 'injectMouseMove' could not be resolved	BaseApplication.cpp	/testing	line 409	Semantic Error
Method 'injectMouseMove' could not be resolved	BaseApplication.cpp	/testing	line 410	Semantic Error
Method 'injectMouseUp' could not be resolved	BaseApplication.cpp	/testing	line 423	Semantic Error
Method 'injectMouseUp' could not be resolved	BaseApplication.cpp	/testing	line 424	Semantic Error
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: SdkTrays setParamValue

Post by spacegaier »

And you downloaded the correct version of the tutorial wiki framework (I assume that is where you have your BaseApplication from)?

http://www.ogre3d.org/tikiwiki/tiki-ind ... 0Framework
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
abarone77
Gnoblar
Posts: 4
Joined: Sun Mar 08, 2015 2:47 am

Re: SdkTrays setParamValue

Post by abarone77 »

Hi Spacegaier.
I was able to compile, after verifying the version.
BUT, I had to point my build environment to "installed" includes and Library at /usr/local path.
I built manually (make all and sudo make install) after all.

One thing I couldn't figured out wsa how to use resources.cfg and plugins.cfg.
Now I get the following message.
An exception has occurred: OGRE EXCEPTION(6:FileNotFoundException): 'resources.cfg' file not found! in ConfigFile::load at /mnt/Tera3/Mestrado/Dissertação/OGRE3D/sdk/ogre/OgreMain/src/OgreConfigFile.cpp (line 82)
Looking at wiki and/or forum I couldn't realize how to do it.

Thank you for your support.
abarone77
Gnoblar
Posts: 4
Joined: Sun Mar 08, 2015 2:47 am

Re: SdkTrays setParamValue

Post by abarone77 »

Solved!
I put the files under Releasefolder, instead of Project Folder!!!
Post Reply