University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Build errors on Mac OSX Yosemite (10.10.5) - deprecated OpenGL 3 features? | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Build errors on Mac OSX Yosemite (10.10.5) - deprecated OpenGL 3 features?
November 6, 2015
8:39 pm
Avatar
Member
Members
Forum Posts: 4
Member Since:
November 6, 2015
sp_UserOfflineSmall Offline
/Users/cretep/sync/smartbody/core/smartbody/SmartBody/src/sbm/GPU/SbmTexture.cpp:330:3: error: use of undeclared identifier 'gluBuild2DMipmaps'
                gluBuild2DMipmaps(iType, channels, width, height, texture_format, GL_UNSIGNED_BYTE, &imgBuffer[0] );
                ^

I have no experience with OpenGL, but this seems to have been deprecated: https://www.opengl.org/wiki/Common_Mistakes#gluBuild2DMipmaps

Commenting it out (so glTexImage2D is used instead) proceeds until another OpenGL error:

/Users/cretep/sync/smartbody/core/smartbody/sbgui/src/ObjectManipulationHandle.cpp:110:2: error: use of undeclared identifier 'gluPickMatrix'
        gluPickMatrix(cursorX,cursorY,20,20,viewport);

 

I tried fixing that with a polyfill
https://www.opengl.org/discussion_boards/showthread.php/184308-gluPickMatrix-Implementation?p=1259884&viewfull=1#post1259884
but then lots more 'glu' errors occurred.

I would happily use the Mac OSX binary download provided, but many of the examples require ./data files that are missing in that in build. You have also implemented a lot of new features since 2014 anyway.

Is there a known-good recent build for OSX? Thanks! 🙂

November 6, 2015
10:08 pm
Avatar
Admin
Forum Posts: 980
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

I just uploaded osx version v6219:

SmartBody/OSX build r6219

http://sourceforge.net/project.....p/download

let me know if that one works.

I'll have to look at the gluBuild2DMipMaps issue.

 

Ari

November 9, 2015
12:50 am
Avatar
Member
Members
Forum Posts: 4
Member Since:
November 6, 2015
sp_UserOfflineSmall Offline

Very kind to build another, however the examples are still crashing:

 

cretep$ /Users/cretep/Documents/SmartBodySDK/bin/startSBGUI.command ; exit;
Found .smartbodysettings file.
Setting mediapath to ../data/
Setting Python Library path to /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
Initializing Python with libraries at location: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
Phoneme mapping from EL->EH already found, replacing with EL->L
Phoneme mapping from T->D already found, replacing with T->D
Ready for OpenGL 2.0.

Create Vertex Shader

After Build Vertex Shader

Create Fragment Shader

After Build Fragment Shader

WARNING: Output of vertex shader 'normal' not read by fragment shader

Create Fragment Shader

After Build Fragment Shader

|--------------------------------------------|

|         Starting Character Demo            |

|--------------------------------------------|

Loading [../data/ChrBrad]

Configuring scene parameters and camera

Setting up joint map and configuring Brad's skeleton

Establishing lip syncing data set

Setting up face definition

Adding character into scene

Loading image       :../data/mesh/ChrBrad/ChrBrad_Hair_Dif.png    2048    2048    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_Teeth_Dif.png    1024    1024    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_Hands_Dif.png    2048    2048    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_Hands_Nrm.png    2048    2048    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_UpperBody_Dif.png    2048    2048    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_UpperBody_Nrm.png    2048    2048    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_LowerBody_Dif.png    2048    2048    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_LowerBody_Nrm.png    2048    2048    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_Shoes_Dif.png    2048    2048    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_Shoes_Nrm.png    2048    2048    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_Head_Dif.png    2048    2048    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_Head_Nrm.png    2048    2048    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_Eyelash_Dif.png    512    512    4

Loading image       :../data/mesh/ChrBrad/ChrBrad_Eye_Dif.png    1024    1024    3

Build Skinned Buffer

dynamic mesh size = 73, skin weight size = 73

meshIndexList size = 73

nTotalVtxs = 43810, nTotalTris = 83927

Setting up behavior set for MaleMocapLocomotion...

Loading [behaviorsets/MaleMocapLocomotion/skeletons]

locomotion smooth cycle

Motion named ChrMarine@Turn90Lf01 already exists, new motion will not be added.

Init Steer Agent

Steer agent with name ChrBrad does not exist.

