Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run the files in bin after building in linux #551

Closed
roniktinnu opened this issue Feb 27, 2019 · 9 comments
Closed

Unable to run the files in bin after building in linux #551

roniktinnu opened this issue Feb 27, 2019 · 9 comments

Comments

@roniktinnu
Copy link

i have cloned the repository and created a build directory. gave cmake .. and make all after that.
the above steps are succesfully executed. but still i am unable to run the files in the build/bin directory, i'm getting an error for all the files except for ./traingle

**

radialblur: /home/tcs/prasanth/1.1.97.0/Samples/Vulkan/external/imgui/imgui_draw.cpp:1573: ImFont* ImFontAtlas::AddFontFromFileTTF(const char*, float, const ImFontConfig*, const ImWchar*): Assertion `0' failed.
Aborted (core dumped)

**

I'm new to Vulkan and i don't know where i'm doing it wrong , please help me.

@SaschaWillems
Copy link
Owner

This looks like the demos are not able to locate the assets. That error is from the line trying to load the font for the UI (see here).

Comment out that line and try again, if it works then I need to fix this on my side.

@roniktinnu
Copy link
Author

After commenting the line the demos are running succesfully , thanks for the help.

@sypher7
Copy link

sypher7 commented Mar 8, 2019

I know this is closed, but I ran into this as well. For anyone else finding this, I was also able to work around it by running the files from within bin/:

cd bin
./radialblur

@SaschaWillems
Copy link
Owner

What's the error message? Did you download the asset pack?

@stellama0208
Copy link

Actually I also ran into this problem as well today. The whole error trace is just

stellama@mahjongkun:~/work/sandbox/vulkan_demo/Vulkan/build-dir/bin[master]$ ./pipelines
pipelines: /usr/local/google/home/stellama/work/sandbox/vulkan_demo/Vulkan/external/imgui/imgui_draw.cpp:1573: ImFont* ImFontAtlas::AddFontFromFileTTF(const char*, float, const ImFontConfig*, const ImWchar*): Assertion `0' failed.
Aborted

I have downloaded asset before. Executing from within bin/ doesn't work for me, but commenting this line out and rebuild works. Maybe you could look into this. ^_^

@greyltc
Copy link

greyltc commented Sep 7, 2019

Why is this closed? Today it still stops me from running the bins I just compiled.

@greyltc
Copy link

greyltc commented Sep 7, 2019

The line @SaschaWillems pointed out above:

io.Fonts->AddFontFromFileTTF("./../data/Roboto-Medium.ttf", 16.0f);

uses a hard coded relative import path for a font.

The Linux build instructions have almost no details on how to make this besides "use cmake."

Those two things taken together are why this bug is here.

Anyway, the solution I use here is to make sure I execute the compiled binaries from any place where

file ./../data/Roboto-Medium.ttf

will run without error.

@foley2k2
Copy link

In case anyone finds this in the future - run download_assets.py in the project root. Fixed it for me. It pulls down 536MB of dependencies.

@largeword
Copy link

In case anyone finds this in the future - run download_assets.py in the project root. Fixed it for me. It pulls down 536MB of dependencies.

Thanks, downloading assets according to https://github.com/SaschaWillems/Vulkan#assets did help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants