Package Details: polycode-git d042872-1

Package Base: polycode-git
Description: Polycode is a cross-platform framework for creative code.
Upstream URL: http://polycode.org/
Category: devel
Licenses: MIT
Submitter: goakley
Maintainer: goakley
Last Packager: None
Votes: 9
First Submitted: 2013-04-03 20:57
Last Updated: 2014-04-07 01:33

Dependencies (4)

Required by (0)

Sources

Latest Comments

Comment by marcs

2015-01-03 13:11

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.

Comment by mrunion

2014-11-20 00:28

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

2014-07-26 17:26

for now I got
[ 52%] Completed 'assimp'
[ 52%] Built target assimp
ERROR: Makepkg was unable to build polycode-git

Comment by uberben

2014-07-24 17:24

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

2014-07-24 17:05

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

2014-05-01 17:34

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

2014-04-06 23:57

This PKGBUILD uses old style git stuff. Please update to current integrated git sources.

Comment by algoban

2014-04-05 00:41

The screnrewrite branch has merged into master. https://twitter.com/Polycode

Comment by AnTi-ArT

2014-03-14 08:54

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

2013-11-23 22:18

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

2013-11-23 03:39

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

2013-11-22 23:10

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

2013-11-22 15:56

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

2013-11-22 14:37

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

2013-11-22 14:29

Oh actually yes, it *is* a bug in the PKGBUILD.

Comment by celeron55

2013-11-22 14:22

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

2013-07-17 00:46

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

2013-06-15 14:34

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

2013-06-15 00:11

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

2013-06-09 21:29

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

2013-06-04 15:08

Good catch, updated to fix symlinks.

Comment by opatut

2013-06-04 14:31

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

2013-05-17 13:22

Updated with suggested modifications.

Anonymous comment

2013-05-17 12:20

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.