Message boards :
Application Code Discussion :
What's needed to compile the app?
Message board moderation
Previous · 1 · 2 · 3 · 4 · 5
Author | Message |
---|---|
Send message Joined: 15 Jan 09 Posts: 169 Credit: 6,734,481 RAC: 0 |
But in a all seriousness, http://www.spy-hill.com/~myers/help/boinc/boinc-on-windows.html is not a bad resource. :) It's not a bad resource, and has given me a few pointers, but it is 2 years out of date (some of the links are no longer valid!). |
Send message Joined: 16 Jan 08 Posts: 98 Credit: 1,371,299 RAC: 0 |
Travis, Can you get Dave to tell us what he uses to build the win apps? If there is some kind of script, batch or make like file can that please be included in the code release. We have make files for linux and mac to give people a starting point to work from but there is nothing for win versions. Does he use Visual Studio, cygwin, mingw, plain g++ or something else? It would really be appreciated... Never surrender and never give up. In the darkest hour there is always hope. |
Send message Joined: 12 Oct 07 Posts: 77 Credit: 404,471,187 RAC: 0 |
I'm attempting to compile the app in winxp with visual studio. Its the first time I've used VS so its slow going but I'm making progress. isn't google wonderful :-) |
Send message Joined: 5 Feb 08 Posts: 236 Credit: 49,648 RAC: 0 |
Hello all, I use Visual Studio. You have to get and compile all the boinc libs, which i believe they offer a VS solution on the BOINC website. After that, just follow the instructions from boinc to compile applications for windows. Its a learning process. You'll get linking errors along the way and find out what you have to add. Dave Przybylo MilkyWay@home Developer Department of Computer Science Rensselaer Polytechnic Institute |
Send message Joined: 8 Sep 08 Posts: 2 Credit: 2,352,833 RAC: 0 |
That's exactly where I'm stuck at the moment: My Linker commandline looks like: /VERBOSE:LIB /OUT:"G:\work\milkyway-0.15\x64\Test/Milkyway-pYrania-0.18.exe" /INCREMENTAL:NO /nologo /LIBPATH:"G:\work\boinc\win_build\Build\Win32\Debug\boinc_dll.lib" /LIBPATH:";" /MANIFEST /MANIFESTFILE:"x64\Test\Milkyway-pYrania-0.18.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /NODEFAULTLIB:"nafxcwd.lib" /NODEFAULTLIB:"libcd.lib" /TLBID:1 /SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /IMPLIB:"G:\work\milkyway-0.15\x64\Test\Milkyway-pYrania-0.18.lib" /MACHINE:X64 But the Libpath doesn't show up on the libpathes the ipo searches in: 1>Linking... (Intel C++ Environment) 1>ipo: warning #11020: unresolved ?parse_command_line@@YAHPEADPEAPEAD@Z 1> Referenced in ipo_55926obj.obj 1>ipo: warning #11020: unresolved boinc_init 1> Referenced in ipo_55926obj.obj 1>ipo: warning #11020: unresolved boinc_finish 1> Referenced in ipo_55926obj.obj 1>ipo: warning #11020: unresolved boinc_fraction_done 1> Referenced in ipo_55926obj.obj 1>ipo: warning #11020: unresolved boinc_time_to_checkpoint 1> Referenced in ipo_55926obj.obj 1>ipo: warning #11020: unresolved boinc_checkpoint_completed 1> Referenced in ipo_55926obj.obj 1>ipo: warning #11020: unresolved boinc_fopen 1> Referenced in ipo_55926obj.obj 1>ipo: warning #11020: unresolved boinc_resolve_filename 1> Referenced in ipo_55926obj.obj 1>ipo: remark #11000: performing multi-file optimizations 1>ipo: remark #11005: generating object file ipo_55926obj.obj 1>xilink: executing 'link' 1> 1>Searching libraries 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\gdi32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\user32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\kernel32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\winmm.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\opengl32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\glu32.lib: 1> Searching c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64\oldnames.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\winspool.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\comdlg32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\advapi32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\shell32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\ole32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\oleaut32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\uuid.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\odbc32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\odbccp32.lib: 1> Searching c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64\libcpmt.lib: 1> Searching C:\Program Files (x86)\Intel\Compiler\11.0\061\cpp\lib\Intel64\libguide40.lib: 1> Searching C:\Program Files (x86)\Intel\Compiler\11.0\061\cpp\lib\Intel64\libmmt.lib: 1> Searching c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64\LIBCMT.lib: 1> Searching C:\Program Files (x86)\Intel\Compiler\11.0\061\cpp\lib\Intel64\libirc.lib: 1> Searching C:\Program Files (x86)\Intel\Compiler\11.0\061\cpp\lib\Intel64\svml_disp.lib: 1> Searching C:\Program Files (x86)\Intel\Compiler\11.0\061\cpp\lib\Intel64\libdecimal.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\gdi32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\user32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\kernel32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\winmm.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\opengl32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\glu32.lib: 1> Searching c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64\oldnames.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\winspool.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\comdlg32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\advapi32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\shell32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\ole32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\oleaut32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\uuid.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\odbc32.lib: 1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\x64\odbccp32.lib: 1> Searching c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64\libcpmt.lib: 1> Searching C:\Program Files (x86)\Intel\Compiler\11.0\061\cpp\lib\Intel64\libguide40.lib: 1> Searching C:\Program Files (x86)\Intel\Compiler\11.0\061\cpp\lib\Intel64\libmmt.lib: 1> Searching c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64\LIBCMT.lib: 1> 1>Finished searching libraries 1>ipo_55926obj.obj : error LNK2019: unresolved external symbol boinc_init referenced in function main 1>ipo_55926obj.obj : error LNK2019: unresolved external symbol boinc_finish referenced in function "void __cdecl worker(void)" (?worker@@YAXXZ) 1>ipo_55926obj.obj : error LNK2019: unresolved external symbol boinc_time_to_checkpoint referenced in function "void __cdecl calculate_integral_convolved(struct astronomy_parameters *,struct integral_area *,struct evaluation_state *)" (?calculate_integral_convolved@@YAXPEAUastronomy_parameters@@PEAUintegral_area@@PEAUevaluation_state@@@Z) 1>ipo_55926obj.obj : error LNK2019: unresolved external symbol boinc_checkpoint_completed referenced in function "void __cdecl calculate_integral_convolved(struct astronomy_parameters *,struct integral_area *,struct evaluation_state *)" (?calculate_integral_convolved@@YAXPEAUastronomy_parameters@@PEAUintegral_area@@PEAUevaluation_state@@@Z) 1>ipo_55926obj.obj : error LNK2019: unresolved external symbol boinc_fraction_done referenced in function "void __cdecl calculate_integral_convolved(struct astronomy_parameters *,struct integral_area *,struct evaluation_state *)" (?calculate_integral_convolved@@YAXPEAUastronomy_parameters@@PEAUintegral_area@@PEAUevaluation_state@@@Z) 1>ipo_55926obj.obj : error LNK2019: unresolved external symbol boinc_resolve_filename referenced in function "int __cdecl read_checkpoint(struct evaluation_state *)" (?read_checkpoint@@YAHPEAUevaluation_state@@@Z) 1>ipo_55926obj.obj : error LNK2019: unresolved external symbol boinc_fopen referenced in function "int __cdecl read_checkpoint(struct evaluation_state *)" (?read_checkpoint@@YAHPEAUevaluation_state@@@Z) 1>ipo_55926obj.obj : error LNK2019: unresolved external symbol "int __cdecl parse_command_line(char *,char * *)" (?parse_command_line@@YAHPEADPEAPEAD@Z) referenced in function WinMain 1>G:\work\milkyway-0.15\x64\Test/Milkyway-pYrania-0.18.exe : fatal error LNK1120: 8 unresolved externals |
Send message Joined: 2 Jan 08 Posts: 23 Credit: 495,882,464 RAC: 0 |
Hello, I need help to compile Milkyway under linux, or more exactly Boinc. I already done all that was write on this topic and Boinc is compiling without error. But when I compile Milkyway, I have errors because linker can't find boinc_api and boinc files. Any ideas ? Thanks, Thierry. |
Send message Joined: 26 Jul 08 Posts: 627 Credit: 94,940,203 RAC: 0 |
Hello, The linker obviously does not find your already compiled BOINC libs. Most probably you have to correct the path in the make file so it finds them. |
Send message Joined: 2 Jan 08 Posts: 23 Credit: 495,882,464 RAC: 0 |
These two files (boinc_api and boinc) are nowere on the disk. Thierry |
Send message Joined: 22 Feb 08 Posts: 260 Credit: 57,387,048 RAC: 0 |
I had that problem too... Go to Message 6819. mic. |
Send message Joined: 2 Jan 08 Posts: 23 Credit: 495,882,464 RAC: 0 |
Already made it yesterday with no success. Thierry. |
Send message Joined: 2 Jan 08 Posts: 23 Credit: 495,882,464 RAC: 0 |
Ok, I fix the trouble by runninf "make install" to compile Boinc. But I have always a trouble: now, I have "can't find -lstdc++" when I link Milkyway. Any idea ? Thanks, Thierry. |
Send message Joined: 22 Feb 08 Posts: 260 Credit: 57,387,048 RAC: 0 |
Ok, I fix the trouble by runninf "make install" to compile Boinc. But I have always a trouble: now, I have "can't find -lstdc++" when I link Milkyway. You need to install the libstdc++ package. mic. |
Send message Joined: 2 Jan 08 Posts: 23 Credit: 495,882,464 RAC: 0 |
Thanks. I'll try. Thierry. |
Send message Joined: 2 Jan 08 Posts: 23 Credit: 495,882,464 RAC: 0 |
It seems my linux was in a bad state. I reformat disk and re-install it. Now compile runs well until the end. Thank for your help, Thierry. |
Send message Joined: 9 Jan 09 Posts: 12 Credit: 25,503,183 RAC: 0 |
Well, it took me quite a lot of editing the Makefile and most of the .c files, but I finally did get powerpc64-unknown-linux-gnu compiled. The main problem I was having was that the include files weren't being found despite correct paths. So, I put in the path in the include files. I'm currently running task ps_s22_12_854135_1236879798_0 and preventing more tasks from being downloaded until the outcome of this first one is known. Computer ID 55725 CPU type pSeries POWER3 (630+) [Model 0 ] I compiled it without specifying my specific cpu, so it is generic and should probably work on any ppc64 running linux. If someone else wants to test it, let me know. I'll recompile one for myself specifying my cpu (power3) if and when the generic one works. 6r39 7ri99 Beware the dual headed Gentoo with Wine! |
©2024 Astroinformatics Group