Author |
Message |
kujaw
Joined: Dec 03, 2013 Posts: 2 Location: Poland
|
Posted: Tue Dec 03, 2013 5:01 pm Post subject:
ChucK build problem in Ubuntu |
|
|
Hey guys, it's my first post here, I am excited to start my journey with ChucK, but unfortunately I've got some problems with building it on Ubuntu. Here's the log:
Code: | g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__ -c util_string.cpp -o util_string.o
util_string.cpp: In function ‘std::string get_full_path(const string&)’:
util_string.cpp:393:14: error: ‘PATH_MAX’ was not declared in this scope
util_string.cpp:395:42: error: ‘buf’ was not declared in this scope
make: *** [util_string.o] Błąd 1 |
I have no idea what's wrong, can anyone help? |
|
Back to top
|
|
|
HotFuzzBox
Joined: Dec 08, 2013 Posts: 1 Location: Germany
|
Posted: Sun Dec 08, 2013 11:53 am Post subject:
|
|
|
This seems to be code to handle a file name.
There is probably a problem with include files. This isn't a proper fix but just to get the programme built you could change "PATH_MAX" to 4096 on line 493 (or thereabouts) of util_string.cpp. |
|
Back to top
|
|
|
kujaw
Joined: Dec 03, 2013 Posts: 2 Location: Poland
|
Posted: Sun Dec 08, 2013 12:47 pm Post subject:
|
|
|
Problem is solved, mr Ge Wang released correct version to download and I don't get this bug now.
But now I've got same problem with miniAudicle:
Code: | make -f makefile.qt-alsa
make[1]: Wejście do katalogu `/home/kujaw/Chuck/miniAudicle/src'
g++ -c -m64 -pipe -D__LINUX_ALSA__ -D__CK_SNDFILE_NATIVE__ -D__LINUX__ -D__PLATFORM_LINUX__ -Ichuck/src -DHAVE_CONFIG_H -O3 -w -D_REENTRANT -DQT_WEBKIT -DHAVE_CONFIG_H -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Ibuild -Ibuild -o build/util_string.o chuck/src/util_string.cpp
chuck/src/util_string.cpp: In function ‘std::string get_full_path(const string&)’:
chuck/src/util_string.cpp:393:14: error: ‘PATH_MAX’ was not declared in this scope
chuck/src/util_string.cpp:395:42: error: ‘buf’ was not declared in this scope
make[1]: *** [build/util_string.o] Błąd 1
make[1]: Opuszczenie katalogu `/home/kujaw/Chuck/miniAudicle/src'
make: [linux-alsa] Błąd 2 (ignored) |
So I'm waiting for the solution |
|
Back to top
|
|
|
witchbutter
Joined: Dec 30, 2013 Posts: 1 Location: Aurora, CO
|
Posted: Mon Dec 30, 2013 1:15 am Post subject:
|
|
|
I noticed in the the tarball miniAudicle-1.3.1.tgz there is a folder ~miniAudicle-1.3.1/chuck/. This folder is actually a copy of the source for chuck. All I needed to do to compile the jack version on Ubuntu 13.10 was replace ~miniAudicle-1.3.1/chuck with the contents of chuck-1.3.3.0.tgz renamed of course to chuck. After that the compilation, 'make linux-jack' works fine and after the 'make install' the search pulls up miniAudicle which works as expected. |
|
Back to top
|
|
|
nreese
Joined: Jan 16, 2014 Posts: 1 Location: Solomon Islands
|
Posted: Thu Jan 16, 2014 2:36 pm Post subject:
chuck build Subject description: chuck |
|
|
it was easier to go to util_string.cpp in src/chuck/src and change MAX_PATH to 4096 |
|
Back to top
|
|
|
Luiz Mello
Joined: Feb 15, 2014 Posts: 1 Location: Brazil
|
Posted: Tue Feb 18, 2014 6:16 am Post subject:
works for me on Ubuntu 12.04 |
|
|
The solution is to edit util_string.cpp by adding this line: (after other #includes)
#include <limits>
I found this solution here:
http://comments.gmane.org/gmane.comp.lang.chuck.user/184
works for me on Ubuntu 12.04 |
|
Back to top
|
|
|
|