In the interests of moving forward, I commented the find_package lines in assemblies/CMakeLists.txt for DtDBus and Phonon when allowed the cmake to succeed. But.
peter@ubuntu:~/projects/qyoto-build/assemblygen-build$ cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake -DCMAKE_INSTALL_PREFIX=/usr ../assemblygen
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /home/peter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
-- Check for working C compiler: /home/peter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /home/peter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
-- Check for working CXX compiler: /home/peter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Path of mono: /usr/bin/mono
-- Path of gmcs: /usr/bin/gmcs
-- Path of gacutil: /usr/bin/gacutil
-- checking for one of the modules 'mono-cecil'
-- checking for one of the modules 'cecil'
-- Could not find cecil or mono. Using default GAC dir: /usr/lib/mono
-- Using GAC dir: /usr/lib/mono
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS - found
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.7.2 (using /linux-devkit/bin/qmake)
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found SmokeQtCore: /linux-devkit/arm-none-linux-gnueabi/usr/lib/libsmokeqtcore.so
-- Found SmokeQtDBus: /usr/lib/libsmokeqtdbus.so
-- Found SmokeQtGui: /linux-devkit/arm-none-linux-gnueabi/usr/lib/libsmokeqtgui.so
-- Found SmokeQtNetwork: /linux-devkit/arm-none-linux-gnueabi/usr/lib/libsmokeqtnetwork.so
-- Found SmokeQtOpenGL: /linux-devkit/arm-none-linux-gnueabi/usr/lib/libsmokeqtopengl.so
-- Found SmokeQtScript: /linux-devkit/arm-none-linux-gnueabi/usr/lib/libsmokeqtscript.so
-- Found SmokeQtSql: /linux-devkit/arm-none-linux-gnueabi/usr/lib/libsmokeqtsql.so
-- Found SmokeQtSvg: /linux-devkit/arm-none-linux-gnueabi/usr/lib/libsmokeqtsvg.so
-- Found SmokeQtUiTools: /usr/lib/libsmokeqtuitools.so
-- Found SmokeQtWebKit: /linux-devkit/arm-none-linux-gnueabi/usr/lib/libsmokeqtwebkit.so
-- Found SmokeQtXml: /linux-devkit/arm-none-linux-gnueabi/usr/lib/libsmokeqtxml.so
-- Found SmokeQtXmlPatterns: /linux-devkit/arm-none-linux-gnueabi/usr/lib/libsmokeqtxmlpatterns.so
-- Build files have been written to: /home/peter/projects/qyoto-build/assemblygen-build
Attempting a make produced:
peter@ubuntu:~/projects/qyoto-build/assemblygen-build$ make
Scanning dependencies of target assemblygen
[ 0%] Building bin/assemblygen.exe
[ 1%] Built target assemblygen
Scanning dependencies of target assemblygen-native
[ 3%] Building CXX object src/CMakeFiles/assemblygen-native.dir/assemblygen-native.cpp.o
Linking CXX shared library ../bin/libassemblygen-native.so
[ 3%] Built target assemblygen-native
Scanning dependencies of target QyotoGenerator
[ 3%] Building bin/QyotoGenerator.dll
PropertyGenerator.cs(291,90): warning CS0162: Unreachable code detected
Compilation succeeded - 1 warning(s)
[ 4%] Built target QyotoGenerator
Scanning dependencies of target qyotogenerator-native
[ 6%] Building CXX object src/plugins/qyoto/CMakeFiles/qyotogenerator-native.dir/qyotogenerator-native.cpp.o
Linking CXX shared library ../../../bin/libqyotogenerator-native.so
[ 6%] Built target qyotogenerator-native
Scanning dependencies of target qyoto-qtcore
[ 6%] Generating ../../bin/qyoto-qtcore.dll
Unhandled Exception: System.DllNotFoundException: assemblygen-native
at (wrapper managed-to-native) MainClass:InitSmoke (string)
at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: assemblygen-native
at (wrapper managed-to-native) MainClass:InitSmoke (string)
at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
make[2]: *** [bin/qyoto-qtcore.dll] Error 1
make[1]: *** [assemblies/qyoto-qtcore/CMakeFiles/qyoto-qtcore.dir/all] Error 2
I think it found the host phonon in /usr/lib/libsmokephonon.so but didn’t find headers to go with it. I’ll look at the paths to see why it looked there when the ARM stuff
is in /linux-devkit/arm-none-linux-gnueabi/usr/lib
From: Steven Boswell II
[mailto:ulatekh@...
Sent: Monday, June 04, 2012 6:56 PM
To: KDE bindings for other programming languages; Peter Shoebridge
Subject: Re: [Kde-bindings] Error building Qyoto on Linux
phonon is not required; cmake will tell you if any required packages were not found.
For instance, I build Qyoto under MS Windows without phonon.
From: Peter Shoebridge <peter@...>
To: KDE bindings for other programming languages <kde-bindings@...>
Sent: Monday, June 4, 2012 5:47 PM
Subject: Re: [Kde-bindings] Error building Qyoto on Linux
Running cmake in the new assemblygen directory, I get an error about not finding Phonon library or includes. Is that now required? Or can I opt out of Phonon? If so how?
If not where do I get Phonon?
Ah, good info again, thanks.
It is not as if I haven’t tried searching for clues here but I didn’t come across that nugget!!
I’ll let you know how I get on.
From: Steven Boswell II
[mailto:ulatekh@...
Sent: Monday, June 04, 2012 6:24 PM
To: Peter Shoebridge; KDE bindings for other programming languages
Subject: Re: [Kde-bindings] Error building Qyoto on Linux
Yes...you're building the old version of qyoto.
Try grabbing the one from git://gitorious.org/assemblygen/assemblygen.git .
We keep trying to tell the maintainers to mark that version of qyoto as obsolete, but it hasn't happened, and people keep trying to build it. Sigh.
From: Peter Shoebridge <peter@...>
To: KDE bindings for other programming languages <kde-bindings@...>
Cc: Steven Boswell II <ulatekh@...>
Sent: Monday, June 4, 2012 4:58 PM
Subject: RE: [Kde-bindings] Error building Qyoto on Linux
Steven, thanks for the pointer.
I changed the guard to something more specific but that made no difference. I add an include of utils.h directly in cswriteinitialization.h which help (obviously not
the right fix but just to test).
Now I get the following error:
[ 51%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/cs/cswriteinitialization.cpp.o
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'virtual void CS::WriteInitialization::acceptWidget(DomWidget*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:477: error: no matching function for call to 'QHash<QString, DomProperty*>::QHash(QList<DomProperty*>)'
/linux-devkit/arm-none-linux-gnueabi/usr/include/qtopia/QtCore/qhash.h:283: note: candidates are: QHash<Key, T>::QHash(const QHash<Key, T>&) [with Key = QString, T =
DomProperty*]
/linux-devkit/arm-none-linux-gnueabi/usr/include/qtopia/QtCore/qhash.h:282: note: QHash<Key, T>::QHash() [with Key = QString, T = DomProperty*]
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:512: error: no matching function for call to 'QHash<QString, DomProperty*>::QHash(QList<DomProperty*>)'
/linux-devkit/arm-none-linux-gnueabi/usr/include/qtopia/QtCore/qhash.h:283: note: candidates are: QHash<Key, T>::QHash(const QHash<Key, T>&) [with Key = QString, T =
DomProperty*]
/linux-devkit/arm-none-linux-gnueabi/usr/include/qtopia/QtCore/qhash.h:282: note: QHash<Key, T>::QHash() [with Key = QString, T = DomProperty*]
make[2]: *** [tools/uics/CMakeFiles/uics_bin.dir/cs/cswriteinitialization.cpp.o] Error 1
make[1]: *** [tools/uics/CMakeFiles/uics_bin.dir/all] Error 2
From: Steven Boswell II
[mailto:ulatekh@...
Sent: Monday, June 04, 2012 5:44 PM
To: KDE bindings for other programming languages; Peter Shoebridge
Subject: Re: [Kde-bindings] Error building Qyoto on Linux
It's not finding the stuff in utils.h, even though cswriteinitialization.cpp includes that file.
My first guess would be to change the guard in utils.h from "UTILS_H" to something less generic.
Maybe it's conflicting with another header file that's in your build-path somewhere.
Let us know if that does anything.
I'm trying to cross compile Qyoto for Linux-Arm but have hit some error during the build of the uics part.
I am able to build smokegen and smokeqt successfully but building Qyoto yields the following errors. I'm building against Qt v4.7.2 on Ubuntu 10.4 for an ARM target.
Anyone have any thoughts on what I might be doing wrong? Feel free to request any (many!) additional details I might have left out.
Thanks
Peter Shoebridge
[ 46%] Built target csrcc
[ 48%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/customwidgetsinfo.cpp.o
[ 51%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/databaseinfo.cpp.o
[ 53%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/driver.cpp.o
[ 55%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/treewalker.cpp.o
[ 58%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/ui4.cpp.o
[ 60%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/uic.cpp.o
[ 62%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/validator.cpp.o
[ 65%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/cs/cswritedeclaration.cpp.o
[ 67%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/cs/cswriteincludes.cpp.o
[ 69%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/cs/cswriteicondata.cpp.o
[ 72%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/cs/cswriteicondeclaration.cpp.o
[ 74%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/cs/cswriteiconinitialization.cpp.o
[ 76%] Building CXX object tools/uics/CMakeFiles/uics_bin.dir/cs/cswriteinitialization.cpp.o
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In function 'void<unnamed>::writeSpacerItem(const DomSpacer*, QTextStream&)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:71: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'virtual void CS::WriteInitialization::acceptUI(DomUI*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:379: error: 'fixString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'virtual void CS::WriteInitialization::acceptWidget(DomWidget*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:477: error: no matching function for call to 'QHash<QString, DomProperty*>::QHash(QList<DomProperty*>)'
/linux-devkit/arm-none-linux-gnueabi/usr/include/qtopia/QtCore/qhash.h:283: note: candidates are: QHash<Key, T>::QHash(const QHash<Key, T>&) [with Key = QString, T = DomProperty*]
/linux-devkit/arm-none-linux-gnueabi/usr/include/qtopia/QtCore/qhash.h:282: note: QHash<Key, T>::QHash() [with Key = QString, T = DomProperty*]
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:479: error: 'toString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:512: error: no matching function for call to 'QHash<QString, DomProperty*>::QHash(QList<DomProperty*>)'
/linux-devkit/arm-none-linux-gnueabi/usr/include/qtopia/QtCore/qhash.h:283: note: candidates are: QHash<Key, T>::QHash(const QHash<Key, T>&) [with Key = QString, T = DomProperty*]
/linux-devkit/arm-none-linux-gnueabi/usr/include/qtopia/QtCore/qhash.h:282: note: QHash<Key, T>::QHash() [with Key = QString, T = DomProperty*]
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:516: error: 'toString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:521: error: 'toString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'virtual void CS::WriteInitialization::acceptLayout(DomLayout*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:622: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'void CS::WriteInitialization::writeProperties(const QString&, const QString&, const QList<DomProperty*>&, unsigned int)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:912: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:916: error: 'toString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:916: error: 'fixString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:927: error: 'fixString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1172: error: 'toBool' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1261: error: 'toBool' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'QString CS::WriteInitialization::writeFontProperties(const DomFont*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1335: error: 'fixString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'void CS::WriteInitialization::initializeComboBox(DomWidget*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1594: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1611: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'void CS::WriteInitialization::initializeQ3ListBox(DomWidget*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1646: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'void CS::WriteInitialization::initializeQ3IconView(DomWidget*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1680: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'void CS::WriteInitialization::initializeQ3ListView(DomWidget*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1710: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'void CS::WriteInitialization::initializeQ3Table(DomWidget*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1785: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1801: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'QString CS::WriteInitialization::pixCall(const DomProperty*) const':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1845: error: 'fixString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'void CS::WriteInitialization::initializeTreeWidget(DomWidget*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1891: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'void CS::WriteInitialization::initializeTableWidget(DomWidget*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1927: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1959: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:1994: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'QString CS::WriteInitialization::trCall(const QString&, const QString&) const':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:2031: error: 'fixString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'void CS::WriteInitialization::initializeQ3SqlDataTable(DomWidget*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:2057: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:2060: error: 'toBool' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:2087: error: 'fixString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:2089: error: 'fixString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'void CS::WriteInitialization::initializeQ3SqlDataBrowser(DomWidget*)':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:2097: error: 'propertyMap' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:2100: error: 'toBool' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:2127: error: 'fixString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:2129: error: 'fixString' was not declared in this scope
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp: In member function 'QString CS::WriteInitialization::trCall(DomString*) const':
/home/peter/projects/qyoto-build/qyoto/tools/uics/cs/cswriteinitialization.cpp:2148: error: 'toString' was not declared in this scope
make[2]: *** [tools/uics/CMakeFiles/uics_bin.dir/cs/cswriteinitialization.cpp.o] Error 1
make[1]: *** [tools/uics/CMakeFiles/uics_bin.dir/all] Error 2
make: *** [all] Error 2
_______________________________________________
Kde-bindings mailing list
Kde-bindings@...
https://mail.kde.org/mailman/listinfo/kde-bindings