I'm currently working on a project for my university, where I have to develop an iOS app. For this I would like to work with octave. My question is, if it's possible to use my octave code as a c++ library without having octave installed, which I just can include to my Objective-C project and give the input to the library, which computes the result and return the output to my project.
I already searched the web, but I couldn't find anything :/
Best regards,
Carsten
Related
So I am creating a C++ program using the allegro version 4.4.2 library and I need to be able to produce an executable package which I can submit to a course instructor and have run on his computer without issues. I am developing the program using DevC++. If I am understanding this correctly so far, I need to link to a static library for allegro and then the executable should include the library info and thus the library itself is not necessary to have included in the executable package. I have also seen some recommendations regarding third party tools that produce executable packages, but these seem to be more general (not necessarily allegro compatible?) and I am hoping to avoid downloading more third party software.
I have tried linking to the static library liballegro-4.4.2-monolith-static-mt.a but for some reason when I do this I get a whole slew of undefined reference compile time errors. I have read that it is necessary to have #define ALLEGRO_STATICLINK included in the project, I have this statement at the top of my main source file but I am not sure if I am meant to define this somewhere in the project options instead?
Any guidance or link to resources which will help me solve my problem would be extremely appreciated! I am just getting into the meat of programming with C++ beginning to learn object oriented programming methods, I still occasionally struggle with the basics so thank you in advance for your help!
Backstory (if interested/relevant?): I am taking a Game AI programming course for which we need to create some example programs to demonstrate AI algorithms. The course specifies Java but I am most familiar with C++ and the course instructor says this is fine but I must be able to submit an executable to him which he can just run on his computer without issues. To best achieve what the course asks I feel the allegro library (which I already have installed) will be of great help, mostly for drawing graphics to the screen and such.
So I just ended up using a dynamically linked version of my program and including the appropriate .dll files which turned out to be a lot less work than I thought it would be.
Basically I just had to ensure the allegro-4.4.2-md.dll from the bin folder was included in the folder with the executable. I then sent off the package (the .exe compiled file and the needed supporting files such as bitmaps sound files etc) to a few friends and had them try to run it. They then gave me the warnings from their computers along the lines of "Test.exe cannot be run ****.dll cannot be found".
I searched the exact names of the dll files they were receiving warnings for in the folder with my game and voila it now seems to execute on whatever PC it is sent to.
I'm currently working on a project, where I need to include few of Octave functions (exactly Griddata). My question is, if it's possible to use my octave code as a c++ library, which I just can include to my Objective-C project and give the input to the library, which computes the result and return the output to my project.
I already searched the web, but I couldn't find anything :/
The function i'm looking for is: https://octave.sourceforge.io/octave/function/griddata.html
Thanks
You can embed the Octave interpreter into your program and then call your Octave-function using octave::feval.
I am very new to adding c/c++ library to iOS project. My requirement is to add DICOM toolkit (written in c/c++) to my swift ios project. I have spent two days with googling to find steps how to include and use it, but i could not find any such blogs that are using DICOM toolkit by Mergecom.
Can somebody help here..
Thanks.
There is nothing (apparent) special about the merge toolkit. Look at any tutorial about using C code/libraries.
Here is one;
https://maniacdev.com/2015/02/tutorial-a-quick-guide-to-using-c-libraries-within-swift-code
Have you asked Merge for a sample app?
I've done this. If you are working from the publicly available sources, you'll need to:
1 - make the DCMTK sources build their libraries for iOS using Xcode
2 - make a Objective-C bridging library, like iiDicom work on iOS
3 - create additional Objective-C bridging code to access DCMTK via Swift
To get DCMTK + iiDicom working under iOS, it will take about a month of off-and-on work to get both libraries ready for initial use with Xcode.
maybe the title is not the most helpful but wasn't sure how to put it with a few words.
So this is my problem.
I have some C++ projects in Eclipse and I want to use for a part of my project some Julia code.
I have downloaded and installed properly the latest version of Julia on my machine and what I want to do is embed Julia inside my C++ project in Eclipse, so that I will be able to write directly some julia code inside the C++ project.
Such an option is possible and there is this guidance on how to do it.
I do properly in eclipse both the path to include julia.h and the julia library, and I can actually build the project, but when I try to run I receive the following error:
"System image file "/home/kostav/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/sys.ji" not found
"
Now this file does exist and its path is included in Eclipse, so I really don't understand why I do receive this error and what should I do in order to fix it.
Any suggestion would be really helpful to me.
jl_init_with_image
jl_init_with_image("pathtosysji", "sys.ji");
The path must be the abs path.
ie: /home/kostav/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/sys.ji
I'm using the ArUco library with OpenCV (more information here) but I can't find a way to build and run a program from scratch.
Once I installed the library I have access to different examples but if I want for instance to create a new file and add the library headers inside it, how can I compile and run it ? (with a command line or IDE, anything is fine)
Thank you
I sent and email to the library's author and he added clear instructions at the end of the project webpage :)
It seems you need to learn how to use your IDE's, compilation tools and general compilation basic stuff. This is not a question related to Aruco, or mostly any other tags you have set.
Try to lean CMake first, 'cause Aruco compilation is based on CMake: http://www.cmake.org/
You can start by just editing the aruco_simple example.
For a IDE that works right away with CMake you can try either Qt Creator >3.1 or KDevelop. Both free.