Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7551309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:27:37+00:00 2026-05-30T10:27:37+00:00

I am trying to compile a package containing DSUtils.pas (part of DSPack ) and

  • 0

I am trying to compile a package containing DSUtils.pas (part of DSPack) and it fails because it tries to compile wrong DirectShow9.pas unit – not the one from the DSPack but the one from the Delphi XE2 (Update 3) RTL.

The problem can be repeated with a minimal package:

package Package1;

{$R *.res}
{$IFDEF IMPLICITBUILDING This IFDEF should not be used by users}
{$ALIGN 8}
{$ASSERTIONS ON}
{$BOOLEVAL OFF}
{$DEBUGINFO ON}
{$EXTENDEDSYNTAX ON}
{$IMPORTEDDATA ON}
{$IOCHECKS ON}
{$LOCALSYMBOLS ON}
{$LONGSTRINGS ON}
{$OPENSTRINGS ON}
{$OPTIMIZATION OFF}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$REFERENCEINFO ON}
{$SAFEDIVIDE OFF}
{$STACKFRAMES ON}
{$TYPEDADDRESS OFF}
{$VARSTRINGCHECKS ON}
{$WRITEABLECONST OFF}
{$MINENUMSIZE 1}
{$IMAGEBASE $400000}
{$DEFINE DEBUG}
{$ENDIF IMPLICITBUILDING}
{$IMPLICITBUILD ON}

requires
  rtl;

contains
  DSUtils in 'x:\common\pkg\dspack\src\DSPack\DSUtils.pas';

end.

The error occurs in DSUtils line 1058 and the error is Undeclared identifier: FrameRateCode.

Result.FrameRateCode := (x and $00000003) shr 00;

Undeclared is ‘FrameRateCode’ – CtrlClick on the Result brings us to Winapi.DirectShow9 (in the RTL folder) which doesn’t have this field declared.

Interesting part – if I go to the DSUtils uses list, click on DirectShow9 and press Ctrl+Enter, the DSpack version of the unit will open (and this unit has FrameRateCode field defined). So Delphi knows where the unit is. It just tries to compile the package by using the wrong DirectShow9.

Interesting tidbit: If I’m compiling a normal application (non-package) that uses DSUtils, everything works fine.

What I’ve tried:

  1. Compiling DirectShow9 from the DSPack into its own package (actually I used DirectX9 package from DSPack which contains all files from the DirectX9 folder) and adding it to the ‘requires’ list. Doesn’t work.

  2. Adding the folder with DirectShow9 file (from DSPack) to the beginning of the system path and rebooting. Doesn’t work.

  3. Adding the folder with DirectShow9 file to the beginning of the library path. Doesn’t work.

  4. Adding the DirectShow9 unit to the package with the explicit path. Doesn’t work.

  5. Copying the DirectX9*.pas into the DSPack folder so that the DirectShow9 unit would be in the same folder as the DSUtils unit. Doesn’t work.

I see three possible workarounds, but I’m not happy with any of them.

  1. I can comment out the problematic code. Luckily, it is only this one line, everything else compiles with Delphi’s DirectShow9.

  2. I can rename DirectShow9 from DSPack but then I may have to fix the ‘uses’ part in different application.

  3. I can turn off automatic prefixing with ‘Winapi.’ but that will cause me lots of additional work editing thousands and thousands files.

What I would really like to see is getting XE2 to use the right source file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:27:38+00:00Added an answer on May 30, 2026 at 10:27 am

    I faced the same problem, and I simply commented out all the problem lines (there was 2 or 3 of them). Everything works perfectly fine.

    Another option is to use the latest DSPack (which is compatible with XE2): http://code.google.com/p/dspack/

    Or you can rename DSPack’s DirectShow9 file, as discussed here: http://www.progdigy.com/forums/viewtopic.php?p=16971

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to compile GNUstep on a linux box but gnustep-gui-0.16.0 package is failing.
I am trying to compile this libevent2 package to Windows, but currently I can't
I'm trying to compile pymssql for python 2.5. I'm doing this because I think
I trying to compile and package up my java application but I am facing
Trying to compile a Web Project here but I keep on getting package does
I;m trying to compile GnuTLS. When I thy to configure the package I get
I'm trying to compile Quarter and package it using checkinstall . If I do
Given a property: <property name=classes value=com.package.Class1,com.package.Class2 /> I'm trying to compile only the classes
I'm trying to cross-compile the pycrypto package, and I'm getting closer and closer however,
Just trying to compile some trivial Haskell, but its not finding the c runtimes,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.