Skip to content

Commit 054f76f

Browse files
Merge pull request #682 from GPUOpen-LibrariesAndSDKs/feature/RPRBLD-0-update
Update outdated, build fix for 4.1
2 parents 8149de1 + 0ddad27 commit 054f76f

14 files changed

+17
-207
lines changed

BlenderPkg/build_osx-arm64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ pushd ..
1717
./build_osx-arm64.sh
1818
popd
1919

20-
arch -arm64 python3.9 create_zip_addon.py
20+
arch -arm64 python3.11 create_zip_addon.py

BlenderPkg/create_zip_addon.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def enumerate_addon_data():
8080
def get_version():
8181
# getting buid version
8282
build_ver = subprocess.getoutput("git rev-parse --short HEAD")
83+
if build_ver.find("fatal") != -1:
84+
build_ver = 0 # todo. get git hash
8385

8486
# getting plugin version
8587
text = (repo_dir / "src/rprblender/__init__.py").read_text()

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,19 @@
22

33
### Build Requirements
44

5-
2.93+
5+
4.1+
66
====
7-
- Blender 2.93+
8-
- Python 3.9.2 (Blender 2.93 uses 3.9.2) x64(for Core) - all code, addon and misc tested with python3
9-
- python-cffi - `py -3.9 -m pip install cffi`
7+
- Blender 4.1+
8+
- Python 3.11 (Blender 4.1 uses 3.11) x64(for Core) - all code, addon and misc tested with python3
9+
- python-cffi
10+
- `py -3.11 -m pip install cffi`
11+
- `py -3.11 -m pip install numpy`
1012
- Visual Studio 2015 SP3 / 2017 / 2019 with SDK 8.1 and 2015.3 v140 toolset installed
1113
- If you are using Visual studio 2019 you would need to install the Windows SDK 8.1 manually from Microsoft website https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/
1214
- cmake 3.x. Make sure it's added to the PATH environment variable
1315

1416
Note that the .sln provided is for easy editing and searching of files on Windows. The blender code builds on the command line rather than in the solution file. Visual Studio does provided support for debugging Python when you attach to the running Blender process with loaded addon.
1517

16-
### Software, required for development:
17-
18-
- numpy - `py -3.9 -m pip install numpy`
19-
20-
2118
### ThirdParty libraries
2219

2320
There is ThirdParty repository included to the project as a submodule. Please update submodules:
@@ -39,7 +36,6 @@ Once SSH keys are installed update/checkout submodules for active branch
3936

4037
`git submodule update --init -f --recursive`
4138

42-
4339
## Developing
4440

4541
### Coding Conventions

RPRBlender.sln

Lines changed: 0 additions & 23 deletions
This file was deleted.

RadeonProRenderBlender.sln

Lines changed: 0 additions & 36 deletions
This file was deleted.

RadeonProRenderBlender.vcxproj

Lines changed: 0 additions & 69 deletions
This file was deleted.

RadeonProRenderBlender.vcxproj.filters

Lines changed: 0 additions & 17 deletions
This file was deleted.

build.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ if %vs_major%==15 or %vs_major%==16 (
6464
goto :eof
6565

6666
:build_plugin
67+
py -3.11 -m pip install cffi
68+
py -3.11 -m pip install numpy
6769
py -3.11 cmd_tools\create_sdk.py
6870
py -3.11 src\bindings\pyrpr\src\pyrprapi.py %castxml%
6971

build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
assert '64bit' == arch[0] and (('Windows' in uname[0]) or ('Linux' in uname[0]) or ('Darwin' in uname[0])), arch
3131

32-
subprocess.check_call([sys.executable, 'src/tools/encrypt_athena_bin.py'])
3332

3433
pyrpr_path = Path('src/bindings/pyrpr')
3534

0 commit comments

Comments
 (0)