PixInsight Forum (historical)
Software Development => PCL and PJSR Development => Topic started by: Carlos Milovic on 2009 December 11 08:31:20
-
Hi guys
Again, I'm stuck trying to make things work... I have installed MSCV 2008. So far, it seems that there is only one version, no specific 64bits one, so this is the one I have. I also found and installed some 64bits redistibutable packages. Anyway, I'm still receiving a linking error, and don't have a clue how to solve it:
1>------ Rebuild All started: Project: Sandbox, Configuration: Release Win32 ------
1>Deleting intermediate and output files for project 'Sandbox', configuration 'Release|Win32'
1>Compiling...
1>SandboxProcess.cpp
1>SandboxParameters.cpp
1>SandboxModule.cpp
1>..\..\SandboxModule.cpp(41) : warning C4003: not enough actual parameters for macro 'PCL_STRINGIFY'
1>SandboxInterface.cpp
1>SandboxInstance.cpp
1>Linking...
1>PCL-pxi.lib(StdAlloc.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
1>Build log was saved at "file://e:\PCL\src\modules\processes\Sandbox\windows\vc9\Win32\Release\BuildLog.htm"
1>Sandbox - 1 error(s), 1 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
There is no way to change the compiller settings to Win64, or x64... so maybe there is the source of the problems... Any thoughts?
-
Carlos,
I have the target machine in a drop box in the top of the VS2008 UI. I select x64 from that. Tonight I'll post a project file for one of the modules you did earlier.
-
Hi Sander
So far, the project file seems to be fine. It is declared the Release|x64 mode and the Debug|x64 one. MSVC by the other hand, only shows the Win32 setup... Something is missing in the installation?
-
Hi Carlos,
the VS install recognizes your OS and puts all the x64 magic in place. So it's a matter of enabling it. It will be a few hours before I can take a look though because my inlaws are here for dinner and I need to fire up the other 'puter :)
-
Hi guys,
I would love to see a video tutorial showing how to get a PC up and running for compiling a PCL module - but it's maybe too much to ask for, and probably too far off-topic as well !!!
Cheers
-
Carlos: attached is a screenshot of where I select the x64 flavor. Check the configuration manager, maybe you need to add it? I've also attached a vcproj file, not sure that helps.
Niall: I think the readme in the PCL directory is pretty straight forward along with the makefile generator script. I'd say a video is overkill for something that's non-visual (ie. it can be written down and followed to the letter). Probably best to try the readme and post questions/comments when it's not clear to Juan can improve it as needed.
-
Hi Sander
That is exactly the place where I was looking for the x64 option, without luck...
-
Hi Carlos,
sorry, I don't know how to resolve that. All I can suggest is what I'm sure you've already done, ask Google or Bing. What happens when you open the vcproj? I realize the files aren't there but does it complain about other things?
-
Hi Carlos (and sorry for the late answer),
Are you using the Express edition of Visual C++? If that's the case, the following article on MSDN can be relevant to solve your problem:
http://msdn.microsoft.com/en-us/library/9yb4317s%28VS.80%29.aspx
Look at the "Note" near the top of the document. Let me know if this makes any sense; otherwise, my answer would be exactly the same that Sander has already given to you...
-
I would love to see a video tutorial showing how to get a PC up and running for compiling a PCL module
Hmmm, not a bad idea at all... :)
-
Hmmm, this sounds like the solution :) I'll try it when I come back from some pending tasks at the university. Thanks!