pbsproject icon indicating copy to clipboard operation
pbsproject copied to clipboard

Tinyformat

Open cjsb opened this issue 8 years ago • 4 comments

Hi,

I tried to run your code in Windows but, when I compile the code, tinyformat can't be found. Do you have any idea why?

cjsb avatar Aug 26 '16 13:08 cjsb

@cjsb I had the same problem. The reason is: there is no tinyformat.h in ext/tinyformat folder. Just download tinyformat.h from https://github.com/c42f/tinyformat and put it in ext/tinyformat folder.

iamyoukou avatar Aug 26 '16 13:08 iamyoukou

hi, there are a few git submodules that need to be initialized. you can either clone the repo using

git clone --recursive https://github.com/westlicht/pbsproject.git

or later initialize them using

git submodule update --init --recursive

from within the ext folder.

westlicht avatar Aug 26 '16 14:08 westlicht

Great, I added the tinyformat.h and solved the problem. But M_PI is not defined and the compilation went wrong. (thanks @iamyoukou for the extra help)

Do I have to change anything?

cjsb avatar Aug 26 '16 14:08 cjsb

@cjsb All I did are:

  1. Use @westlicht 's way to download the code (not "download as a zip")
  2. Then I download the tinyformat.h into the ext/tinyformat folder
  3. Build the code according to the project's guide

and it worked

iamyoukou avatar Aug 27 '16 02:08 iamyoukou