Unable to build tbb.lib

210 views
Skip to first unread message

Dantakurai Massoreikeie

unread,
Mar 23, 2020, 8:02:25 AM3/23/20
to G3D Users
Used the installg3dwin installer to install G3D. 
I have failed installing it many months ago but I have chosen to come back and attempt to get it working again, this time being able to access it to almost get it running.
I opened it using Visual Studio 2019.
None of the starting programs work due to missing tbb.lib
Followed instructions to run:
buildg3d lib
using the cmd in C:/g3d/G3D10, but it cannot find VS, so I'm stuck unable to run demos.
I have installed Visual Studio separately, with Windows 10 SDK (10.0.17134.0) (for 2nd capture).
Any help would be appreciated.
Pasted-image-Sat Mar 21 2020 135939 GMT-0700 (Mountain Standard Time).png
Annotation 2020-03-22 225453.png

Julien Matthey

unread,
Mar 24, 2020, 8:12:06 AM3/24/20
to G3D Users
My personal recomendation : follow the instructions found here https://casual-effects.com/g3d/G3D10/readme.md.html?#windowsmanual EXACTLY ( = Windows manual).

The first build is done outside of VS2019 using the command "buildg3d local" - this will not only build G3D but also copy files around. "buildg3d" is a python script found in %g3d%\G3D10

Once this is done, you are free to modify/rebuild G3D from inside of VS2019, but only then.

The reason your build cannot find "tbb.lib" is probably because you skipped the "buildg3d local" script step - so the library wasn't copied where it was supposed to (now that I checked, tbb is not part of the global G3D project, it is NOT built from source - so running "buildg3d lib" won't actually build it).

(let me know if I spread some false information here).

Good luck.

Dantakurai Massoreikeie

unread,
Mar 24, 2020, 11:21:52 PM3/24/20
to G3D Users
I installed VS 2019 and then used the g3d installer, The installer installed all the programs but I later installed Python.
The installer I assumed used buildg3d local, I believe it's just buildg3d lib that it missed.
Looking through the manual install instructions, I don't get what "C++ Workload" is, I tried reinstalling Visual but didn't see that option,
in VS installation I selected Game Development with C++ and Windows 10 SDK (10.0.17134.0)
if that's what that meant.
anyways in both cases buildg3d local/lib will fail under G3D10/cmd saying it won't find Visual Studio.
and trying it under a VS command line will bring this error:
I checked everything that manual installer says and everything seems to be in order, except that I can't build ttb.lib and presumably something else that's preventing me from running any of the samples.
Annotation 2020-03-24 201845.png

Corey Taylor

unread,
Mar 24, 2020, 11:32:01 PM3/24/20
to g3d-...@googlegroups.com
Can you click "Modify" for Visual Studio 2019 and tell me what's checked under "Desktop Development with C++" ?

corey

--
You received this message because you are subscribed to the Google Groups "G3D Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to g3d-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/g3d-users/3849cc1e-ac6c-4959-9965-fc7b78afa872%40googlegroups.com.

Dantakurai Massoreikeie

unread,
Mar 25, 2020, 12:06:29 AM3/25/20
to G3D Users
Annotation 2020-03-24 210541.png

Dantakurai Massoreikeie

unread,
Mar 25, 2020, 12:35:40 AM3/25/20
to G3D Users
Here's a better picture, where I barely catch every item under DD C++ on frame.
Annotation 2020-03-24 213303.png

Julien Matthey

unread,
Mar 25, 2020, 12:51:54 AM3/25/20
to G3D Users
I installed 2019 recently and here's my vsconfig in case you want to compare.

Open Vistual Studio Installer, click on More, click Import Configuration File to check.

-Julien
.vsconfig

Dantakurai Massoreikeie

unread,
Mar 25, 2020, 1:01:28 AM3/25/20
to G3D Users
Hope these files don't matter.
Annotation 2020-03-24 220037.png

Julien Matthey

unread,
Mar 25, 2020, 1:20:05 AM3/25/20
to G3D Users
I don't know what's going on with your VS install.

If you only use VS2019 for G3D (not already for other projects) then I would uninstall it completely, and reinstall with my .vsconfig file and see if it works.

-Julien

Julien Matthey

unread,
Mar 25, 2020, 1:25:51 AM3/25/20
to G3D Users
Use this file - I just exported it.

The previous one was from my VS2017 install when I moved to 2019.

-Julien
.vsconfig

Dantakurai Massoreikeie

unread,
Mar 25, 2020, 1:38:07 AM3/25/20
to G3D Users
Will do. I'm on Windows 10, are there any there that're for other OS'es?

Julien Matthey

unread,
Mar 25, 2020, 1:45:09 AM3/25/20
to G3D Users
No I'm on Windows 10 too...

Corey Taylor

unread,
Mar 25, 2020, 1:49:56 AM3/25/20
to g3d-...@googlegroups.com
When did you last sync G3D?

corey

On Tue, Mar 24, 2020 at 11:06 PM Dantakurai Massoreikeie <brandon...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "G3D Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to g3d-users+...@googlegroups.com.

Dantakurai Massoreikeie

unread,
Mar 25, 2020, 2:02:03 AM3/25/20
to G3D Users
Well, this is annoying... I used your preload of VS but no matter what buildg3d just doesn't find VS... Anyone know how to delete the whole thing so I could just restart?
Every test I run the installer first, followed by a sequence of the commands I'm supposed to run, buldg3d local, buildg3d lib in the correct directory on cmd, and VS cmd, multiple times. Installer, which Morgan says can be ran to update or sync G3D at anytime. But the error persists and I cannot build the files.
Annotation 2020-03-24 225510.png

Corey Taylor

unread,
Mar 25, 2020, 2:04:39 AM3/25/20
to g3d-...@googlegroups.com
Where is your Visual Studio 2019 installation? Typically, it is here:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin

corey

Dantakurai Massoreikeie

unread,
Mar 25, 2020, 2:16:00 AM3/25/20
to G3D Users
After two Open File Location's I copied the address this address C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE 
although I copied your address and it took me to a file with a whole slew of other files, but no usable .exe

Corey Taylor

unread,
Mar 25, 2020, 2:17:46 AM3/25/20
to g3d-...@googlegroups.com
We use the msbuild.exe file at the location I sent. Does that not exist for you?

corey

On Wed, Mar 25, 2020 at 1:16 AM Dantakurai Massoreikeie <brandon...@gmail.com> wrote:
After two Open File Location's I copied the address this address C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE 
although I copied your address and it took me to a file with a whole slew of other files, but no usable .exe

--
You received this message because you are subscribed to the Google Groups "G3D Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to g3d-users+...@googlegroups.com.

Dantakurai Massoreikeie

unread,
Mar 25, 2020, 3:48:31 AM3/25/20
to G3D Users
Aha! I do have an MSbuild.exe
but clicking it does nothing, clicking it many times also does nothing.
I'm guessing it's supposed to be a mirror for the application right?


On Tuesday, March 24, 2020 at 11:17:46 PM UTC-7, Corey Taylor wrote:
We use the msbuild.exe file at the location I sent. Does that not exist for you?

corey

On Wed, Mar 25, 2020 at 1:16 AM Dantakurai Massoreikeie <brandon...@gmail.com> wrote:
After two Open File Location's I copied the address this address C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE 
although I copied your address and it took me to a file with a whole slew of other files, but no usable .exe

--
You received this message because you are subscribed to the Google Groups "G3D Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to g3d-...@googlegroups.com.

Corey Taylor

unread,
Mar 25, 2020, 3:49:40 AM3/25/20
to g3d-...@googlegroups.com
You don't run it by clicking it.

When did you last sync G3D? Nothing should be using the older Windows SDK.

corey

