I had to manually create the folder for doxygen or otherwise I had a path error.
Starting from the root of the source folder, use this command:
mkdir -p Documentation/Doxygen/output/standalone/Polycode/Core
Then restore the building process.
I also recompiled doxygen with the clang option, which is not active in the compiled package.
Search Criteria
Package Details: polycode-git d042872-1
Package Actions
- View PKGBUILD
- Download tarball
- Search wiki
- Flagged out-of-date (2014-06-22)
| Package Base: | polycode-git |
|---|---|
| Description: | Polycode is a cross-platform framework for creative code. |
| Upstream URL: | http://polycode.org/ |
| Category: | devel |
| Licenses: | |
| Submitter: | goakley |
| Maintainer: | goakley |
| Last Packager: | None |
| Votes: | 9 |
| First Submitted: | 2013-04-03 20:57 |
| Last Updated: | 2014-04-07 01:33 |
Latest Comments
Comment by marcs
Comment by mrunion
Does anyone else get this when running any LUA example from the PolyCodeIDE:
Loading custom class: .lua
CRASH EXECUTING FILE
Remote debugger client connected...
CLIENT CONNECTED
Error in file on line 0
module '' not found:
no field package.preload['']
no file './.lua'
no file '/usr/local/share/lua/5.1/.lua'
no file '/usr/local/share/lua/5.1//init.lua'
no file '/usr/local/lib/lua/5.1/.lua'
no file '/usr/local/lib/lua/5.1//init.lua'
no file './.so
Backtrace:
In file on line 0
deleting core...
sh: line 1: 8072 Segmentation fault (core dumped) ./PolycodePlayer /tmp/BasicImage.polyapp
Comment by dront78
for now I got
[ 52%] Completed 'assimp'
[ 52%] Built target assimp
ERROR: Makepkg was unable to build polycode-git
Comment by uberben
I found the solution. Looks like the demos are in a dir owned by root, which polycode doesn't like.
http://polycode.org/forum/viewtopic.php?p=2835#p2835
Comment by uberben
When I try to run or build any examples, I get a a crash with the following error:
CRASH EXECUTING FILE
Remote debugger client connected...
CLIENT CONNECTED
Error in file on line 0
module '' not found:
no field package.preload['']
no file './.lua'
no file '/usr/local/share/lua/5.1/.lua'
no file '/usr/local/share/lua/5.1//init.lua'
no file '/usr/local/lib/lua/5.1/.lua'
no file '/usr/local/lib/lua/5.1//init.lua'
no file './.so
Backtrace:
In file on line 0
My version of lua was 5.2. I also installed lua51, but that did not solve the issue. Has anyone else seen this issue?
Anonymous comment
Proposal: https://www.wuala.com/daltomi/prog/polycode-git-0812c68-1.src.tar.gz
Improvement:
- Build Release mode only (see patch)
- Make C++ Examples.
- Preserve static libs for C++ developers.
- PolycodePlayer *and* StandalonePlayer: /opt/polycode-git/Framework/Players/
- Polycode: /opt/polycode-git/IDE/
Comment by Svenstaro
This PKGBUILD uses old style git stuff. Please update to current integrated git sources.
Comment by algoban
The screnrewrite branch has merged into master. https://twitter.com/Polycode
Comment by AnTi-ArT
The examples still won't play, but there is an easy workaround:
I simply copied them over into my Documents folder and "Open Project" them from there...
Comment by celeron55
I was hanging around on their IRC channel for a day or two and from that it looked like there is development going on on a separate branch. That probably explains things.
https://github.com/ivansafrin/Polycode/compare/screenrewrite
Comment by goakley
You are a godsend. I wish I knew what was going on with the Polycode development; it seems like nothing's changed with the source since I last audited the PKGBUILD.
Comment by celeron55
Error:
$ PolycodePlayer PolyFoo.polyapp
Filename required
The problem is this in /usr/bin/PolycodePlayer:
cd /opt/polycode-git/Standalone/Player && ./PolycodePlayer
Here is an ugly replacement that works for both relative and absolute paths:
if [ "$(basename "$1")" == "$1" ]; then dir="$(pwd)"; else dir=""; fi && cd /opt/polycode-git/Standalone/Player && ./PolycodePlayer "$dir/$1"
Also, PolycodePlayer is clearly some quality code; it segfaults if it fails to open the given path. 8)
Comment by goakley
Thank you for the bug reports, celeron55. The issues have been fixed with PolycodePlayer.
Additionally, PKGBUILD no longer attempts to build the examples due to the consistent failures. They can still be built by navigating to /opt/polycode-git/Release/Linux/Framework/Examples/Linux/.
Comment by celeron55
Also, this could either be considered an upstream bug or not, but it looks like PolycodePlayer does not work unless it's CWD is in /opt/polycode-git/Standalone/Player/ (the installation directory), making the fixing or even existence of the symlink kind of pointless.
Comment by celeron55
Oh actually yes, it *is* a bug in the PKGBUILD.
Comment by celeron55
In addition to the X11 linking issue, I have got this issue:
$ /usr/bin/PolycodePlayer
bash: /usr/bin/PolycodePlayer: No such file or directory
$ ls -l /usr/bin/PolycodePlayer
lrwxrwxrwx 1 root root 46 Nov 22 15:32 /usr/bin/PolycodePlayer -> /polycode-git/Standalone/Player/PolycodePlayer
It should probably copy that instead of creating a broken symlink. I wonder if this is an upstream bug or not. I wouldn't be surprised if it is.
Comment by mrunion
I know I shouldn't, but I'm getting frustrated with this code!
To get past the "X11" linking issue, you need to add "-lX11" to the makefile in the Examples Linux Build folder (I can be more precise if anyone wants.)
After that, though, you'll run into:
make[2]: *** No rule to make target `../../Release/Linux/Framework/Core/Dependencies/lib/libpng15d.a', needed by `Player/Contents/PolycodePlayer'. Stop.
make[1]: *** [Player/Contents/CMakeFiles/PolycodePlayer.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I installed libpng15 from the aur and it didn't help. I'm not running it down any further right now because it has frustrated me. Again, I know it shouldn't -- it's not like I'm paying for this software -- but I'm just backing off.
Anyway, this info is here in case someone wants to pursue it.
Comment by goakley
I've updated the PKGBUILD to properly execute the 'Polycode' IDE. You can get the same result by applying this patch to '/usr/bin/Polycode'
http://pastebin.com/raw.php?i=MCYyv9hm
Comment by H3g3m0n
I had to comment out the examples too.
Also the IDE 'Polycode' doesn't work (no error, just gets stuck) unless I run the one in the build directory (while in the build directory otherwise it will segfault). So it seems that it requires some files. Otherwise everything seems to be fine.
cd ~/aur/polycode-git/src/Polycode/IDE/Build/Linux/Build/
./Polycode
Anonymous comment
Tried this pkg as of now, but it throws an error when building the examples. Otherwise seems fine when commenting it out.
==> Building C++ examples
....
/usr/bin/ld: ../../Core/lib/libPolycore.a(PolySDLCore.cpp.o): undefined reference to symbol 'XInternAtom'
/usr/bin/ld: note: 'XInternAtom' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [2DAudio] Error 1
Comment by goakley
Good catch, updated to fix symlinks.
Comment by opatut
Sadly, the symlinks (polybuild, polyimport, PolycodePlayer) all link to the temporary build directory (/tmp/yaourt-tmp-user/aur-polycode-git/pkg/....) Is this a problem of yaourt or could this be fixed in the PKGBUILD?
Comment by goakley
Updated with suggested modifications.
Anonymous comment
I modified the PKGBUILD slightly to add symlinks to the binaries (polycode-build, polycode-import, polycode-ide) in /usr/bin and a symlink to the documentation in /usr/share/polycode-doc. Also, instead of the contents of $srcdir/$_gitname/Build I use the contents of $srcdir/$_gitname/Release/Linux.
Here is the gist of it:
https://gist.github.com/kzvezdarov/c9bc99eb59dcc6cdef20
It also copies the examples and the compiled binaries to /opt/polycode-git
I am trying to understand how the StandalonePlayer works and if there needs to be a symlink to its binary, but for now I haven't added it.