paulo.maciel Posted June 1, 2013 Share Posted June 1, 2013 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 1 Link to comment
paulo.maciel Posted June 1, 2013 Author Share Posted June 1, 2013 Also, Getting the following messages when building the Objects sample: Interpreter::load(): can't open "C:/UnigineSDK/source/samples/Api/Objects/data/unigine.cache" fileEngine::init(): can't load "core/unigine.cpp" system scriptShutdown Thanks for the help. Paulo Link to comment
paulo.maciel Posted June 2, 2013 Author Share Posted June 2, 2013 If I borrow a unigine.cfg config file from another sample, I get: Loading "C:/UnigineSDK/source/samples/Api/Objects/unigine.cfg"... Unigine fatal errorEngine::init(): can't initialize filesystemShutdownPress any key to continue . . . Any ideas? Do I have a bad installation?Thanks, Paulo Link to comment
paulo.maciel Posted June 2, 2013 Author Share Posted June 2, 2013 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>&1command 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=1Can't find SCons. C:\UnigineSDK\source\app\main> Link to comment
frustum Posted June 2, 2013 Share Posted June 2, 2013 Use *.py files to run samples. You can use makefile to compile samples: make_x64 -f Makefile.win32 Link to comment
paulo.maciel Posted June 2, 2013 Author Share Posted June 2, 2013 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.win32Setting 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.01Copyright © Microsoft Corporation. All rights reserved. Makefile.win32(28) : fatal error U1083: target macro '_(TARGET)' expands to nothingStop. C:\UnigineSDK\source\samples> Thanks for all your help. Paulo Link to comment
paulo.maciel Posted June 23, 2013 Author Share Posted June 23, 2013 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 0msUnigine~# editor_loadParser::load(): can't open "Unigine.h" fileParser::preprocessor(): can't include "Unigine.h" fileParser::preprocessor(): can't load "objects.cpp" fileInterpreter::load(): can't open "objects.cpp" fileLoading "core/editor/editor.cpp" 1347ms Thanks, Paulo Link to comment
silent Posted July 1, 2013 Share Posted July 1, 2013 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts