[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
[200] Trying to understand cross-compiling and buiding QT, please help!
10-15-2010, 07:19 AM
Post: #1
Trying to understand cross-compiling and buiding QT, please help!
Im still trying to build QT and cross-compile my apps, im want to check if im on the right path.

Ive configured and build a cross-compiler and toolchain as discribed here: http://www.networkedmediatank.com/showth...#pid383376

- Do I have a compiler who builds for C200 in /usr/local/mips-4.4/bin??

- When i compile other packages, glib, gstreamer, libxml, qt, etc I build them with this compiler (PATH=/usr/local/mips-4.4/bin:$PATH) and with --prefix=/usr/local/mips-4.4/mips-linux-gnu/ and --host=mips-linux-g++ so afther make install the library's will be availible in /usr/local/mips-4.4/mips-linux-gnu/lib/pkgconfig. so when i'm going to compile other packages i could add PKG_CONFIG_PATH and PKG_CONFIG_SYSROOT to that path for cross-compiled library's???? is this right?

- When i compile with the cross-compiler i should use -EL -march=74kc -fPIC should i also use these options while compiling librarys as, glib, gstreamer, libxml, qt etc??? and how is this don?

I hope you could lighten my day, im trying to compile and build for over a week now, almost 12 hours aday i realy want this to work!!!

Grtzz
Find all posts by this user
10-15-2010, 07:24 AM
Post: #2
RE: Trying to understand cross-compiling and buiding QT, please help!
I know there was some back and forth a few months ago on making a working cross compiler that needed some patches but I don't remember if it was for the 200 or 100 series or who it was.. I never really used the cross setup I put together, I did some initial quick tests but I didn't try anything like QT.
Find all posts by this user
10-15-2010, 08:28 AM
Post: #3
RE: Trying to understand cross-compiling and buiding QT, please help!
(10-15-2010 07:24 AM)accident Wrote:  I know there was some back and forth a few months ago on making a working cross compiler that needed some patches but I don't remember if it was for the 200 or 100 series or who it was.. I never really used the cross setup I put together, I did some initial quick tests but I didn't try anything like QT.

I build a small "Hello world" application with the cross-compiled application compiler (build as mentioned above) and that works, so i gues im on the right track!
Find all posts by this user
10-15-2010, 08:35 AM
Post: #4
RE: Trying to understand cross-compiling and buiding QT, please help!
btw, if you didn' tknow, QT is already built.. you can find the install in CSI
Find all posts by this user
10-15-2010, 08:51 AM
Post: #5
RE: Trying to understand cross-compiling and buiding QT, please help!
(10-15-2010 08:35 AM)accident Wrote:  btw, if you didn' tknow, QT is already built.. you can find the install in CSI

I know, but i want to build my own QT Apps, can i do that with the libs in CSI? and if so how / where should i put these libs so while I compile my QT Apps it will work?

Thanks again
Find all posts by this user
10-15-2010, 09:08 PM
Post: #6
RE: Trying to understand cross-compiling and buiding QT, please help!
Does anybody have an idee how to compile the following application by using a cross-compiler and the QT Libs found in the CSI, and the header files from the QT Source package?

#include <QtGui/QApplication>
#include <QtGui/QPushButton>

int main(int argc, char *argv[])
{
QApplication app(argc, argv);

QPushButton hello("Hello world!");
hello.resize(100, 30);

hello.show();
return app.exec();
}
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [400] Cross compiled aria2c for A-400 with mips-linux-gnu-gcc henryleelee0326 3 240 05-21-2013 08:16 AM
Last Post: vaidyasr
  [100/200/300/400] Cross Compile Request Thread - For all NMT Series vaidyasr 30 6,436 05-19-2013 02:59 AM
Last Post: studlee2
  [400] Build your own Cross Compile toolchain - Shortcut vaidyasr 18 1,799 05-13-2013 06:48 PM
Last Post: henryleelee0326
  [200] TP-LINK TL-WN723N v2 Cross Compiled Drivers black_dragon 15 3,332 03-13-2013 11:41 PM
Last Post: Nemesis247
  [200] Compiling SqueezeSlave for C200 papaiannis 15 3,656 12-21-2012 04:54 PM
Last Post: papaiannis
  [200/300] Cross compile JAVA 6 (to run YAMJ) vaidyasr 35 7,268 12-11-2012 09:39 AM
Last Post: vaidyasr
  [200/300] Build your own Cross Compile toolchain - Shortcut vaidyasr 58 27,129 09-03-2012 07:12 PM
Last Post: kmeleon
  [200] Error compiling Mono.Net snamds 3 1,476 05-14-2012 08:52 PM
Last Post: snamds
  [200] [apps] Compiling qt4.7.4 XEvent definition problem in qt libs KidE79 7 2,569 10-14-2011 11:09 AM
Last Post: KidE79
  [200] Cross Compile issues amenophiks 2 1,584 09-30-2011 10:00 AM
Last Post: amenophiks

Forum Jump: