473,799 Members | 2,837 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I compile in VC2008 with a makefile?

After having programmed since 8 years only VB6 I want to learn C++.NET now.
It's amazing that everything has to be prepared first. For example I
want to build the DirectShow baseclass, but the only files I found in
the PSDK\Samples\Mu ltimedia\Direct Show\BaseClasse s are

..cpp
..h
makefile

I would like to ask how I should compile them because I was thinking
that I would have a .sln file. Or can I use the makefile somehow in
VC++2008.NET. Btw, when talking about VC++2008, should I say VC9?
Oct 12 '08
14 1773
Hi Anna,
thanks, you're really nice. I know this link.
I don't have any problems running an OpenCV application, but there is
a bug in the OpenCV libraries themselves. I want to fix it and then
rebuild it. Maybe it's easy, but at 4 in the morning I gave up :-)
I will try it again now.
Sometimes a break is quite helpful ;-)

Just come back with source and compiler errors if you can't find out
yourself what's wrong. There are quite some helpful eyes around here.

--
SvenC
Oct 14 '08 #11
"SvenC" <Sv***@nospam.n ospamwrote in message
news:uX******** ******@TK2MSFTN GP03.phx.gbl...
Hi Anna,
>thanks, you're really nice. I know this link.
I don't have any problems running an OpenCV application, but there is
a bug in the OpenCV libraries themselves. I want to fix it and then
rebuild it. Maybe it's easy, but at 4 in the morning I gave up :-)
I will try it again now.

Sometimes a break is quite helpful ;-)

Just come back with source and compiler errors if you can't find out
yourself what's wrong. There are quite some helpful eyes around here.

--
SvenC
I would definatley give their build instructions a close read, sometimes you
may have to set some env variables manually as well (I know...).

Let us know how you get on.

Granville

Oct 14 '08 #12
Hi Sven,

it's all going well :-) I'm really happy! At least there is nothing that
really blocks me from going on.

I have a question:

I have this class:

class asmmovieavi
{
public:
asmmovieavi(): capimg(0), capture(0), image(0){ }
~asmmovieavi(){ Close();}

// Open a AVI file
void Open(const char* videofile);

//capture from live camera
void CaptureCamera() ;

// Close it
void Close();

// Get concrete frame of the video
// Notice: for speed up you have no need to release the returned image
IplImage* ReadFrame(int frame_no = -2);

// frame count of this video
const int FrameCount()con st
{return (int)cvGetCaptu reProperty(capt ure, CV_CAP_PROP_FRA ME_COUNT);}

const int Type()const{ return avi_or_cam; }

private:
IplImage* capimg;//captured from video
IplImage *image;
CvCapture* capture;
int avi_or_cam; //0:avi, 1:cam

};

I think it's a beginner's misunderstandin g, but I don't see where const
char* videofile goes. I mean to me it looks as if the class doesn't
really do anything with "videofile" . I thought that void Open was a
public void that I one can call when he has a handle to the class. At
least I am calling this void in another part of my code, so I'm
wondering what it does.
Even more strange to me is "void Close()". It seems to be hanging around
in there doing nothing.

Thanks again a lot.
Anna
Oct 15 '08 #13
Anna Smidt wrote:
Hi Sven,

it's all going well :-) I'm really happy! At least there is nothing
that really blocks me from going on.

I have a question:

I have this class:

class asmmovieavi
{
public:
asmmovieavi(): capimg(0), capture(0), image(0){ }
~asmmovieavi(){ Close();}

// Open a AVI file
void Open(const char* videofile);

//capture from live camera
void CaptureCamera() ;

// Close it
void Close();

// Get concrete frame of the video
// Notice: for speed up you have no need to release the returned image
IplImage* ReadFrame(int frame_no = -2);

// frame count of this video
const int FrameCount()con st
{return (int)cvGetCaptu reProperty(capt ure, CV_CAP_PROP_FRA ME_COUNT);}

const int Type()const{ return avi_or_cam; }

private:
IplImage* capimg;//captured from video
IplImage *image;
CvCapture* capture;
int avi_or_cam; //0:avi, 1:cam

};

I think it's a beginner's misunderstandin g, but I don't see where
const char* videofile goes. I mean to me it looks as if the class
doesn't really do anything with "videofile" . I thought that void Open
was a public void that I one can call when he has a handle to the
class. At least I am calling this void in another part of my code, so
I'm wondering what it does.
Even more strange to me is "void Close()". It seems to be hanging
around in there doing nothing.
This is a totally new question, you should have started a new thread with an
appropriate subject line.

To answer your question, the lines you show are prototypes aka forward
declarations. The actual code implementing these functions is elsewhere.
This separation of interface and implementation is something that many other
C-syntax languages (Java, C#, etc) do not allow.
>
Thanks again a lot.
Anna

Oct 15 '08 #14
Thank you!
Anna
Oct 16 '08 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4476
by: Mario T. Lanza | last post by:
I am working with Visual Studio. The solution I am developing is composed of about 8 separate projects. Some of these projects represent different tiers in the N-tiered architecture (data, business logic, presentation, etc.). Right now, some of the projects are inter-related and reference each other using Project References. When I select "Rebuild Solution" to compile, each project is successfully compiled into its own directory (and...
4
1752
by: Brock | last post by:
Hello all: I apologize if this query seems a bit off-topic. But I couldn't think of another place to post my message. I would like to get an idea of how you all like to handle preprocessor defines. Do you like to create a header file with all the associated defines and then include it with every frickin' source file that's created/modified, OR do you appreciate the ability to pass these on the command line or from a makefile? Can you...
5
1455
by: Michael | last post by:
i experience slower compile times with VC++ 2003 compared to VC+6.0. Anyone experiencing the same? Should that be expected? This ineed matters, when total compilation time is > 1h and you have to wait 10-50% longer...
1
1440
by: cyshao | last post by:
How to compile project by makefile ? I downloaded a VC package. There is not project file, but only a makefile. Could you tell me how to compile this makefile? Thanks Charles Shao^_^
9
2457
by: beet | last post by:
Hi, I am really not good at c/c++. Some simple code.. #include <stdio.h> #include <stdlib.h> #include <math.h> #include "simlibdefs.h"
4
4888
by: Tan | last post by:
Hi folk, I'm trying to install latest OpenSSL version in VS2008 Express Edition on WinXP. I have downloaded and installed the redistributable for VC+ +2008 (including SP1), and also installed the latest version of pre-compiled version of OpenSSL from /www.shininglightpro.com/products/ Win32OpenSSL.html website. So AFAIK there is no need for Perl script compilation and NASM, MASM issue as long as I have the pre-compiled binaries. If I'm...
3
2062
by: =?Utf-8?B?amM=?= | last post by:
Hello, I am trying to install VC2008 SP1, but it requires 5GB on the "C:\" drive. I don't have 5GB available on the "C:\" drive, but I do have 1/2 TB available on the "D:\". How do I change the installation settings to install SP1 on the "D:\" drive? I installed VC2008 on the "D:\" drive.
2
2805
by: vipergt023 | last post by:
Hi, I have an VC2008 (C++) app that reads data from a VC6 app using CArchives over sockets using regular socket reads. On my local computer when I send the packets to 127.0.0.1, it reads it with no issues. On a blank "test" computer with .NET 3.5, VC++ redist, and both applications installed, the local (127.0.0.1) test doesn't work. The VC6 app simply cannot detect the open port of the VC2008 app. No error messages on the VC2008 app. Are...
3
2119
by: tvnaidu | last post by:
Currently I have 15 module folders, each module had C code, also Makefile in each folder, also build script to create shared lib for each module. Each of this Makefile had CFLAGS defined inside, basically -g option enabled in all Makefile, there is a separate line ion each Makefile for CFLAGS, but at the root, I have single build_all script which calls each build script to compile each module and create each shared lib. can I pass this CFLAGS...
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10482
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.