oyaGG / coral-repo

Automatically exported from code.google.com/p/coral-repo
4 stars 1 forks source link

buildEnv issue #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. created buindEnv file as explained in the wiki,but for windows + added maya 
include and lib dirs
2. not sure what to do with "export PYTHONPATH=$PYTHONPATH:"~/coralRepo"" -the 
python.exe command line doesn't like it,nor does cmd.exe
3. use scons to build coral and coralMaya

What is the expected output? What do you see instead?
Should get (I presume) a coral.exe, coral.dll, coral.lib, and coral.mll file? 
scons complains that there isn't a CORAL_CORAL_IMATH_INCLUDES_PATH_DEBUG env, 
even when added to buildEnv

What version of the product are you using? On what operating system?

I'm using windows 7 x64, python27 x64, boost x64, openEXR x64, tbb x64, and 
Maya 2012 x64
Please provide any additional information below.
I couldn't wait for the binaries...

Original issue reported on code.google.com by notanymike on 29 Sep 2011 at 7:54

GoogleCodeExporter commented 8 years ago
Update: I finally got it to build a pyd file in msvc and scons, but now python 
doesn't like it: "DLL Import failed: The specified module can not be found..."
It also doesn't create the "build" directory....

Original comment by notanymike on 1 Oct 2011 at 5:48

GoogleCodeExporter commented 8 years ago
Hi! thanks for taking the time to do this, looks like you are close, if you 
managed to build the python modules, now you need to tell your system where to 
find the libraries you compiled.
In order to do that you should add the paths containing those libs doing 
something like this:

To manually, permanently add your path to Windows PATH (permanently = until you 
remove it), right click My Computer>Properties>Advanced>Environment 
Variables>System Variables>Path>Edit>Variable Value, add a semicolon (which 
means "in addition to all before") and paste the full path of your dll.

Windows will search the path every time it can't find something in the current 
directory. 

Original comment by aintergu...@gmail.com on 4 Oct 2011 at 12:47

GoogleCodeExporter commented 8 years ago
Hi,
I've compiled coral on Windows successfully too (with build-sdk=0), but I get 
the same error. I can't find any coral.dll or coralUI.dll. It creates coral.exp 
and coral.lib; coralUI.exp and coralUI.lib but it doesn't create any .dll file.

Also, if I try to compile it on Windows with build-sdk=1, I get this error:
* Building sdk...
scons: *** [postBuildTarget] AttributeError : 'module' object has no attribute 
'symlink'

I've read that os.symlink doesn't exist on Windows:
http://stackoverflow.com/questions/1236172/py2app-error-module-object-has-no-att
ribute-symlink

I'm using Windows 7 x64, python27 x64, boost x64, openEXR x64, tbb x64.

Thank you.

Original comment by lichi...@gmail.com on 10 Oct 2011 at 2:01

GoogleCodeExporter commented 8 years ago
for windows replace the os.symlink line with this two:

shutil.copy2(os.path.join( "coral", sourceCoralLibName), 
os.path.join(coralLibsDir, targetCoralLibName))
shutil.copy2(os.path.join( "coralUi", sourceCoralUiLibName), 
os.path.join(coralUiLibsDir, targetCoralUiLibName))

Original comment by iaio...@gmail.com on 11 Oct 2011 at 3:43

GoogleCodeExporter commented 8 years ago
I guess we can close this.

Original comment by aintergu...@gmail.com on 3 Jan 2012 at 11:06