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

PREFIX=/usr gets ignored? #146

Closed
probonopd opened this issue Jun 19, 2018 · 4 comments
Closed

PREFIX=/usr gets ignored? #146

probonopd opened this issue Jun 19, 2018 · 4 comments
Labels

Comments

@probonopd
Copy link

Using

qmake OpenBoard.pro CONFIG+=release PREFIX=/usr -spec linux-g++-64
make -j$(nproc)
make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/

I would expect to see appdir/usr/share/openboard.desktop, appdir/usr/bin/OpenBoard, etc.

But I don't see this structure; almost if PREFIX=/usr got ignored entirely.

@watsaig
Copy link
Contributor

watsaig commented Jun 19, 2018

I do believe it's ignored, unfortunately.

It's been a while since I worked on this aspect of OpenBoard so I can't remember the details, but some (if not all) the paths are hard-coded, so simply changing the installation folder will result in the application not finding its configuration files, default library files, etc.

I'll see if I can find the relevant places where paths are hard-coded (and should be changed); I had never had the time to fix that myself but I believe it should be fairly easy to do.

Edit: I was mistaken, the paths aren't hard-coded in any of the C++ source; just in the build & deployment scripts. To enable setting a prefix in this way, I think the QMake project file (OpenBoard.pro) would need to be modified. Right now it doesn't take this into account.

@probonopd
Copy link
Author

To enable setting a prefix in this way, I think the QMake project file (OpenBoard.pro) would need to be modified. Right now it doesn't take this into account.

Thanks for checking. I would appreciate if you could change the pro file to allow for this to work. This would greatly help the production of an AppImage which I am currently working on.

Thank you very much.

@kaamui
Copy link
Member

kaamui commented Jan 9, 2019

Hi,

Did you manage to get it work ? let me know if I can close this one so anything related to your work can be found in the #147

@kaamui kaamui added the question label Jan 9, 2019
@probonopd
Copy link
Author

@kaamui kaamui closed this as completed Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants