Jump to content

[SOLVED] Getting started w/ Unigine


photo

Recommended Posts

Hello,

 

I am new to Unigine and have been trying to build/run the Unigine sample Apps on Windows.

I am kind of disappointed that there isn't a single .sln file for all the sample Apps.  Furthermore, when I try to run a couple of apps that I had built (namely, Nodes, States, Objects), I run into the following errors:
 

. The executable can't find the files under data/core (e.g. fonts and png images).  Is there an environment variable that I need to set in advance?  I also read that all projects need to be built under the 'data' folder.  Do I need to first copy the samples to that folder? 

. It cannot find the unigine.cfg configuration file.  It looks under the current directory but no one was provided.  Is there a default 'unigine.cfg' that I could use?

. Some sample apps seem to require OpenAL but nowhere in the documentation I found instructioins on how to configure OpenAL to use with Unigine.  Any pointers?

 

Also, when compiling one of the samples, compilation failed to find SDL/SDL.h.  There is no SDL.h under the Unigine folder.

 

Any and all help will be appreciated.

Thanks,

 

Paulo

  • Like 1
Link to comment

Also,

 

Getting the following messages when building the Objects sample:

 

Interpreter::load(): can't open "C:/UnigineSDK/source/samples/Api/Objects/data/u
nigine.cache" file
Engine::init(): can't load "core/unigine.cpp" system script
Shutdown

Thanks for the help.

Paulo

Link to comment

If I borrow a unigine.cfg config file from another sample, I get:

Loading "C:/UnigineSDK/source/samples/Api/Objects/unigine.cfg"...

Unigine fatal error
Engine::init(): can't initialize filesystem
Shutdown
Press any key to continue . . .

 

Any ideas?  Do I have a bad installation?
Thanks,

 

Paulo

Link to comment

Trying to build the debug version of the Unigine app (to see if I could debug into it) did not work.  I get:

C:\UnigineSDK>cd utils

C:\UnigineSDK\utils>build.py --component=engine --type=debug --bits=64

[ Engine: debug build, 64 bit]
        building main app...
executing command: scons_x64 dev=0 debug=1 jobs=0 -Q -u .
Can't find SCons.
        building Network plugin...
executing command: scons_x64 dev=0 debug=1 jobs=0 -Q -u .
Can't find SCons.
        cleaning sources, keeping binaries...
executing command: C:\UnigineSDK\source/clean.py --quiet --keep_bin 1>nul 2>&1
command failed, return code: 1

 

Same when trying with scons:

C:\UnigineSDK>cd source

C:\UnigineSDK\source>cd app

C:\UnigineSDK\source\app>cd main

C:\UnigineSDK\source\app\main>scons_x64 double=1
Can't find SCons.

C:\UnigineSDK\source\app\main>

Link to comment

Ok, looking at the Python script, I am now using the following as command line parameters to run from DevStudio.

-data_path ../../../../ -engine_config ../data/unigine.cfg

This works, thanks.

 

If I try to build all samples with the Makefile, I get:

 

C:\UnigineSDK\source\samples>make_x64 -f Makefile.win32
Setting environment for using Microsoft Visual Studio 2008 Beta2 x64 cross tools.
Setting Unigine environment for Windows x64 platform.

Microsoft ® Program Maintenance Utility Version 9.00.30729.01
Copyright © Microsoft Corporation.  All rights reserved.

Makefile.win32(28) : fatal error U1083: target macro '_(TARGET)' expands to nothing
Stop.

C:\UnigineSDK\source\samples>

 

Thanks for all your help.

Paulo

Link to comment
  • 3 weeks later...

Still can't run the samples.

Can somebody from Unigine please post the command line parameters for say the Objects sample.

I am using:

 

-video_app direct3d11 -data_path ../../../../ -engine_config unigine.cfg -console_command "world_load objects"

 

and I get:

 

Loading "core/properties/unigine.prop" 2 properties 0ms
Unigine~# editor_load
Parser::load(): can't open "Unigine.h" file
Parser::preprocessor(): can't include "Unigine.h" file
Parser::preprocessor(): can't load "objects.cpp" file
Interpreter::load(): can't open "objects.cpp" file
Loading "core/editor/editor.cpp" 1347ms

 

Thanks,

Paulo

Link to comment
  • 2 weeks later...

Hi Paulo,

 

To launch Objects demo, please make sure that <SDK>/lib folder is exists in your system variable 'PATH'.

 

After that you can run Objects demo via simple console command (or you can make *.bat file):

  • Objects -data_path ../../../../ -engine_config ../data/unigine.cfg -system_script ../data/unigine.cpp -console_command "world_load data/objects"

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...