To unsubscribe from this group and stop receiving emails from it, send an email to g3d-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/g3d-users/1a638de6-8b7c-416a-8cc4-20b637aefa2c%40googlegroups.com.

Dantakurai Massoreikeie

unread,
Mar 25, 2020, 12:51:20 PM3/25/20
to G3D Users
Syncing? Can you sync by running the installer?

Dantakurai Massoreikeie

unread,
Mar 25, 2020, 7:41:34 PM3/25/20
to G3D Users
I went into SVN and monkey'd around until I managed to accidentally make a duplicate g3d directory called "code" which I then renamed "g3d" again after ending the process g3d and deleting it. Starter works now! but every sample pulls up an error that I have to cancel out of in order to make it work. If anyone's still reading this, sending me what components you use to load Visual Studio into could be a great help, and thanks for sticking around with me until I could make this work.

Corey Taylor

unread,
Mar 26, 2020, 12:52:30 AM3/26/20
to g3d-...@googlegroups.com
No. When did you last svn update? I don't see anything trying to use that Windows SDK version.

corey

On Wed, Mar 25, 2020 at 11:51 AM Dantakurai Massoreikeie <brandon...@gmail.com> wrote:
Syncing? Can you sync by running the installer?

--
You received this message because you are subscribed to the Google Groups "G3D Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to g3d-users+...@googlegroups.com.

Dantakurai Massoreikeie

unread,
Mar 26, 2020, 2:42:56 AM3/26/20
to G3D Users
Never... Don't know how. I just messed with the SVN until it made a new directory that I then swapped the one out with, and then, I was finally able to build. Everything works now... only problem now is the UI on most of the samples is atrocious. The Ray Tracer has it fill up most of the screen that I can't expand, all with the cameras having no movement options work while the debug cameras have a problem with it moving the camera up constantly making it hard to see.
(pictured is an instance where I just let it load, and it immediately faces up.)
If anyone knows how to mess with the UI sizing that'll be cool.

Annotation 2020-03-25 233041.png

Julien Matthey

unread,
Mar 26, 2020, 5:47:00 AM3/26/20
to G3D Users
Here is what I would do - it should not take you more than 30 minutes (your VS2019 install seems OK so I would only repull G3D sources and rebuild in order to have a clean G3D build).

  • Delete your G3D folder (everything).
  • Pull G3D sources from SVN to the latest commit (HEAD).
  • Follow the build instructions here (https://casual-effects.com/g3d/G3D10/readme.md.html?#windowsmanual) under "3.2 Configure & Build"
  • (You probably have everything already OK under "3.1 Requirements" at this point - make sure your environement variables are correct tho)
  • Follow 3.2 by building with "buildg3d local" - ***DON'T USE THE INSTALLER*** (installg3dwin.hta), you *don't have to* and it is in beta version.
  • Everything should build without error.
At this point you should have a clean G3D build and samples should work as expected.

Now that I think about it about your UI sizing : it is clear to me you use a UHD screen resolution (3840×2160 pixels - based on your screenshots) - and the G3D window doesn't scale accordingly. Look at the sample main() and set the window width and height to twice their size :

settings.window.width = 1280 * 2;
settings
.window.height = 720 * 2;

Or if you want fullscreen :

settings.window.width = OSWindow::primaryDisplayWindowSize().x;
settings
.window.height = OSWindow::primaryDisplayWindowSize().y;

Look up "GApp::Settings" for more options - good luck.

-Julien

Julien Matthey

unread,
Mar 26, 2020, 5:57:33 AM3/26/20
to G3D Users
Actually the render window size for this sample is 800*600. I guess it's small because CPU raytracing is very slow.....

Maybe you can have the UI render at half-size I'm not sure - ask Corey :)

-Julien

Dantakurai Massoreikeie

unread,
Mar 26, 2020, 4:44:37 PM3/26/20
to G3D Users
This happens, do I 'OK'?
Annotation 2020-03-26 134341.png
Reply all
Reply to author
Forward
0 new messages