unable to open include file `test.inc` in sasm - nasm

I am using SASM on Ubuntu to try out some NASM assembler coding. To test my assembler code I have created a test file and saved it in the same directory as my .asm File, but when I try to debug it in SASM I am getting the following error:
unable to open include file test.inc
How can I solve this issue?

You can solve this issue by going to Options -> Build and then selecting the “Build in current directory” option in the SASM Program

Related

How to read errors when compiling from source code

Goal:
Compile multiple libraries from source code to ultimately install a fully compiled version of FFmpeg with desirable libraries attached.
Problem:
During the compilation, all libraries (seemingly) are successful until liblv2 is reached.
Error output via terminal:
building lv2 - version 1.18.10
=======================
Downloading https://lv2plug.in/spec/lv2-1.18.10.tar.xz as lv2-1.18.10.tar.bz2
... Done
Extracted lv2-1.18.10.tar.bz2
$ python3 ./waf configure --prefix=/home/jman/tmp/ffmpeg/ffmpeg-build/workspace --lv2-user
python3: can't open file '/home/jman/tmp/ffmpeg/ffmpeg-build/packages/lv2-1.18.10/./waf': [Errno 2] No such file or directory
Failed to Execute python3 ./waf configure --prefix=/home/jman/tmp/ffmpeg/ffmpeg-build/workspace --lv2-user
Where I need guidance:
python3: can't open file '/home/jman/tmp/ffmpeg/ffmpeg-build/packages/lv2-1.18.10/./waf': [Errno 2] No such file or directory
My question:
What does this part mean?
lv2-1.18.10/./waf'
specifically the part /./
My best guess so far is it:
obviously is looking for a directory it can't find (perhaps because it truly doesn't exist)
The missing 'waf' directory should be located inside either the "${PACKAGES}" or "${WORKSPACE}" directory.
The ${PACKAGES}" path in this script should = /home/jman/tmp/ffmpeg/ffmpeg-build/packages
The ${WORKSPACE}" path in this script should = /home/jman/tmp/ffmpeg/ffmpeg-build/workspace
The full build script:
https://github.com/slyfox1186/ffmpeg-build-script/blob/master/scripts/build-ffmpeg
I tried my best to make this worth sometimes time without giving too much info... sorry if I don't meet the expectations of this forum.
Am I even close?

I don't kow what are the files which are supposed to be in asm/

I'am new on linux and I try to compile this code https://elixir.bootlin.com/linux/v4.0/source/drivers/w1/slaves/w1_ds2433.c (my target is to create a ds2433.ko and if it works a ds28ec20.ko)
When i compile the ds2433.c I get that :
In file included from /usr/include/kernel.h:8:0, from w1_ds2433.c:8:
/usr/include/linux/linkage.h:8:10: fatal error: asm/linkage.h: No such file or directory
The main problem is that I don't know if I need to create the file suppose to be in /asm or if the code will create them.
When you compile the code, you should get a file with the extension .s, .asm, or maybe something else. To check if it is assembly, you can go into the terminal, type "ls -l" and if you see a file with an extension you are unfamiliar with, you can type in the terminal "cat filename.ext" and see the contents of it.

How to call a compiled fortran exe file in a deployed Matlab exe in Linux?

I am trying to use a deployed Matlab exe file in Linux, and in the middle of my matlab code I want to call a .exe file compiled by Fortran.
I have tested that the fortran-compiled binary exe file is alright to run in Linux and get my results both by directly calling it in commmand line and in Matlab by 'system(read_results.exe)'. But when I deployed the Matlab code, and call it by the following command:
./matlab_code.sh /cm/shared/apps/Matlab-R2019a
The Fortran .exe file cannot be called correctly and gives the following message:
Possible reason:read_results.exe: error while loading shared libraries: libgfortran.so.5: cannot open shared object file: No such file or directory
I guess this problem shoulbe be relatived with the environment variables or something like that. I don't know how to add those libraries to a deployed Matlab code, or how to compile the Fortran code to a totally independent binary file in Linux. Could anyone please help me with it? Thank you guys very much!!!!
( The reason I need to call a .exe file is I really cann't compile it to a DLL...So I have to use it in such a terrible way. )

MiXiM building no such file or directory error

I failed to build the MiXiM on Ubuntu 14.04.3 and OMNet 4.6, the error message is: ”fatal error: Mac80211Pkt_m.h: No such file or directory”. From the manual of OMNet it can be found that the file Mac80211Pkt_m.h should be generated automatically by the compiler during the building process, but it was shown by the error message that the file was not generated automatically. I am confused about the problem, how can I solve this? Can anyone help me? Thanks!
I faced the same error message. Here is how I bypassed the problem:
Extract "mixim-2.3.tar.gz" (tar xvzf mixim-2.3.tar.gz)
Change into the directory just extracted (cd mixim-2.3)
Execute "make makefiles"
Start the build by "make"
Import the just built project using the omnet++ IDE

Matlab Libopencv error using Linux

I am running into errors with opencv. I downloaded a package online and compiled each of the folders by cd into them and running make through the command line. But when I try using one of the functions, I run into this error: libopencv_core.so.2.3: cannot open shared object file: No such file or directory
The file its trying to reach is indeed there, since I checked this, but for some reason its saying its not. I am pretty bad at figuring out path problems but I think this is one of them. Can anyone tell me how to fix this? Thanks

Resources