Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to build xtd.forms project #240

Closed
baderouaich opened this issue Dec 3, 2023 · 1 comment
Closed

[BUG] Unable to build xtd.forms project #240

baderouaich opened this issue Dec 3, 2023 · 1 comment
Assignees
Labels
bug Something isn't working Fixed
Milestone

Comments

@baderouaich
Copy link
Collaborator

Describe the bug

Could not generate build files for a new xtd.forms project.

To Reproduce

  • Clone xtd from master - commit

  • Build & install xtd

    cd xtd/ && sudo ./install
  • Create a new xtd forms project with the xtdc-gui tool

  • Open project the created project folder and create a build folder

  • run cd build and cmake .. You will see issue:

    CMake Error
    -- The C compiler identification is GNU 12.3.0
    -- The CXX compiler identification is GNU 12.3.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    CMake Error at /usr/local/cmake/xtd-noconfig.cmake:9 (set_property):
      set_property could not find TARGET xtd.3rdparty.call_stack.  Perhaps it has
      not yet been created.
    Call Stack (most recent call first):
      /usr/local/cmake/xtd.cmake:165 (include)
      /usr/local/cmake/xtdConfig.cmake:2 (include)
      CMakeLists.txt:5 (find_package)
    
    
    CMake Error at /usr/local/cmake/xtd-noconfig.cmake:10 (set_target_properties):
      set_target_properties Can not find target to add properties to:
      xtd.3rdparty.call_stack
    Call Stack (most recent call first):
      /usr/local/cmake/xtd.cmake:165 (include)
      /usr/local/cmake/xtdConfig.cmake:2 (include)
      CMakeLists.txt:5 (find_package)
    
    
    CMake Error at /usr/local/cmake/xtd.cmake:175 (message):
      The imported target "xtd.3rdparty.call_stack" references the file
    
         "/usr/local/lib/libxtd.3rdparty.call_stack.a"
    
      but this file does not exist.  Possible reasons include:
    
      * The file was deleted, renamed, or moved to another location.
    
      * An install or uninstall procedure did not complete successfully.
    
      * The installation package was faulty and contained
    
         "/usr/local/cmake/xtd.cmake"
    
      but not all the files it references.
    
    Call Stack (most recent call first):
      /usr/local/cmake/xtdConfig.cmake:2 (include)
      CMakeLists.txt:5 (find_package)
    
    
    -- Configuring incomplete, errors occurred!

Expected behaviour

The build files to be generated with no issues.

Desktop

  • OS: Ubuntu
  • Version: 22.04.3 LTS
  • cmake version 3.22.1
  • xtd version: 0.2.0 - master - commit
gammasoft71 added a commit that referenced this issue Dec 3, 2023
@baderouaich
Copy link
Collaborator Author

The commit 7b7c429 solved the issue.
Thank you @gammasoft71 for the quick fix! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed
Projects
Status: To do
Development

No branches or pull requests

2 participants