Hi!
For the first time I succeeded building and starting ng on Windows.
Nevertheless, there were some steps of uncertainty, which I hope someone
could describe the proper handling.
I will post my installation protocol and ask the questions inline.
pre requirements:
- scons 0.96.1 installed
- Visual Studio 2003 installed
- boost 1.33 libraries installed
- svn client installed
1. qt 4.1
http://www.trolltech.com/download.html?target=ftp://ftp.trolltech.com/qt/source/qt-win-opensource-src-4.1.0.zip
unzip to C:\qt-win-opensource-src-4.1.0
2. qt4.1 patch for visual studio
http://prdownloads.sourceforge.net/qtwin/acs4qt41.zip?download
extract to C:\qt-win-opensource-src-4.1.0
3. open a visual studio command prompt
cd C:\qt-win-opensource-src-4.1.0
installpatch41.bat
mkdir qmake\tmp
qconfigure msvc.net
set QMAKESPEC=win32-msvc.net
set QTDIR=c:\qt-win-opensource-src-4.1.0
set path=%QTDIR%\bin;%path%
set INCLUDE=C:\boost_1_33_0;%INCLUDE%
set LIB=C:\boost_1_33_0\bin\boost\libs;%LIB%
I guess these are not the correct seeting to find the boost libraries,
but I could not figure out the correct ones.
4. download openwengo
cd "\Dokumente und Einstellungen\darilion\Eigene Dateien\Visual Studio Projects"
mkdir openwengo
cd openwengo
svn --username guest --password guest --non-interactive co
http://dev.openwengo.com/svn/openwengo/trunk
cd trunk
// clean up
scons -c
//build
scons qtwengophone
//broken build process
copy libs\ffmpeg\binary-lib\avcodec.lib .
this should be fixed - or is it necessary to set some library paths?
scons qtwengophone
now, the build fails because it does not find the boost libraries, e.g:
libboost_thread-vc71-mt.lib, ....
Browsing the boost libararies there are several of them (static,
runtime, release, debug ...). This was my first problem: Which version
of the boost libraries are needed? I used the ones which names looked
most similar to the requested ones, e.g. for
libboost_thread-vc71-mt.lib I used
release\threading-multi\boost_thread-vc71-mt-1_33.lib
Thus I copied them into the trunk directory:
//copy boost libs
copy
C:\boost_1_33_0\bin\boost\libs\thread\build\boost_thread.dll\vc-7_1\release\threading-multi\boost_thread-vc71-mt-1_33.lib
libboost_thread-vc71-mt.lib
copy
C:\boost_1_33_0\bin\boost\libs\serialization\build\boost_serialization.dll\vc-7_1\release\threading-multi\boost_serialization-vc71-mt-1_33.lib
libboost_serialization-vc71-mt.lib
copy
C:\boost_1_33_0\bin\boost\libs\signals\build\boost_signals.dll\vc-7_1\release\threading-multi\boost_signals-vc71-mt-1_33.lib
libboost_signals-vc71-mt.lib
Now, the build fails again, requirering the debug versions, e.g.
boost_thread-vc71-mt-gd-1_33.lib (Note: this time the version numer is
in the file name).
So, why are the libraries needed twice? I thought the default build is
debug, so why are the release libraries needed in the prvious step?
Nevertheless I again copied them into the trunk directory:
copy
C:\boost_1_33_0\bin\boost\libs\thread\build\boost_thread.dll\vc-7_1\debug\threading-multi\boost_thread-vc71-mt-gd-1_33.lib
libboost_thread-vc71-mt-gd-1_33.lib
copy
C:\boost_1_33_0\bin\boost\libs\serialization\build\boost_serialization.dll\vc-7_1\debug\threading-multi\boost_serialization-vc71-mt-gd-1_33.lib
libboost_serialization-vc71-mt-gd-1_33.lib
copy
C:\boost_1_33_0\bin\boost\libs\signals\build\boost_signals.dll\vc-7_1\debug\threading-multi\boost_signals-vc71-mt-gd-1_33.lib
libboost_signals-vc71-mt-gd-1_33.lib
Again the build files of missing libraries:
copy debug\libs\curl\wengocurl.dll .
Then (I think this was when starting openwenge) the boost libraries are
needed as DLL. Why? Probably this is something I do not understand
because of my lack of programming experience under Windows. But I always
thought an application needs either static (.lib) or runtime (.dll)
libraries, not both of them.
Nevertheless, I again copied them into the trunk directory:
copy
C:\boost_1_33_0\bin\boost\libs\thread\build\boost_thread.dll\vc-7_1\release\threading-multi\boost_thread-vc71-mt-1_33.dll
boost_thread-vc71-mt-1_33.dll
copy
C:\boost_1_33_0\bin\boost\libs\serialization\build\boost_serialization.dll\vc-7_1\release\threading-multi\boost_serialization-vc71-mt-1_33.dll
boost_serialization-vc71-mt-1_33.dll
copy
C:\boost_1_33_0\bin\boost\libs\signals\build\boost_signals.dll\vc-7_1\release\threading-multi\boost_signals-vc71-mt-1_33.dll
boost_signals-vc71-mt-1_33.dll
copy libs\ffmpeg\binary-lib\avcodec.dll .
copy debug\wifo\phapi\phapi.dll .
ng needs several libraries to work (avcodec, phapi). What ist the
correct location of these? Should they be copied into the same directory
as the openwengo.exe? Or should an installer application take care of
copying all the needed libaries into the applications directory
(c:\program files\openwengo)?
Finally, ng started :-)
thanks
klaus
_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel