Building Physx 4.0

Hi guys,

I got some trouble when trying to generate cmakelist with generate_project.sh. It gives me the following error after inputting the preset:

$ sh generate_projects.sh
Preset parameter required, available presets:
(0) android <--- Android-19, armeabi-v7a with NEON PhysX SDK
(1) vc12win32 <--- VC12 Win32 PhysX general settings
(2) vc12win64 <--- VC12 Win64 PhysX general settings
(3) vc14win32 <--- VC14 Win32 PhysX general settings
(4) vc14win64 <--- VC14 Win64 PhysX general settings
(5) vc15win32 <--- VC15 Win32 PhysX general settings
(6) vc15win64 <--- VC15 Win64 PhysX general settings
Enter preset number: vc15win64
Traceback (most recent call last):
  File "./buildtools/cmake_generate_projects.py", line 349, in <module>
    main()
  File "./buildtools/cmake_generate_projects.py", line 336, in main
    presetName = noPresetProvided()
  File "./buildtools/cmake_generate_projects.py", line 62, in noPresetProvided
    mode = int(input('Enter preset number: '))
ValueError: invalid literal for int() with base 10: 'vc15win64'

“vc15win64” is the preset I input; seems like it is not the right format? Pretty sure it is not working since there is no cmakelist generated under /compiler as indicated by the doc. I may be missing something really stupid; I’d appreciate any help. Thanks!

Hi,
The generate_project.sh is intended for linux/mac machines, we actually never tried that script on windows. On windows you should use generate_projects.bat script.

Hmm now that I look at your stack, you should also use the number before the preset, not the preset name. So for vc15win64 you should input 6, thats what the error says it cannot make an int from vc15win64.

Regards,
Ales