 25 Oct 2005, C?sar Reyes wrote:
[ when trying to use vgui]
> I get the next error:
>
> LINK : fatal error LNK1104: no se puede abrir el archivo 'vgui.lib'
>
> vgui is not in my PC and I used Cmake with Build_Vgui --> ON
In CMakeSetup, when you set BUILD_VGUI to "ON", did you get an option
VGUI_USE_MFC, and is it also "ON"?
Do you see the vgui project in your solution file? If so, did you try
to build it? Did it build successfully? If not, what errors did you
get?
Amitha.
Hi!, I´m using VXL under MSVS .NET 2003 and I´m trying to compile an example
for vgui:
#include <vcl_iostream.h>
#include <vgui/vgui.h>
#include <vgui/vgui_image_tableau.h>
#include <vgui/vgui_viewer2D_tableau.h>
#include <vgui/vgui_shell_tableau.h>
int main(int argc, char **argv)
{
vgui::init(argc, argv);
if (argc <= 1)
{
vcl_cerr << "Please give an image filename on the command line\n";
return 0;
}
// Load image (given in the first command line param) into an image tableau.
vgui_image_tableau_new image(argv[1]);
// Put the image tableau inside a 2D viewer tableau (for zoom, etc).
vgui_viewer2D_tableau_new viewer(image);
// Put a shell tableau at the top of our tableau tree.
vgui_shell_tableau_new shell(viewer);
// Create a window, add the tableau and show it on screen.
return vgui::run(shell, image->width(), image->height());
}
I get the next error:
LINK : fatal error LNK1104: no se puede abrir el archivo 'vgui.lib'
vgui is not in my PC and I used Cmake with Build_Vgui --> ON
Can anybody help me?
Thanks very much.
Cheers. César Reyes. (Spain)
[cc'ing the list for archiving]
On Tue 25 Oct 2005, C?sar Reyes wrote:
> VGUI_USE_MFC is OFF
Do you have GTK or Qt for Windows? If not, MFC is the only choice for
a display toolkit. You should turn it on.
> I built successfully vgui project but when I want to compile an example
> basic01_display_image
> I get this error:
>
> Compilando...
>
> basic01_display_image.cxx
>
> Vinculando...
>
> LINK : fatal error LNK1104: no se puede abrir el archivo 'Qv.lib'
Make sure that the Qv project is built. What version of CMake are you
using? How are you building the example? Using the IDE? Using
makefiles? On a normal build through the IDE with CMake 2.0, if you
select a project (such as basic01_display_image) and right-click and
select "build", it will build the dependencies first (vcl, vnl, vil,
vgui, etc). Does that happen for you?
Amitha.
[Let's keep this discussion on the list.]
On Tue 25 Oct 2005, C?sar Reyes wrote:
> I turn it ON MFC but I get the same error linking... Qv.lib
Did you try building the Qv project?
> what is GTK or Qt?
Mostly of interest to those interested in non-Microsoft
platforms. Don't worry about it. If you don't know about it, you
probably don't have it.
Amitha.