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

Support white spaces in project path #110

Open
SamSandq opened this issue Mar 3, 2024 · 1 comment
Open

Support white spaces in project path #110

SamSandq opened this issue Mar 3, 2024 · 1 comment
Assignees
Labels
build-system Issue related with CMake or compilers

Comments

@SamSandq
Copy link

SamSandq commented Mar 3, 2024

I wanted to added some resource images to my application, and proceeded as the documentation says:

  • added a directory under .../res/, giving .../res/res_images
  • changed the CMakeLists.txt file in the main project directory to
nap_desktop_app(Funtus "" NRC_EMBEDDED)
target_link_libraries(Funtus ${NAPPGUI_LIBRARIES} "-l sqlite3")
  • and ran cmake -G Xcode -S . -B build -DCMAKE_INSTALL_PREFIX=/Users/sam/nappgui

This FAILED with the following error:

Screenshot 2024-03-03 at 9 07 30

I was mystified, but had a hunch that it didn't properly find my files.
And... I changed my source directory from nappgui projectsto nappgui_projects. The result was the following:

Screenshot 2024-03-03 at 9 27 17

In other words, either CMake or nrc does not allow spaces in directory names!

Please ascertain which, and correct.

@frang75 frang75 changed the title Fatal error using resources Support white spaces in project path Mar 4, 2024
@frang75
Copy link
Owner

frang75 commented Mar 4, 2024

NAppGUI projects have never been tested with whitespaces or Unicode characters in path.

@frang75 frang75 self-assigned this Mar 4, 2024
@frang75 frang75 added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 4, 2024
@frang75 frang75 added build-system Issue related with CMake or compilers and removed documentation Improvements or additions to documentation enhancement New feature or request labels Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-system Issue related with CMake or compilers
Projects
None yet
Development

No branches or pull requests

2 participants