I would like to use the collision detection routine from the OPCODE library, newest version 1.3 ... There exist documentations, e.g. Opcode.pdf and OpcodeUserManual.pdf, but they do not agree with the source code, neither the current nor the previous version 1.2.
Any working example to check if to meshes collide? I only would like to define the meshes using triangles and connectivities (no callback function). I started with a code like the following, but not successfully.
#include <Opcode.h>
using namespace Opcode;
int main(void) {
IceMaths::IndexedTriangle *Tri0 = new IceMaths::IndexedTriangle[10];
IceMaths::Point *Pnt0 = new IceMaths::Point[10];
MeshInterface Mesh0;
I have written a shared library and successfully used debhelper 9 to create a Debian package from source using a Makefile generated by cmake. I then went about writing a python wrapper to that library and wish to package that wrapper in with the library so I can have a single distributable rather than 2 separate ones.
All of my attempts so far have me placing my python source and a setup.py file in the same directory as the makefile at the time where I call debuild.
From here I have tried a couple different configurations to my debian/rules file as seen below:
This try ran make, but completely ignored the python stuff. From some research I have gathered that the --buildsystem flag tells debuild to ignore any makefiles in the directory, which obviously causes a problem in my case.
Another attempt was to modify the build dependency to first run make and then call the python build process that file looked like this
This appears to somewhat work as both processes do build, but a few of the python files are still not getting installed.
Is this the way I should be going about doing this? I've noticed that most python wrappers tend to package themselves individually and then make that package dependent on the library it is attempting to wrap.
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.
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.
I'm looking for a solution of pattern detection in the logs and then allows to send me an email notification if it detects the previously specified term.I use already Logwatch, but I do not know if it is possible to configure it for that use.
I am trying to detect ellipse in an image through hough transformation. I am looking for sombody who can guide me the sequence of operation needed to perform and the accurate order of those operation.
I've introduced myself to OpenCV a bit now and can do some of the most basic things with it. My current goal is to have a solid color object (say a red ball) and have a camera be able to find that object. Anybody know of any resources to start learning how to do this? Any tutorials/books? Or is there something I should be searching for instead of color detection and tracking that will give me things more in the right direction?
Created application is working too slow, looks like there are a lot of memory leaks, there are a lot of pointers. Any effective tool for run-time errors and memory leaks detection in Visual Studio C++?
Is it possible to diagnose the cable between the PC and switch using F14 tools? I am suspecting that something is wrong due to <100Mbit xfer rates on a gigabit connection, but can't be certain. The switch is no help as it's a cheapo one with only link/act lights.
I am running Valgrind on PowerPC target machine. I get the following error
Code:
==2848== Memcheck, a memory error detector. ==2848== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al. ==2848== Using LibVEX rev 1884, a library for dynamic binary translation. ==2848== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
I just upgraded from Debian Etch to Debian Lenny (stable) and now I am having a tough time getting my printer to work. I have a LaserJet connected to the system with a parallel to USB cable.What happens is that when I go to print, nothing happens, CUPS says the printer is processing, and the job just sits there. If I load the ehci_hcd module, then the printer is fine.But it's not as easy as setting it up so that ehci_hcd is autoloaded at boot, because if that happens then when I turn on the printer I have the same problem. I have to actually unload ehci_hcd and then reload it!
i have tried going through this old post but its still not working ... tried googling but i do not seem to find any conclusive solution for this. [URL]i am getting this error during boot time:
there is no immediate effect due to this but after sometime the HDD goes in read-only mode. have tried changing bios setting from IDE to AHCI, did a disk check using hiren boot disk which did not give any errors.even now the error still persists. Linux 2.6.18-164.el5PAE #1 SMP Thu Sep 3 04:10:44 EDT 2009 i686 i686 i386 GNU/Linux CentOS release 5.4 (Final) i know i should probably upgrade my kernel but i see people with latest kernel also facing the same issue (mostly with samsung hdd but mine is seagate)
hdparm -I /dev/hda ------------ /dev/hda: ATA device, with non-removable media Model Number: ST380215AS Serial Number: 6QZ6ENV1
I recently upgrade my system from Jessie to Stretch, with no problem. A little later I upgrades Enlightenment from e17 to e20, and at some point shortly after that the second screen stopped working.
The nvidia X Server Settings correctly identifies both screens. But Enlightenment and xrandr does not see the second one at all. The second screen are on and the pointer moves correctly onto it, but no activity with left or right click. I have tried with the original xorg.conf, and generated a new one with nvidia-xconfig, but no difference. No obvious errors in any log-files either.
lisa@kitten:~$ sudo uname -a Linux kitten 4.3.0-1-amd64 #1 SMP Debian 4.3.3-2 (2015-12-17) x86_64 GNU/Linux
recently I'va bought PCI adapter for extending ATA devices [URL], connected disk (WDC WD1600JB-00REA0, ATA DISK drive). Everything is fine except switching off. Sometimes it freezes, sometimes it takes longer time (more than 30 sec). Everything goes well - except the last step (when appears "Rebooting", or "Switching off" on console). I didn't add any extra boot option into /boot/grub/menu.lst
How to make simple games (snake, pong... nothing too fancy). I have completed making snake and now want to be able to distribute it. I built it using C++ and wxWidgets so it would be multi-platform. I'm able to compile it and run it in both Windows and Ubuntu using g++. In windows, I was able to distribute it by putting a *.dll file in the same folder as the executable. However in Linux, I don't understand what I need to do so that it would run on any installation of Ubuntu out of the "box". When I build it and try to run it in a different installation of Ubuntu (which has g++) it gives me an error saying that a particular library file was not found and Getlibs fails to find that library file.
Is there a way to build a project with G++ so that all the dependencies are either packaged in the executables or copied into the folder....?
I'm trying to make one that has some sorts in it for now. I know you have to make a header file and a .cpp file. I'm using VC++(yes, I'm in school so windows in needed. I use Ubuntu at home I swear D if it makes a difference. What goes in the header file, how is the cpp file set up, and then where do I put the files once I'm done?
i have a code written in c..for which i was trying to create a gui using Gtk+.but now i want to use qt4 for the same purpose but native language of qt4 is C++. i have to do library binding for my C code to develop a gui using qt4.
I am trying to write a program that can get the times from files on a NTFS drive in Linux using the ntfs-3g library. I have installed the development libraries and source on my Fedora 10 machine. I can find the headers in the /usr/include/ntfs-3g directory but when i try and compile my program I am getting an undefind reference to ntfs_mount() call. I have the following in my link string
g++ -L/lib -o ProgramName -lpthread -lntfs-3g
I did a pkg-config --cflags --libs libntfs-3g and it said all i needed was the -L/lib -lpthread and -lntfs-3g.
To create a static library, or to add additional objectiles to an existing static library, I can use a command like this:ar rcs my_library.a file1.o file2.oBut how to add an existing static library to my own static library. I have created my own static library using the command above and want to link against the library libuuid.a (placed in /usr/lib/).
I jus found that #include<stdio.h> is not working with gcc and neither any function from the library like clrscr(); i found due to <stdio.h> is a windows lobrary file so its not come with linux. But I want to to know if I have to call any function from that library what should I do? Is there any way to install <stdio.h> in linux?
Where are the definitions for C library functions located? It was just recently that I realized that header files don't actually define any functions, they merely include their prototypes.
For instance, stdio.h includes the following line:
Code:
This just means that the definition of printf() is located in another file. What file? Is there some kind of default shared object file that is automatically included during compilation?
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:
I have visited these boards a few times, but never posted. Here's my problem: I was given the source to a program and asked to get it running on a 64-bit Debian 2.6.26 machine. Currently it is working on 2 64-bit OpenSUSE machines.
The application uses TCL TK for a GUI and everything compiles just fine; however, on startup, the user must enter one of three possible modules to load; when attempting to load these modules (tcl 'load' function), I receive this error:
Code: Error in startup script: couldn't load file "../Build/libMpf.so": libTransReaders.so: cannot open shared object file: No such file or directory while executing "load ../Build/libMpf.so Mpf" ("eval" body line 1) invoked from within "eval load ../Build/${px}${i}${sx} $i"
is there a way to debug my library files from DDD? Basically a way to pass the paths to DDD so I can view the source etc. I'm having a segmentation nightmare, which only crops up about every 10 or so starts, I know it's in one file in a library. I could move the source file into my general code to debug, but am sure there's a way in DDD.
I need to create a software library with two copy file routines in it. This library will be used in a TCL script. I know how to write the routines, but I have never created a library before. How do I do this?