Software :: Creating Mex-files With Gcc With External Libraries - Matlab

Mar 2, 2011

I have been browsing trough forums, manuals and people for a few days now wihout success so I thought i give this a go, any help will be very appricieted!

I'm using Matlab 2010a in Ubuntu 10.10. I also have a AVT Marlin F033C firewire camera and want to use the two together. Since most things i will do with the images will be processed in matlab I decided that the best would be if i could do everything in matlab.

The code for capturing a picture is however in c and uses the library dc1394 (usr/lib). Compiling this with gcc works good:
$ gcc grab_gray_image.c -ldc1394

To be able to create a mex-file of it (that matlab can run) I have included "mex.h" in the headers and added the function mexFunction in the very top, this function should do more once it works...:

Choosing "Template Options file for building gcc MEX-files".

When trying to compile i get a few errors but these are easily removed by taking away all the //-comments and all the inline for a few functions (this should do anything for the functionality right?).
After that I am still stuck with this error:

I should probably also note that I needed to rollback to gcc 4.1 since that is the latest one matlab 2010a can handle and now don't get that warning anymore.

View 4 Replies


ADVERTISEMENT

Fedora :: Libraries MATLAB Installation - Error While Loading - Permission Denied

Jan 18, 2011

I installed MATLAB R2009a in my laptop (Fedora 14 x86-64), the installation was succesful but when I run MATLAB (in a console), appears a message: error while loading shared libraries: libut.so: cannot enable executable stack as shared object requires: Permission denied

I find a "solution", execute in a terminal: execstack -c libut.so

I used several times with differents libraries that I needed, but I run MATLAB in a terminal, MATLAB starts in a terminal, only a prompt ">>" and nothing.

View 2 Replies View Related

Programming :: Creating C++ Shared Libraries

Apr 4, 2010

I have 2 questions... I couldn't find answers by Googling (more precisely, by Blackling) and in GCC documents, so I'm asking here.

1. There are 2 flags for position independent code, -fpic and -fPIC. All the examples I read use -fPIC... so when is -fpic useful and what is the difference?

2. Some tutorials use "g++ -shared" while others use "ld" for the creation of the shared library. Why? Does it matter which method I use? Is there a difference? Why does nobody mention both options?

View 11 Replies View Related

Debian :: Mex C Files In Matlab - System Warned Stdc++ Cannot Be Found

Mar 17, 2011

I tried to mex two C files under matlab but faild. The system warned stdc++ cannot be found. I need the mexa64 files urgently. if someone can mex the C files using his/her machine. My server runs Debian GNU/Linux and the Matlab version is 64-bit R2010b. So the extension for the generated file would be mexa64. I'm using hotmail with the same user name as in here.

View 2 Replies View Related

General :: Downgrade Gcc-version To Compile Mex-files For Matlab - Permission Denied

Feb 22, 2010

I am trying to run matlab 7.7 (R2008b) on my ubuntu 9.10 distribution..the thing is that I am totally new with both matlab and linux and I get the following error message from matlab when I try to run an example mex-function:

>> mex yprime.c
/home/margareta/Desktop/matlab/bin/mex: 1572: gcc: Permission denied

Warning: You are using gcc version "". The earliest gcc version supported with mex is "4.0.0". The latest version tested for use with mex is "4.2.0". To download a different version of gcc, visit [URL] eval: 1: gcc: Permission denied mex: compile of ' "yprime.c"' failed. Error using ==> mex at 213 Unable to complete successfully.

I had gcc-4.4 as default on my pc, so after this error I downloaded an older version (gcc-4.1) and removed with rm the symbolic link in /usr/bin pointing to gcc-4.4 and created a new one pointing to gcc-4.1. Now when I type gcc -v in the terminal it says that gcc is in the packages gcc and pentium-builder, to do an apt-get install. I tried that but than it says that gcc-4.1 is already the newest version. It seems that I have multiple versions of gcc installed but neither the terminal nor matlab can find them.

View 10 Replies View Related

Software :: Creating Wineprefix External To $HOME ?

