Author Topic: Cross Compiling from GNU/Linux to Windows Error  (Read 1725 times)

Conzar

  • Guest
Cross Compiling from GNU/Linux to Windows Error
« on: 7 January 2011, 11:48:18 »
I am trying to cross compile from Ubuntu to Windows.  I had to modify the build script by including the PROJECT_SRC_DIRECTORY as well as changing the libcurl reference.
Anyways, after getting past those errors, I have received the following error.

Code: [Select]
[ 62%] Built target libglest
Linking CXX executable ../../../data/glest_game/glest_game.exe
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -lircclient
collect2: ld returned 1 exit status
make[2]: *** [../data/glest_game/glest_game.exe] Error 1
make[1]: *** [source/glest_game/CMakeFiles/glest_game.dir/all] Error 2

It seems that the lircclient library is missing.  Any ideas of how to add this?

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Cross Compiling from GNU/Linux to Windows Error
« Reply #1 on: 7 January 2011, 14:20:50 »
You need to crosscompile every library you need otherwise linking won't work. As you're using cmake this might help:
http://www.cmake.org/Wiki/CmakeMingw

Btw, next time please say what glest version you're using.

Conzar

  • Guest
Re: Cross Compiling from GNU/Linux to Windows Error
« Reply #2 on: 7 January 2011, 16:56:44 »
You need to crosscompile every library you need otherwise linking won't work. As you're using cmake this might help:
http://www.cmake.org/Wiki/CmakeMingw

Btw, next time please say what glest version you're using.
Sorry, I am using MegaGlest.  I also am using Ubuntu so I just used the apt-get command to get the MingW libs as directed here

 Is there another deb package that contains the lircclient that I can install?
« Last Edit: 18 June 2016, 18:44:43 by filux »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Cross Compiling from GNU/Linux to Windows Error
« Reply #3 on: 7 January 2011, 22:46:13 »
He got it working, problem was he didn't have the latest svn

Conzar

  • Guest
Re: Cross Compiling from GNU/Linux to Windows Error
« Reply #4 on: 8 January 2011, 01:46:57 »
Thanks softcoder for your help!!! I was able to make a windows build; however, seems that the windows binary can't find lua51.dll according to Coldfusionstorm.  I did a find on my trunk and that dll isn't there.  Am I missing a package?

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Cross Compiling from GNU/Linux to Windows Error
« Reply #5 on: 9 January 2011, 08:14:07 »
theres a lua5.1.dll in win32_deps.. copy that to lua51.dll and it should work.

Conzar

  • Guest
Re: Cross Compiling from GNU/Linux to Windows Error
« Reply #6 on: 15 January 2011, 10:10:00 »
I am still having trouble cross compiling.  It seems that the glest_game.exe is 70MB but I was informed the release of MG's exe is only 4MB.  I was also told that the dll's were statically linked.  Is this true? 

How is MG release for MG compiled?  What is the process and is the wiki no current?

Thanks!

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Cross Compiling from GNU/Linux to Windows Error
« Reply #7 on: 15 January 2011, 22:23:50 »
The cross compile is NOT live yet (mingw) we use VC++ currently. The packing up of the mingw is not yet compelte and the testing process has not been done. Currently the official windows build on the wiki shows how to build with VC++.

The mingw will come in the future but we are busy right now preparing for a MG release.

 

anything