Jump to content


* * * * * 2 votes

Compiling ApexDC++


  • Please log in to reply
180 replies to this topic

#1 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 18 February 2006 - 08:29 PM

How to compile ApexDC++


    --Needed-----------------
         -VS / VC++ .NET 2005 (anything else except express edition is fine)
         -Patched WTL
         -STLport 5.0.1 or newer  (don't use betas RC's etc.)
          -missing natupnp files

This tutorial assumes that you already have ApexDC++ source in some dir  on your Comp And that you have installed Visual Studio / Visual  C++ into it's default directory, also in  different editions of Visual Studio / Visual C++ 2005 the paths to certain  files or folders may be different. So ALWAYS check your paths, as the paths  used in this guide are just examples. (they were the paths that I used for my Visual Studio 2005 Professional  Edition)



    Preparing STLport

    1. Download the patched version of STLport from *coming soon* under Downloads

    2. Unzip it into any directory i.e. E:\CVS\StrongDC\ STLport-5.0.1 <--- my dir  
    (Referenced as STLport dir)

    3. Go to VS / VC++ 2005 look at the top menu:
                            

Tools  > Options > Projects & Solutions > VC++  directories

    There you select Include Files (from dropdown menu) and you add the STLport header directory which is located in   your STLport dir and named stlport.

                                                     Them make sure your STLport header directory is on the very top of the Include Files list.


     Preparing WTL

     1. Download WTL from *coming soon*
(Please note this is a patched WTL)

     2. Extract to some folder. In my case E:\CVS\StrongDC

     3. Rename folder include to WTL (Optional)

     4.  Go to VS / VC++ 2005 look at  the top menu
                            

Tools  > Options > Projects & Solutions > VC++  directories

    There you select Include Files (from dropdown menu) and  you add your WTL dir
(in my case: E:\CVS\StrongDC\WTL)

     Then click on the up arrow and make sure that the directory goes all the  way to the second of the list.

     5. Make sure STLport is at the TOP  of the Include list of VS / VC++ 2005 & WTL is directly BELOW STLport.

     Now you have WTL & STLport prepared !!!

--------------------------------------------------------------------
Get the missing natupnp files from:   Here  and put them to:
C:\  Program Files\Microsoft Visual Studio 8\VC\include\
--------------------------------------------------------------------

     Compilation to .exe & .pbd

     1. Go to dir where ApexDC++ source is and find file named StrongDC.sln and double-click it to open

     Note: IF YOU HAVE SP2 SDK INSTALLED REMOVE IT FROM VS 2005 Include Files  
(This  was the thing that failed my compilation numerous of times)


    2. Near the toolbars you should see a box with either Debug or  Release in it, if it is set to Release leave it as  it is otherwise change it to Release

    3. right-click the Solution "StrongDC" (8 projects) and choose Build Solution
(after the first compile it's recommended to choose Rebuild Solution)

    4. Wait it to Finnish.
    5. After it has finished the .exe & .pdb file can be found from the ApexDC++  source dir in Compiled directory.

Edit: This is directly pasted from Word to Rich Text Editor on the forums so bare with the formatting...

Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#2 Exergy

Exergy

    Member

  • Member
  • PipPip
  • 37 posts

Posted 09 September 2006 - 07:26 PM

Any chance of getting the *coming soon* download links put in?

#3 balder

balder

    AKA [Linux-Admin]Cheers

  • Support
  • 534 posts

Posted 10 September 2006 - 09:30 AM

STL and WTL mods

#4 Exergy

Exergy

    Member

  • Member
  • PipPip
  • 37 posts

Posted 10 September 2006 - 01:00 PM

Many thanks but I have just noticed that the link:

"Get the missing natupnp files from: Here and put them to: "

Does not work either, any idea where to get these?

#5 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 10 September 2006 - 01:35 PM

View PostExergy, on Sep 10 2006, 02:00 PM, said:

Many thanks but I have just noticed that the link:

"Get the missing natupnp files from: Here and put them to: "

Does not work either, any idea where to get these?

now it does :)
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#6 Exergy

Exergy

    Member

  • Member
  • PipPip
  • 37 posts

Posted 10 September 2006 - 01:59 PM

Great, thanks for the help guys :)

*Trots off to compile*

#7 Exergy

Exergy

    Member

  • Member
  • PipPip
  • 37 posts

Posted 10 September 2006 - 03:33 PM

Hi, apologies for my retardness but I get the error:

Compiling resources...
Deleting old pdb file...
The system cannot find the file specified.
Project : error PRJ0019: A tool returned an error code from "Deleting old pdb file..."
Build log was saved at "file://C:\Documents and Settings\xxx\My Documents\Files\Programs\Apex Compile\ApexDC++_0.2.1_src\apexdc\vc7\Release\StrongDC\BuildLog.htm"
StrongDC - 1 error(s), 0 warning(s)
========== Rebuild All: 7 succeeded, 1 failed, 0 skipped ==========

Ive followed the guide to the letter, only part I could have slipped on was:

Note: IF YOU HAVE SP2 SDK INSTALLED REMOVE IT FROM VS 2005 Include Files
(This was the thing that failed my compilation numerous of times)

If this is the cause of my problem, could you be slightly more specific on how to do this?

Cheers!

#8 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 10 September 2006 - 04:39 PM

View PostExergy, on Sep 10 2006, 04:33 PM, said:

Hi, apologies for my retardness but I get the error:

Compiling resources...
Deleting old pdb file...
The system cannot find the file specified.
Project : error PRJ0019: A tool returned an error code from "Deleting old pdb file..."
Build log was saved at "file://C:\Documents and Settings\xxx\My Documents\Files\Programs\Apex Compile\ApexDC++_0.2.1_src\apexdc\vc7\Release\StrongDC\BuildLog.htm"
StrongDC - 1 error(s), 0 warning(s)
========== Rebuild All: 7 succeeded, 1 failed, 0 skipped ==========

Ive followed the guide to the letter, only part I could have slipped on was:

Note: IF YOU HAVE SP2 SDK INSTALLED REMOVE IT FROM VS 2005 Include Files
(This was the thing that failed my compilation numerous of times)

If this is the cause of my problem, could you be slightly more specific on how to do this?

Cheers!

just create directory named compiled in your src dir and you are good to go...
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#9 Exergy

Exergy

    Member

  • Member
  • PipPip
  • 37 posts

Posted 10 September 2006 - 04:59 PM

Excellent, I was being a moron.

Compiled fine now, one last question, how do I go about putting it in an installer?

#10 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 10 September 2006 - 05:18 PM

View PostExergy, on Sep 10 2006, 05:59 PM, said:

Excellent, I was being a moron.

Compiled fine now, one last question, how do I go about putting it in an installer?

you need to make an installer for it, and for that google is your friend :)
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#11 Exergy

Exergy

    Member

  • Member
  • PipPip
  • 37 posts

Posted 10 September 2006 - 05:23 PM

Cheers for all the help Crise & Balder, im set now.

#12 amp

amp

    Evil conqueror from space ^_^

  • Member
  • PipPipPipPip
  • 309 posts

Posted 10 September 2006 - 09:13 PM

I'd like to recommend you NSIS installer. It's free and very powerful.
My english is bad, sorry :).
This language is not native for me :).

#13 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 11 September 2006 - 05:04 AM

View Postamp, on Sep 10 2006, 10:13 PM, said:

I'd like to recommend you NSIS installer. It's free and very powerful.

i already did that, see my google link :)
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#14 Exergy

Exergy

    Member

  • Member
  • PipPip
  • 37 posts

Posted 11 September 2006 - 06:43 AM

Is there any chance of getting the NSIS script you use? Just I want it to be indentical?

:)

#15 balder

balder

    AKA [Linux-Admin]Cheers

  • Support
  • 534 posts

Posted 11 September 2006 - 12:14 PM

I just wanted to quickly post (before anyone else wasts hours of there time) and let people know that commpiling in VS 2005 express dose not work due to the lack of ALT libraries in that package

#16 Exergy

Exergy

    Member

  • Member
  • PipPip
  • 37 posts

Posted 12 September 2006 - 10:13 PM

Any word on the NSIS script?

Cheers.

#17 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 13 September 2006 - 04:23 AM

View PostExergy, on Sep 12 2006, 11:13 PM, said:

Any word on the NSIS script?


Well i don't even have the nsis script, because i don't do our installers... and about you wanting to be identical, i  prefer not to have too identical mods of ApexDC out there because of the simple fact that then we here can't easily separate them, if problems would pop up...
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#18 Exergy

Exergy

    Member

  • Member
  • PipPip
  • 37 posts

Posted 13 September 2006 - 09:54 AM

Thats fair, I have been able to knock one together now anyways, just somewhat less pretty than yours.

Err, mine isnt a mod as such, more a customised version of yours for our Uni.

But still, I take your point, thanks for the help so far :D

#19 Lee

Lee

    Project Manager

  • Management
  • 3,231 posts

Posted 14 September 2006 - 04:05 PM

If there's anything decent you've added, and would suit ApexDC++, please submit it to us. :)
Stay up to date: Subscribe to our news feed

#20 amp

amp

    Evil conqueror from space ^_^

  • Member
  • PipPipPipPip
  • 309 posts

Posted 15 September 2006 - 04:54 PM

Keep getting
Error 1 fatal error C1189: #error :  You must use compiled STLPort else you can't use optimized node allocator. d:\Temp\ApexDC++_0.2.2_source\client\stdinc.cpp 28
I'm using STLPort from link above. What might be wrong?
My english is bad, sorry :).
This language is not native for me :).


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users