Welcome to MilkyWay@home

What's needed to compile the app?


Advanced search

Message boards : Application Code Discussion : What's needed to compile the app?
Message board moderation

To post messages, you must log in.

Previous · 1 · 2 · 3 · 4 · 5

AuthorMessage
ProfileDebs

Send message
Joined: 15 Jan 09
Posts: 169
Credit: 6,734,481
RAC: 0
5 million credit badge12 year member badge
Message 9161 - Posted: 25 Jan 2009, 23:52:39 UTC - in response to Message 9106.  

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!).
ID: 9161 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
ProfileGavin Shaw
Avatar

Send message
Joined: 16 Jan 08
Posts: 98
Credit: 1,371,299
RAC: 0
1 million credit badge13 year member badge
Message 9205 - Posted: 26 Jan 2009, 12:43:42 UTC

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.

ID: 9205 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Temujin

Send message
Joined: 12 Oct 07
Posts: 77
Credit: 404,471,187
RAC: 0
300 million credit badge14 year member badge
Message 9273 - Posted: 27 Jan 2009, 21:03:28 UTC - in response to Message 9205.  

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 :-)
ID: 9273 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
ProfileDave Przybylo
Avatar

Send message
Joined: 5 Feb 08
Posts: 236
Credit: 49,648
RAC: 0
10 thousand credit badge13 year member badge
Message 9282 - Posted: 27 Jan 2009, 22:20:18 UTC - in response to Message 9273.  

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
ID: 9282 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
pYrania

Send message
Joined: 8 Sep 08
Posts: 2
Credit: 2,352,833
RAC: 0
2 million credit badge13 year member badge
Message 9286 - Posted: 28 Jan 2009, 0:16:49 UTC - in response to Message 9282.  

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
ID: 9286 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile[AF>HFR>RR] ThierryH

Send message
Joined: 2 Jan 08
Posts: 23
Credit: 495,882,464
RAC: 0
300 million credit badge13 year member badge
Message 12338 - Posted: 22 Feb 2009, 10:58:54 UTC

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.

ID: 12338 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Cluster Physik

Send message
Joined: 26 Jul 08
Posts: 627
Credit: 94,940,203
RAC: 0
50 million credit badge13 year member badgeextraordinary contributions badge
Message 12339 - Posted: 22 Feb 2009, 11:06:38 UTC - in response to Message 12338.  

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.


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.
ID: 12339 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile[AF>HFR>RR] ThierryH

Send message
Joined: 2 Jan 08
Posts: 23
Credit: 495,882,464
RAC: 0
300 million credit badge13 year member badge
Message 12341 - Posted: 22 Feb 2009, 11:24:27 UTC - in response to Message 12339.  


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.


These two files (boinc_api and boinc) are nowere on the disk.

Thierry
ID: 12341 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profilespeedimic
Avatar

Send message
Joined: 22 Feb 08
Posts: 260
Credit: 57,387,048
RAC: 0
50 million credit badge13 year member badge
Message 12350 - Posted: 22 Feb 2009, 12:30:49 UTC - in response to Message 12341.  


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.


These two files (boinc_api and boinc) are nowere on the disk.

Thierry


I had that problem too...
Go to Message 6819.
mic.


ID: 12350 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile[AF>HFR>RR] ThierryH

Send message
Joined: 2 Jan 08
Posts: 23
Credit: 495,882,464
RAC: 0
300 million credit badge13 year member badge
Message 12365 - Posted: 22 Feb 2009, 13:30:58 UTC - in response to Message 12350.  


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.


These two files (boinc_api and boinc) are nowere on the disk.

Thierry


I had that problem too...
Go to Message 6819.


Already made it yesterday with no success.

Thierry.

ID: 12365 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile[AF>HFR>RR] ThierryH

Send message
Joined: 2 Jan 08
Posts: 23
Credit: 495,882,464
RAC: 0
300 million credit badge13 year member badge
Message 12374 - Posted: 22 Feb 2009, 15:24:02 UTC

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.

ID: 12374 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profilespeedimic
Avatar

Send message
Joined: 22 Feb 08
Posts: 260
Credit: 57,387,048
RAC: 0
50 million credit badge13 year member badge
Message 12386 - Posted: 22 Feb 2009, 16:32:43 UTC - in response to Message 12374.  

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.



You need to install the libstdc++ package.

mic.


ID: 12386 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile[AF>HFR>RR] ThierryH

Send message
Joined: 2 Jan 08
Posts: 23
Credit: 495,882,464
RAC: 0
300 million credit badge13 year member badge
Message 12390 - Posted: 22 Feb 2009, 16:59:07 UTC - in response to Message 12386.  


You need to install the libstdc++ package.


Thanks. I'll try.
Thierry.

ID: 12390 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile[AF>HFR>RR] ThierryH

Send message
Joined: 2 Jan 08
Posts: 23
Credit: 495,882,464
RAC: 0
300 million credit badge13 year member badge
Message 12719 - Posted: 24 Feb 2009, 14:55:00 UTC

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.

ID: 12719 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profiletrigggl
Avatar

Send message
Joined: 9 Jan 09
Posts: 12
Credit: 25,503,183
RAC: 0
20 million credit badge12 year member badge
Message 15032 - Posted: 12 Mar 2009, 18:00:37 UTC

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!
ID: 15032 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Previous · 1 · 2 · 3 · 4 · 5

Message boards : Application Code Discussion : What's needed to compile the app?

©2021 Astroinformatics Group