[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 using namespace

[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 rece

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

2015-07-30 Thread Kostas Tavlaridis-Gyparakis
o return arguments from c++ functions to julia you don't need to do anything complicated or different from 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:

[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 ar

[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. > > /usr/local/ju

[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 yo

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

2015-07-18 Thread Kostas Tavlaridis-Gyparakis
es with `Pkg.build("Cxx")` - 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:2

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

2015-07-18 Thread Kostas Tavlaridis-Gyparakis
, July 17, 2015 at 10:31:16 PM UTC+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 sho

[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 juli

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

2015-07-17 Thread Kostas Tavlaridis-Gyparakis
Hello again, Latest news are the next: Following the advice of the previous thread I am now running julia from the path where I copy-pasted the directory that was created from make-install (the one with the big number) this did solve the issue of being able to call julia functions from inside c+

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

2015-07-16 Thread Kostas Tavlaridis-Gyparakis
return on this until tomorrow. Once again thanks for all the help and support is much appreciated! On Monday, June 22, 2015 at 3:03:31 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: > > Hello, > I am trying to embed Julia in C++ but I currently face some sort of issues. > I am trying t

[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 me

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

2015-07-14 Thread Kostas Tavlaridis-Gyparakis
ere julia.h > lives. > > On Tuesday, July 14, 2015 at 7:13:27 AM UTC-4, Kostas Tavlaridis-Gyparakis > wrote: >> >> >> >> >> *>Related, what's in the directory /home/kostav/julia/usr/lib*When I run >> the following command: >> >>

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 -lLL

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

2015-07-14 Thread Kostas Tavlaridis-Gyparakis
at 7:55:10 PM UTC+2, Jeff Waller wrote: > > 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

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

2015-07-13 Thread Kostas Tavlaridis-Gyparakis
day, July 13, 2015 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 compilation terminated.? >> > > Yea of course. This is a result of the -I flag having the

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 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 compilation terminated. On Monday, July 13, 2015 at 4:34:24 PM UTC+2, Jeff Waller wrote: > > CFLAGS

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

2015-07-13 Thread Kostas Tavlaridis-Gyparakis
of it anyway. That file lives under > `julia/contrib` in a source build. > > The shell is your friend: > http://www.cyberciti.biz/faq/search-for-files-in-bash/ > > On Mon, Jul 13, 2015 at 6:46 AM, Kostas Tavlaridis-Gyparakis < > kostas.t...@gmail.com > wrote: > >> Hello

[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 example and use a makefile where I

[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 first

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

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
t; 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 Tavlar

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

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
riday, July 10, 2015 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,

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

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
tion. >> (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 <

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

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
PM UTC+2, Seth wrote: > > I 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 Tavla

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 finish

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

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 &g

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

2015-07-09 Thread Kostas Tavlaridis-Gyparakis
ate-llvm will do the trick). > > On Thu, Jul 9, 2015 at 4:24 PM, Kostas Tavlaridis-Gyparakis < > kostas.t...@gmail.com > wrote: > >> Hello again, >> I am facing some problems when trying to run the julia source code. >> As you pointed out I created the Make.user

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

2015-07-09 Thread Kostas Tavlaridis-Gyparakis
er file with that content in > the same directory as your julia source install (where 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.c

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

2015-07-07 Thread Kostas Tavlaridis-Gyparakis
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 > wrote: > >> Ok, thank you pointing that out. >> So, I need to uninstall my current version and install using the source

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

2015-07-07 Thread Kostas Tavlaridis-Gyparakis
all of julia > - one that uses LLVM-svn > > > On Tue, Jul 7, 2015 at 11:33 AM, Kostas Tavlaridis-Gyparakis < > kostas.t...@gmail.com > wrote: > >> Hello, >> I am running the following version of Julia: >> >> Julia Version 0.4.0-dev+5809 >> Comm

[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 Haswell

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

2015-06-30 Thread Kostas Tavlaridis-Gyparakis
function"); > > (jl_new_module creates a new 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

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

2015-06-30 Thread Kostas Tavlaridis-Gyparakis
tions. However, I would suggest that you might > want to spend some time getting really familiar with Julia by itself, > before trying to use the embedding API. It might save a lot of time in the > long run. > > On Tue, Jun 30, 2015 at 10:54 AM, Kostas Tavlaridis-Gyparakis < > k

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

2015-06-30 Thread Kostas Tavlaridis-Gyparakis
tes a new module. You 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 T

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

2015-06-30 Thread Kostas Tavlaridis-Gyparakis
Hello, I am trying to write some function in Julia which I will be able to call inside my C++ projects in Eclipse. In the documentation there is this example on how to call a function of julia from an ex

[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 f

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

2015-06-25 Thread Kostas Tavlaridis-Gyparakis
it, > --output-ji > > > 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 h

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

2015-06-25 Thread Kostas Tavlaridis-Gyparakis
s is probably another 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 &qu

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

2015-06-24 Thread Kostas Tavlaridis-Gyparakis
ia is misspelled as juli in the path, is it? > > On Wednesday, June 24, 2015, Kostas Tavlaridis-Gyparakis < > kostas.t...@gmail.com > wrote: > >> Didn't manage to make the code run. I am really wondering what I am >> missing here... >> >> On Wednesday,

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

2015-06-24 Thread Kostas Tavlaridis-Gyparakis
y: > > jl_init("/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 > wrote: > >> I am simply trying to run the first example attached in the em

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

2015-06-24 Thread Kostas Tavlaridis-Gyparakis
ding/ > > and start 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 > wrote: > >> I

[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 i

[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 . First things first, I run Ubuntu 15.04 and my Julia version is v. 0.3.2 (it's the version that is autom

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: &g

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

2015-06-15 Thread Kostas Tavlaridis-Gyparakis
leases.php, Linux Mint 16 has > been "Obsolete since July 2014" so you may also need to upgrade to a > supported version of the distribution for the package manager to work > properly. I'm not sure. > > > On Monday, June 15, 2015 at 10:57:21 AM UTC-7, Kostas Tavlar

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

2015-06-15 Thread Kostas Tavlaridis-Gyparakis
> initialization of Pkg since the previous version you had been using. > > > On Monday, June 15, 2015 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

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

2015-06-15 Thread Kostas Tavlaridis-Gyparakis
nux-x86_64.tar.gz > > and it should work right away. > > > 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:

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 termina

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

2015-06-14 Thread Kostas Tavlaridis-Gyparakis
of 0.3 from 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 > wrote: > >> The output of versioninfo

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

2015-06-14 Thread Kostas Tavlaridis-Gyparakis
t; > Also, try 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 requir

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

2015-06-13 Thread Kostas Tavlaridis-Gyparakis
; --Tim > > On Saturday, 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

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

2015-06-13 Thread Kostas Tavlaridis-Gyparakis
Dolice to the latest version (sorry I am a real noob). On Saturday, June 13, 2015 at 1:25:05 PM UTC+2, Svaksha wrote: > > On Sat, Jun 13, 2015 at 10:03 AM, Kostas Tavlaridis-Gyparakis > > wrote: > > Followed your recommendation but have to note the following things: > >

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

2015-06-13 Thread Kostas Tavlaridis-Gyparakis
led: > > Pkg.update() > INFO: Updating METADATA... > INFO: 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 wr

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 > > wrote: > > Only problem is that when

[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") >> I

[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: > > He

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

2015-06-13 Thread Kostas Tavlaridis-Gyparakis
e 12, 2015 at 9:25:50 AM 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

[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 prove: