-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
Hello, I am trying to replicate the example in the readme on a Linux Ubuntu system with gcc/cmake installed but I am getting the following error:
using Pkg
cd(@__DIR__)
Pkg.activate(".")
using CxxWrap
cxxpath = CxxWrap.prefix_path()
srcpath = pwd()
buildpath = joinpath(sourcepath,"build")
write("hello.cpp",
"""
std::string greet()
{
return "hello, world";
}
""")
write("hello.h",
"""
#include "jlcxx/jlcxx.hpp"
JLCXX_MODULE define_julia_module(jlcxx::Module& mod)
{
mod.method("greet", &greet);
}
""")
mkpath(buildpath)
cd(buildpath)
cmd1 = `cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$cxxpath $srcpath`
cmd2 = `cmake --build . --config Release`
run(cmd1) # errorWhen I run the command from the terminal I get make: invalid option -- 'D'
I have tried to remove the D and to use two hypens (--), but still no success...
By the way, if the examples are given as made from within Julia (using write/run), they would be easier to replicate....
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels