Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, December 2007
Qt Jambi 4.3.3_01 can't build with win32-msvc2005


Message 1 in thread

Hi,

I've some experience with Qt, but I'm new to Qt Jambi. It seems to be a real
good framework, I like the concept.

I've downloaded Qt Jambi 4.3.3_01 and tried to compiled it with :

   - Microsoft Windows XP SP2 Pro,
   - Microsoft Platform SDK,
   - Microsoft Visual C++ 2005 Express Edition,
   - Trolltech Qt 4.3.3.

I've got the following errors (I've compiled with the Microsoft Visual
Studio 2005 Command Prompt).

Thanks for your help :o)
Christophe

        C:\msvc8\VC\BIN\nmake.exe -f Makefile.Debug all

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        link /LIBPATH:"c:\qt-win-opensource-src-4.3.3\lib" /NOLOGO /DEBUG
/MANIFESTFILE:"debug\com_trolltech_qt_sql_debuglib.intermediate.manifest"
/DLL /OUT:..\lib\com_trolltech_qt_sql_debuglib.dll
@C:\DOCUME~1\CBISMU~1.ISR\LOCALS~1\Temp\nmBC.tmp
LINK : warning LNK4001: no object files specified; libraries used
LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
..\lib\com_trolltech_qt_sql_debuglib.dll : fatal error LNK1120: 1 unresolved
externals
NMAKE : fatal error U1077: 'C:\msvc8\VC\BIN\link.EXE' : return code '0x460'
Stop.
NMAKE : fatal error U1077: 'C:\msvc8\VC\BIN\nmake.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

C:\qtjambi-gpl-src-4.3.3_01>.\bin\juic.exe -cp .
updated: com.trolltech.demos.imageviewer.Ui_AboutImageViewer
updated: com.trolltech.demos.imageviewer.Ui_MainWindow
updated: com.trolltech.examples.Ui_Dialog
updated: com.trolltech.examples.Ui_CalculatorDockable
updated: com.trolltech.examples.Ui_CalculatorNormal
updated: com.trolltech.examples.Ui_CalculatorSimple
updated: com.trolltech.examples.Ui_ChatDialog
updated: com.trolltech.examples.Ui_SimpleUIExample
updated: com.trolltech.examples.Ui_SimpleUIExampleMainWindow
updated: com.trolltech.examples.stylesheet.Ui_MainWindow
updated: com.trolltech.examples.stylesheet.Ui_StyleSheetEditor
updated: com.trolltech.launcher.Ui_Launcher
juic: updated 12 files

C:\qtjambi-gpl-src-4.3.3_01>javac -J-mx1024m @java_files
javac: file not found: .\com\trolltech\qt\core\QAbstractEventDispatcher.java
Usage: javac <options> <source files>
use -help for a list of possible options

Attachment:

Attachment: qtjambi_win32-msvc2005.log
Description: Binary data


Message 2 in thread

Hi, Cristophe.

Christophe Bismuth wrote:

> /OUT:..\lib\com_trolltech_qt_sql_debuglib.dll 
> @C:\DOCUME~1\CBISMU~1.ISR\LOCALS~1\Temp\nmBC.tmp
> LINK : warning LNK4001: no object files specified; libraries used
> LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
> LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
> ..\lib\com_trolltech_qt_sql_debuglib.dll : fatal error LNK1120: 1 
> unresolved externals
> NMAKE : fatal error U1077: 'C:\msvc8\VC\BIN\link.EXE' : return code 
> '0x460'
> Stop.
> NMAKE : fatal error U1077: 'C:\msvc8\VC\BIN\nmake.exe' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'cd' : return code '0x2'
> Stop.
>
>
> C:\qtjambi-gpl-src-4.3.3_01>javac -J-mx1024m @java_files
> javac: file not found: 
> .\com\trolltech\qt\core\QAbstractEventDispatcher.java
> Usage: javac <options> <source files>
> use -help for a list of possible options

Are you sure you have completed the step in the install guide which 
generates the actual source code without errors? Both of these failures 
seem to indicate that you have either skipped that step or that it 
somehow failed.

Here's a step-by-step guide on how to build Qt Jambi from source:

    
http://doc.trolltech.com/qtjambi-4.3.3_01/com/trolltech/qt/qtjambi-installation.html#building-qt-jambi-from-a-source-package

It is also available in your package as "install.html". If you have 
followed each of the steps in this guide, did you have any errors when 
you ran the generator? In the end when it reports how many classes it 
has generated, which number does it say? Could it be that you have 
forgotten to set your QTDIR environment variable before running the 
generator?

-- Eskil




Message 3 in thread

Hi Eskil,

I've followed the steps described into the install.html supplied file. I've
tried three times with a fresh ZIP extraction.
A strange thing is that the release directory the Qt Jambi Generator is
empty. Only the debug target has been built. And I didn't run the debug
target of the generator.

I'll try to run the debug target of the generator. But is it normal that the
release directory is empty. In install.html it's said to run the release
target.

QTDIR is well set because I use Qt 4.3.3 everyday ;o)

Thanks,
Christophe