loaded module testCasePlayer
Problem starting steering engine: Could not find the module named "libpprAI".
  tried user-specified search path: libpprAI.dylib
  tried engine's search path: ../../../../core/smartbody/sbgui/bin/libpprAI.dylib
  tried the current directory: libpprAI.dylib

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "/Users/cretep/Documents/SmartBodySDK/data/examples/AddCharacterDemo.py", line 115, in <module>

    

retargetBehaviorSet('ChrBrad')

  File "../data/behaviorsets/BehaviorSetMaleMocapLocomotion.py", line 201, in retargetBehaviorSet

    

steerManager.setEnable(True)

RuntimeError

:

Engine functions were not called in the proper way; tried to transition from state 5 to state 3.
See documentation for how to use the engine; eventually this error message will be expanded to give a meaningful specific error message.

libc++abi.dylib: terminating with uncaught exception of type Util::GenericException: Cannot run the next simulation step, the engine is not in the correct state.
/Users/cretep/Documents/SmartBodySDK/bin/startSBGUI.command: line 2: 43015 Abort trap: 6           DYLD_LIBRARY_PATH=../lib:$DYLD_LIBRARY_PATH PYTHONHOME=/System/Library/Frameworks/Python.framework/Versions/2.7 ./sbgui
logout

[Process completed]

November 9, 2015
12:51 am
Avatar
Member
Members
Forum Posts: 4
Member Since:
November 6, 2015
sp_UserOfflineSmall Offline

Also 'mediapath' is being duplicated, and files (like data/mesh/ChrMaarten/) are still missing.

 

Last login: Mon Nov 9 00:50:52 on ttys007 moo:~ cretep$ /Users/cretep/Documents/SmartBodySDK/bin/startSBGUI.command ; exit; Found .smartbodysettings file. Setting mediapath to ../data/ Setting Python Library path to /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 Initializing Python with libraries at location: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 Phoneme mapping from EL->EH already found, replacing with EL->L Phoneme mapping from T->D already found, replacing with T->D Ready for OpenGL 2.0. Create Vertex Shader After Build Vertex Shader Create Fragment Shader After Build Fragment Shader WARNING: Output of vertex shader 'normal' not read by fragment shader Create Fragment Shader After Build Fragment Shader |--------------------------------------------| | Starting Physics Ragdoll Demo | |--------------------------------------------| Loading [../data/sbm-common/common-sk] File ../data/../data/sbm-common/common-sk cannot be read, asset will not be loaded. Could not find Python script 'init-param-animation.py' Configuring scene parameters and camera Setting up characters No skeleton found for file common.sk. File ../data/../data/mesh/Brad/Brad.dae cannot be read, asset will not be loaded. File ../data/../data/retarget/mesh/Brad/Brad.dae cannot be read, asset will not be loaded. WARNING: BML::Processor::parse_bml_body():: posture="HandsAtSide_Motex" not loaded; ignoring. No skeleton found for file common.sk. File ../data/../data/mesh/Brad/Brad.dae cannot be read, asset will not be loaded. File ../data/../data/retarget/mesh/Brad/Brad.dae cannot be read, asset will not be loaded. WARNING: BML::Processor::parse_bml_body():: posture="HandsAtSide_Motex" not loaded; ignoring. Adding pawns in the scene Configuring character physics /Users/cretep/Documents/SmartBodySDK/bin/startSBGUI.command: line 2: 43103 Segmentation fault: 11 DYLD_LIBRARY_PATH=../lib:$DYLD_LIBRARY_PATH PYTHONHOME=/System/Library/Frameworks/Python.framework/Versions/2.7 ./sbgui logout [Process completed]
November 21, 2015
4:49 pm
Avatar
Admin
Forum Posts: 980
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Ok, when I get a chance I'll have to create a new OSx version.

Which OSx version are you using?

November 23, 2015
11:11 pm
Avatar
Member
Members
Forum Posts: 4
Member Since:
November 6, 2015
sp_UserOfflineSmall Offline

Currently Mac OSX Yosemite (10.10.5), but I will follow the crowd and upgrade to latest El Captain (10.11.1) before long.

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 733

Currently Online: mondayneedle1, andersen19eaton, kristensen00leblanc, worriedutopia9579, eric506784, t9rrzpi307
103 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

jwwalker: 80

jyambao: 51

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 65

Members: 52460

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 427

Posts: 2343