[opensuse] mingw gsl install - works & builds too
Just a footnote to the thread on makefiles. I installed mingw and msys on vista to see if the cross-compile would produce a working windows executable from the same linux source I have been working with. It did without a hitch. The External library install (gsl) is quite simple. You simply add the includes, shared libs, aclocal info into the existing mingw environment in their usual places and then just build as you would on Linux. The only difference is your executable now has a .exe appended to it :p 21:31 alchemy:~/test> make -f Makefile.sim gcc -O2 -Wall -W -Wno-unused -c -o sim_orbm.o sim_orbm.c gcc -O2 -Wall -W -Wno-unused -c -o fn_const.o fn_const.c gcc -O2 -Wall -W -Wno-unused -c -o fn_state.o fn_state.c gcc -O2 -Wall -W -Wno-unused -c -o isolv_state.o isolv_state.c gcc -o orbs sim_orbm.o fn_const.o fn_state.o isolv_state.o -Wl -lgslcblas -lgsl -lm Info: resolving _gsl_root_fsolver_brent by linking to __imp__gsl_root_fsolver_brent (auto-import) c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line. This should work unless it involves constant data structures referencing symbols from auto-imported DLLs. 22:19 alchemy:~/test> orbs 400 300 # # ha : 400.00 # hp : 300.00 # t0 : 0.00 # tend : 5492.29 # step : 1.00 # # Ra : 6778140.0000 # Rp : 6678140.0000 # Va : 7640.0090 # Vp : 7754.4122 # a : 6728140.0000 # e : 0.0074 # P : 5492.2906 (91.54 minutes) # # Time M E nu phi r v # 0.000 0.000 0.000 0.000 0.000 6678140.000 7754.412 100.000 6.555 6.604 6.653 0.049 6678471.724 7754.030 200.000 13.109 13.207 13.304 0.097 6679462.363 7752.888 300.000 19.664 19.808 19.953 0.144 6681098.391 7751.003 400.000 26.219 26.408 26.598 0.189 6683357.495 7748.401 500.000 32.773 33.005 33.238 0.232 6686208.918 7745.118 <snip> Even provides the right numbers as well. I installed with mingw-get instead of from the 11.3 mingw repo, but no reason the rpms shouldn't work the same. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
David Rankin