I'm having trouble getting the new version of libprojectM packaged, and hope someone can shed some light on this for me. When I enter the commands to build it manually, it builds fine, but when trying to package it, it comes out with commands like:
cd /home/ipfreely/rpmbuild/BUILD/libprojectM-1.2.0r1295/Renderer && /usr/lib64/ccache/c++ -DUSE_FBO -DLINUX -DSTBI_NO_DDS -DUSE_THREADS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic ;-fPIC -I/home/ipfreely/rpmbuild/BUILD/libprojectM-1.2.0r1295 -DCMAKE_INSTALL_PREFIX=""/usr"" -o CMakeFiles/Renderer.dir/FBO.o -c /home/ipfreely/rpmbuild/BUILD/libprojectM-1.2.0r1295/Renderer/FBO.cpp
Which fail due to ;-fPIC. Any ideas on why this is happening? It looks to me that it's a simple matter of getting rid of the ; in the command, but I have no idea why it's there using rpmbuild, but not when I build manually.
Thanks, =-Jameson
Jameson wrote, at 10/11/2009 06:37 AM +9:00:
I'm having trouble getting the new version of libprojectM packaged, and hope someone can shed some light on this for me.
Would you upload the srpm you are trying somewhere?
When I enter the commands to build it manually, it builds fine, but when trying to package it, it comes out with commands like:
<snip>
Which fail due to ;-fPIC. Any ideas on why this is happening? It looks to me that it's a simple matter of getting rid of the ; in the command, but I have no idea why it's there using rpmbuild, but not when I build manually.
Thanks, =-Jameson
Regards, Mamoru
On Sun, Oct 11, 2009 at 2:27 AM, Mamoru Tasaka mtasaka@ioa.s.u-tokyo.ac.jp wrote:
Jameson wrote, at 10/11/2009 06:37 AM +9:00:
I'm having trouble getting the new version of libprojectM packaged, and hope someone can shed some light on this for me.
Would you upload the srpm you are trying somewhere?
My current attempt at their SVN code can be found at: http://www.vtscrew.com/libprojectM-1.2.0r1295-9.fc11.src.rpm
Thanks, =-Jameson
On Sun, 11 Oct 2009 09:33:12 -0400, Jameson wrote:
My current attempt at their SVN code can be found at: http://www.vtscrew.com/libprojectM-1.2.0r1295-9.fc11.src.rpm
Patch attached. Do the same for any other directories where it may be necessary.
I see. Thanks for your quick reply. Upstream has been working with me recently to get this building natively without some patches that were needed in the past, so I'll pass this along.
Michael Schwendt wrote:
On Sun, 11 Oct 2009 09:33:12 -0400, Jameson wrote:
My current attempt at their SVN code can be found at: http://www.vtscrew.com/libprojectM-1.2.0r1295-9.fc11.src.rpm
Patch attached. Do the same for any other directories where it may be necessary.
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
This seems fishy. Why is adding -fPIC needed (i.e. why is CMake not taking care of this)?