[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-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 Kostas Tavlaridis-Gyparakis
what is shown here: arr = @cxx maker-fillArr() (where fillArr is supposed to return an array) So, I am not sure what is going wrong here... On Wednesday, July 22, 2015 at 9:33:00 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Any help/further suggestions please? On Tuesday, July 21, 2015 at 3

[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 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-18 Thread Kostas Tavlaridis-Gyparakis
+2, Jeff Waller wrote: On Friday, July 17, 2015 at 1:44:41 PM UTC-4, Kostas Tavlaridis-Gyparakis wrote: 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

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

2015-07-18 Thread Kostas Tavlaridis-Gyparakis
)` - build a single package by running its `deps/build.jl` script On Saturday, July 18, 2015 at 11:35:32 PM UTC+2, Jeff Waller wrote: On Saturday, July 18, 2015 at 5:24:33 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote

[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: Embedding Julia with C++

2015-07-14 Thread Kostas Tavlaridis-Gyparakis
: On Monday, July 13, 2015 at 11:36:34 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Ok, my current Julia version (that I installed via running the source code) is: *Version 0.4.0-dev+5841 (2015-07-07 14:58 UTC)*So, what should I do different so that -I flag gets the proper value

Re: [julia-users] Re: Embedding Julia with C++

2015-07-14 Thread Kostas Tavlaridis-Gyparakis
*Related, what's in the directory /home/kostav/julia/usr/lib*When I run the following command: g++ -o test main.cpp -Wl,-rpath,/home/kostav/julia/usr/lib -I /home/kostav/julia/src -I /home/kostav/julia/usr/include -I /home/kostav/julia/src/support -L/home/kostav/julia/usr/lib -ljulia

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

2015-07-14 Thread Kostas Tavlaridis-Gyparakis
Hello again, I am running Julia Version 0.4.0-dev+5841 (installed from source code) and currently run Ubuntu 15.04. I am trying to write a julia file that will call some c++ classes and functions, where inside these functions some other Julia functions will be used and I face some errors. Let

[julia-users] Re: Embedding Julia with C++

2015-07-13 Thread Kostas Tavlaridis-Gyparakis
Hello thanks a lot for your answer. You assumed correctly I do use version 0.4. If I got right your proposal about the linking error is to use the command jl_inti(JULIA_INIT_DIR) as shown in this http://julia.readthedocs.org/en/latest/manual/embedding/#example example and use a makefile where I

Re: [julia-users] Re: Embedding Julia with C++

2015-07-13 Thread Kostas Tavlaridis-Gyparakis
Any ideas on how to fix the compile error: julia.h: No such file or directory #include julia.h compilation terminated.? This is the problem, or part of it anyway. That file lives under `julia/contrib` in a source build. Hmm this should be bundled into all 0.4, oh oh.

Re: [julia-users] Re: Embedding Julia with C++

2015-07-13 Thread Kostas Tavlaridis-Gyparakis
Thanks a lot, that fixed this error, but now it returns me the same error that I get when I just run the compile command in terminal: fatal error: julia.h: No such file or directory #include julia.h compilation terminated. On Monday, July 13, 2015 at 4:34:24 PM UTC+2, Jeff Waller wrote:

Re: [julia-users] Re: Embedding Julia with C++

2015-07-13 Thread Kostas Tavlaridis-Gyparakis
at 10:54:57 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Any ideas on how to fix the compile error: julia.h: No such file or directory #include julia.h compilation terminated.? Yea of course. This is a result of the -I flag having the wrong value. There was a space of time

[julia-users] Re: Embedding Julia with C++

2015-07-12 Thread Kostas Tavlaridis-Gyparakis
Hello again, I am writing to this post, as I face some more problems with trying to link Julia functions with C++ code. The thing is that I changed my current Julia version, I installed Julia running the source code as I wanted to install the Cxx package as well. So, I just went to run the

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
don't have julia installed. Any idea on how to proceed with this? On Friday, July 10, 2015 at 1:17:53 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: * I was missing cmake now this problem is solved. Hopefully the build will work properly now! On Friday, July 10, 2015 at 12:58:12 AM UTC+2, Kostas

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
/usr/bin/julia` and `julia/usr/bin/julia-debug` do exist. What else could I try? Run one of them? bar@baz:~/julia$ /home/kostav/julia/usr/bin/julia On Fri, Jul 10, 2015 at 10:50 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Thanks a lot for pointing out

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
haven't read the entire thread here, but if you're in the top-level julia source directory and have built julia from source, the binary is located in ./usr/bin/julia . On Friday, July 10, 2015 at 7:19:53 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: Any suggestions pls??? On Friday, July 10

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
into which you can enter expressions for evaluation. (Errors related to libraries might be caused by old, incompatible libraries sitting around in your PATH. In that case, try moving the julia directory earlier in the PATH). ​ 2015-07-10 11:33 GMT-03:00 Kostas Tavlaridis-Gyparakis kostas.t

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
Any suggestions pls??? On Friday, July 10, 2015 at 11:04:58 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Finally manage to run make command with no errors. Yet again after this I perform make test and everything seems to be fine. Then I run make install and once its finished, I try to run

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
at 4:57:51 PM UTC+2, Isaiah wrote: Also both 'julia/usr/bin/julia` and `julia/usr/bin/julia-debug` do exist. What else could I try? Run one of them? bar@baz:~/julia$ /home/kostav/julia/usr/bin/julia On Fri, Jul 10, 2015 at 10:50 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-09 Thread Kostas Tavlaridis-Gyparakis
the Make.inc file already is). The `LLVM_VER=svn` line directs it to use the svn version of llvm. On Tue, Jul 7, 2015 at 11:59 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Ok, thank you pointing that out. So, I need to uninstall my current version and install using

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-09 Thread Kostas Tavlaridis-Gyparakis
* I was missing cmake now this problem is solved. Hopefully the build will work properly now! On Friday, July 10, 2015 at 12:58:12 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Thanks a lot once again. So after fixing this a few more errors I am stacked with the following error msg: Making

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-07 Thread Kostas Tavlaridis-Gyparakis
it to use the svn version of llvm. On Tue, Jul 7, 2015 at 11:59 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Ok, thank you pointing that out. So, I need to uninstall my current version and install using the source files. Just two questions really noob ones

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-07 Thread Kostas Tavlaridis-Gyparakis
LLVM-svn On Tue, Jul 7, 2015 at 11:33 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Hello, I am running the following version of Julia: Julia Version 0.4.0-dev+5809 Commit b414076* (2015-07-06 15:38 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU

[julia-users] Errors while trying to install Cxx Package

2015-07-07 Thread Kostas Tavlaridis-Gyparakis
Hello, I am running the following version of Julia: Julia Version 0.4.0-dev+5809 Commit b414076* (2015-07-06 15:38 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz WORD_SIZE: 64 BLAS: libopenblas (NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY

Re: [julia-users] calling julia functions in C++

2015-06-30 Thread Kostas Tavlaridis-Gyparakis
must evaluate your .jl file defining the module first, then to get a reference to the module do: `jl_value_t* mod = jl_eval_string(MyModName); Then you can pass mod as the argument to `jl_get_function`. On Tue, Jun 30, 2015 at 10:16 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com

Re: [julia-users] calling julia functions in C++

2015-06-30 Thread Kostas Tavlaridis-Gyparakis
, 2015 at 10:54 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Sorry but I am not sure what you mean and how to *evaluate your .jl file defining the module first*? (I am really new to Julia so maybe the question sounds really stupid, sorry for that) On Tuesday

Re: [julia-users] calling julia functions in C++

2015-06-30 Thread Kostas Tavlaridis-Gyparakis
module -- that's not what you want, because the module containing your function is created when you eval yourfile.jl) On Tue, Jun 30, 2015 at 11:47 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Ok, so first of all thanks a lot for all the help so far. So, now I try

[julia-users] Re: Embedding Julia with C++

2015-06-26 Thread Kostas Tavlaridis-Gyparakis
So, finally issue was solved by this answer here http://stackoverflow.com/questions/31051038/eclipse-c-having-trouble-with-including-a-file-with-extension-ji . On Thursday, June 25, 2015 at 3:33:45 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: But, sys.ji does exist in my folder of the path

[julia-users] Re: Embedding Julia with C++

2015-06-25 Thread Kostas Tavlaridis-Gyparakis
On Monday, June 22, 2015 at 9:03:31 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Hello, I am trying to embed Julia in C++ but I currently face some sort of issues. I am trying to follow the instructions shown here http://julia.readthedocs.org/en/latest/manual/embedding/. First things first, I

Re: [julia-users] Embedding Julia with C++

2015-06-25 Thread Kostas Tavlaridis-Gyparakis
casualty of https://github.com/JuliaLang/julia/pull/11640 On Wednesday, June 24, 2015 at 10:39:40 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Νο, unfortunately it's not that. I just gave to the project the name juli I forgot to type the a and didn't bother correct it aftewrards, so

[julia-users] Re: Embedding Julia with C++

2015-06-24 Thread Kostas Tavlaridis-Gyparakis
I did download the 0.4 nightbuilt which includes the above mentioned files in the proper location, but now Eclipse is throwing me a different error I can not sort out how to overcome. When I try to run a small cpp file with a few julia comands Eclipse is compiling the file but when I try to run

Re: [julia-users] Embedding Julia with C++

2015-06-24 Thread Kostas Tavlaridis-Gyparakis
, is it? On Wednesday, June 24, 2015, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Didn't manage to make the code run. I am really wondering what I am missing here... On Wednesday, June 24, 2015 at 3:59:47 PM UTC+2, Isaiah wrote: I guess this is still a distro

Re: [julia-users] Re: Embedding Julia with C++

2015-06-24 Thread Kostas Tavlaridis-Gyparakis
(/home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/ julia/) On Wed, Jun 24, 2015 at 9:38 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: I am simply trying to run the first example attached in the embedding documantation which is the following block of code

Re: [julia-users] Re: Embedding Julia with C++

2015-06-24 Thread Kostas Tavlaridis-Gyparakis
with the embedding example in the source: https://github.com/JuliaLang/julia/blob/master/examples/embedding.c On Wed, Jun 24, 2015 at 9:05 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: I did download the 0.4 nightbuilt which includes the above mentioned files

[julia-users] Embedding Julia with C++

2015-06-22 Thread Kostas Tavlaridis-Gyparakis
Hello, I am trying to embed Julia in C++ but I currently face some sort of issues. I am trying to follow the instructions shown here http://julia.readthedocs.org/en/latest/manual/embedding/. First things first, I run Ubuntu 15.04 and my Julia version is v. 0.3.2 (it's the version that is

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-16 Thread Kostas Tavlaridis-Gyparakis
UTC+2, Kostas Tavlaridis-Gyparakis wrote: Ok, I'll proceed with the upgrades tomorrow and let you know. Thanks a lot for all the help so far hope tomorrow I will finally have JuMP working. On Monday, June 15, 2015 at 8:22:34 PM UTC+2, Tony Kelman wrote: I see. I'm a little surprised

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-15 Thread Kostas Tavlaridis-Gyparakis
at 10:20:03 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: I downloaded and extracted the version that you put in the link, but for some reason now, when I run Julia on terminal the pck command doesn't seem to work. This is the msg I get when I try to use any command related with pkd

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-15 Thread Kostas Tavlaridis-Gyparakis
. On Sunday, June 14, 2015 at 7:16:46 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: Ok fixed that one, but now I have another installation problem, I receive the following error: /bin/sh: 2: cmake: not found make[1]: *** [libgit2/build/Makefile] Error 127 make: *** [julia-deps] Error 2 Once I do

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-14 Thread Kostas Tavlaridis-Gyparakis
deleting your ~/.julia directory and reinstalling the packages you need. On Saturday, June 13, 2015 at 3:11:16 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Here is the outcome of Pkg.status(): Pkg.status() 5 required packages: - CPLEX 0.0.9 - Docile

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-14 Thread Kostas Tavlaridis-Gyparakis
, June 14, 2015 at 4:03:35 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Ok, so after deleting all the julia files from my laptop and downloading the latest version from github ( git clone git://github.com/JuliaLang/julia.git ), when I try to run make in the terminal after a huge run of 50

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-14 Thread Kostas Tavlaridis-Gyparakis
nearly a year ago. Not sure how this came to be installed, but you'll need to update to 0.3.0 release or later. On Jun 14, 2015 2:38 PM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: The output of versioninfo() is the following: Julia Version 0.3.0-rc1+54 Commit

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-13 Thread Kostas Tavlaridis-Gyparakis
, June 13, 2015 04:45:12 AM Kostas Tavlaridis-Gyparakis wrote: When i run update after I install Dolice there is nothing new: Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: No packages to install, update or remove How can I update from terminal

[julia-users] Re: Errors while trying to use JuMP

2015-06-13 Thread Kostas Tavlaridis-Gyparakis
Pkg.add(Docile) INFO: Nothing to be done INFO: METADATA is out-of-date — you may not have the latest version of Docile INFO: Use `Pkg.update()` to get the latest versions of your packages On Saturday, June 13, 2015 at 9:09:26 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Here is the output I

[julia-users] Re: Errors while trying to use JuMP

2015-06-13 Thread Kostas Tavlaridis-Gyparakis
UTC-4, Kostas Tavlaridis-Gyparakis wrote: Hello, I am really new to Julia and not the best programmer mysefl. I run linux mint 16 and I installed julia via terminal (sudo apt-get install julia ). Then when I run Julia on my terminal, while the JuMP package is installed sth that I believe

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-13 Thread Kostas Tavlaridis-Gyparakis
: Cloning cache of Docile from git://github.com/MichaelHatherly/Docile.jl.git INFO: Installing Docile v0.1.0 On Saturday, June 13, 2015 at 11:57:58 AM UTC+2, Svaksha wrote: On Sat, Jun 13, 2015 at 9:44 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Only problem

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-13 Thread Kostas Tavlaridis-Gyparakis
: Computing changes... INFO: Cloning cache of Docile from git:// github.com/MichaelHatherly/Docile.jl.git INFO: Installing Docile v0.1.0 On Saturday, June 13, 2015 at 11:57:58 AM UTC+2, Svaksha wrote: On Sat, Jun 13, 2015 at 9:44 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote

[julia-users] Re: Errors while trying to use JuMP

2015-06-13 Thread Kostas Tavlaridis-Gyparakis
: Might not be related, but your Docile package is way out of date. It's currently at 0.5.6, and you appear to be running 0.1.0. On Saturday, June 13, 2015 at 3:36:39 AM UTC-5, Kostas Tavlaridis-Gyparakis wrote: Pkg.add(Docile) INFO: Nothing to be done INFO: METADATA is out-of-date — you may

[julia-users] Errors while trying to use JuMP

2015-06-12 Thread Kostas Tavlaridis-Gyparakis
Hello, I am really new to Julia and not the best programmer mysefl. I run linux mint 16 and I installed julia via terminal (sudo apt-get install julia ). Then when I run Julia on my terminal, while the JuMP package is installed sth that I believe the following two commands on my terminal