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

  • Home
  • SEARCH
  • 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 6547601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:51:02+00:00 2026-05-25T11:51:02+00:00

This project compiles find when run under Linux, but fails when I try to

  • 0

This project compiles find when run under Linux, but fails when I try to make a VC solution for Windows. The error is:

e:\src\audio\audio.h(5): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory

I am including the library that contains portaudio.h as so:

find_package(portaudio REQUIRED)

Which is found using the file Findportaudio.cmake, which looks like it’s pointing to the right directory:

include(LibFindMacros)
find_path(Portaudio_INCLUDE_DIR NAMES portaudio.h PATHS ../src/extern/portaudio/include)
find_library(Portaudio_LIBRARY NAMES portaudio PATHS ../src/extern/portaudio/lib)
set(Portaudio_PROCESS_INCLUDES Pulseaudio_INCLUDE_DIR)
set(Portaudio_PROCESS_LIBS Pulseaudio_LIBRARY)
libfind_process(Portaudio)

This all works just fine when I run it under Linux, but when I generate my make files it does not. I get the error mentioned above a bunch of times. The project’s properties only lists %(AdditionalIncludeDirectories) for the Additional Include Directories (under C/C++ > General) but I don’t know where that gets set or what it’s getting set to.

(If I’ve omitted any relevant information let me know and I’ll amend my question).

  • 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-25T11:51:03+00:00Added an answer on May 25, 2026 at 11:51 am

    Normally I do the following for most packages:

    FIND_PACKAGE( GDCM REQUIRED )
    INCLUDE_DIRECTORIES( ${GDCM_INCLUDE_DIRS} )
    LINK_DIRECTORIES( ${GDCM_LIBRARY_DIRS} )
    

    In your case it looks like

    FIND_PACKAGE( portaudio REQUIRED )
    INCLUDE_DIRECTORIES( ${Portaudio_INCLUDE_DIR} )
    LINK_DIRECTORIES( ${Portaudio_LIBRARY} )
    

    will work.

    I believe your original command works on linux because it is picking up the standard include and library folders while on windows there is no standard.

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

Sidebar

Related Questions

I got this project, where there this error keeps occurring and its not on
This is the directory structure of the project (maven2 is used): pom.xml /src /main
I know this a is a common issue, but everything I can find in
recently I downloaded this open source project and I am trying to compile it.
I'm getting this message each time I compile my project: RunIPhoneUnitTest.sh: line 92: 31389
This project is the probable first step in migrating a large CMS from Classic
This project started as a development platform because i wanted to be able to
On this project I am working on right now, one of the newest feature
Why isn't this project maintained anymore? I love this app, however not updating it
Im just starting a project and since this project is personal I was wondering

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.