[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-08-01 Thread Kostas Tavlaridis-Gyparakis
Hello again, I am experiencing the following difficulty. So I have the above mentioned header and cpp files that define the class ArrayMaker on top of that I wrote a small main connected to this class that simply excecute its function: main.cpp: #include ArrayMaker.h #include iostream using

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-08-01 Thread Tero Frondelius
I don't know if this helps, but we have been also learning the basics of Cxx. See here @ovainola implementation of a simple library: https://github.com/JuliaFEM/MiniBall.jl/blob/master/src/MiniBall.jl On Saturday, August 1, 2015 at 5:00:41 PM UTC+3, Kostas Tavlaridis-Gyparakis wrote: Hello

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-31 Thread Kostas Tavlaridis-Gyparakis
Ok, this did solve my problem. Now I will proceed with trying to connect a big c++ project with julia and see what happens there, in the very optimistic case where I proceed without any problems I will let you know just for reference, otherwise I will return with the new errors and mistakes I

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-30 Thread Jeff Waller
Specifically I think this will not work because of the following: double ArrayMaker::ArrayMak(int iNum, float fNum) { jl_init(JULIA_INIT_DIR); jl_atexit_hook(); return sol; } } What this is doing it starting up a 2nd julia engine inside of the original julia engine,

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-30 Thread Kostas Tavlaridis-Gyparakis
Hello again, After following the above mentioned instructions of Jeff managed to make Cxx working properly in the julia version installed via (make install), yet again the original problem persists. Just to remind you: I have the following c++ class: 1) cpp.file: #include ArrayMaker.h #include

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-22 Thread Kostas Tavlaridis-Gyparakis
Any help/further suggestions please? On Tuesday, July 21, 2015 at 3:27:10 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Hello again, Unfortunately and let me apologize in advance I still find myself confused on how to make things work properly. Here are the symbolic links. I believe

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-21 Thread Kostas Tavlaridis-Gyparakis
Hello again, Unfortunately and let me apologize in advance I still find myself confused on how to make things work properly. Here are the symbolic links. I believe with some simple changes to Cxx, the need for these will disappear, but for now there's where it searches.

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-19 Thread Jeff Waller
So I built and installed Cxx and then attempted to use it with embedded Julia and was successful. The tricky part is pretty tricky especially for someone not familiar how the whole thing is laid out, I've put most of what I did in this gist https://gist.github.com/waTeim/ec622a0630f220e6b3c3

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-19 Thread Kostas Tavlaridis-Gyparakis
Hello, Once again I really appreciate all the effort you put and the help you provide. I assume that since you made things work properly now we do havea working solution. Yet again as I am not really good with programming in general sth things I still unfortunately need to ask on how to follow

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-19 Thread Jeff Waller
Symbolic links to link which files though? Sorry if the questions I raise are already answered by the git, I just failed to understand it properly so that's why I come back with these questions now. I've added a listing of the entire directory structure

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-18 Thread Kostas Tavlaridis-Gyparakis
Hello again and thanks a lot for the suggestions. Thing is, I went back to the source version of Julia where Cxx is already built and runs properly, so there wasn't much for me to do, I run in terminal also the command of: addHeaderDir(/home/kostav/julia/src/) Then proceeded again with make

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-18 Thread Kostas Tavlaridis-Gyparakis
So, in case it will be of any help to you here is the exact message I receive: julia Pkg.build(Cxx) INFO: Building Cxx Tuning for julia installation at: /home/kostav/Julian/julia-f428392003/bin BuildBootstrap.Makefile:2: /home/kostav/Julian/julia-f428392003/bin/../../deps/Versions.make: No such

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-18 Thread Jeff Waller
On Saturday, July 18, 2015 at 5:24:33 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Hello again and thanks a lot for the suggestions. Thing is, I went back to the source version of Julia where Cxx is already built and runs properly, so there wasn't much for me to do, I run in terminal also

Re: [julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-18 Thread Isaiah Norton
You are still picking up the f42... version. On Jul 18, 2015 6:41 PM, Kostas Tavlaridis-Gyparakis kostas.tavlari...@gmail.com wrote: So, in case it will be of any help to you here is the exact message I receive: julia Pkg.build(Cxx) INFO: Building Cxx Tuning for julia installation at:

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-17 Thread Jeff Waller
Yea I think what you're seeing is that Cxx needs to use the source tree for example Make.inc only exists in the source tree while embedding assumes the installed tree. How to reconcile this the best way I'm not sure yet. I myself found Cxx interesting enough to try, but the build failed a

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-17 Thread Kostas Tavlaridis-Gyparakis
Hello, Just to be sure that I am understanding correctly what your proposal. You suggest I should: 1) Completely uninstall Julia 2) Recompile the source code (i.e. run make) 3) Then try using julia from the source code build cxx package 4) Then perform the make install and link the version of

Re: [julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-17 Thread Isaiah Norton
Somehow your setup has regressed here. Cxx.jl was loading fine in your original email, so go back to that version and call: addHeaderDir(/home/kostav/julia/src/) because that is where julia.h lives. On Fri, Jul 17, 2015 at 1:44 PM, Kostas Tavlaridis-Gyparakis kostas.tavlari...@gmail.com wrote:

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-14 Thread Jeff Waller
Some notes I think a gist might be better and then we can annotate and stuff in place. Google groups is just a mailing list and is bad for extended debugging info don't worry about it too much just a suggestion. 1) jl_value_t * ret = jl_call2(func, argument, argument2); sol =