2007/12/13, Eskil Abrahamsen Blomfeldt <eblomfel@xxxxxxxxxxxxx>:
>
> Hi, Cristophe.
>
> Christophe Bismuth wrote:
>
> > /OUT:..\lib\com_trolltech_qt_sql_debuglib.dll
> > @C:\DOCUME~1\CBISMU~1.ISR\LOCALS~1\Temp\nmBC.tmp
> > LINK : warning LNK4001: no object files specified; libraries used
> > LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
> > LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
> > ..\lib\com_trolltech_qt_sql_debuglib.dll : fatal error LNK1120: 1
> > unresolved externals
> > NMAKE : fatal error U1077: 'C:\msvc8\VC\BIN\link.EXE' : return code
> > '0x460'
> > Stop.
> > NMAKE : fatal error U1077: 'C:\msvc8\VC\BIN\nmake.exe' : return code
> '0x2'
> > Stop.
> > NMAKE : fatal error U1077: 'cd' : return code '0x2'
> > Stop.
> >
> >
> > C:\qtjambi-gpl-src-4.3.3_01>javac -J-mx1024m @java_files
> > javac: file not found:
> > .\com\trolltech\qt\core\QAbstractEventDispatcher.java
> > Usage: javac <options> <source files>
> > use -help for a list of possible options
>
> Are you sure you have completed the step in the install guide which
> generates the actual source code without errors? Both of these failures
> seem to indicate that you have either skipped that step or that it
> somehow failed.
>
> Here's a step-by-step guide on how to build Qt Jambi from source:
>
>
>
> http://doc.trolltech.com/qtjambi-4.3.3_01/com/trolltech/qt/qtjambi-installation.html#building-qt-jambi-from-a-source-package
>
> It is also available in your package as "install.html". If you have
> followed each of the steps in this guide, did you have any errors when
> you ran the generator? In the end when it reports how many classes it
> has generated, which number does it say? Could it be that you have
> forgotten to set your QTDIR environment variable before running the
> generator?
>
> -- Eskil
>
>
>
>

Message 4 in thread

Christophe Bismuth wrote:
> Hi Eskil,
>
> I've followed the steps described into the install.html supplied file. 
> I've tried three times with a fresh ZIP extraction.
> A strange thing is that the release directory the Qt Jambi Generator 
> is empty. Only the debug target has been built. And I didn't run the 
> debug target of the generator.
>
> I'll try to run the debug target of the generator. But is it normal 
> that the release directory is empty. In install.html it's said to run 
> the release target.

Hi, Cristophe,

Ah, that seems like it may be a problem with the .pro file. Have you 
configured Qt to build both debug and release (this is the default)? If 
so, you could try running "nmake release" to build the release target. 
The debug target of the generator will most likely take a lot of time to 
finish, so recommend building it in release instead if you can. If you 
have only built Qt in debug, then you'll either have to reconfigure and 
rebuild with both debug and release support, or you'll have to wait for 
the debug build of the generator to finish. Note that the debug version 
may also print out several warnings which are not printed by the release 
build and which you can safely disregard.

I'll look into why the release target isn't being built by default for 
the next release, thank you for letting us know.

If you successfully run the generator (either the debug or release 
build) it should report to have generated several hundred classes, and 
the files for these classes should be present under 
path/to/jambi/com/trolltech/qt/core, com/trolltech/qt/gui etc. There 
should also be several C++ files generated under path/to/jambi/cpp. 
Remember to run qmake again after successfully generating the files.

-- Eskil


Message 5 in thread

Everything was fine with the debug target of the generator, but it took some
time.
I didn't configure Qt to build debug and release targets, I've let the
default configuration with no change.

Thanks,
Christophe

2007/12/13, Eskil Abrahamsen Blomfeldt <eblomfel@xxxxxxxxxxxxx>:
>
> Christophe Bismuth wrote:
> > Hi Eskil,
> >
> > I've followed the steps described into the install.html supplied file.
> > I've tried three times with a fresh ZIP extraction.
> > A strange thing is that the release directory the Qt Jambi Generator
> > is empty. Only the debug target has been built. And I didn't run the
> > debug target of the generator.
> >
> > I'll try to run the debug target of the generator. But is it normal
> > that the release directory is empty. In install.html it's said to run
> > the release target.
>
> Hi, Cristophe,
>
> Ah, that seems like it may be a problem with the .pro file. Have you
> configured Qt to build both debug and release (this is the default)? If
> so, you could try running "nmake release" to build the release target.
> The debug target of the generator will most likely take a lot of time to
> finish, so recommend building it in release instead if you can. If you
> have only built Qt in debug, then you'll either have to reconfigure and
> rebuild with both debug and release support, or you'll have to wait for
> the debug build of the generator to finish. Note that the debug version
> may also print out several warnings which are not printed by the release
> build and which you can safely disregard.
>
> I'll look into why the release target isn't being built by default for
> the next release, thank you for letting us know.
>
> If you successfully run the generator (either the debug or release
> build) it should report to have generated several hundred classes, and
> the files for these classes should be present under
> path/to/jambi/com/trolltech/qt/core, com/trolltech/qt/gui etc. There
> should also be several C++ files generated under path/to/jambi/cpp.
> Remember to run qmake again after successfully generating the files.
>
> -- Eskil
>