RenderMan icon indicating copy to clipboard operation
RenderMan copied to clipboard

Compile on Ubuntu

Open bluesteelll opened this issue 6 years ago • 7 comments

flint@flintUbuntuWP:~/RenderMan-master/Builds/LinuxMakefile/build$ python
Python 3.6.8 (default, Oct  7 2019, 12:59:55) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import librenderman
JUCE v5.2.0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dynamic module does not define module export function (PyInit_librenderman)
>>> exit()
flint@flintUbuntuWP:~/RenderMan-master/Builds/LinuxMakefile/build$ python2
Python 2.7.15+ (default, Oct  7 2019, 17:39:04) 
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import librenderman
JUCE v5.2.0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dynamic module does not define init function (initlibrenderman)
>>> 

That's it. The same problem both on Py2 and Py3

bluesteelll avatar Nov 09 '19 04:11 bluesteelll

I have same problem with this. Even though I confirmed that the initlibrenderman function exists in the librenderman.so file image

c0m0r1 avatar May 12 '20 11:05 c0m0r1

Any solution for that?

orrimoch avatar Jun 04 '20 20:06 orrimoch

Works for me on ubuntu 16.04 But I did have a problem on 18.04

da2r-20 avatar Jun 05 '20 11:06 da2r-20

Hey all, please accept my apologies for the silence on your problems. This is a project that I wrote whilst at university and I now don't have time to support in a professional capacity, but I appreciate it's a tool that is of use to you.

I'm wondering if any of you would like to become collaborators so you can put this repository in a state that works for you?

fedden avatar Jun 05 '20 14:06 fedden

Thanks! It was solved using ubuntu 16 docker 👌

orrimoch avatar Jun 05 '20 15:06 orrimoch

Anyone solved this on ubuntu > 16?

hichiaty avatar Jun 23 '20 21:06 hichiaty

I was able to solve this on Ubuntu 18.04 by changing the Makefile by changing

-fvisibility=hidden

to

-fvisibility=default

You still must load the module using python2.7.

If you want something simpler, I have a Dockerfile and complete simple instructions on how to get Renderman and Dexed working on Ubuntu in this repo.

@fedden do you mind adding this repo link to your README.md? If you prefer I can submit a PR.

turian avatar Dec 20 '20 23:12 turian