Sign in to follow this  

BGFX Renderer Compiling Woes

This topic is 1043 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm having some problems trying to get the thing to compile correctly for Visual Studios 2013, which uses compiler vs2012. And I am running into a variety of issues.

 

1. GNUMake doesn't work for some freaking reason in CMD

 - I have the Path Variable for it's bin directory, it's just Windows 7 apparently doesn't recognize it. So I have to pretty much force it with the absolute directory.

 

2. When Make Does run, it finds the makefile just fine. But once it gets to a certain point (pretty much two or three lines), it can't find some particular file. Looks like the build solution? Which... doesn't exist anyways.

 

3. When I run vs2012 or 13, it says no rules have been defined. Defining these rules manually brings me back to issue 2.

 

Anyone know what's going on?

Edited by Tangletail

Share this post


Link to post
Share on other sites
Have you got the bx project cloned beside bgfx? your directory structure should look like this:

/whatever/bx
/whatever/bgfx

You then go into bgfx and run make from there.

Share this post


Link to post
Share on other sites

C:\Users\Solaris\Desktop\BG\BGFX>"C:\Program Files (x86)\GnuWin32\bin\make.exe"
../bx/tools/bin/windows/genie --with-tools --with-shared-lib vs2008
process_begin: CreateProcess(NULL, ../bx/tools/bin/windows/genie --with-tools --
with-shared-lib vs2008, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [all] Error 2


C:\Users\Solaris\Desktop\BG\BGFX>

Yeaaaah. No good. Just set it up in that style.

 

Also tried moving the folder back a level, and it didn't work.

I also looked into that folder it's stopped at, and there is no genie folder. Just a gitignore file.

Edited by Tangletail

Share this post


Link to post
Share on other sites

If you don't have that "genie.exe" then you don't have a valid checkout of the "bx" project.

So either download a zip of "bx" again or checkout and pull master from bx to get the latest - dependent on how you got it.

 

You also don't need all the makefile and GnuWin32 stuff, the command line you want is right there in your output as:

../bx/tools/bin/windows/genie --with-tools --with-shared-lib vs2008

Just change it to suit Windows cmd line formatting like so

..\bx\tools\bin\windows\genie.exe --with-tools --with-shared-lib vs2008

All that the makefile does is generate ALL of the possible build options for every single possible platform and configuration so if you just want a specific platform you can pass that command instead so for Visual Studio 2013 you'd just change it to:

..\bx\tools\bin\windows\genie.exe --with-tools --with-shared-lib vs2013

Now you have only the vs2013 solution without all of the rest.

 

Andy

Share this post


Link to post
Share on other sites
Here's what your bx folder should look like:

03.09.2015-10.03.png

If it doesn't look like that, you've Done It Wrong™. Just delete the folder and clone it again.

Share this post


Link to post
Share on other sites

Can you tell us more about how they don't run?

 

Is it a graphics initialisation error?

Are you starting them in the wrong working directory?

 

You seem to have had some issues getting your Git repositories setup so something may not be configured correctly.

I've run the BGFX stuff just fine on a range of platforms when evaluating it with only my Intel iGPU giving me some trouble with various configurations (OpenGL vs DX etc).

 

The other thing you could do is contact the author, he's been very friendly and helpful when we chatted in the past. He's on Twitter (https://twitter.com/bkaradzic) or you could contact him via the BGFX GitHub pages.

 

Andy

Share this post


Link to post
Share on other sites

I can't even get any information out of it actually. I am just getting a error from windows saying that an error occured from this program. No code or anything. Debugger doesn't help much either. It's line stops at some code I believe has to do with memory. I'm still looking into it, but I have virtually no idea what this guy is doing in his code. There is literally multiple functions written in hex.

Share this post


Link to post
Share on other sites

There is literally multiple functions written in hex.

What? Example please as I have the code and don't know what you're talking about.

 

EDIT: Or now I've thought about it some more are you looking at the disassembly view when debugging and not the source code?

 

Best way to resolve this is to tell us what file and line is giving you the problem, so set the "Hello World" example as your startup project, but it in "Debug" & either "x86 or "x64" configuration, then from the "Debug" menu choose "Step Into" instead of "Start Debugging".

This will cause it to start at the "main" function and you can step through the code until you find exactly where things go wrong.

 

Andy

Edited by NineYearCycle

Share this post


Link to post
Share on other sites

The other you haven't mentioned is what machine you're trying to run this on.

What OS, how much ram and what GPU do you have?

This matters as an old integrated Intel GPU just isn't going to be able to run the more advanced samples and might not even be able to initialise the renderer that the sample is trying to use.

 

Andy

Share this post


Link to post
Share on other sites

The machine is an AMD 8 core rig with 16 gigs of ram on system memory. And Three gigs on Video Ram from an AMD 7950. OS is windows. I'm not an expert, but I highly doubt memory management is the problem right now ^-^.

 

Especially when the system looks like it was designed to work on a stick if it had a computer.

 

 

As for the hex...

I was reading something wrong. I miss took a static const for a function.

Edited by Tangletail

Share this post


Link to post
Share on other sites
Sign in to follow this