Programming :: Avoid Application From Closing If A Specific Library Not Found?
Jan 2, 2011
i was wondering if there is away to avoid application from closing if a specific library not found? for example: if my application uses libPng and it wasn't found on the system running my app (binary and not source), is there anyway to just disable the part that uses png from my application?
View 14 Replies
ADVERTISEMENT
Jun 16, 2011
I wonder if it is possible to avoid JNI in order to port a c/c++ STL application to android ?Do I have an alternative for calling C/C++ (STL) code ?
View 2 Replies
View Related
Nov 28, 2010
I'm trying to learn how to cross-compile libraries (static and shared) and executables for the Blackfin + uClinux environment.At this point, I can successfully compile a stand-alone "Hello, world" but fail when trying to add a (static) library to the mix.Here's the source code I wrote:
Code:
#========== bar.h
void mytestfunc(void);
#========== bar.c
#include <stdio.h>
[code]...
Googling for this returns talks about "name mangling", but I don't know if this is what it is, and how to change the source/command to solve it.
View 1 Replies
View Related
Jul 30, 2011
I have a bash script and I'm dropping a file on script launcher shortcut. Everything seems fine, only that after executing the script console window closes, so I can't see if some messages were produced during execution.
As I just recently switched from Windows, this kind of problem is solved there by adding 'pause' command in batch script, on which user has to press key and script will then continue (finish) or by launching through 'cmd /k' which makes console window persistent.
Googling I found about 'sleep' command and more appropriate for me 'read' command, so I did this:
Unfortunately, I can't see any effect of 'read' command as console windows again terminates after execution. Execution is successful BTW. So what's the catch?
View 9 Replies
View Related
Mar 18, 2010
I am currently having an application package which provides some applications.however API's for the same will be provided by third party.Currently i am using a dummy functions in my code.Now i have a release by the third party for the first Api version.They have given a set of .so libraries.How do i integrate this with my application?Also i need an idea in general to how to go ahead with programming in such a development scenario where in it is distribued?
View 3 Replies
View Related
Jun 16, 2014
app deployment on Linux/debian and I'm using Debreate to create .deb packages which works fine. I install the software itself to /usr/bin but want to install the program's database to /home/username/myapp/ The problem is it that I don't know how to add the env variable 'username' to the target path. What is the exact syntax for this installation path?
View 3 Replies
View Related
Dec 25, 2010
I am going to use "pthread_setaffinity_np" to bind a thread to a specific core. My application has two threads. I have used mutex to assign a specific id to each thread and then bind that thread to a core different from another core. but it seems that the os assigns both thread to one core.What should I do to bind each thread to a specific core?
View 4 Replies
View Related
Nov 13, 2010
I recently noticed my RAM problem. When I start any application it increases RAM usage but even after I close it RAM usage doesn't go down. Instead when I restart that application RAM usage goes up again. Using ubuntu 10.10
View 6 Replies
View Related
Jan 15, 2011
I've made custom launchers for programs that can only run in terminal. They open fine within the Terminal window, but it closes right after the program is finished, before I can read the report.
Is there a way to keep the Terminal window open, using launchers? I don't want to manually type the commands after opening a Terminal.
View 2 Replies
View Related
Jun 4, 2010
I run the ping command using system() in C. It start pinging the desired destination but when I close my application it continues to ping. Is there any solution that as soon as I close my application it also stops pinging. Any change required in my C code?
View 2 Replies
View Related
Apr 7, 2009
I'm reading about shared, static, and dynamic libraries. What is SDL? Is it static, shared, or dynamic?
I always thought a library would be a lot of .h and .cpp files compiled separately into .o files and then if you compiled your own program you could use the -l parameter to link the library and it was all compiled together. Now I'm not so sure.
I don't even see any SDL .cpp files in my system anywhere. All I have are lots of SDL .h files in /usr/include/SDL and I don't really understand the code in them.
I'm making a wild guess here: SDL is a shared library. SDL itself is NOT compiled into my program, therefore SDL must be on any system my program tries to run on. When I compile and link SDL all it needs is the header files to know what SDL function and objects it can use. And then on every system it uses an already compiled SDL shared library thingy somewhere.
So... where is that part of SDL? All I can find are header files.
I'm thinking the advantage of shared libraries is that someone could say update SDL on their own system and take advantage of the new features without having to download new executables with the new version of SDL compiled into them for every program that uses SDL.
So if I'm making an editor and a game engine and they both use a lot of the same .cpp and .h files that I wrote and I'm tired of updating one and then the other and I need to turn them into a library, then a shared library might be kind of a silly solution. I could just make a static library. Right? Because it's not SDL. Nobody else is ever going to use this library.
View 6 Replies
View Related
Mar 8, 2010
I've wondered for years how it works and how I can change it. For example, opening a document with vim, or opening a man page, and then exiting out of it will sometimes (depending on the distro) clear the screen and leave your prompt at the very top. other times, it leaves the contents of whatever you had open on-screen and your prompt is at the bottom.
View 1 Replies
View Related
May 15, 2010
I haven't been able to find it yet, but I may just be overlooking it in the programs I've tried. What I want, is to have a lossless music library on my desktop. Be able to browse this music library, select certain songs, and convert them to a mobile friendly format as I push them onto my phone for playback. Such as a flac to mp3/aac conversion while it pushes them onto the phone. Is there a program that does this? The last time I was able to do this, was in Windows using J River Studios Media Center, and it did this quite well.
View 1 Replies
View Related
Apr 8, 2010
While trying to compile one of the software application I am giving "cmake ." command but getting the below error :
I have downloaded "libpqxx-3.0.2" and have installed it.
libpqxx.a and libpqxx.la have got installed under /usr/local/lib.
Why am I still getting this error?
View 2 Replies
View Related
Jul 24, 2010
I need to search a bunch of files in a specific folder for a specific number and add all the numbers together to a total sum. I use Rsync everyday, everytime I run rsync i get a logfile (rsync output) witch contains the textstring "Total bytes sent: xxxxxx".
The "xxxxx" can vary in lenght. I need to extract the "xxxxxx" from each file and add the numbers together to a total size over a week or a month. Is this possible? And I wish to only use bash. One way of doing stuff at a time my friends .
View 5 Replies
View Related
May 2, 2011
I built a shared library for some API functions (C files) and compiled them with gcc. Now I'm writing a c++ application (compiling with g++) and want to link my C API shared library and be able to use it from my application. Is this possible? At first instance, it's not quite working for me. I was able to link my shared lib just fine with a C application but got an "undefined reference to `apiFunction()'" error when attempting to do it with g++. Just want to see if anyone has any insight on this subject and make sure this mix is even is allowed.
View 1 Replies
View Related
Jul 19, 2010
I want to replace specific character in a file after every specific line. example as follows.
O 000000000000000000
A 111111111111111111
C 222222222222222222
[code]...
View 2 Replies
View Related
Mar 2, 2010
I try to install simulation package Espresso. When I configure I have following error message.
checking for libtcl8.5... no
checking for libtcl8.4... no
checking for libtcl8.3... no
[code]....
View 1 Replies
View Related
Nov 18, 2009
How can we convert a dynamic library (filename.so) to a static library (filename.a) using gnu gcc . Can we get a static library form a dynamic library . I saw a few post in which the conversion form a static library to a dynamic library is mentioned but, unfortunately, not the other way.
View 4 Replies
View Related
Jan 1, 2010
I am using Debian Lenny with LXDE. For some reason, I would like to use some software which is developed under KDE, such as Kile. But the fonts are not so good (screenshot here).
View 3 Replies
View Related
Sep 6, 2010
I'm facing difficulty while writing to an already existing file . I'm making a shell (programming in C). I want a file (say , logfile) to keep a record of all the commands a user enters. For the first command it runs fine , but for the second time and thereafter it overwrites the previous contents. How do I avoid this?
View 3 Replies
View Related
Oct 1, 2010
In the code below:
Code:
The output is:
Code:
Looks like the "," operator in the print inside the loop is adding a space for its own.
I want to print the sequence WITHOUT spaces. Something like this:
Code:
But I couldn't figure out how to do this.....
How to print a sequence, inside a loop, without that space ?
View 14 Replies
View Related
Jul 21, 2010
iwant to install julius 3.5.2 on my system but i have an error after compiling the file configure the error is flex library is not found so what i have to do
View 3 Replies
View Related
Jun 16, 2010
I tried to compile one software. After I typed "./configure", there is an error:error: GSL CBLAS library not foundI installed GSL 1.9 library --- When I was installing, it was like this:
make install
Making install in gsl
make[1]: Entering directory `myDir/gsl-1.9/gsl'
[code]....
View 5 Replies
View Related
Feb 18, 2011
How to fix this error :
Code:
checking for Qt4... no
configure: error: The QtCore library >= 4.3.0 could not be found.
View 3 Replies
View Related
Jan 27, 2011
Configuring postfix for getting gmail account and we make ssl certificate for this.
File not found ssl
while giving this command:
whereis ssl
ssl:
ssl library file not found ....
View 2 Replies
View Related
May 8, 2010
configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support. Now I tried to yum install readline-devel and the result was failure as below:
Quote:
[root@localhost ~]# yum install readline-devel-6.0-3.fc12.i686.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
[code]....
So I am thinking that maybe I have to tell configure where my readline libraries are. From the above, it looks like readline-6.0 is not on my computer, even though I went through the configure/build/install process for it.
View 3 Replies
View Related
Apr 22, 2010
I want to know, how to allow to a specific user to run an application (for example Virtual Machine Manager) without entering a password? I have tried to add this user into appropriate groups, but it didn't helped.
View 7 Replies
View Related
Jun 12, 2010
how can you set specific application's data to always reside in ram, so it runs and launches super fast all the time?
i recall reading about how you could put all your libs folders into ramfs once, but it took up a lot of ram, so i never bothered, and it was really just for faster (instant) launching times.
i just want to be able to set that for specific things, like for example, the GIMP and Inkscape.
View 2 Replies
View Related
Feb 6, 2011
I am trying to compile the source code for Mudlet, a MUD client, on Fedora 13 64bit and I keep running into linking errors at the end of the compilation. Here is the latest:
[Code]...
This makes me think that the yajl library was not found. I have both the yajl and yajl-devel packages installed:
[Code]...
Should I be using a different library specifier other than -lyajl, perhaps?
View 4 Replies
View Related