00:00.37 |
kanzure |
libopennurbs.a may not be required, i don't
know why it's there |
00:00.39 |
kanzure |
18:29 < ParahSailin> g++ -shared -L.
-lopenNURBS opennurbs_*.o -o _opennurbs.so -lGLU -lGL |
00:01.40 |
kanzure |
yeah i don't have a *.a file in my working
directory |
00:03.27 |
raj12lnm |
kanzure: so this will require a link library
in the ld folder, right ? |
00:03.50 |
kanzure |
opennurbs.so should be in the local directory
after building |
00:04.02 |
kanzure |
what is "the ld folder"? |
00:08.48 |
raj12lnm |
kanzure:where the available static libraries
are placed. |
00:09.48 |
kanzure |
those files can be kept in the current
directory |
00:11.01 |
raj12lnm |
ok |
00:14.02 |
raj12lnm |
kanzure : but I see the following |
00:14.10 |
raj12lnm |
https://www.irccloud.com/pastebin/cLb1upDq |
00:14.41 |
raj12lnm |
and this after running the first two
commands |
00:14.46 |
raj12lnm |
https://www.irccloud.com/pastebin/5E4ZGtCW |
00:16.05 |
raj12lnm |
and when I run |
00:16.05 |
raj12lnm |
raj@ubuntu:brlcad-opennurbs$ g++ -shared -L.
-lopenNURBS opennurbs_*.o -o _opennurbs.so -lGLU -lGL |
00:16.05 |
raj12lnm |
/usr/bin/ld: cannot find -lopenNURBS |
00:16.05 |
raj12lnm |
collect2: error: ld returned 1 exit
status |
00:17.15 |
raj12lnm |
kanzure : I am sure you are able to run the
wrapper. But apparently there is some issue on my system which I
fail to understand. |
00:17.19 |
kanzure |
is there a libopenNURBS.so in the current
directory |
00:17.51 |
kanzure |
_opennurbs.so is something that this process
constructs. it's not going to be in there yet. |
00:18.17 |
raj12lnm |
raj@ubuntu:brlcad-opennurbs$ ls
libopenNURBS.so |
00:18.18 |
raj12lnm |
ls: cannot access libopenNURBS.so: No such
file or directory |
00:18.29 |
raj12lnm |
no it is not there as evident from
above. |
00:24.49 |
raj12lnm |
kanzure : I am not sure about the
issue! |
00:26.41 |
kanzure |
did you run cmake? |
00:28.49 |
raj12lnm |
kanzure : cmake in brlcad-opennurbs
? |
00:28.53 |
kanzure |
yes |
00:30.25 |
raj12lnm |
kanzure : Aparently I copied openNURBS.so from
the brlcad_build to here. |
00:31.08 |
raj12lnm |
kanzure: And then it runs. but this when i
import opennurbs in a python shell now Some brlcad core symbols are
not available |
00:31.32 |
raj12lnm |
kanzure you mean cmake ~/brlcad ? |
00:31.37 |
raj12lnm |
or just cmake ? |
00:32.02 |
kanzure |
cmake inside the brlcad-opennurbs
folder |
00:32.15 |
kanzure |
yes some brlcad symbols will not be available
because %ignore in the swig .i file |
00:34.14 |
raj12lnm |
https://www.irccloud.com/pastebin/NEiib9RY |
00:34.41 |
raj12lnm |
kanzure I get the above error |
00:35.00 |
kanzure |
do what it says (reedit CMakeCache.txt
appropriately) |
00:35.40 |
raj12lnm |
kanzure. ok |
00:36.13 |
kanzure |
a regular expression can do that pretty
fast |
00:36.23 |
kanzure |
anyway why is this a problem if you are
already able to import _opennurbs.so into python? |
00:40.40 |
raj12lnm |
kanzure : pasted from python shell |
00:40.44 |
raj12lnm |
https://www.irccloud.com/pastebin/blWSZ6hy |
00:43.04 |
kanzure |
nm _opennurbs.so | grep
onmalloc_from_pool |
00:43.48 |
raj12lnm |
yeah I saw that. |
00:43.55 |
raj12lnm |
kanzure even here
http://brlcad.org/xref/source/src/other/openNURBS/opennurbs_memory.c#L43 |
00:43.58 |
kanzure |
is it in there? |
00:44.01 |
kanzure |
is it in the so file |
00:44.22 |
raj12lnm |
yes. I get the output |
00:44.23 |
raj12lnm |
U onmalloc_from_pool |
00:46.18 |
raj12lnm |
So it is a unique global symbol. But still
cant understand why python shell gives that error. |
02:10.44 |
kanzure |
isn't U for "undefined" |
02:10.49 |
kanzure |
so that would explain it |
03:21.49 |
raj12lnm |
Ok kanzure |
03:22.01 |
raj12lnm |
Do you see a reason why ? |
03:30.47 |
Notify |
03BRL-CAD:zhaoanqing * 61844
(brlcad/branches/nmgreorg/CMakeLists.txt
brlcad/branches/nmgreorg/INSTALL and 5 others): merged by trunk
r61505 |
03:44.21 |
Notify |
03BRL-CAD:zhaoanqing * 61845
(brlcad/branches/nmgreorg/CMakeLists.txt
brlcad/branches/nmgreorg/INSTALL and 8 others): merged by trunk
r61511 |
03:51.30 |
Notify |
03BRL-CAD:zhaoanqing * 61846
(brlcad/branches/nmgreorg/AUTHORS brlcad/branches/nmgreorg/BUGS and
34 others): merged by trunk r61597 |
03:58.38 |
Notify |
03BRL-CAD:zhaoanqing * 61847
(brlcad/branches/nmgreorg/AUTHORS
brlcad/branches/nmgreorg/CMakeLists.txt and 84 others): merged by
trunk r61732 |
07:39.30 |
*** join/#brlcad luca79
(~luca@188-22-192-18.adsl.highway.telekom.at) |
08:08.26 |
*** join/#brlcad AndroUser2
(~androirc@188.25.159.254) |
08:40.47 |
*** join/#brlcad Zhao_Anqing
(~clouddrif@218.79.166.196) |
09:53.36 |
*** join/#brlcad ries
(~ries@D979EA84.cm-3-2d.dynamic.ziggo.nl) |
10:40.15 |
*** join/#brlcad ishwerdas
(~gjeet@117.212.51.176) |
11:58.33 |
*** join/#brlcad Izakey
(~Isaac@195.24.220.134) |
12:01.05 |
*** join/#brlcad albertcoder
(~albertcod@101.215.120.160) |
12:12.40 |
*** join/#brlcad clock
(~clock@77-58-143-135.dclient.hispeed.ch) |
12:37.32 |
*** join/#brlcad luca79
(~luca@188-22-192-18.adsl.highway.telekom.at) |
14:30.14 |
*** join/#brlcad Zhao_Anqing
(~clouddrif@218.79.166.196) |
14:44.00 |
*** join/#brlcad kintel
(~kintel@unaffiliated/kintel) |
15:22.27 |
*** join/#brlcad kintel
(~kintel@unaffiliated/kintel) |
15:36.28 |
*** join/#brlcad kintel
(~kintel@unaffiliated/kintel) |
15:42.59 |
kanzure |
"even the swig authors hate swig" http://code.activestate.com/lists/python-dev/109281/ |
15:47.13 |
kanzure |
"If I went to implement something like SWIG
today, I would almost surely base my implementation on Clang
(http://clang.llvm.org/).
They have a full C++ parser (carefully hand-crafted, quite
admirably keeping a relatively comprehensible code-base for such a
task) used in a real compiler front-end, and a flexible library
structure aimed at creating tools. There are also Python bindings
that would allow to do most of the interesting ... |
15:47.19 |
kanzure |
... Python-interface-specific work in Python -
parse the C++ headers using Clang's existing parser into ASTs -
then generate ctypes / extensions from that, *in
Python*." |
15:57.22 |
kanzure |
http://eli.thegreenplace.net/2011/07/03/parsing-c-in-python-with-clang/
(url is lying, it's c++ not c) |
16:40.40 |
*** join/#brlcad gurwinder
(75d6cfc8@gateway/web/freenode/ip.117.214.207.200) |
16:54.03 |
*** join/#brlcad kintel
(~kintel@unaffiliated/kintel) |
17:33.10 |
raj12lnm |
kanzure have you heard about sip ? |
17:33.16 |
raj12lnm |
looks reasonable to me. |
17:33.28 |
raj12lnm |
kanzure : http://pyqt.sourceforge.net/Docs/sip4/index.html |
17:38.36 |
kanzure |
no |
17:40.49 |
Notify |
03BRL-CAD:iiizzzaaakkk * 61848
brlcad/trunk/src/librt/primitives/hrt/hrt.c: Correcting the X
components of the minimal and maximal points in the rt_hrt_bbox()
function |
17:49.03 |
*** join/#brlcad albertcoder
(~albertcod@49.138.201.44) |
18:06.14 |
Notify |
03BRL-CAD Wiki:Krajkreddy * 7541
/wiki/User:Krajkreddy/GSOC14/summary: /* GSOC 14 Summary
*/ |
18:24.06 |
*** join/#brlcad Izakee
(~Isaac@195.24.220.134) |
18:29.06 |
*** join/#brlcad ries
(~ries@D979EA84.cm-3-2d.dynamic.ziggo.nl) |
19:19.24 |
*** join/#brlcad kintel
(~kintel@unaffiliated/kintel) |
19:57.53 |
*** join/#brlcad FreezingCold
(~FreezingC@135.0.41.14) |
20:11.56 |
Notify |
03BRL-CAD Wiki:Albertcoder * 7542
/wiki/User:Albertcoder/GSoC2014/logs: /* Week 9 */ |
20:26.44 |
*** join/#brlcad ``Erik_
(~erik@pool-74-103-94-19.bltmmd.fios.verizon.net) |
20:33.07 |
*** join/#brlcad piyushparkash
(~piyushpar@117.205.76.67) |
21:01.57 |
*** join/#brlcad kintel
(~kintel@unaffiliated/kintel) |
21:44.23 |
*** join/#brlcad pandrei
(~pandrei@188.25.159.254) |
23:45.42 |
Notify |
03BRL-CAD Wiki:Popescu.andrei1991 * 7543
/wiki/User:Popescu.andrei1991/devlogs2014: /* Week 9 */ |