How can I use a directory that contains .csv files (containing some data) inside the program? I think I need to configure the cmake but I don't know how to do it.
I tried adding folder to cmake and hoping that it would run it program could not access that files inside the folder.
Related
I have created a c++ program in Visual Studio 2015 that reads in external CSV files, works on them, then produces an output. I know that in the release folder of the output directory that an .exe file is created, however the .exe will not work correctly without being placed in the same folder as the 3 external CSV files.
Is there a way that I can package the CSV files into the .exe file, so I can have a standalone executable file.
Thanks in advance
Every time I enter lua my_script.lua in command line, it prompts me for lua53.dll on the same folder. How do I set a path so I won't need to have a copy of the lua library in every folder that I want to run a .lua file? I wonder if it is made via parameters or if I should build my own .exe from the .c files using environment variables, but I don't really know.
I've downloaded the binaries from http://luabinaries.sourceforge.net (v5.3.2 - may 19th) and have put lua.exe inside C:/Windows/System32.
According to this MSDN article, the directory from which the application is loaded is the first location being checked for the DLL file. If you put the DLL next to the location of lua.exe it came with, the DLL should be found and loaded by the system.
It may be better to not put application files into your system folders. Just create a separate folder and put your Lua files (.exe and .dll) there. You can then add that folder to PATH environment variable, so that it can be found when you run it as lua.
I've got a project and I'm trying to make it read a .OGG file.
I've downloaded the libogg and libvorbis from here, compiled them (had some trouble figuring I had to build libogg first), then got the following files:
libogg.lib
libogg.dll
libvorbis.lib
libvorbis.dll
libvorbisfile.lib
libvorbisfile.dll
I dragged all of them in my project's Libraries folder, already added to the project, and included them in the Linker->Input (only the .lib).
Next I copied the headers to my project's Includes folder, also already added to the project, with the files:
ogg/ogg.h
ogg/os_types.h
vorbis/codec.h
vorbis/vorbisenc.h
vorbis/vorbisfile.h
Then I added some code, and I get the error "The program can't start because libvorbisfile.dll is missing from the computer."
And I'm pretty sure the file IS in the Library folder and properly defined in the properties.
Did I do something wrong along the way?
How can I figure what is wrong so I can fix it?
I already tried putting the .dll in the project's folder and in the Windows/System32 folder as well, didn't work.
The library folder is fine for your .lib files, but it's looking for the .dll at run time, which your project settings have no effect on. Windows looks in a few places for a .dll, but the easiest way to get your program to run is to put the .dlls in your working directory, which is where ever you run your executable from (probably the same directory as the .exe file).
I have built a program in NetBeans, it creates myprogram.jar file but also creates folder named lib which includes JavaMail's mail.jar file. So I want to send that program to my friend without having to send him lib folder and telling him to put them together. So is there any way I can add all that in single .jar file? Thanks.
So I found this kind of solution, which was wery easy to understand, doesn't include any other program than NetBeans and which worked excellent for me. Here is the link: http://javanepal.wordpress.com/2009/09/15/merging-jar-files-to-single-jar-via-ide-netbeans-6-7/
If i'm not mistaken you cannot add jar files to jars. What you can do is extract the contents of the jars you have (preserving the directory structure) and then jar the resulting directory hierarchy by follow the instructions on how to create jar files
Of course once you figure out the exact commands involved, you could create a batch file to do the work for you again.
I have a a c/c++ project in netbeans 6.7 . The project requires a .dll file be located in the same directory as the .exe file, and it also needs a "media" directory (which contains a bunch of png files) within the same directory. I'd like to set it up so netbeans will automatically do this for me. How do I go about doing this?
You can edit the Makefile, specifically the .build-post target, and put there some cp commands to copy the required files next to the .exe.