Jan 16, 2011

I've been trying to create a wine prefix that is able to be used by multiple users (i.e outside $HOME/* or /home/$USERNAME/*) so that i don't need to re-install programs for every user and use the extra disk space, however when i try to use winetricks in said prefix it complains that my user does not own the directory (even when i set it so that the user is the sole owner)

View 5 Replies View Related

Ubuntu :: External HD Formatting With 10.04 - Error Creating Filesystem

May 19, 2011

I'm trying to format an external hard disk under Ubuntu 10.04. All starts well, but eventually I get the message:
Error formatting volume
Error creating file system: helper exited with exit code 1:
Error calling fsync(2) on /dev/sdb1: Input/output error

View 1 Replies View Related

General :: Creating A Script To Move Or Copy Files Into Multiple Directories Below The Files?

Aug 25, 2009

How can you create a script to move or copy files from a main directory into multiple directories below the main directory.

View 7 Replies View Related

Programming :: How To Attach New C Header Files And Libraries

Mar 10, 2010

I have been a predominant Windows user for a long time but shifted to Ubuntu recently. I was just trying out a few basic C functions when i realized that the "conio.h" header file isn't included in the libraries and therefore i was unable to use the "clrscr()" function.

I downloaded a tarball which contained the necessary library and header files including conio.h. Once extracted, i specified the location and included in the program as " #include "path to the header file" ".

I still didn't call the "clrscr()" function, and it compiled successfully. Next i edited the program to call that function and it gave the following error...

How i can add new libraries in the future?

View 14 Replies View Related

General :: Rsync --link-dest Not Creating Hard Links On External Usb Drive?

Aug 24, 2009

CentOS 5.2 64bit 2.6.18-92.el5xen. Use rsync with --link-dest for nightly backups, works well. Was recently asked to start weekly backups to an external drive for off-site storage. The regular syncing works but hard linking seems to be ignored. So the backup is long with no space saving advantage. Here is an example of the command being run:

rsync --stats -axzvl --numeric-ids --delete --link-dest=/mnt/DISASTERBACKUPS/austinBackups/backups/2009-08-21 /AUSTINBACKUPS/backups/2009-08-24 /mnt/DISASTERBACKUPS/austinBackups/backups/

View 4 Replies View Related

General :: Use Always The Latest Versions Of The Libraries And Don't Save The Old Libraries For Compatibility?

May 11, 2011

Why many Linux distros are trying to use always the latest versions of the libraries and don't save the old libraries for compatibility? I mean, I can see libtiff for example, i can found a libtiff.so.5 on my /usr/lib, but doesn't store a libtiff.so.4 or 3 just for binary applications or games. For this example, I need libtiff.so.4 for uplink.

That should happen too on the old version of sims for linux, some ID games or others.What's wrong with storing old libraries? PD: Yay, my first post on 3 years!

View 6 Replies View Related

Ubuntu :: Correctly Installing Libraries And (non-kernel) Header Files?

Jun 9, 2010

Not I recently installed a package (Vision Egg) that requires the Open GL libraries and headers, specifically, gl.lib and gl.h. I used Synaptic to install nvidia-current and nvidia-current-dev and it now looks as if the required libraries (under different names) are installed in /usr/lib/nvidia-current and as if the required headers are in /usr/include/nvidia-current. I am a bit confused because I also have /usr/lib/nvidia and /usr/lib/nvidia-173.

The installation of Vision Egg fails with "cannot find GL/gl.h" and "/usr/bin/ld: cannot find -lGL"There is a related post a few years ago under thread 200901 but it relates only to a single file problem that is fixed manually. I'd rather avoid that because it looks like it is easily breakable.Is there a standard way --- that is, a method that does not require error-prone manually changing or linking a multitude of file names --- of ensuring that programs which require GL/gl.h actually find the correct nvidia header file and also that the link loader finds the GL libraries.

View 2 Replies View Related

Software :: Dependent Libraries And Header Files In Non System Folder?

Apr 5, 2011

I've a source code of a program and I know that to compile and install that program I've to do:
./configure --prefix=/opt/test
make
make install

Now I want the program to look for dependent libraries and header files first in a non system folder. Now how can i instruct "configure" and "make" script to look for dependencies first in a different folder without editing configure and Makefile. And after these folders are searched for dependencies by the script it can look in system folder. Is there any environment variable that i can supply to "configure" and "make"? Will that work without any conflict? what are these environment variables? And also if I use these environment variables do I need to edit the source code files?

I mean do I need to change these lines
Code:
#include <test1.h> ...
to
Code:
#include "test1.h" ...

If yes then is there any other way to compile them without modifying the source code?

View 2 Replies View Related

Software :: Shared Libraries Dependencies - Ldd - Cmov - (files Have Different Sizes)

Jan 6, 2010

Question about shared libraries dependancies & ldd: Lets find dependancies for /bin/echo :

$ldd /bin/echo
linux-gate.so.1 => (0xb7f70000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7e01000)
/lib/ld-linux.so.2 (0xb7f71000)

Lets focus on libc6 :

[Code]....

What is this directory /lib/i686/cmov? How does ldd to link /lib/libc.so.6 to /lib/i686/cmov/libc.so.6? Why having 2 libc6 on the system (files have different sizes, so are different)?

View 2 Replies View Related

Debian :: An Apt-get Install Lottanzb Would Change All Libraries, Config Files Etcetera?

May 14, 2010

not trolling for a flame war but I simply added the testing repository earlier and did an apt install of just lottanzb and it ended up taking ages and installed lots of new files and removed things like Epiphany etcetera, and that one command had me having to reinstall as it messed everything up so it wouldn`t work at all even the shell was messing up.I have never had Windows break totally from an install, but first try with Linux and it did so could someone explain why an apt-get install lottanzb would change all my libraries, config files etcetera with the testing version over Lenny stable?

View 14 Replies View Related

General :: Using Dynamic Libraries As Static Libraries?

May 6, 2010

Is there any way to use a dynamic libraries as a static libraries instead when compiling, so that my resulting executable won't have them as dependencies?

View 3 Replies View Related

General :: Creating Files In Red Hat ?

Feb 14, 2011

Creating Files in Red Hat Linux ?

View 1 Replies View Related

Ubuntu :: Creating .package Files?

Mar 21, 2011

I've been scooting around Google to try and figure out how to create ackage files.pparently their created by a utility (which is already installed on my PC) called 'autopackage'. I've been to their website (www.autopackage.org) but I can't find anything on how to actually create the .package files

View 5 Replies View Related

Server :: Creating CSR / CRT Files Using OpenSSL

Jul 14, 2010

I got an task assigned to me, i have to create new ssl key, csr & crt files using openssl. But the file name must be of this kind (*.aaa.xx.aa). When I tried the file name starting with * its not accepting the file name. But when I tried with the file name starting with . its getting generated.

View 1 Replies View Related

Fedora :: Creating And Verifying Torrent Files?

May 9, 2011

I'm trying to create a torrent file via the command line. I used "transmisson-create", but since the .torrent file is binary I can't read it using "less" or "nano". Is there a way of verifying that the torrent I created was correctly done? I know I could probably upload the .torrent file to my public server and then use another torrent client to test, but I simply want to see what's inside the .torrent file to verify that it got all the files I wanted. I cd'd into the directory with the files that I want to torrent and ran the following command.

Code:

$ transmission-create -p -t http://tracker.openbittorrent.com/announce *

View 4 Replies View Related

OpenSUSE :: Disable Creating .directory Files?

May 30, 2011

I'm using openSUSE 11.4 (x86_64) with KDE: 4.6.00 (4.6.0) "release 6"Everytime I visit a direcotorya hidden file ".directory" is created. How to disable that? Is There a possibility to disable that behaviour only for public_html directory

View 9 Replies View Related

Ubuntu :: Creating Files From Context Menu

Aug 3, 2010

I like to create files using the GUI context menu. I right click on windows and one of the options in the menu is "new" and then I have many options such as Word 2007 file etc. I create a lot of files and so this method is more convenient by far for me than opening the application, saving and then navigating to where I want the file to go. Because when I want to create the file, I will probably be in the directory in which I want to create the file, the process takes only a few gestures to complete which is not the case if I have to go through the file system in the "save as" window. Is it possible to have this functionality in Ubuntu?

View 5 Replies View Related

Ubuntu :: Creating PDF Files From A Command Line In 10.04?

Sep 15, 2010

rying to find a way to generate a PDF file from a text file in a command mode (X is not installed). Is there a simple way to do that?I don't need anything fancy - no special formatting and no images to include, just simple text converted to a PDF format

View 3 Replies View Related

Ubuntu :: Creating Executable Files With Bash?

Apr 20, 2011

you can make a file that runs the contents as if typed out by the user in command prompt by saving the file as either .bat or .cmd . When using BASH in ubuntu, is it possible to save terminal executable files (from a text editor, like GEDIT), What file ending does it take, can i lay it out with just commands? (what is the syntax)

View 3 Replies View Related

General :: Creating Multi Volume Tar Files?

May 29, 2010

full snapshot of ArchLinux Repo for x86_64I want to use this as my restore backup should I need to reinstall Arch without network support.How do I build several *tar volumes of my /mount/my_repo to fit into 4.5GB DVDs ... the thing is 18 GB size...How do I extract all the *tar created to a folder later on...? is it the same as extracting a single *tar, will tar find all volumes in the same directory level so as to continue extracing or do I need to merge them in some way

View 1 Replies View Related

General :: Creating Random Large Files?

Aug 27, 2010

how I can randomly write / create a 1 GB file in bash to test disk / network i/o? I was told I could use the 'dd' command but I don't know if there are some better ways and or what the 'dd' command looks like.

View 7 Replies View Related

General :: Concatenating 2 Files Without Creating Newline Between Them?

Dec 23, 2010

Concatenating two files without creating a newline between them? So how is it possible to do that? I've tried the following:
Code:
echo 123 > file1
echo 456 > file2
cat file2 file2 > file3

[Code]....

View 8 Replies View Related

Software :: Creating PDF's From Multiple Files Of Different Formats

Oct 3, 2010

I have read alot about exporting or printing to PDF using open office. Haven t tried it but its pretty standard to be able to do that from a word processor so I'm not worried about it.here is an example of what I need to do. I just put together my wifes resume. I had the cover sheet in .doc I had the resume in .doc I had a pdf of some ground plans for large scale gardens she had done and I had a few new pix in jpeg.
I was able to go into Lightening PDF hit create new, pull all those files in, sort them in the order I needed and it created a single mutipage .pdf from those files.

Any luck on finding something like that for linux? That would be just about the last piece of software (If I can make wings work for me) that I need to start testing ubuntu as a primary operating system.

View 2 Replies View Related

Debian Configuration :: Rsync - Not Creating Files On Host

Aug 2, 2015

Having an issue with rsync

I launch the following

Code: Select allrsync -avz --remove-source-files --log-file=/home/pi/rsync.log --temp-dir
=/data/temp --partial --progress -e "ssh" 192.168.1.100://data/ext/downloads/File.ext /data/

Basically I download to main PC and rsync to my pi as the pi has a fraction of the speed for some reason when downloading form a source outside of my network.

The first few files will sync fine. Then I start getting errors like this

Code: Select allrsync: rename "/data/temp/.File.ext.y1716M" -> "File.ext": No such file or directory
(2)

The directory on the host has user and group ownership as pi. Rsync has been setup to login without a password.

View 0 Replies View Related

Fedora :: Creating A Script To Upload Files To Webserver?

Jun 25, 2010

How would I go about creating a script to upload files to my webserver? I want it to only upload files that have been modified on the current date. So if I make changes to a file or touch a file, I run the shell (or perl) script to upload those files. This is what I have so far:

Code:

#/bin/bash
FTPU="username" # ftp login name
FTPP="password" # ftp password

[code]....

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved