How do I install The Powder Toy?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I've been trying to install The Powder Toy. I am using the instructions shown on the wiki. I've performed the installation of all the stuff and did the required commands with git, but when I got to scons and ran it (I was in the proper directory,) it gave me a bunch of errors. Did I do something wrong in the installation process?



The errors are shown here:



scons: Reading SConscript files ...
Checking whether the C compiler works... (cached) yes
Checking whether the C++ compiler works... (cached) yes
Checking if 64 bit... (cached) yes
Adding 64 bit compile flags
Checking for C library SDL2... (cached) yes
Checking for C header file SDL2/SDL.h... (cached) yes
Checking for C library lua5.1... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library fftw3f... (cached) yes
Checking for C library bz2... (cached) yes
Checking for C header file bzlib.h... (cached) yes
Checking for C library z... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library m... (cached) yes
Checking for C library X11... (cached) yes
Checking for C library rt... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/src/PowderToySDL.o -c -std=c++11 -U__STRICT_ANSI__ -Wno-invalid-offsetof -Wno-unused-result -msse -msse2 -D_64BIT -D_REENTRANT -DSDL_INC -DLUA_R_INCL -DLIN -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated -I/usr/include/SDL2 -I/usr/include/lua5.1 src/PowderToySDL.cpp
src/PowderToySDL.cpp: In function ‘void LoadWindowPosition()’:
src/PowderToySDL.cpp:94:80: error: ‘SDL_GetWindowBordersSize’ was not declared in this scope
SDL_GetWindowBordersSize(sdl_window, &borderTop, &borderLeft, nullptr, nullptr);
^
src/PowderToySDL.cpp: In function ‘void SaveWindowPosition()’:
src/PowderToySDL.cpp:111:80: error: ‘SDL_GetWindowBordersSize’ was not declared in this scope
SDL_GetWindowBordersSize(sdl_window, &borderTop, &borderLeft, nullptr, nullptr);
^
src/PowderToySDL.cpp: In function ‘int SDLOpen()’:
src/PowderToySDL.cpp:162:54: error: ‘SDL_GetDisplayUsableBounds’ was not declared in this scope
if (!SDL_GetDisplayUsableBounds(displayIndex, &rect))
^
src/PowderToySDL.cpp: In function ‘void SDLSetScreen(int, bool, bool, bool, bool)’:
src/PowderToySDL.cpp:218:98: error: ‘SDL_RenderSetIntegerScale’ was not declared in this scope
SDL_RenderSetIntegerScale(sdl_renderer, forceIntegerScaling && fullscreen ? SDL_TRUE : SDL_FALSE);
^
src/PowderToySDL.cpp:225:69: error: ‘SDL_SetWindowResizable’ was not declared in this scope
SDL_SetWindowResizable(sdl_window, resizable ? SDL_TRUE : SDL_FALSE);
^
src/PowderToySDL.cpp: In function ‘void RecreateWindow()’:
src/PowderToySDL.cpp:251:51: error: ‘SDL_RenderSetIntegerScale’ was not declared in this scope
SDL_RenderSetIntegerScale(sdl_renderer, SDL_TRUE);
^
scons: *** [build/src/PowderToySDL.o] Error 1
scons: building terminated because of errors.
strip: 'build/powder64': No such file









share|improve this question




















  • 1





    "A bunch of errors" is too vague for us to be helpful. Give us the exact text of the error messages, and a link to the instructions you have been following.

    – Jos
    Feb 24 at 22:09











  • Okay. I'll edit it.

    – Blue-Maned Hawk
    Feb 24 at 22:32






  • 1





    Usual with builds there's a log file created on error? Perhaps you can repeat the g++ -o build/src/PowderToySDL.o -c [...] -Idata -Ibuild/generated -Igenerated -I/usr/include/SDL2 -I/usr/include/lua5.1 src/PowderToySDL.cpp command (the whole thing, not just this bit) with 2>&1 | tee build.log at the end to send all stderr and stdout to a log file? All that says is "building terminated because of errors", which isn't helpful.

    – pbhj
    Feb 24 at 23:01













  • I don't think I did the nano part right. All the errors are completely different.

    – Blue-Maned Hawk
    Feb 24 at 23:34













  • Just copy-paste it from your terminzl window.

    – fkraiem
    Feb 25 at 7:39


















1















I've been trying to install The Powder Toy. I am using the instructions shown on the wiki. I've performed the installation of all the stuff and did the required commands with git, but when I got to scons and ran it (I was in the proper directory,) it gave me a bunch of errors. Did I do something wrong in the installation process?



The errors are shown here:



scons: Reading SConscript files ...
Checking whether the C compiler works... (cached) yes
Checking whether the C++ compiler works... (cached) yes
Checking if 64 bit... (cached) yes
Adding 64 bit compile flags
Checking for C library SDL2... (cached) yes
Checking for C header file SDL2/SDL.h... (cached) yes
Checking for C library lua5.1... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library fftw3f... (cached) yes
Checking for C library bz2... (cached) yes
Checking for C header file bzlib.h... (cached) yes
Checking for C library z... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library m... (cached) yes
Checking for C library X11... (cached) yes
Checking for C library rt... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/src/PowderToySDL.o -c -std=c++11 -U__STRICT_ANSI__ -Wno-invalid-offsetof -Wno-unused-result -msse -msse2 -D_64BIT -D_REENTRANT -DSDL_INC -DLUA_R_INCL -DLIN -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated -I/usr/include/SDL2 -I/usr/include/lua5.1 src/PowderToySDL.cpp
src/PowderToySDL.cpp: In function ‘void LoadWindowPosition()’:
src/PowderToySDL.cpp:94:80: error: ‘SDL_GetWindowBordersSize’ was not declared in this scope
SDL_GetWindowBordersSize(sdl_window, &borderTop, &borderLeft, nullptr, nullptr);
^
src/PowderToySDL.cpp: In function ‘void SaveWindowPosition()’:
src/PowderToySDL.cpp:111:80: error: ‘SDL_GetWindowBordersSize’ was not declared in this scope
SDL_GetWindowBordersSize(sdl_window, &borderTop, &borderLeft, nullptr, nullptr);
^
src/PowderToySDL.cpp: In function ‘int SDLOpen()’:
src/PowderToySDL.cpp:162:54: error: ‘SDL_GetDisplayUsableBounds’ was not declared in this scope
if (!SDL_GetDisplayUsableBounds(displayIndex, &rect))
^
src/PowderToySDL.cpp: In function ‘void SDLSetScreen(int, bool, bool, bool, bool)’:
src/PowderToySDL.cpp:218:98: error: ‘SDL_RenderSetIntegerScale’ was not declared in this scope
SDL_RenderSetIntegerScale(sdl_renderer, forceIntegerScaling && fullscreen ? SDL_TRUE : SDL_FALSE);
^
src/PowderToySDL.cpp:225:69: error: ‘SDL_SetWindowResizable’ was not declared in this scope
SDL_SetWindowResizable(sdl_window, resizable ? SDL_TRUE : SDL_FALSE);
^
src/PowderToySDL.cpp: In function ‘void RecreateWindow()’:
src/PowderToySDL.cpp:251:51: error: ‘SDL_RenderSetIntegerScale’ was not declared in this scope
SDL_RenderSetIntegerScale(sdl_renderer, SDL_TRUE);
^
scons: *** [build/src/PowderToySDL.o] Error 1
scons: building terminated because of errors.
strip: 'build/powder64': No such file









share|improve this question




















  • 1





    "A bunch of errors" is too vague for us to be helpful. Give us the exact text of the error messages, and a link to the instructions you have been following.

    – Jos
    Feb 24 at 22:09











  • Okay. I'll edit it.

    – Blue-Maned Hawk
    Feb 24 at 22:32






  • 1





    Usual with builds there's a log file created on error? Perhaps you can repeat the g++ -o build/src/PowderToySDL.o -c [...] -Idata -Ibuild/generated -Igenerated -I/usr/include/SDL2 -I/usr/include/lua5.1 src/PowderToySDL.cpp command (the whole thing, not just this bit) with 2>&1 | tee build.log at the end to send all stderr and stdout to a log file? All that says is "building terminated because of errors", which isn't helpful.

    – pbhj
    Feb 24 at 23:01













  • I don't think I did the nano part right. All the errors are completely different.

    – Blue-Maned Hawk
    Feb 24 at 23:34













  • Just copy-paste it from your terminzl window.

    – fkraiem
    Feb 25 at 7:39














1












1








1








I've been trying to install The Powder Toy. I am using the instructions shown on the wiki. I've performed the installation of all the stuff and did the required commands with git, but when I got to scons and ran it (I was in the proper directory,) it gave me a bunch of errors. Did I do something wrong in the installation process?



The errors are shown here:



scons: Reading SConscript files ...
Checking whether the C compiler works... (cached) yes
Checking whether the C++ compiler works... (cached) yes
Checking if 64 bit... (cached) yes
Adding 64 bit compile flags
Checking for C library SDL2... (cached) yes
Checking for C header file SDL2/SDL.h... (cached) yes
Checking for C library lua5.1... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library fftw3f... (cached) yes
Checking for C library bz2... (cached) yes
Checking for C header file bzlib.h... (cached) yes
Checking for C library z... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library m... (cached) yes
Checking for C library X11... (cached) yes
Checking for C library rt... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/src/PowderToySDL.o -c -std=c++11 -U__STRICT_ANSI__ -Wno-invalid-offsetof -Wno-unused-result -msse -msse2 -D_64BIT -D_REENTRANT -DSDL_INC -DLUA_R_INCL -DLIN -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated -I/usr/include/SDL2 -I/usr/include/lua5.1 src/PowderToySDL.cpp
src/PowderToySDL.cpp: In function ‘void LoadWindowPosition()’:
src/PowderToySDL.cpp:94:80: error: ‘SDL_GetWindowBordersSize’ was not declared in this scope
SDL_GetWindowBordersSize(sdl_window, &borderTop, &borderLeft, nullptr, nullptr);
^
src/PowderToySDL.cpp: In function ‘void SaveWindowPosition()’:
src/PowderToySDL.cpp:111:80: error: ‘SDL_GetWindowBordersSize’ was not declared in this scope
SDL_GetWindowBordersSize(sdl_window, &borderTop, &borderLeft, nullptr, nullptr);
^
src/PowderToySDL.cpp: In function ‘int SDLOpen()’:
src/PowderToySDL.cpp:162:54: error: ‘SDL_GetDisplayUsableBounds’ was not declared in this scope
if (!SDL_GetDisplayUsableBounds(displayIndex, &rect))
^
src/PowderToySDL.cpp: In function ‘void SDLSetScreen(int, bool, bool, bool, bool)’:
src/PowderToySDL.cpp:218:98: error: ‘SDL_RenderSetIntegerScale’ was not declared in this scope
SDL_RenderSetIntegerScale(sdl_renderer, forceIntegerScaling && fullscreen ? SDL_TRUE : SDL_FALSE);
^
src/PowderToySDL.cpp:225:69: error: ‘SDL_SetWindowResizable’ was not declared in this scope
SDL_SetWindowResizable(sdl_window, resizable ? SDL_TRUE : SDL_FALSE);
^
src/PowderToySDL.cpp: In function ‘void RecreateWindow()’:
src/PowderToySDL.cpp:251:51: error: ‘SDL_RenderSetIntegerScale’ was not declared in this scope
SDL_RenderSetIntegerScale(sdl_renderer, SDL_TRUE);
^
scons: *** [build/src/PowderToySDL.o] Error 1
scons: building terminated because of errors.
strip: 'build/powder64': No such file









share|improve this question
















I've been trying to install The Powder Toy. I am using the instructions shown on the wiki. I've performed the installation of all the stuff and did the required commands with git, but when I got to scons and ran it (I was in the proper directory,) it gave me a bunch of errors. Did I do something wrong in the installation process?



The errors are shown here:



scons: Reading SConscript files ...
Checking whether the C compiler works... (cached) yes
Checking whether the C++ compiler works... (cached) yes
Checking if 64 bit... (cached) yes
Adding 64 bit compile flags
Checking for C library SDL2... (cached) yes
Checking for C header file SDL2/SDL.h... (cached) yes
Checking for C library lua5.1... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library fftw3f... (cached) yes
Checking for C library bz2... (cached) yes
Checking for C header file bzlib.h... (cached) yes
Checking for C library z... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library m... (cached) yes
Checking for C library X11... (cached) yes
Checking for C library rt... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/src/PowderToySDL.o -c -std=c++11 -U__STRICT_ANSI__ -Wno-invalid-offsetof -Wno-unused-result -msse -msse2 -D_64BIT -D_REENTRANT -DSDL_INC -DLUA_R_INCL -DLIN -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated -I/usr/include/SDL2 -I/usr/include/lua5.1 src/PowderToySDL.cpp
src/PowderToySDL.cpp: In function ‘void LoadWindowPosition()’:
src/PowderToySDL.cpp:94:80: error: ‘SDL_GetWindowBordersSize’ was not declared in this scope
SDL_GetWindowBordersSize(sdl_window, &borderTop, &borderLeft, nullptr, nullptr);
^
src/PowderToySDL.cpp: In function ‘void SaveWindowPosition()’:
src/PowderToySDL.cpp:111:80: error: ‘SDL_GetWindowBordersSize’ was not declared in this scope
SDL_GetWindowBordersSize(sdl_window, &borderTop, &borderLeft, nullptr, nullptr);
^
src/PowderToySDL.cpp: In function ‘int SDLOpen()’:
src/PowderToySDL.cpp:162:54: error: ‘SDL_GetDisplayUsableBounds’ was not declared in this scope
if (!SDL_GetDisplayUsableBounds(displayIndex, &rect))
^
src/PowderToySDL.cpp: In function ‘void SDLSetScreen(int, bool, bool, bool, bool)’:
src/PowderToySDL.cpp:218:98: error: ‘SDL_RenderSetIntegerScale’ was not declared in this scope
SDL_RenderSetIntegerScale(sdl_renderer, forceIntegerScaling && fullscreen ? SDL_TRUE : SDL_FALSE);
^
src/PowderToySDL.cpp:225:69: error: ‘SDL_SetWindowResizable’ was not declared in this scope
SDL_SetWindowResizable(sdl_window, resizable ? SDL_TRUE : SDL_FALSE);
^
src/PowderToySDL.cpp: In function ‘void RecreateWindow()’:
src/PowderToySDL.cpp:251:51: error: ‘SDL_RenderSetIntegerScale’ was not declared in this scope
SDL_RenderSetIntegerScale(sdl_renderer, SDL_TRUE);
^
scons: *** [build/src/PowderToySDL.o] Error 1
scons: building terminated because of errors.
strip: 'build/powder64': No such file






command-line software-installation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 26 at 6:54









dessert

25.7k674108




25.7k674108










asked Feb 24 at 21:59









Blue-Maned HawkBlue-Maned Hawk

166




166








  • 1





    "A bunch of errors" is too vague for us to be helpful. Give us the exact text of the error messages, and a link to the instructions you have been following.

    – Jos
    Feb 24 at 22:09











  • Okay. I'll edit it.

    – Blue-Maned Hawk
    Feb 24 at 22:32






  • 1





    Usual with builds there's a log file created on error? Perhaps you can repeat the g++ -o build/src/PowderToySDL.o -c [...] -Idata -Ibuild/generated -Igenerated -I/usr/include/SDL2 -I/usr/include/lua5.1 src/PowderToySDL.cpp command (the whole thing, not just this bit) with 2>&1 | tee build.log at the end to send all stderr and stdout to a log file? All that says is "building terminated because of errors", which isn't helpful.

    – pbhj
    Feb 24 at 23:01













  • I don't think I did the nano part right. All the errors are completely different.

    – Blue-Maned Hawk
    Feb 24 at 23:34













  • Just copy-paste it from your terminzl window.

    – fkraiem
    Feb 25 at 7:39














  • 1





    "A bunch of errors" is too vague for us to be helpful. Give us the exact text of the error messages, and a link to the instructions you have been following.

    – Jos
    Feb 24 at 22:09











  • Okay. I'll edit it.

    – Blue-Maned Hawk
    Feb 24 at 22:32






  • 1





    Usual with builds there's a log file created on error? Perhaps you can repeat the g++ -o build/src/PowderToySDL.o -c [...] -Idata -Ibuild/generated -Igenerated -I/usr/include/SDL2 -I/usr/include/lua5.1 src/PowderToySDL.cpp command (the whole thing, not just this bit) with 2>&1 | tee build.log at the end to send all stderr and stdout to a log file? All that says is "building terminated because of errors", which isn't helpful.

    – pbhj
    Feb 24 at 23:01













  • I don't think I did the nano part right. All the errors are completely different.

    – Blue-Maned Hawk
    Feb 24 at 23:34













  • Just copy-paste it from your terminzl window.

    – fkraiem
    Feb 25 at 7:39








1




1





"A bunch of errors" is too vague for us to be helpful. Give us the exact text of the error messages, and a link to the instructions you have been following.

– Jos
Feb 24 at 22:09





"A bunch of errors" is too vague for us to be helpful. Give us the exact text of the error messages, and a link to the instructions you have been following.

– Jos
Feb 24 at 22:09













Okay. I'll edit it.

– Blue-Maned Hawk
Feb 24 at 22:32





Okay. I'll edit it.

– Blue-Maned Hawk
Feb 24 at 22:32




1




1





Usual with builds there's a log file created on error? Perhaps you can repeat the g++ -o build/src/PowderToySDL.o -c [...] -Idata -Ibuild/generated -Igenerated -I/usr/include/SDL2 -I/usr/include/lua5.1 src/PowderToySDL.cpp command (the whole thing, not just this bit) with 2>&1 | tee build.log at the end to send all stderr and stdout to a log file? All that says is "building terminated because of errors", which isn't helpful.

– pbhj
Feb 24 at 23:01







Usual with builds there's a log file created on error? Perhaps you can repeat the g++ -o build/src/PowderToySDL.o -c [...] -Idata -Ibuild/generated -Igenerated -I/usr/include/SDL2 -I/usr/include/lua5.1 src/PowderToySDL.cpp command (the whole thing, not just this bit) with 2>&1 | tee build.log at the end to send all stderr and stdout to a log file? All that says is "building terminated because of errors", which isn't helpful.

– pbhj
Feb 24 at 23:01















I don't think I did the nano part right. All the errors are completely different.

– Blue-Maned Hawk
Feb 24 at 23:34







I don't think I did the nano part right. All the errors are completely different.

– Blue-Maned Hawk
Feb 24 at 23:34















Just copy-paste it from your terminzl window.

– fkraiem
Feb 25 at 7:39





Just copy-paste it from your terminzl window.

– fkraiem
Feb 25 at 7:39










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120964%2fhow-do-i-install-the-powder-toy%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120964%2fhow-do-i-install-the-powder-toy%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents